Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 101.5 kB / 16.51 MB, free: 6.699 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.001172/0.001171, allocations: 194.2 kB / 17.42 MB, free: 6.09 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.441/1.441, allocations: 222.9 MB / 241.1 MB, free: 13.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.02 MB / 329.3 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 60.86 kB / 398.1 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1221, allocations: 58.06 MB / 456.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008614/0.1307, allocations: 7.206 MB / 463.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.1337, allocations: 1.932 MB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004889/0.1342, allocations: 39.75 kB / 465.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006944/0.1349, allocations: 202.8 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008431/0.1358, allocations: 346.3 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.1363, allocations: 195.8 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.1382, allocations: 1.418 MB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005604/0.1388, allocations: 425 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006903/0.1394, allocations: 402.3 kB / 468.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006541/0.1401, allocations: 486.3 kB / 468.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.012e-05/0.1402, allocations: 48 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1404, allocations: 48 kB / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.1406, allocations: 243.3 kB / 469.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004185/0.1411, allocations: 370.3 kB / 469.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.1422, allocations: 0.9969 MB / 470.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1422, allocations: 0 / 470.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1423, allocations: 8 kB / 470.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1423, allocations: 3.938 kB / 470.5 MB, free: 10.09 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002053/0.1443, allocations: 1.013 MB / 471.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1444, allocations: 12.03 kB / 471.5 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1445, allocations: 72.09 kB / 471.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.1456, allocations: 0.6213 MB / 472.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.1458, allocations: 113.3 kB / 472.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.1459, allocations: 63.94 kB / 472.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1472, allocations: 0.7499 MB / 473.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1472, allocations: 0 / 473.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.1473, allocations: 24 kB / 473.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.1473, allocations: 16 kB / 473.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.1486, allocations: 0.6049 MB / 473.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003276/0.1518, allocations: 2.475 MB / 476.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000846/0.1527, allocations: 416.2 kB / 476.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000409/0.1532, allocations: 215.1 kB / 476.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.1532, allocations: 288 / 476.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004532/0.1537, allocations: 247.1 kB / 477.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.195e-06/0.1537, allocations: 0 / 477.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003028/0.1567, allocations: 0.8822 MB / 478 MB, free: 2.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.1568, allocations: 136.5 kB / 478.1 MB, free: 2.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004966/0.1573, allocations: 409.8 kB / 478.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.1573, allocations: 33.73 kB / 478.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004961/0.1578, allocations: 320.2 kB / 478.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.158, allocations: 114.3 kB / 478.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1581, allocations: 82.12 kB / 479 MB, free: 1.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1583, allocations: 358.8 kB / 479.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002975/0.1586, allocations: 124.8 kB / 479.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.159, allocations: 250 kB / 479.7 MB, free: 368 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.1607, allocations: 0.6593 MB / 480.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1607, allocations: 0 / 480.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001167/0.1619, allocations: 0.525 MB / 480.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.1619, allocations: 12.09 kB / 480.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.1619, allocations: 0 / 480.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.1624, allocations: 152.7 kB / 481.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.1627, allocations: 75.89 kB / 481.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003309/0.166, allocations: 2.041 MB / 483.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.1664, allocations: 47.52 kB / 483.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.1665, allocations: 20 kB / 483.3 MB, free: 12.64 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004616/0.167, allocations: 243.7 kB / 483.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.776e-05/0.167, allocations: 43.44 kB / 483.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.1683, allocations: 487.7 kB / 484 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.1683, allocations: 8 kB / 484 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1683, allocations: 0 / 484 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.1683, allocations: 7.922 kB / 484 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008476/0.1692, allocations: 0.6746 MB / 484.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1692, allocations: 8 kB / 484.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.1695, allocations: 43.91 kB / 484.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004043/0.1699, allocations: 144.8 kB / 484.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.1699, allocations: 7.938 kB / 484.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.1729, allocations: 2.033 MB / 486.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1729, allocations: 0 / 486.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.1745, allocations: 0.6829 MB / 487.6 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.1747, allocations: 152.4 kB / 487.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.1749, allocations: 15.98 kB / 487.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.1752, allocations: 19.92 kB / 487.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1753, allocations: 35.95 kB / 487.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.1753, allocations: 15.98 kB / 487.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003039/0.1756, allocations: 275.2 kB / 488.1 MB, free: 7.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1756, allocations: 0 / 488.1 MB, free: 7.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006004/0.1762, allocations: 167.4 kB / 488.3 MB, free: 7.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001351/0.1764, allocations: 111.1 kB / 488.4 MB, free: 7.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009763/0.1774, allocations: 0.503 MB / 488.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1774, allocations: 0 / 488.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.1779, allocations: 338.4 kB / 489.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.1786, allocations: 149.7 kB / 489.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.181, allocations: 1.503 MB / 490.9 MB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005211/0.1815, allocations: 0.9289 MB / 491.8 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.1818, allocations: 80.64 kB / 491.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.53e-05/0.1819, allocations: 35.44 kB / 491.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of SimCode: time 5e-07/0.1819, allocations: 0 / 491.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of Templates: time 0.01355/0.1954, allocations: 7.653 MB / 499.6 MB, free: 12.05 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)