Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 110.9 kB / 16.62 MB, free: 6.961 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.001611/0.001611, allocations: 190 kB / 17.54 MB, free: 6.066 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.453/1.453, 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.1738/0.1738, allocations: 38.02 MB / 329.4 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.56 kB / 398.3 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 58.05 MB / 456.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01077/0.1256, allocations: 7.952 MB / 464.3 MB, free: 412 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003916/0.1295, allocations: 1.761 MB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006804/0.1303, allocations: 59.62 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003633/0.1306, allocations: 99.23 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.1317, allocations: 382.3 kB / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000568/0.1323, allocations: 211.7 kB / 466.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.1335, allocations: 1.118 MB / 467.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005121/0.1341, allocations: 397.8 kB / 468.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000666/0.1347, allocations: 0.498 MB / 468.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007785/0.1355, allocations: 0.5606 MB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.346e-05/0.1356, allocations: 68 kB / 469.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1358, allocations: 64 kB / 469.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003292/0.1361, allocations: 331.2 kB / 469.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.1365, allocations: 414.1 kB / 470.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007777/0.1373, allocations: 0.9033 MB / 471.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1373, allocations: 0 / 471.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1373, allocations: 0 / 471.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1373, allocations: 0 / 471.1 MB, free: 9.559 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00192/0.1392, allocations: 1.148 MB / 472.3 MB, free: 8.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1393, allocations: 11.89 kB / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.1395, allocations: 91.89 kB / 472.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008617/0.1403, allocations: 0.565 MB / 472.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.1404, allocations: 120.8 kB / 473 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1406, allocations: 60 kB / 473.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.142, allocations: 0.873 MB / 474 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1421, allocations: 0 / 474 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.443e-05/0.1421, allocations: 28 kB / 474 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.1423, allocations: 37.28 kB / 474 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.1434, allocations: 0.6217 MB / 474.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/0.147, allocations: 2.758 MB / 477.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.1487, allocations: 0.9075 MB / 478.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007117/0.1494, allocations: 322.2 kB / 478.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.943e-05/0.1494, allocations: 4.328 kB / 478.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007051/0.1501, allocations: 350.5 kB / 479 MB, free: 1.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.923e-06/0.1502, allocations: 4 kB / 479 MB, free: 1.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004033/0.1542, allocations: 1.971 MB / 481 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/0.1543, allocations: 114.8 kB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.1549, allocations: 0.5143 MB / 481.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.1549, allocations: 37.7 kB / 481.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.1552, allocations: 359.8 kB / 482 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.1553, allocations: 150 kB / 482.1 MB, free: 14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.1555, allocations: 118.1 kB / 482.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1557, allocations: 362.8 kB / 482.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.156, allocations: 229.1 kB / 482.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.1564, allocations: 394.2 kB / 483.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.1572, allocations: 0.6133 MB / 483.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1572, allocations: 4 kB / 483.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001208/0.1584, allocations: 0.8981 MB / 484.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.524e-05/0.1585, allocations: 53.62 kB / 484.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1585, allocations: 4 kB / 484.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002936/0.1588, allocations: 85.66 kB / 484.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.1592, allocations: 107.9 kB / 485 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.1618, allocations: 3.263 MB / 488.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.1622, allocations: 35.98 kB / 488.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.106e-05/0.1623, allocations: 44.06 kB / 488.3 MB, free: 7.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000369/0.1626, allocations: 265.5 kB / 488.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.483e-05/0.1627, allocations: 59.33 kB / 488.6 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.1641, allocations: 0.7003 MB / 489.3 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.1641, allocations: 8 kB / 489.3 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1642, allocations: 4 kB / 489.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.1642, allocations: 3.984 kB / 489.3 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.1665, allocations: 1.536 MB / 490.9 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1665, allocations: 0 / 490.9 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.1668, allocations: 63.89 kB / 490.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002777/0.1671, allocations: 101.5 kB / 491 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.971e-05/0.1671, allocations: 15.98 kB / 491 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.1696, allocations: 3.255 MB / 494.3 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1696, allocations: 0 / 494.3 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.1717, allocations: 1.067 MB / 495.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.1719, allocations: 168.3 kB / 495.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.172, allocations: 27.98 kB / 495.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.1724, allocations: 47.94 kB / 495.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/0.1726, allocations: 35.83 kB / 495.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.1726, allocations: 19.98 kB / 495.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004132/0.173, allocations: 350.8 kB / 496 MB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.173, allocations: 0 / 496 MB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.1737, allocations: 148 kB / 496.1 MB, free: 14.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002259/0.174, allocations: 139.3 kB / 496.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1757, allocations: 0.9719 MB / 497.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1757, allocations: 4 kB / 497.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009147/0.1766, allocations: 0.4902 MB / 497.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.1775, allocations: 152.3 kB / 497.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1801, allocations: 1.746 MB / 499.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.1806, allocations: 0.976 MB / 0.4889 GB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003102/0.1809, allocations: 109 kB / 0.489 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.1811, allocations: 43.42 kB / 0.489 GB, free: 10.22 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1811, allocations: 0 / 0.489 GB, free: 10.22 MB / 382.1 MB Notification: Performance of Templates: time 0.01395/0.195, allocations: 7.421 MB / 0.4963 GB, free: 2.871 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)