I get the following Translation Error when simulating a power system model in OpenModelica-OMEdit running on a virtual machine with Windows 10 Enterprise. I have updated the Visual C++ on it. The same model works fine on my laptop/desktop. Any suggestion? Thank you.
Listing of the messages and the errors:
[1] 12:59:37 Scripting Notification
Automatically loaded package OpenIPSL 3.0.1 due to uses annotation.
[2] 12:59:37 Scripting Notification
Automatically loaded package Complex 4.0.0 due to uses annotation.
[3] 12:59:37 Scripting Notification
Automatically loaded package Modelica 4.0.0 due to uses annotation.
[4] 12:59:37 Scripting Notification
Automatically loaded package ModelicaServices 4.0.0 due to uses annotation.
[5] 13:00:07 Scripting Warning
[G:/My Drive/Folder Yadav/Research Papers/Cyber Physical Systems Paper/openmodelicamodel/DelMod/package.mo: 13:5-13:13]: Uses-annotation is missing version for library OpenIPSL. Assuming the tool-specific version="default".
[6] 13:00:07 Scripting Warning
Requested package OpenIPSL of version default, but this package was already loaded with version 3.0.1. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
[1] 13:00:49 Scripting Notification
Nonlinear iteration variables with predefined start attribute in NLSJac0. (11)
========================================
1: scaleLoad7.p.ir:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Real part of the current"IEEE9Bus, DelMod.Loads.scaleLoad, OpenIPSL.Interfaces.PwPin type: Real
2: pwLine7To6.vs.re:VARIABLE(start = bus7.v_0 * cos(bus7.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
3: scaleLoad7.p.ii:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Imaginary part of the current"IEEE9Bus, DelMod.Loads.scaleLoad, OpenIPSL.Interfaces.PwPin type: Real
4: pwLine7To6.vs.im:VARIABLE(start = bus7.v_0 * sin(bus7.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
5: voltageDependentLoad9.p.ir:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Real part of the current"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent, OpenIPSL.Interfaces.PwPin type: Real
6: pwLine9To4.vs.re:VARIABLE(start = voltageDependentLoad9.v_0 * cos(voltageDependentLoad9.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
7: pwLine9To4.vs.im:VARIABLE(start = voltageDependentLoad9.v_0 * sin(voltageDependentLoad9.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
8: voltageDependentLoad5.p.ir:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Real part of the current"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent, OpenIPSL.Interfaces.PwPin type: Real
9: pwLine5To4.vr.re:VARIABLE(start = voltageDependentLoad5.v_0 * cos(voltageDependentLoad5.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
10: voltageDependentLoad5.p.ii:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Imaginary part of the current"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent, OpenIPSL.Interfaces.PwPin type: Real
11: pwLine5To4.vr.im:VARIABLE(start = voltageDependentLoad5.v_0 * sin(voltageDependentLoad5.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
Linear iteration variables with predefined start attributes that are unrelevant in NLSJac0. (37)
========================================
1: pwLine9To4.is.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
2: voltageDependentLoad9.p.ii:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Imaginary part of the current"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent, OpenIPSL.Interfaces.PwPin type: Real
3: pwLine6To5.ir.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
4: pwLine6To5.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
5: pwLine8To7.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
6: pwLine7To6.is.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
7: pwLine8To7.is.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
8: pwLine8To9.is.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
9: twoWindingTransformer2To8.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
10: pwLine5To4.is.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
11: pwLine5To4.is.re:VARIABLE(start = 1e-15 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PwLine, Complex type: Real
12: twoWindingTransformer4To1.ir.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
13: twoWindingTransformer4To1.vr.im:VARIABLE(start = bus4.v_0 * sin(bus4.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
14: twoWindingTransformer4To1.vs.im:VARIABLE(start = bus1.v_0 * sin(bus1.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
15: twoWindingTransformer4To1.vr.re:VARIABLE(start = bus4.v_0 * cos(bus4.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
16: twoWindingTransformer4To1.vs.re:VARIABLE(start = bus1.v_0 * cos(bus1.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
17: Gen1.genUnit.vd:VARIABLE(start = Gen1.genUnit.vd0 unit = "1" ) "d-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
18: twoWindingTransformer4To1.is.im:VARIABLE(start = -Gen1.genUnit.ii0 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
19: twoWindingTransformer4To1.is.re:VARIABLE(start = -Gen1.genUnit.ir0 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
20: Gen1.genUnit.vq:VARIABLE(start = Gen1.genUnit.vq0 unit = "1" ) "q-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
21: twoWindingTransformer2To8.vr.im:VARIABLE(start = bus8.v_0 * sin(bus8.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
22: twoWindingTransformer2To8.vs.im:VARIABLE(start = bus2.v_0 * sin(bus2.angle_0) ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
23: twoWindingTransformer2To8.vr.re:VARIABLE(start = bus8.v_0 * cos(bus8.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
24: twoWindingTransformer2To8.vs.re:VARIABLE(start = bus2.v_0 * cos(bus2.angle_0) ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
25: Gen2.genUnit.vd:VARIABLE(start = Gen2.genUnit.vd0 unit = "1" ) "d-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
26: twoWindingTransformer2To8.is.re:VARIABLE(start = -Gen2.genUnit.ir0 ) "Real part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
27: twoWindingTransformer2To8.is.im:VARIABLE(start = -Gen2.genUnit.ii0 ) "Imaginary part of complex number"IEEE9Bus, OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer, Complex type: Real
28: Gen2.genUnit.vq:VARIABLE(start = Gen2.genUnit.vq0 unit = "1" ) "q-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
29: scaleLoad7.Q:VARIABLE(start = scaleLoad7.Q_0 / scaleLoad7.S_b unit = "1" ) "Reactive power (pu)"IEEE9Bus, DelMod.Loads.scaleLoad type: Real
30: scaleLoad7.P:VARIABLE(start = scaleLoad7.P_0 / scaleLoad7.S_b unit = "1" ) "Active power (pu)"IEEE9Bus, DelMod.Loads.scaleLoad type: Real
31: voltageDependentLoad5.Q:VARIABLE(start = voltageDependentLoad5.Q_0 / voltageDependentLoad5.S_b unit = "1" ) "Reactive power"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
32: voltageDependentLoad5.P:VARIABLE(start = voltageDependentLoad5.P_0 / voltageDependentLoad5.S_b unit = "1" ) "Active power"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
33: voltageDependentLoad9.P:VARIABLE(start = voltageDependentLoad9.P_0 / voltageDependentLoad9.S_b unit = "1" ) "Active power"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
34: voltageDependentLoad9.Q:VARIABLE(start = voltageDependentLoad9.Q_0 / voltageDependentLoad9.S_b unit = "1" ) "Reactive power"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
35: scaleLoad7.V:VARIABLE(start = scaleLoad7.v_0 unit = "1" ) "Voltage magnitude (pu)"IEEE9Bus, DelMod.Loads.scaleLoad type: Real
36: voltageDependentLoad5.v:VARIABLE(start = voltageDependentLoad5.v_0 unit = "1" ) "Voltage magnitude"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
37: voltageDependentLoad9.v:VARIABLE(start = voltageDependentLoad9.v_0 unit = "1" ) "Voltage magnitude"IEEE9Bus, OpenIPSL.Electrical.Loads.PSAT.VoltageDependent type: Real
Info: Only non-linear iteration variables in non-linear eqation systems require start values. All other start values have no influence on convergence and are ignored. Use "-d=dumpLoops" to show all loops. In OMEdit Tools->Options->Simulation->Additional Translation Flags, in OMNotebook call setCommandLineOptions("-d=dumpLoops")
Nonlinear iteration variables with predefined start attribute in NLSJac2. (4)
========================================
1: Gen3.genUnit.delta:VARIABLE(flow=false start = Gen3.genUnit.delta0 unit = "rad" ) "Rotor angle"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
2: Gen3.genUnit.vd:VARIABLE(start = Gen3.genUnit.vd0 unit = "1" ) "d-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
3: Gen3.genUnit.id:VARIABLE(start = Gen3.genUnit.id0 unit = "1" ) "d-axis current"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
4: Gen3.genUnit.iq:VARIABLE(start = Gen3.genUnit.iq0 unit = "1" ) "q-axis current"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Linear iteration variables with predefined start attributes that are unrelevant in NLSJac2. (2)
========================================
1: Gen3.genUnit.vq:VARIABLE(start = Gen3.genUnit.vq0 unit = "1" ) "q-axis voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
2: Gen3.genUnit.e1q:VARIABLE(start = Gen3.genUnit.e1q0 unit = "1" ) "q-axis transient voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Info: Only non-linear iteration variables in non-linear eqation systems require start values. All other start values have no influence on convergence and are ignored. Use "-d=dumpLoops" to show all loops. In OMEdit Tools->Options->Simulation->Additional Translation Flags, in OMNotebook call setCommandLineOptions("-d=dumpLoops")
[2] 13:00:49 Scripting Warning
[DelMod: 13:5-13:13]: Uses-annotation is missing version for library OpenIPSL. Assuming the tool-specific version="default".
[3] 13:00:49 Scripting Warning
Requested package OpenIPSL of version default, but this package was already loaded with version 3.0.1. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
[4] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer: 44:3-44:83]: In relation twoWindingTransformer2To8.m <> 1.0, <> on Real numbers is only allowed inside functions.
[5] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer: 44:3-44:83]: In relation twoWindingTransformer6To3.m <> 1.0, <> on Real numbers is only allowed inside functions.
[6] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Branches.PSAT.TwoWindingTransformer: 44:3-44:83]: In relation twoWindingTransformer4To1.m <> 1.0, <> on Real numbers is only allowed inside functions.
[7] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Machines.PSAT.Order4: 25:3-30:9]: In relation Gen1.genUnit.xq <> Gen1.genUnit.x1q, <> on Real numbers is only allowed inside functions.
[8] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Machines.PSAT.Order4: 25:3-30:9]: In relation Gen2.genUnit.xq <> Gen2.genUnit.x1q, <> on Real numbers is only allowed inside functions.
[9] 13:00:49 Translation Warning
[OpenIPSL.Electrical.Machines.PSAT.Order4: 25:3-30:9]: In relation Gen3.genUnit.xq <> Gen3.genUnit.x1q, <> on Real numbers is only allowed inside functions.
[10] 13:00:49 Translation Warning
Assuming fixed start value for the following 9 variables:
Gen3.genUnit.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen2.genUnit.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen1.genUnit.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen1.genUnit.delta:VARIABLE(flow=false start = Gen1.genUnit.delta0 unit = "rad" fixed = true ) "Rotor angle"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen1.genUnit.e1q:VARIABLE(start = Gen1.genUnit.e1q0 unit = "1" fixed = true ) "q-axis transient voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen1.genUnit.e1d:VARIABLE(start = Gen1.genUnit.e1d0 unit = "1" fixed = true ) "d-axis transient voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen2.genUnit.delta:VARIABLE(flow=false start = Gen2.genUnit.delta0 unit = "rad" fixed = true ) "Rotor angle"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen2.genUnit.e1q:VARIABLE(start = Gen2.genUnit.e1q0 unit = "1" fixed = true ) "q-axis transient voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
Gen2.genUnit.e1d:VARIABLE(start = Gen2.genUnit.e1d0 unit = "1" fixed = true ) "d-axis transient voltage"IEEE9Bus, genUnit, OpenIPSL.Electrical.Machines.PSAT.Order4 type: Real
[11] 13:00:49 Symbolic Warning
The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.
[12] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 547:16-547:16]: Template error: No start value for variable... twoWindingTransformer2To8.m <> 1.0.
[13] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 547:16-547:16]: Template error: No start value for variable... twoWindingTransformer4To1.m <> 1.0.
[14] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 547:16-547:16]: Template error: No start value for variable... twoWindingTransformer6To3.m <> 1.0.
[15] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 595:57-595:57]: Template error: No records in embedded C yet.
[16] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 585:57-585:57]: Template error: No records in embedded C yet.
[17] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 346:14-346:14]: Template error: Unsupported equation: ....
[18] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer4To1.vs.re ^ 2.0 + twoWindingTransformer4To1.vs.im ^ 2.0).
[19] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer6To3.vs.re ^ 2.0 + twoWindingTransformer6To3.vs.im ^ 2.0).
[20] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer6To3.vr.re ^ 2.0 + twoWindingTransformer6To3.vr.im ^ 2.0).
[21] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer2To8.vs.re ^ 2.0 + twoWindingTransformer2To8.vs.im ^ 2.0).
[22] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer2To8.vr.re ^ 2.0 + twoWindingTransformer2To8.vr.im ^ 2.0).
[23] 13:00:49 Translation Error
[CodegenEmbeddedC.tpl: 514:28-514:28]: Template error: daeExpCallBuiltin: Not supported: sqrt(twoWindingTransformer4To1.vr.re ^ 2.0 + twoWindingTransformer4To1.vr.im ^ 2.0).
[24] 13:00:49 Translation Error
[C:/OM119/OM64bit/OMCompiler/Compiler/SimCode/SimCodeMain.mo: 528:7-528:78]: Internal error C:\Program Files\OpenModelica1.19.2-64bit\bin\OMEdit.exe: [unknown function name] failed
[25] 13:00:49 Scripting Notification
Generated code for the target language ExperimentalEmbeddedC at C:/Users/syadav/AppData/Local/Temp/OpenModelica/OMEdit/IEEE9Bus.