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.001218/0.001219, allocations: 109.1 kB / 16.62 MB, free: 6.805 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.001168/0.001168, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.37/1.37, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1765/0.1765, allocations: 38.03 MB / 329.4 MB, free: 8.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 60.09 kB / 398.3 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1061, allocations: 58.06 MB / 456.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009336/0.1155, allocations: 7.206 MB / 463.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0034/0.1189, allocations: 1.928 MB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008724/0.1198, allocations: 31.81 kB / 465.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009664/0.1208, allocations: 194.8 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.122, allocations: 350.3 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006208/0.1226, allocations: 203.8 kB / 466.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.124, allocations: 1.071 MB / 467.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.1247, allocations: 0.5139 MB / 467.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008704/0.1256, allocations: 470.2 kB / 468.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006807/0.1263, allocations: 0.4944 MB / 468.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1264, allocations: 84 kB / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.1266, allocations: 88 kB / 468.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.1268, allocations: 287.3 kB / 469.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003758/0.1272, allocations: 406.3 kB / 469.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009071/0.1281, allocations: 1.024 MB / 470.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.1282, allocations: 4 kB / 470.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1282, allocations: 3.938 kB / 470.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1282, allocations: 0 / 470.7 MB, free: 10.06 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.001923/0.1301, allocations: 1.013 MB / 471.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1302, allocations: 11.89 kB / 471.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.1303, allocations: 72.09 kB / 471.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.1314, allocations: 0.6291 MB / 472.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.1315, allocations: 109.3 kB / 472.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1316, allocations: 63.94 kB / 472.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.1329, allocations: 0.7421 MB / 473.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1329, allocations: 0 / 473.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.133, allocations: 31.98 kB / 473.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.133, allocations: 19.94 kB / 473.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.1342, allocations: 0.605 MB / 473.9 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.1374, allocations: 2.475 MB / 476.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008981/0.1384, allocations: 417.5 kB / 476.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.1388, allocations: 199.1 kB / 477 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-05/0.1388, allocations: 8.281 kB / 477 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000453/0.1393, allocations: 247.3 kB / 477.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.264e-06/0.1393, allocations: 0 / 477.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003047/0.1424, allocations: 0.8822 MB / 478.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.95e-05/0.1425, allocations: 136.5 kB / 478.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004104/0.1429, allocations: 401.8 kB / 478.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.1429, allocations: 33.7 kB / 478.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.1432, allocations: 316.2 kB / 479 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.374e-05/0.1433, allocations: 126.3 kB / 479.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1434, allocations: 78.12 kB / 479.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1436, allocations: 350.8 kB / 479.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.1439, allocations: 132.8 kB / 479.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.1443, allocations: 250 kB / 479.9 MB, free: 344 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.1458, allocations: 0.6671 MB / 480.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.1458, allocations: 0 / 480.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001045/0.1468, allocations: 0.5172 MB / 481.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.1469, allocations: 16.08 kB / 481.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1469, allocations: 4 kB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004314/0.1473, allocations: 148.7 kB / 481.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.1476, allocations: 75.84 kB / 481.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003466/0.1511, allocations: 2.256 MB / 483.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.1514, allocations: 55.5 kB / 483.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.1515, allocations: 16 kB / 483.7 MB, free: 12.39 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.000348/0.1518, allocations: 255.5 kB / 483.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.1519, allocations: 43.47 kB / 484 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.1531, allocations: 482.6 kB / 484.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1532, allocations: 7.938 kB / 484.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1532, allocations: 7.984 kB / 484.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.1532, allocations: 0 / 484.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.1539, allocations: 0.6746 MB / 485.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1539, allocations: 7.875 kB / 485.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.1542, allocations: 39.98 kB / 485.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004031/0.1546, allocations: 152.7 kB / 485.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1546, allocations: 8 kB / 485.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/0.1577, allocations: 2.252 MB / 487.6 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1577, allocations: 0 / 487.6 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.1592, allocations: 0.696 MB / 488.3 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.1594, allocations: 148.4 kB / 488.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.797e-05/0.1595, allocations: 12 kB / 488.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.1597, allocations: 23.92 kB / 488.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.1598, allocations: 35.95 kB / 488.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.1599, allocations: 8 kB / 488.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002747/0.1601, allocations: 283.1 kB / 488.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1601, allocations: 0 / 488.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005608/0.1607, allocations: 159.5 kB / 488.9 MB, free: 6.855 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.0001277/0.1608, allocations: 107.2 kB / 489.1 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.1619, allocations: 0.5376 MB / 489.6 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1619, allocations: 192 / 489.6 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005744/0.1625, allocations: 334.5 kB / 489.9 MB, free: 5.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007249/0.1633, allocations: 157.3 kB / 490.1 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.1656, allocations: 1.508 MB / 491.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.1661, allocations: 0.9289 MB / 492.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002804/0.1664, allocations: 84.62 kB / 492.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.332e-05/0.1665, allocations: 31.44 kB / 492.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1665, allocations: 0 / 492.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of Templates: time 0.01314/0.1796, allocations: 8.027 MB / 0.4889 GB, free: 11.15 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)