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.0008498/0.0008499, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0009261/0.0009261, allocations: 182 kB / 17.56 MB, free: 6.203 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.586/1.586, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1848/0.1848, allocations: 38.09 MB / 330.8 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003131, allocations: 8 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 59.16 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008745/0.1304, allocations: 6.78 MB / 466.7 MB, free: 288 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00473/0.1352, allocations: 1.901 MB / 468.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.1363, allocations: 31.81 kB / 468.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009601/0.1373, allocations: 198.8 kB / 468.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.1385, allocations: 354.3 kB / 469.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.1395, allocations: 195.8 kB / 469.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.142, allocations: 1.414 MB / 470.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007826/0.1428, allocations: 421 kB / 471.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.1442, allocations: 370.3 kB / 471.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.1456, allocations: 458.3 kB / 472 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.1458, allocations: 36 kB / 472 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003349/0.1462, allocations: 36 kB / 472 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004127/0.1466, allocations: 223.4 kB / 472.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006825/0.1473, allocations: 368 kB / 472.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0016/0.1489, allocations: 0.977 MB / 473.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1489, allocations: 0 / 473.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1489, allocations: 0 / 473.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.53e-05/0.149, allocations: 4 kB / 473.6 MB, free: 9.312 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.002516/0.1515, allocations: 0.9081 MB / 474.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.1516, allocations: 12.03 kB / 474.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.1519, allocations: 72.09 kB / 474.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.1531, allocations: 0.6291 MB / 475.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.1533, allocations: 117.2 kB / 475.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.787e-05/0.1534, allocations: 63.94 kB / 475.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.1549, allocations: 0.7577 MB / 476.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1549, allocations: 0 / 476.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.14e-05/0.155, allocations: 24 kB / 476.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.155, allocations: 16 kB / 476.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1564, allocations: 0.6284 MB / 476.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.1603, allocations: 2.479 MB / 479.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.1614, allocations: 426 kB / 479.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005782/0.1619, allocations: 203.1 kB / 479.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.162, allocations: 8.219 kB / 479.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004418/0.1624, allocations: 239.2 kB / 480.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.983e-06/0.1624, allocations: 0 / 480.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003226/0.1657, allocations: 0.886 MB / 481 MB, free: 1.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.1658, allocations: 144.7 kB / 481.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.1663, allocations: 401.9 kB / 481.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.1664, allocations: 29.7 kB / 481.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.1666, allocations: 320.1 kB / 481.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.1667, allocations: 122.3 kB / 482 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.1668, allocations: 45.7 kB / 482.1 MB, free: 460 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.167, allocations: 358.8 kB / 482.4 MB, free: 92 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.1673, allocations: 132.8 kB / 482.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003788/0.1677, allocations: 246 kB / 482.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.1692, allocations: 0.6559 MB / 483.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1692, allocations: 8 kB / 483.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001093/0.1703, allocations: 0.521 MB / 484 MB, free: 14.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.1704, allocations: 4 kB / 484 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1704, allocations: 4 kB / 484 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004493/0.1708, allocations: 152.9 kB / 484.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.1712, allocations: 75.89 kB / 484.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003472/0.1747, allocations: 2.047 MB / 486.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.1751, allocations: 51.52 kB / 486.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.1751, allocations: 20 kB / 486.3 MB, free: 11.94 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.0004121/0.1755, allocations: 247.7 kB / 486.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/0.1756, allocations: 39.53 kB / 486.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.177, allocations: 491.7 kB / 487.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.1771, allocations: 4 kB / 487.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1771, allocations: 4 kB / 487.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.1771, allocations: 7.922 kB / 487.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008649/0.178, allocations: 0.6706 MB / 487.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.178, allocations: 0 / 487.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1782, allocations: 43.97 kB / 487.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005464/0.1788, allocations: 152.7 kB / 488 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.1788, allocations: 7.938 kB / 488 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.182, allocations: 2.03 MB / 490 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.182, allocations: 3.984 kB / 490 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.1836, allocations: 0.6984 MB / 490.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.1838, allocations: 148.5 kB / 490.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.1839, allocations: 11.98 kB / 490.9 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.1841, allocations: 15.98 kB / 490.9 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.1842, allocations: 31.95 kB / 490.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.1843, allocations: 15.98 kB / 490.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003483/0.1846, allocations: 279.2 kB / 491.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1846, allocations: 0 / 491.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006003/0.1852, allocations: 167.4 kB / 491.3 MB, free: 6.641 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.0001402/0.1854, allocations: 115.1 kB / 491.5 MB, free: 6.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1864, allocations: 0.5025 MB / 492 MB, free: 6.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1864, allocations: 7.938 kB / 492 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005383/0.187, allocations: 335.1 kB / 492.3 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.1877, allocations: 141.7 kB / 492.4 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.1901, allocations: 1.578 MB / 494 MB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/0.1908, allocations: 0.9211 MB / 494.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002809/0.1911, allocations: 88.62 kB / 495 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.601e-05/0.1912, allocations: 35.44 kB / 495.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1912, allocations: 0 / 495.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of Templates: time 0.01417/0.2053, allocations: 7.629 MB / 0.4909 GB, free: 11.29 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)