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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001111/0.001111, allocations: 89.08 kB / 16.31 MB, free: 6.449 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.001402/0.001402, allocations: 181.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 223.4 MB, free: 5.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3185/0.3185, allocations: 38.06 MB / 309.7 MB, free: 8.891 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005008/0.000501, allocations: 15.94 kB / 376.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 56.33 MB / 432.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007092/0.1218, allocations: 6.399 MB / 439.3 MB, free: 428 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003119/0.125, allocations: 1.883 MB / 441.1 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000648/0.1256, allocations: 31.81 kB / 441.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007898/0.1265, allocations: 210.6 kB / 441.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.1276, allocations: 377.9 kB / 441.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005881/0.1282, allocations: 187.7 kB / 441.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.1295, allocations: 1.152 MB / 443.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004954/0.13, allocations: 325.8 kB / 443.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006728/0.1307, allocations: 370.4 kB / 443.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.1313, allocations: 442.4 kB / 444.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.877e-05/0.1314, allocations: 40 kB / 444.2 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.463e-05/0.1315, allocations: 36 kB / 444.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.1317, allocations: 223.3 kB / 444.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.1319, allocations: 165.4 kB / 444.6 MB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006522/0.1325, allocations: 0.8142 MB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1325, allocations: 0 / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1325, allocations: 0 / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.1326, allocations: 0 / 445.5 MB, free: 10.18 MB / 382.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.001578/0.1341, allocations: 0.9157 MB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1342, allocations: 12.03 kB / 446.4 MB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1343, allocations: 71.16 kB / 446.5 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009476/0.1353, allocations: 0.6165 MB / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.1354, allocations: 112.6 kB / 447.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.1355, allocations: 64 kB / 447.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1368, allocations: 0.7616 MB / 448 MB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.1368, allocations: 4 kB / 448 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.387e-05/0.1369, allocations: 20 kB / 448 MB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.1369, allocations: 16 kB / 448 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.138, allocations: 0.6245 MB / 448.7 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00321/0.1412, allocations: 2.472 MB / 451.1 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.1421, allocations: 421 kB / 451.6 MB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.1425, allocations: 207.1 kB / 451.8 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.1426, allocations: 4.281 kB / 451.8 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004494/0.143, allocations: 251.2 kB / 452 MB, free: 3.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 2.084e-06/0.143, allocations: 0 / 452 MB, free: 3.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002704/0.1457, allocations: 0.8737 MB / 452.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.1458, allocations: 136.5 kB / 453 MB, free: 2.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.1463, allocations: 393.9 kB / 453.4 MB, free: 1.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.1464, allocations: 37.7 kB / 453.4 MB, free: 1.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.1466, allocations: 320.1 kB / 453.7 MB, free: 1.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.507e-05/0.1467, allocations: 122.3 kB / 453.9 MB, free: 1.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.1467, allocations: 4 kB / 453.9 MB, free: 1.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1469, allocations: 358.8 kB / 454.2 MB, free: 1.035 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.1472, allocations: 128.8 kB / 454.3 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.1475, allocations: 249.9 kB / 454.6 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.1478, allocations: 152.9 kB / 454.7 MB, free: 480 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1478, allocations: 4 kB / 454.7 MB, free: 476 kB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.2/0.3478, allocations: 0.5161 MB / 455.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.3479, allocations: 8.125 kB / 455.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3479, allocations: 8.5 kB / 455.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004965/0.3484, allocations: 148.3 kB / 455.4 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.3487, allocations: 76.38 kB / 455.5 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002615/0.3514, allocations: 2.035 MB / 457.5 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.3518, allocations: 62.72 kB / 457.6 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.3518, allocations: 21.94 kB / 457.6 MB, free: 49.55 MB / 382.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,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003854/0.3522, allocations: 245.8 kB / 457.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.3523, allocations: 43.56 kB / 457.9 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.3533, allocations: 480.5 kB / 458.4 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.3533, allocations: 6.344 kB / 458.4 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3533, allocations: 0 / 458.4 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3533, allocations: 0 / 458.4 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.354, allocations: 0.6865 MB / 459.1 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.354, allocations: 0 / 459.1 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.3542, allocations: 48.98 kB / 459.1 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003359/0.3545, allocations: 149.1 kB / 459.2 MB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3546, allocations: 9.531 kB / 459.3 MB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002161/0.3567, allocations: 2.025 MB / 461.3 MB, free: 47.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3568, allocations: 7.562 kB / 461.3 MB, free: 47.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.3581, allocations: 0.6878 MB / 462 MB, free: 47.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.3582, allocations: 152.8 kB / 462.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.3583, allocations: 7.5 kB / 462.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3585, allocations: 18.03 kB / 462.2 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.3586, allocations: 44.8 kB / 462.2 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.3586, allocations: 9.594 kB / 462.2 MB, free: 47.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.3589, allocations: 282.9 kB / 462.5 MB, free: 47.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3589, allocations: 0 / 462.5 MB, free: 47.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005951/0.3595, allocations: 159.7 kB / 462.6 MB, free: 47.41 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001395/0.3596, allocations: 102.7 kB / 462.7 MB, free: 47.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008699/0.3605, allocations: 0.5027 MB / 463.2 MB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3605, allocations: 5 kB / 463.2 MB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.361, allocations: 325.8 kB / 463.6 MB, free: 47.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006216/0.3616, allocations: 160.6 kB / 463.7 MB, free: 47.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.3635, allocations: 1.54 MB / 465.3 MB, free: 46.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.3639, allocations: 0.9248 MB / 466.2 MB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002754/0.3641, allocations: 83.59 kB / 466.3 MB, free: 45.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.126e-05/0.3642, allocations: 33.47 kB / 466.3 MB, free: 45.52 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3642, allocations: 0 / 466.3 MB, free: 45.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01134/0.3756, allocations: 7.408 MB / 473.7 MB, free: 45.01 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: