Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.001519, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.3 MB / 213.7 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 90.64 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2594/0.2594, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.072e-05/2.089e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.513/0.6222, allocations: 114.1 MB / 0.5668 GB, free: 13.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.6226, allocations: 97.78 kB / 0.5669 GB, free: 13.35 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.1307/0.7534, allocations: 28.76 MB / 0.5949 GB, free: 4.777 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.7534, allocations: 0 / 0.5949 GB, free: 4.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.515e-05/0.7535, allocations: 24 kB / 0.595 GB, free: 4.754 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.006864/0.7604, allocations: 1.66 MB / 0.5966 GB, free: 3.086 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.7605, allocations: 12.03 kB / 0.5966 GB, free: 3.074 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.7622, allocations: 170.6 kB / 0.5968 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008113/0.7703, allocations: 1.627 MB / 0.5983 GB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001116/0.7715, allocations: 495.2 kB / 0.5988 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005923/0.7721, allocations: 59.98 kB / 0.5989 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00442/0.7765, allocations: 1.614 MB / 0.6005 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004335/0.7809, allocations: 1.665 MB / 0.6021 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.344e-05/0.781, allocations: 3.938 kB / 0.6021 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002028/0.7812, allocations: 7.984 kB / 0.6021 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/0.7815, allocations: 85.2 kB / 0.6022 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/0.7985, allocations: 5.688 MB / 0.6077 GB, free: 9.996 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/0.8015, allocations: 1.219 MB / 0.6089 GB, free: 9.188 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/0.8038, allocations: 0.9073 MB / 0.6098 GB, free: 8.633 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.804, allocations: 16.77 kB / 0.6098 GB, free: 8.617 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00251/0.8065, allocations: 1.104 MB / 0.6109 GB, free: 7.828 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 4.98e-06/0.8065, allocations: 3.938 kB / 0.6109 GB, free: 7.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.0404/0.8469, allocations: 6.212 MB / 0.617 GB, free: 1.613 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.8471, allocations: 102.4 kB / 0.6171 GB, free: 1.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009932/0.8482, allocations: 365.1 kB / 0.6174 GB, free: 1.133 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004936/0.8487, allocations: 37.69 kB / 0.6174 GB, free: 1.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005792/0.8493, allocations: 438.8 kB / 0.6179 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009383/0.8502, allocations: 398.2 kB / 0.6182 GB, free: 268 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.8504, allocations: 4 kB / 0.6182 GB, free: 264 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.8506, allocations: 354.8 kB / 0.6186 GB, free: 15.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.8526, allocations: 0.8577 MB / 0.6194 GB, free: 15.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.8548, allocations: 1.017 MB / 0.6204 GB, free: 13.98 MB / 426.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02377/0.8786, allocations: 4.303 MB / 0.6246 GB, free: 9.672 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.8787, allocations: 3.938 kB / 0.6246 GB, free: 9.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.02307/0.9017, allocations: 4.591 MB / 0.6291 GB, free: 5.066 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.9019, allocations: 65.67 kB / 0.6292 GB, free: 4.996 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/AC3ph/Impedances.mo:125:7-125:29:writable] Error: Initialization problem is structurally singular, error found sorting equations 112: $DER.ind.i[3] = 0.0; 60: 1.732050807568877 * $DER.ind.i[3] = 0.0; for variables meterDC.v(137), inverter.inverter.iDC1(92), inverter.inverter.v[2](84) Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003618/0.9056, allocations: 0.9781 MB / 0.6301 GB, free: 4.02 MB / 426.7 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated