Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.002218/0.002218, allocations: 180.3 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.837/1.837, allocations: 194.3 MB / 203.1 MB, free: 13.04 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001982/0.001982, allocations: 127 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1789/0.1789, allocations: 37.94 MB / 330.9 MB, free: 2.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.804e-05, allocations: 7.984 kB / 390.5 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2824, allocations: 53.22 MB / 443.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.7578, allocations: 109.1 MB / 0.5398 GB, free: 38.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.758, allocations: 95.23 kB / 0.5399 GB, free: 38.07 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.0/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.07562/0.8337, allocations: 28.77 MB / 0.568 GB, free: 31.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.8337, allocations: 0 / 0.568 GB, free: 31.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.147e-05/0.8338, allocations: 19.53 kB / 0.5681 GB, free: 31.82 MB / 378.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.003631/0.8374, allocations: 1.652 MB / 0.5697 GB, free: 30.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.8375, allocations: 7.812 kB / 0.5697 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008007/0.8383, allocations: 184.3 kB / 0.5699 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004218/0.8425, allocations: 1.616 MB / 0.5714 GB, free: 29.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005413/0.8431, allocations: 494 kB / 0.5719 GB, free: 29.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.8433, allocations: 69.7 kB / 0.572 GB, free: 29.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002444/0.8457, allocations: 1.619 MB / 0.5735 GB, free: 29.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.8481, allocations: 1.664 MB / 0.5752 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.8482, allocations: 3.938 kB / 0.5752 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.8483, allocations: 0 / 0.5752 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.8485, allocations: 87.5 kB / 0.5753 GB, free: 28.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008328/0.8568, allocations: 5.686 MB / 0.5808 GB, free: 26.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.8584, allocations: 1.215 MB / 0.582 GB, free: 25.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009617/0.8593, allocations: 0.9146 MB / 0.5829 GB, free: 25.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.692e-05/0.8594, allocations: 13.53 kB / 0.5829 GB, free: 25.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.8607, allocations: 1.103 MB / 0.584 GB, free: 25.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 3.015e-06/0.8607, allocations: 4 kB / 0.584 GB, free: 25.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.01317/0.8739, allocations: 6.211 MB / 0.5901 GB, free: 23.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.874, allocations: 100.7 kB / 0.5901 GB, free: 23.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.8745, allocations: 365.9 kB / 0.5905 GB, free: 23.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003647/0.8749, allocations: 37.14 kB / 0.5905 GB, free: 23.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.8752, allocations: 400.4 kB / 0.5909 GB, free: 23.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003344/0.8755, allocations: 391.6 kB / 0.5913 GB, free: 22.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.154e-05/0.8756, allocations: 0 / 0.5913 GB, free: 22.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.8757, allocations: 390.2 kB / 0.5917 GB, free: 22.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.8768, allocations: 0.8592 MB / 0.5925 GB, free: 22.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.8778, allocations: 1.018 MB / 0.5935 GB, free: 22.14 MB / 378.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.01125/0.8891, allocations: 4.327 MB / 0.5977 GB, free: 18.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.8891, allocations: 0 / 0.5977 GB, free: 18.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01112/0.9002, allocations: 4.618 MB / 0.6022 GB, free: 14.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.9005, allocations: 60.61 kB / 0.6023 GB, free: 14.57 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.002023/0.9025, allocations: 0.983 MB / 0.6032 GB, free: 13.87 MB / 378.7 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated