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.001242/0.001242, allocations: 110 kB / 17.68 MB, free: 5.332 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.001136/0.001136, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1749/0.1749, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001446/0.001446, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2414, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007064/0.2485, allocations: 6.583 MB / 438.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.2514, allocations: 1.788 MB / 440.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006069/0.252, allocations: 23.88 kB / 440.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007957/0.2528, allocations: 226.4 kB / 440.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009884/0.2538, allocations: 377.8 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.2543, allocations: 223.7 kB / 441.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007945/0.2551, allocations: 1.078 MB / 442.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004614/0.2556, allocations: 0.5177 MB / 442.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004045/0.256, allocations: 462.3 kB / 443.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.2565, allocations: 490.3 kB / 443.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.822e-05/0.2566, allocations: 84 kB / 443.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.2567, allocations: 84 kB / 443.9 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002455/0.2569, allocations: 283.4 kB / 444.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.2573, allocations: 410.2 kB / 444.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008164/0.2581, allocations: 1.04 MB / 445.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.2581, allocations: 0 / 445.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.2581, allocations: 0 / 445.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.2582, allocations: 0 / 445.6 MB, free: 5.812 MB / 318.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.00175/0.2599, allocations: 1.015 MB / 446.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.26, allocations: 19.83 kB / 446.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.2601, allocations: 76 kB / 446.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009605/0.2611, allocations: 0.6488 MB / 447.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.2612, allocations: 121.1 kB / 447.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.2613, allocations: 59.94 kB / 447.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009782/0.2623, allocations: 0.746 MB / 448.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.2623, allocations: 0 / 448.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.2623, allocations: 28 kB / 448.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.2624, allocations: 16 kB / 448.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009497/0.2633, allocations: 0.6011 MB / 449 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.2659, allocations: 2.444 MB / 451.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008778/0.2668, allocations: 428.9 kB / 451.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000419/0.2672, allocations: 203.1 kB / 452 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.2673, allocations: 8.281 kB / 452 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.2677, allocations: 239.2 kB / 452.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/0.2677, allocations: 4 kB / 452.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002867/0.2706, allocations: 0.8698 MB / 453.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.606e-05/0.2707, allocations: 152.5 kB / 453.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004293/0.2711, allocations: 397.9 kB / 453.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.2712, allocations: 33.7 kB / 453.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.2714, allocations: 316 kB / 454 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.929e-05/0.2715, allocations: 118.3 kB / 454.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.2716, allocations: 78.05 kB / 454.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.2718, allocations: 358.8 kB / 454.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.272, allocations: 132.8 kB / 454.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.2724, allocations: 246 kB / 454.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.2738, allocations: 0.6565 MB / 455.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2739, allocations: 0 / 455.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009879/0.2748, allocations: 0.5252 MB / 456.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.2749, allocations: 8 kB / 456.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2749, allocations: 4 kB / 456.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004802/0.2754, allocations: 148.9 kB / 456.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/0.2757, allocations: 79.84 kB / 456.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.279, allocations: 2.267 MB / 458.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.2794, allocations: 51.52 kB / 458.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.2794, allocations: 16 kB / 458.7 MB, free: 8.137 MB / 334.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.0003515/0.2798, allocations: 253.7 kB / 458.9 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.846e-05/0.2799, allocations: 47.38 kB / 459 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.2811, allocations: 482.6 kB / 459.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.2811, allocations: 7.938 kB / 459.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2811, allocations: 4 kB / 459.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.2811, allocations: 3.984 kB / 459.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008344/0.2819, allocations: 0.6668 MB / 460.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.282, allocations: 3.938 kB / 460.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002435/0.2822, allocations: 55.94 kB / 460.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004075/0.2826, allocations: 140.8 kB / 460.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.2827, allocations: 11.94 kB / 460.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.2858, allocations: 2.255 MB / 462.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2858, allocations: 0 / 462.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.2873, allocations: 0.698 MB / 463.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.2875, allocations: 148.5 kB / 463.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.2876, allocations: 11.94 kB / 463.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.2878, allocations: 23.91 kB / 463.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.2879, allocations: 39.95 kB / 463.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.288, allocations: 12 kB / 463.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003024/0.2883, allocations: 283.1 kB / 463.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2883, allocations: 0 / 463.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006025/0.2889, allocations: 159.5 kB / 463.9 MB, free: 2.586 MB / 334.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.0001503/0.289, allocations: 103.2 kB / 464 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.2901, allocations: 0.5005 MB / 464.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2901, allocations: 0 / 464.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005607/0.2907, allocations: 338.5 kB / 464.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.2914, allocations: 153.2 kB / 465 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.2936, allocations: 1.256 MB / 466.3 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005876/0.2942, allocations: 0.9289 MB / 467.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002629/0.2944, allocations: 80.64 kB / 467.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.003e-05/0.2945, allocations: 35.44 kB / 467.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2945, allocations: 0 / 467.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.01453/0.3091, allocations: 8.204 MB / 475.5 MB, free: 6.938 MB / 350.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)