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/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: 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/Complex 3.2.2+maint.om/package.mo): time 0.001303/0.001303, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.276/1.276, allocations: 194.2 MB / 212.2 MB, free: 2.367 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.001739/0.001739, allocations: 121.2 kB / 256.6 MB, free: 4.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1712/0.1712, allocations: 37.94 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.07972, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006317/0.08609, allocations: 7.509 MB / 461.5 MB, free: 9.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.08955, allocations: 2.829 MB / 464.3 MB, free: 6.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004861/0.09006, allocations: 43.75 kB / 464.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009529/0.09102, allocations: 398.3 kB / 464.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000938/0.09197, allocations: 0.5448 MB / 465.3 MB, free: 5.199 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008158/0.0928, allocations: 447.4 kB / 465.8 MB, free: 4.762 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.09437, allocations: 2.444 MB / 468.2 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007038/0.09509, allocations: 0.7171 MB / 468.9 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007006/0.0958, allocations: 0.6734 MB / 469.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009639/0.09678, allocations: 0.9545 MB / 470.5 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001677/0.09695, allocations: 84 kB / 470.6 MB, free: 15.87 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009847/0.09795, allocations: 0.6279 MB / 471.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005004/0.09846, allocations: 0.5728 MB / 471.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005916/0.09906, allocations: 0.5989 MB / 472.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.1007, allocations: 1.956 MB / 474.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1007, allocations: 0 / 474.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1007, allocations: 0 / 474.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.1007, allocations: 0 / 474.4 MB, free: 12.1 MB / 330.7 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.004432/0.1052, allocations: 1.908 MB / 476.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1052, allocations: 12.03 kB / 476.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007189/0.1059, allocations: 159.6 kB / 476.5 MB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/0.1082, allocations: 0.9323 MB / 477.4 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005326/0.1087, allocations: 0.5025 MB / 477.9 MB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.1089, allocations: 95.98 kB / 478 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003516/0.1125, allocations: 2.019 MB / 480 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.1125, allocations: 11.84 kB / 480 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.1126, allocations: 32 kB / 480 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001901/0.1128, allocations: 89.94 kB / 480.1 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004404/0.1172, allocations: 2.24 MB / 482.4 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008735/0.126, allocations: 5.671 MB / 488 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004199/0.1302, allocations: 1.796 MB / 489.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/0.1325, allocations: 1.152 MB / 491 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.226e-05/0.1326, allocations: 12.98 kB / 491 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002626/0.1353, allocations: 1.387 MB / 492.4 MB, free: 9.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=123): time 3.046e-06/0.1353, allocations: 0 / 492.4 MB, free: 9.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=124): time 0.01229/0.1476, allocations: 5.63 MB / 498 MB, free: 3.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.1477, allocations: 106.1 kB / 498.1 MB, free: 3.859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/0.1482, allocations: 497.9 kB / 498.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.1483, allocations: 57.69 kB / 498.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.1486, allocations: 356.8 kB / 499 MB, free: 2.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/0.1489, allocations: 418 kB / 499.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003919/0.1493, allocations: 230.9 kB / 499.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1495, allocations: 398.7 kB / 0.4883 GB, free: 1.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.1513, allocations: 1.025 MB / 0.4893 GB, free: 0.8711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.1532, allocations: 1.18 MB / 0.4905 GB, free: 15.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003522/0.1568, allocations: 2.032 MB / 0.4925 GB, free: 13.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1568, allocations: 4 kB / 0.4925 GB, free: 13.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01034/0.1671, allocations: 3.899 MB / 0.4963 GB, free: 9.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.392e-05/0.1673, allocations: 61.67 kB / 0.4963 GB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.1673, allocations: 4.25 kB / 0.4963 GB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005696/0.173, allocations: 2.073 MB / 0.4984 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009141/0.1739, allocations: 187.7 kB / 0.4985 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.187/0.3609, allocations: 10.46 MB / 0.5087 GB, free: 65.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.3626, allocations: 160.5 kB / 0.5089 GB, free: 65.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003662/0.363, allocations: 78.23 kB / 0.509 GB, free: 65.11 MB / 362.7 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.0008626/0.3638, allocations: 383.7 kB / 0.5093 GB, free: 64.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/0.3642, allocations: 90.28 kB / 0.5094 GB, free: 64.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006669/0.3708, allocations: 2.349 MB / 0.5117 GB, free: 64.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-05/0.3709, allocations: 29.41 kB / 0.5117 GB, free: 64.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3709, allocations: 1.188 kB / 0.5117 GB, free: 64.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.371, allocations: 6.188 kB / 0.5118 GB, free: 64.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007886/0.3788, allocations: 4.106 MB / 0.5158 GB, free: 62.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.3789, allocations: 3.344 kB / 0.5158 GB, free: 62.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01037/0.3893, allocations: 2.019 MB / 0.5177 GB, free: 62.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.17e-05/0.3893, allocations: 5.406 kB / 0.5177 GB, free: 62.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002852/0.3896, allocations: 37.05 kB / 0.5178 GB, free: 62.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.386e-05/0.3896, allocations: 9.875 kB / 0.5178 GB, free: 62.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3897, allocations: 6.75 kB / 0.5178 GB, free: 62.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03729/0.427, allocations: 18.51 MB / 0.5359 GB, free: 48.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008555/0.4279, allocations: 345.5 kB / 0.5362 GB, free: 47.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/0.4282, allocations: 87.89 kB / 0.5363 GB, free: 47.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.4296, allocations: 190.6 kB / 0.5365 GB, free: 47.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004636/0.4301, allocations: 196.3 kB / 0.5367 GB, free: 47.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/0.4303, allocations: 35.97 kB / 0.5367 GB, free: 47.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004048/0.4307, allocations: 350.8 kB / 0.537 GB, free: 47.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4307, allocations: 0 / 0.537 GB, free: 47.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001792/0.4325, allocations: 470.4 kB / 0.5375 GB, free: 46.64 MB / 362.7 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.000478/0.433, allocations: 221.4 kB / 0.5377 GB, free: 46.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005734/0.4388, allocations: 2.971 MB / 0.5406 GB, free: 43.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.4388, allocations: 0 / 0.5406 GB, free: 43.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005492/0.4443, allocations: 1.934 MB / 0.5425 GB, free: 41.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.4454, allocations: 172.5 kB / 0.5426 GB, free: 41.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007025/0.4524, allocations: 4.473 MB / 0.547 GB, free: 36.83 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000577/0.453, allocations: 1.19 MB / 0.5482 GB, free: 35.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001162/0.4542, allocations: 367.6 kB / 0.5485 GB, free: 35.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005732/0.4548, allocations: 83.41 kB / 0.5486 GB, free: 35.17 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4548, allocations: 0 / 0.5486 GB, free: 35.17 MB / 362.7 MB Notification: Performance of Templates: time 0.03399/0.4888, allocations: 29.2 MB / 0.5771 GB, free: 5.965 MB / 362.7 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)