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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001034/0.001034, allocations: 193.5 kB / 8.136 MB, free: 2.121 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.086/1.086, allocations: 194.2 MB / 202.8 MB, free: 8.691 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.001922/0.001922, allocations: 114.7 kB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1671/0.1671, allocations: 37.92 MB / 330.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.995e-06/8.165e-06, allocations: 4 kB / 389.8 MB, free: 78.13 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08528, allocations: 53.22 MB / 443 MB, free: 25.01 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.32/0.4053, allocations: 92.27 MB / 0.5227 GB, free: 9.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4056, allocations: 94 kB / 0.5228 GB, free: 9.742 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04078/0.4464, allocations: 15.71 MB / 0.5382 GB, free: 1.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.223e-05/0.4465, allocations: 12 kB / 0.5382 GB, free: 1.195 MB / 346.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.001973/0.4485, allocations: 0.8862 MB / 0.539 GB, free: 316 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.4485, allocations: 8.031 kB / 0.5391 GB, free: 308 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002709/0.4488, allocations: 79.14 kB / 0.5391 GB, free: 228 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.4519, allocations: 1.155 MB / 0.5403 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.4521, allocations: 96.61 kB / 0.5404 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.4522, allocations: 36 kB / 0.5404 GB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001073/0.4533, allocations: 0.5075 MB / 0.5409 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.4544, allocations: 0.6376 MB / 0.5415 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.4544, allocations: 0 / 0.5415 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.774e-05/0.4545, allocations: 7.938 kB / 0.5415 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.4545, allocations: 12.66 kB / 0.5415 GB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.4581, allocations: 2.369 MB / 0.5438 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.4587, allocations: 360.1 kB / 0.5442 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003029/0.459, allocations: 185.2 kB / 0.5444 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.4591, allocations: 4.281 kB / 0.5444 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.4593, allocations: 209.8 kB / 0.5446 GB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.943e-06/0.4594, allocations: 0 / 0.5446 GB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.001034/0.4604, allocations: 395.7 kB / 0.5449 GB, free: 11.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.4605, allocations: 140.6 kB / 0.5451 GB, free: 11.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.4608, allocations: 291.3 kB / 0.5454 GB, free: 11.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.4608, allocations: 25.7 kB / 0.5454 GB, free: 11.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.4611, allocations: 277.7 kB / 0.5456 GB, free: 10.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.633e-05/0.4612, allocations: 113.5 kB / 0.5457 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.4612, allocations: 4 kB / 0.5458 GB, free: 10.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4613, allocations: 346.4 kB / 0.5461 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.4615, allocations: 110.5 kB / 0.5462 GB, free: 10.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.4618, allocations: 222.8 kB / 0.5464 GB, free: 10.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.462, allocations: 146.9 kB / 0.5465 GB, free: 9.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.462, allocations: 8 kB / 0.5465 GB, free: 9.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001039/0.4631, allocations: 478.9 kB / 0.547 GB, free: 9.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.4631, allocations: 4 kB / 0.547 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.4631, allocations: 4 kB / 0.547 GB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/0.4634, allocations: 125.4 kB / 0.5471 GB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.4638, allocations: 86.97 kB / 0.5472 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.4657, allocations: 1.678 MB / 0.5489 GB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.4661, allocations: 39.58 kB / 0.5489 GB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.4661, allocations: 18.94 kB / 0.5489 GB, free: 7.75 MB / 362.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.0001658/0.4663, allocations: 125.5 kB / 0.549 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.514e-05/0.4664, allocations: 43.62 kB / 0.5491 GB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009247/0.4673, allocations: 416.3 kB / 0.5495 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.4673, allocations: 7.938 kB / 0.5495 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.4673, allocations: 0 / 0.5495 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.4674, allocations: 7.969 kB / 0.5495 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007319/0.4681, allocations: 0.5841 MB / 0.5501 GB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.4681, allocations: 4 kB / 0.5501 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.4684, allocations: 52 kB / 0.5501 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/0.4687, allocations: 125.2 kB / 0.5502 GB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.4687, allocations: 4 kB / 0.5502 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/0.4706, allocations: 1.665 MB / 0.5519 GB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4706, allocations: 0 / 0.5519 GB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001187/0.4718, allocations: 0.6533 MB / 0.5525 GB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.472, allocations: 141.6 kB / 0.5526 GB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.989e-05/0.4721, allocations: 7.297 kB / 0.5526 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.4724, allocations: 23.89 kB / 0.5527 GB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.431e-05/0.4725, allocations: 23.77 kB / 0.5527 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.4725, allocations: 8 kB / 0.5527 GB, free: 4.289 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002227/0.4727, allocations: 215 kB / 0.5529 GB, free: 4.129 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005729/0.4733, allocations: 155.4 kB / 0.553 GB, free: 3.977 MB / 362.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.0002639/0.4736, allocations: 129.1 kB / 0.5532 GB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00072/0.4743, allocations: 433.5 kB / 0.5536 GB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4743, allocations: 0 / 0.5536 GB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.4747, allocations: 278.8 kB / 0.5538 GB, free: 3.281 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/0.4753, allocations: 106.8 kB / 0.5539 GB, free: 3.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.4773, allocations: 0.8807 MB / 0.5548 GB, free: 2.379 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000669/0.4779, allocations: 0.9769 MB / 0.5558 GB, free: 1.402 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4779, allocations: 0 / 0.5558 GB, free: 1.402 MB / 362.7 MB Notification: Performance of Templates: time 0.01382/0.4918, allocations: 6.756 MB / 0.5624 GB, free: 10.73 MB / 378.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)