Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001227/0.001227, allocations: 195.1 kB / 17.42 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.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1794/0.1794, allocations: 38.02 MB / 329.3 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.09 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.117, allocations: 58.06 MB / 456.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.009332/0.1264, allocations: 7.023 MB / 463.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004121/0.1306, allocations: 1.874 MB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009899/0.1316, allocations: 47.69 kB / 465.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006537/0.1323, allocations: 119.2 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.1334, allocations: 330.5 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/0.1342, allocations: 279.6 kB / 465.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002033/0.1362, allocations: 1.66 MB / 467.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005034/0.1368, allocations: 310.9 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009542/0.1377, allocations: 470.2 kB / 468.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.1388, allocations: 0.5452 MB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.139, allocations: 48 kB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002688/0.1393, allocations: 48 kB / 468.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004176/0.1397, allocations: 307.2 kB / 469.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005139/0.1402, allocations: 374.2 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008714/0.1411, allocations: 1.02 MB / 470.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1411, allocations: 0 / 470.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1411, allocations: 0 / 470.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1411, allocations: 0 / 470.6 MB, free: 10.04 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002609/0.1438, allocations: 1.196 MB / 471.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1438, allocations: 8.031 kB / 471.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.144, allocations: 84.09 kB / 471.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1451, allocations: 0.6277 MB / 472.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003952/0.1455, allocations: 335.4 kB / 472.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1457, allocations: 59.94 kB / 472.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.1478, allocations: 1.042 MB / 473.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.1478, allocations: 3.938 kB / 473.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.1479, allocations: 28 kB / 473.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.1479, allocations: 12 kB / 473.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002515/0.1504, allocations: 1.089 MB / 475 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004623/0.1551, allocations: 3.201 MB / 478.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002016/0.1571, allocations: 0.7473 MB / 479 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.1584, allocations: 0.5338 MB / 479.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.1585, allocations: 4.438 kB / 479.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001376/0.1599, allocations: 0.6186 MB / 480.1 MB, free: 116 kB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.945e-06/0.1599, allocations: 4 kB / 480.1 MB, free: 112 kB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003675/0.1636, allocations: 1.368 MB / 481.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.1637, allocations: 148.4 kB / 481.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004767/0.1642, allocations: 385.9 kB / 482 MB, free: 14.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.578e-05/0.1643, allocations: 37.7 kB / 482.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.1645, allocations: 292.3 kB / 482.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.1647, allocations: 169.7 kB / 482.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.1649, allocations: 118.1 kB / 482.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1651, allocations: 358.8 kB / 483 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/0.166, allocations: 452.9 kB / 483.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.1671, allocations: 0.5561 MB / 484 MB, free: 12.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.1689, allocations: 0.8818 MB / 484.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1689, allocations: 7.875 kB / 484.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0022/0.1711, allocations: 1.09 MB / 486 MB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.1712, allocations: 57.61 kB / 486 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1712, allocations: 4 kB / 486 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.1712, allocations: 8 kB / 486 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005244/0.1765, allocations: 1.108 MB / 487.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007042/0.1835, allocations: 4.383 MB / 491.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.1842, allocations: 115.4 kB / 491.6 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.1844, allocations: 39.97 kB / 491.7 MB, free: 4.129 MB / 366.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004397/0.1848, allocations: 247.3 kB / 491.9 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.185, allocations: 47.44 kB / 492 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.1875, allocations: 0.9888 MB / 492.9 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1875, allocations: 4 kB / 492.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1875, allocations: 3.984 kB / 492.9 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.1875, allocations: 7.938 kB / 493 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004132/0.1917, allocations: 2.131 MB / 495.1 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.1917, allocations: 7.984 kB / 495.1 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006235/0.1979, allocations: 1.283 MB / 496.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/0.198, allocations: 4 kB / 496.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-05/0.198, allocations: 15.98 kB / 496.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.1981, allocations: 4 kB / 496.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1981, allocations: 4 kB / 496.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003918/0.202, allocations: 1.699 MB / 498.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.2024, allocations: 208.4 kB / 498.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.2026, allocations: 27.98 kB / 498.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.2033, allocations: 83.89 kB / 498.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.2036, allocations: 91.83 kB / 498.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.2036, allocations: 16 kB / 498.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003722/0.204, allocations: 271.1 kB / 498.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.204, allocations: 3.938 kB / 498.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007803/0.2048, allocations: 183.6 kB / 499 MB, free: 12.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0002062/0.205, allocations: 128 kB / 499.1 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007071/0.2121, allocations: 2.074 MB / 0.4894 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.2121, allocations: 0 / 0.4894 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003425/0.2156, allocations: 0.9565 MB / 0.4904 GB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.2166, allocations: 136.7 kB / 0.4905 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.221, allocations: 1.811 MB / 0.4923 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.2216, allocations: 0.9332 MB / 0.4932 GB, free: 6.539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007079/0.2224, allocations: 160.6 kB / 0.4933 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.2226, allocations: 43.42 kB / 0.4934 GB, free: 6.336 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2226, allocations: 0 / 0.4934 GB, free: 6.336 MB / 382.1 MB Notification: Performance of Templates: time 0.228/0.4506, allocations: 8.071 MB / 0.5012 GB, free: 56.51 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)