Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 105.2 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 189.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.02 MB / 329.4 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 66.61 kB / 398.3 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1251, allocations: 58.06 MB / 456.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009057/0.1342, allocations: 7.532 MB / 463.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005351/0.1396, allocations: 2.738 MB / 466.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.1408, allocations: 47.69 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1424, allocations: 402.3 kB / 467.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001743/0.1442, allocations: 0.5488 MB / 467.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.1455, allocations: 447.4 kB / 468 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002433/0.1479, allocations: 1.961 MB / 470 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.1495, allocations: 0.8766 MB / 470.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.1512, allocations: 0.7867 MB / 471.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001832/0.153, allocations: 1.005 MB / 472.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000514/0.1535, allocations: 160 kB / 472.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.155, allocations: 0.6943 MB / 473.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.1557, allocations: 0.6471 MB / 474.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009066/0.1567, allocations: 0.6886 MB / 474.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.1588, allocations: 2.014 MB / 476.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.435e-06/0.1588, allocations: 7.938 kB / 476.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1588, allocations: 0 / 476.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.1589, allocations: 0 / 476.9 MB, free: 3.766 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005079/0.164, allocations: 1.9 MB / 478.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.164, allocations: 11.89 kB / 478.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/0.1648, allocations: 163.6 kB / 478.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.1669, allocations: 0.9399 MB / 479.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006296/0.1676, allocations: 0.495 MB / 480.4 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003699/0.1679, allocations: 107.9 kB / 480.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004172/0.1721, allocations: 2.011 MB / 482.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.1722, allocations: 4 kB / 482.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.1723, allocations: 39.97 kB / 482.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002192/0.1726, allocations: 89.95 kB / 482.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004887/0.1775, allocations: 2.244 MB / 484.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009539/0.187, allocations: 5.679 MB / 490.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004427/0.1915, allocations: 1.792 MB / 492.3 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002421/0.1939, allocations: 1.152 MB / 493.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.194, allocations: 16.98 kB / 493.5 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002825/0.1969, allocations: 1.383 MB / 494.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.387e-06/0.1969, allocations: 0 / 494.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01289/0.2098, allocations: 5.626 MB / 0.4888 GB, free: 11.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.2099, allocations: 102.1 kB / 0.4889 GB, free: 11.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006368/0.2105, allocations: 0.4901 MB / 0.4894 GB, free: 11.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.2107, allocations: 57.69 kB / 0.4894 GB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.211, allocations: 364.8 kB / 0.4898 GB, free: 10.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/0.2114, allocations: 422 kB / 0.4902 GB, free: 10.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004322/0.2118, allocations: 222.8 kB / 0.4904 GB, free: 9.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.212, allocations: 390.8 kB / 0.4908 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.2142, allocations: 1.025 MB / 0.4918 GB, free: 8.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.2162, allocations: 1.184 MB / 0.4929 GB, free: 7.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003807/0.2201, allocations: 2.039 MB / 0.4949 GB, free: 5.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.2201, allocations: 0 / 0.4949 GB, free: 5.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01066/0.2307, allocations: 3.903 MB / 0.4987 GB, free: 1.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.2309, allocations: 61.92 kB / 0.4988 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/0.2309, allocations: 8 kB / 0.4988 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2567/0.4877, allocations: 2.065 MB / 0.5008 GB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009864/0.4887, allocations: 193.2 kB / 0.501 GB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02555/0.5142, allocations: 11.3 MB / 0.512 GB, free: 53.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.5156, allocations: 161.6 kB / 0.5122 GB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001644/0.5158, allocations: 80.14 kB / 0.5123 GB, free: 53.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006169/0.5164, allocations: 374.8 kB / 0.5126 GB, free: 52.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.5166, allocations: 83.52 kB / 0.5127 GB, free: 52.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005009/0.5216, allocations: 2.361 MB / 0.515 GB, free: 52.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/0.5217, allocations: 34.78 kB / 0.515 GB, free: 52.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5217, allocations: 0 / 0.515 GB, free: 52.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.5217, allocations: 6.703 kB / 0.515 GB, free: 52.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007109/0.5288, allocations: 4.102 MB / 0.519 GB, free: 50.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5289, allocations: 8.062 kB / 0.5191 GB, free: 50.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009399/0.5383, allocations: 2.016 MB / 0.521 GB, free: 49.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-05/0.5383, allocations: 7.469 kB / 0.521 GB, free: 49.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.5385, allocations: 42.33 kB / 0.5211 GB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.5385, allocations: 7.531 kB / 0.5211 GB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5385, allocations: 3.938 kB / 0.5211 GB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0068/0.5453, allocations: 3.865 MB / 0.5249 GB, free: 46.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.5458, allocations: 337.4 kB / 0.5252 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002175/0.546, allocations: 87.94 kB / 0.5253 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.5472, allocations: 183.7 kB / 0.5254 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003801/0.5476, allocations: 197.7 kB / 0.5256 GB, free: 46.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5477, allocations: 43.02 kB / 0.5257 GB, free: 46.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.5481, allocations: 346.8 kB / 0.526 GB, free: 45.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5481, allocations: 1.5 kB / 0.526 GB, free: 45.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009962/0.5491, allocations: 355.8 kB / 0.5263 GB, free: 45.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003457/0.5494, allocations: 225 kB / 0.5265 GB, free: 45.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006829/0.5563, allocations: 3.756 MB / 0.5302 GB, free: 41.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5563, allocations: 0 / 0.5302 GB, free: 41.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005175/0.5615, allocations: 1.934 MB / 0.5321 GB, free: 39.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.5628, allocations: 190 kB / 0.5323 GB, free: 39.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006933/0.5697, allocations: 3.743 MB / 0.5359 GB, free: 35.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.5704, allocations: 1.148 MB / 0.5371 GB, free: 34.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009309/0.5713, allocations: 318.7 kB / 0.5374 GB, free: 34.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.5717, allocations: 71.42 kB / 0.5374 GB, free: 33.97 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5717, allocations: 0 / 0.5374 GB, free: 33.97 MB / 382.1 MB Notification: Performance of Templates: time 0.03528/0.607, allocations: 24.09 MB / 0.561 GB, free: 10.01 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)