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.001532/0.001532, allocations: 113.7 kB / 17.69 MB, free: 5.309 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.001532/0.001532, allocations: 191 kB / 18.63 MB, free: 4.375 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.806/1.806, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1794/0.1794, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.002283/0.002283, allocations: 59.91 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3433, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007769/0.3511, allocations: 6.578 MB / 438.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.3539, allocations: 1.8 MB / 440.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006731/0.3546, allocations: 23.88 kB / 440.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008025/0.3555, allocations: 226.4 kB / 440.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.3567, allocations: 377.8 kB / 441 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.3573, allocations: 227.6 kB / 441.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3585, allocations: 1.071 MB / 442.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005992/0.3592, allocations: 0.5177 MB / 442.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008909/0.3601, allocations: 466.2 kB / 443.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.3611, allocations: 490.3 kB / 443.8 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002382/0.3613, allocations: 88 kB / 443.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003242/0.3617, allocations: 84 kB / 443.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003182/0.362, allocations: 275.3 kB / 444.2 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006762/0.3627, allocations: 410.3 kB / 444.6 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000971/0.3637, allocations: 1.04 MB / 445.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.3637, allocations: 0 / 445.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3637, allocations: 0 / 445.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.652e-05/0.3637, allocations: 0 / 445.6 MB, free: 5.828 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.002382/0.3661, allocations: 1.025 MB / 446.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3662, allocations: 11.89 kB / 446.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.3664, allocations: 80 kB / 446.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.3676, allocations: 0.6449 MB / 447.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.3678, allocations: 121.2 kB / 447.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3679, allocations: 59.94 kB / 447.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.369, allocations: 0.7499 MB / 448.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.3691, allocations: 0 / 448.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.038e-05/0.3691, allocations: 20 kB / 448.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.3692, allocations: 16 kB / 448.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009703/0.3701, allocations: 0.6011 MB / 449 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002735/0.3729, allocations: 2.448 MB / 451.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008403/0.3737, allocations: 428.9 kB / 451.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000396/0.3741, allocations: 205.5 kB / 452 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.3742, allocations: 4.281 kB / 452 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000454/0.3746, allocations: 247.2 kB / 452.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.944e-06/0.3747, allocations: 0 / 452.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002865/0.3775, allocations: 0.8776 MB / 453.2 MB, free: 14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.3776, allocations: 136.5 kB / 453.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.3781, allocations: 409.9 kB / 453.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.3781, allocations: 29.7 kB / 453.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.3784, allocations: 316 kB / 454 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3785, allocations: 114.4 kB / 454.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.3787, allocations: 86.03 kB / 454.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3789, allocations: 354.8 kB / 454.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.3791, allocations: 132.8 kB / 454.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.3795, allocations: 246 kB / 454.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3809, allocations: 0.6526 MB / 455.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3809, allocations: 8 kB / 455.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009895/0.3819, allocations: 0.5252 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.382, allocations: 4 kB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.382, allocations: 4 kB / 456.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004361/0.3824, allocations: 148.9 kB / 456.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.3827, allocations: 79.89 kB / 456.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.386, allocations: 2.263 MB / 458.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.3864, allocations: 51.52 kB / 458.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/0.3864, allocations: 20 kB / 458.7 MB, free: 8.148 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.000431/0.3869, allocations: 245.6 kB / 458.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-05/0.3869, allocations: 59.38 kB / 459 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.3881, allocations: 482.6 kB / 459.5 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3882, allocations: 7.938 kB / 459.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3882, allocations: 0 / 459.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3882, allocations: 0 / 459.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007547/0.3889, allocations: 0.6707 MB / 460.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.3889, allocations: 7.938 kB / 460.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.3892, allocations: 47.91 kB / 460.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003835/0.3896, allocations: 148.8 kB / 460.3 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.3896, allocations: 11.94 kB / 460.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.3927, allocations: 2.248 MB / 462.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3927, allocations: 0 / 462.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.3942, allocations: 0.7019 MB / 463.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.3944, allocations: 148.5 kB / 463.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.3945, allocations: 8 kB / 463.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.3947, allocations: 23.91 kB / 463.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3948, allocations: 40.03 kB / 463.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.3949, allocations: 12 kB / 463.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003229/0.3952, allocations: 279.1 kB / 463.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3952, allocations: 0 / 463.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006229/0.3958, allocations: 163.5 kB / 464 MB, free: 2.602 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.0001435/0.396, allocations: 103.2 kB / 464.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.397, allocations: 0.4996 MB / 464.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.397, allocations: 0 / 464.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.3976, allocations: 339.4 kB / 464.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.3982, allocations: 157.2 kB / 465 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.4005, allocations: 1.249 MB / 466.3 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.4011, allocations: 0.9289 MB / 467.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.4014, allocations: 88.62 kB / 467.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.4015, allocations: 31.44 kB / 467.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4015, allocations: 0 / 467.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Templates: time 0.01437/0.4159, allocations: 8.214 MB / 475.5 MB, free: 6.945 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)