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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001068/0.001068, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.262/1.262, allocations: 194.2 MB / 212.2 MB, free: 2.363 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001734/0.001734, allocations: 131.9 kB / 256.6 MB, free: 4.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1645/0.1645, allocations: 37.95 MB / 338.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 71.89 kB / 401.8 MB, free: 68.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1072, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006931/0.1142, allocations: 7.217 MB / 461.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003137/0.1174, allocations: 1.971 MB / 463.2 MB, free: 7.324 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007954/0.1182, allocations: 35.81 kB / 463.2 MB, free: 7.289 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008169/0.119, allocations: 198.8 kB / 463.4 MB, free: 7.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.1202, allocations: 346.3 kB / 463.7 MB, free: 6.754 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005025/0.1207, allocations: 207.8 kB / 464 MB, free: 6.551 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.122, allocations: 1.43 MB / 465.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.1224, allocations: 421 kB / 465.8 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004924/0.123, allocations: 402.3 kB / 466.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004931/0.1235, allocations: 494.2 kB / 466.7 MB, free: 3.816 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.1235, allocations: 48 kB / 466.7 MB, free: 3.77 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1236, allocations: 48 kB / 466.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.1238, allocations: 243.4 kB / 467 MB, free: 3.484 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.1241, allocations: 370.3 kB / 467.4 MB, free: 3.121 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005543/0.1247, allocations: 0.9969 MB / 468.4 MB, free: 2.121 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1247, allocations: 4 kB / 468.4 MB, free: 2.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1247, allocations: 0 / 468.4 MB, free: 2.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1247, allocations: 3.938 kB / 468.4 MB, free: 2.113 MB / 314.7 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.001597/0.1263, allocations: 1.021 MB / 469.4 MB, free: 1.043 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1263, allocations: 12.03 kB / 469.4 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.1265, allocations: 72.09 kB / 469.5 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008865/0.1274, allocations: 0.6174 MB / 470.1 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.429e-05/0.1275, allocations: 117 kB / 470.2 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.551e-05/0.1275, allocations: 56 kB / 470.3 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1287, allocations: 0.7499 MB / 471 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1287, allocations: 3.984 kB / 471 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.1288, allocations: 20 kB / 471 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1288, allocations: 16 kB / 471 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.13, allocations: 0.6167 MB / 471.7 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003226/0.1332, allocations: 2.456 MB / 474.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00086/0.1341, allocations: 420.9 kB / 474.5 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.1345, allocations: 203.1 kB / 474.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.1345, allocations: 4.281 kB / 474.7 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004025/0.1349, allocations: 247.3 kB / 475 MB, free: 11.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 1.934e-06/0.1349, allocations: 0 / 475 MB, free: 11.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.003122/0.1381, allocations: 0.8774 MB / 475.9 MB, free: 10.31 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.1382, allocations: 140.9 kB / 476 MB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/0.1386, allocations: 401.9 kB / 476.4 MB, free: 9.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1387, allocations: 29.7 kB / 476.4 MB, free: 9.707 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002467/0.1389, allocations: 324.1 kB / 476.7 MB, free: 9.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/0.139, allocations: 118.2 kB / 476.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.1391, allocations: 82.12 kB / 476.9 MB, free: 9.176 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1393, allocations: 354.8 kB / 477.3 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.1396, allocations: 128.8 kB / 477.4 MB, free: 8.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003512/0.1399, allocations: 254 kB / 477.6 MB, free: 8.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.1414, allocations: 0.648 MB / 478.3 MB, free: 7.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1414, allocations: 7.938 kB / 478.3 MB, free: 7.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009847/0.1424, allocations: 0.5133 MB / 478.8 MB, free: 7.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1424, allocations: 8 kB / 478.8 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1424, allocations: 4 kB / 478.8 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.1429, allocations: 156.8 kB / 479 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.1431, allocations: 71.91 kB / 479 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003256/0.1464, allocations: 2.045 MB / 481.1 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.1468, allocations: 55.58 kB / 481.1 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.1468, allocations: 20 kB / 481.2 MB, free: 4.688 MB / 330.7 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.0003071/0.1471, allocations: 237.7 kB / 481.4 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.1472, allocations: 51.61 kB / 481.4 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.1484, allocations: 483.7 kB / 481.9 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1485, allocations: 15.94 kB / 481.9 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1485, allocations: 3.938 kB / 481.9 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1485, allocations: 3.938 kB / 481.9 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008035/0.1493, allocations: 0.6708 MB / 482.6 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1493, allocations: 4 kB / 482.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.1495, allocations: 47.91 kB / 482.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004248/0.15, allocations: 148.7 kB / 482.8 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.15, allocations: 11.94 kB / 482.8 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/0.1535, allocations: 2.018 MB / 484.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.1535, allocations: 4 kB / 484.8 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/0.1638, allocations: 5.501 MB / 490.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.1641, allocations: 144.6 kB / 490.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.1641, allocations: 4 kB / 490.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.1644, allocations: 19.97 kB / 490.5 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1645, allocations: 40.02 kB / 490.5 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.1645, allocations: 8 kB / 490.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003213/0.1649, allocations: 283.1 kB / 490.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1649, allocations: 0 / 490.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007428/0.1656, allocations: 219.4 kB / 491 MB, free: 10.27 MB / 346.7 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.0001721/0.1658, allocations: 107.2 kB / 491.2 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009912/0.1668, allocations: 0.4946 MB / 491.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1668, allocations: 1.125 kB / 491.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005133/0.1673, allocations: 334.5 kB / 492 MB, free: 9.305 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.168, allocations: 157.4 kB / 492.1 MB, free: 9.156 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.1711, allocations: 1.943 MB / 494.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.1716, allocations: 0.933 MB / 495 MB, free: 6.184 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003097/0.1719, allocations: 88.64 kB / 495.1 MB, free: 6.094 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.796e-05/0.172, allocations: 35.44 kB / 495.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of SimCode: time 6.72e-07/0.172, allocations: 0 / 495.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of Templates: time 0.01474/0.1868, allocations: 9.106 MB / 0.4924 GB, free: 12.95 MB / 362.7 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)