Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001477, allocations: 185.2 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 90.64 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2639/0.2639, allocations: 37.99 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.119e-05/2.13e-05, allocations: 7.984 kB / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 56.32 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4764/0.5827, allocations: 97.48 MB / 0.5505 GB, free: 10.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.5831, allocations: 96.41 kB / 0.5505 GB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06025/0.6434, allocations: 15.94 MB / 0.5661 GB, free: 96 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6434, allocations: 3.938 kB / 0.5661 GB, free: 92 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.337e-05/0.6435, allocations: 16.19 kB / 0.5661 GB, free: 76 kB / 362.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.002687/0.6462, allocations: 0.864 MB / 0.567 GB, free: 15.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.6462, allocations: 15.97 kB / 0.567 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.6466, allocations: 71.16 kB / 0.5671 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004728/0.6513, allocations: 1.15 MB / 0.5682 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.6516, allocations: 96.02 kB / 0.5683 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.6518, allocations: 32 kB / 0.5683 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001472/0.6533, allocations: 0.4906 MB / 0.5688 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.6549, allocations: 0.6328 MB / 0.5694 GB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.6549, allocations: 0 / 0.5694 GB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.052e-05/0.655, allocations: 3.984 kB / 0.5694 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.6551, allocations: 16 kB / 0.5694 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005568/0.6607, allocations: 2.387 MB / 0.5718 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.6619, allocations: 391.4 kB / 0.5721 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.6624, allocations: 181.2 kB / 0.5723 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.6624, allocations: 4.281 kB / 0.5723 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004716/0.6629, allocations: 216.6 kB / 0.5725 GB, free: 10.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.246e-06/0.6629, allocations: 0 / 0.5725 GB, free: 10.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001625/0.6646, allocations: 409.9 kB / 0.5729 GB, free: 10.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.459e-05/0.6647, allocations: 132.5 kB / 0.573 GB, free: 10.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.6653, allocations: 285.9 kB / 0.5733 GB, free: 9.961 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.592e-05/0.6654, allocations: 25.7 kB / 0.5733 GB, free: 9.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003505/0.6657, allocations: 369 kB / 0.5737 GB, free: 9.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.6659, allocations: 114.1 kB / 0.5738 GB, free: 9.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.6659, allocations: 8 kB / 0.5738 GB, free: 9.516 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6661, allocations: 325.4 kB / 0.5741 GB, free: 9.195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.6664, allocations: 104.7 kB / 0.5742 GB, free: 9.137 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.6668, allocations: 228.9 kB / 0.5744 GB, free: 8.918 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.6672, allocations: 130.7 kB / 0.5745 GB, free: 8.832 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.6672, allocations: 4 kB / 0.5745 GB, free: 8.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001671/0.6689, allocations: 458.9 kB / 0.575 GB, free: 8.473 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.6689, allocations: 8 kB / 0.575 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.669, allocations: 4 kB / 0.575 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004761/0.6695, allocations: 121.9 kB / 0.5751 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/0.6701, allocations: 87.59 kB / 0.5752 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.6735, allocations: 1.858 MB / 0.577 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.6741, allocations: 47.67 kB / 0.5771 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.6742, allocations: 15.38 kB / 0.5771 GB, free: 6.535 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false 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.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete 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.0002449/0.6744, allocations: 128.5 kB / 0.5772 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/0.6745, allocations: 43.44 kB / 0.5772 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.6762, allocations: 422.4 kB / 0.5776 GB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.6762, allocations: 4 kB / 0.5776 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.6762, allocations: 8 kB / 0.5776 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.6762, allocations: 0 / 0.5776 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.6774, allocations: 0.5836 MB / 0.5782 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.6775, allocations: 4 kB / 0.5782 GB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005148/0.678, allocations: 51.91 kB / 0.5783 GB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004177/0.6784, allocations: 119.8 kB / 0.5784 GB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.717e-05/0.6785, allocations: 7.625 kB / 0.5784 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003248/0.6818, allocations: 1.86 MB / 0.5802 GB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.6818, allocations: 4.031 kB / 0.5802 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.6839, allocations: 0.6363 MB / 0.5808 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.6842, allocations: 154.5 kB / 0.581 GB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.877e-05/0.6843, allocations: 11.31 kB / 0.581 GB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.6847, allocations: 11.98 kB / 0.581 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.6849, allocations: 35.75 kB / 0.581 GB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.685, allocations: 11.44 kB / 0.5811 GB, free: 2.938 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003574/0.6853, allocations: 214 kB / 0.5813 GB, free: 2.773 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6853, allocations: 0 / 0.5813 GB, free: 2.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009162/0.6863, allocations: 159.4 kB / 0.5814 GB, free: 2.617 MB / 378.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.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete 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.0002777/0.6866, allocations: 133 kB / 0.5815 GB, free: 2.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.6877, allocations: 445.7 kB / 0.582 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.6878, allocations: 0.9375 kB / 0.582 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006596/0.6884, allocations: 310.5 kB / 0.5823 GB, free: 1.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009219/0.6894, allocations: 105.4 kB / 0.5824 GB, free: 1.812 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.6918, allocations: 0.918 MB / 0.5833 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/0.6926, allocations: 0.9394 MB / 0.5842 GB, free: 28 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.6928, allocations: 35.48 kB / 0.5842 GB, free: 15.99 MB / 394.7 MB Notification: Performance of SimCode: time 3.697e-06/0.6929, allocations: 0 / 0.5842 GB, free: 15.99 MB / 394.7 MB Notification: Performance of Templates: time 0.02191/0.7148, allocations: 9.453 MB / 0.5934 GB, free: 6.656 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)