Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") [: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 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 189.2 kB / 7.844 MB, free: 2.477 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.4 MB / 229.7 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 94.62 kB / 280.5 MB, free: 1.215 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04184/0.04184, allocations: 8.091 MB / 339.4 MB, free: 6.312 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.125e-06, allocations: 4 kB / 397.9 MB, free: 68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 52.52 MB / 450.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.4045, allocations: 84.75 MB / 0.5226 GB, free: 9.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4048, allocations: 71.03 kB / 0.5227 GB, free: 9.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05896/0.4637, allocations: 23 MB / 0.5452 GB, free: 7.102 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.327e-05/0.4638, allocations: 24 kB / 0.5452 GB, free: 7.078 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004179/0.468, allocations: 1.423 MB / 0.5466 GB, free: 5.711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4681, allocations: 11.97 kB / 0.5466 GB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005056/0.4686, allocations: 146.3 kB / 0.5467 GB, free: 5.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002053/0.4707, allocations: 0.9776 MB / 0.5477 GB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.4708, allocations: 169.2 kB / 0.5478 GB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.471, allocations: 32 kB / 0.5479 GB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001174/0.4722, allocations: 0.6452 MB / 0.5485 GB, free: 4.145 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.4735, allocations: 0.7337 MB / 0.5492 GB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.4735, allocations: 0 / 0.5492 GB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.973e-05/0.4736, allocations: 7.984 kB / 0.5492 GB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.4736, allocations: 12 kB / 0.5492 GB, free: 3.605 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006986/0.4806, allocations: 4.191 MB / 0.5533 GB, free: 296 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007343/0.4814, allocations: 457.9 kB / 0.5538 GB, free: 44 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008726/0.4823, allocations: 0.4893 MB / 0.5542 GB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.4824, allocations: 19.64 kB / 0.5543 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.4825, allocations: 46.14 kB / 0.5543 GB, free: 15.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 3.206e-06/0.4825, allocations: 0 / 0.5543 GB, free: 15.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.004386/0.4869, allocations: 1.421 MB / 0.5557 GB, free: 14.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.4871, allocations: 248 kB / 0.5559 GB, free: 14.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003042/0.4901, allocations: 1.569 MB / 0.5575 GB, free: 12.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.4903, allocations: 25.7 kB / 0.5575 GB, free: 12.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.4905, allocations: 278 kB / 0.5578 GB, free: 12.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/0.4908, allocations: 275.8 kB / 0.558 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.344e-05/0.4909, allocations: 3.938 kB / 0.558 GB, free: 12.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.491, allocations: 330 kB / 0.5583 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.4916, allocations: 349.5 kB / 0.5587 GB, free: 11.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006445/0.4923, allocations: 451.5 kB / 0.5591 GB, free: 10.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.4935, allocations: 413.1 kB / 0.5595 GB, free: 10.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.4936, allocations: 3.938 kB / 0.5595 GB, free: 10.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004213/0.4978, allocations: 1.438 MB / 0.5609 GB, free: 9.039 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.4978, allocations: 4 kB / 0.5609 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4978, allocations: 4 kB / 0.5609 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/0.5008, allocations: 0.7496 MB / 0.5616 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.5013, allocations: 95.88 kB / 0.5617 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002982/0.5043, allocations: 1.585 MB / 0.5633 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009385/0.5052, allocations: 63.42 kB / 0.5633 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.5054, allocations: 23.98 kB / 0.5634 GB, free: 6.484 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real load.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real load.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.0003198/0.5057, allocations: 132 kB / 0.5635 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/0.5061, allocations: 118.5 kB / 0.5636 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00313/0.5092, allocations: 1.332 MB / 0.5649 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/0.5093, allocations: 8 kB / 0.5649 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5093, allocations: 4 kB / 0.5649 GB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.5093, allocations: 3.984 kB / 0.5649 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006703/0.516, allocations: 3.115 MB / 0.568 GB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.5161, allocations: 0 / 0.568 GB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/0.5166, allocations: 111.8 kB / 0.5681 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00281/0.5194, allocations: 0.7227 MB / 0.5688 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-05/0.5195, allocations: 7.984 kB / 0.5688 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/0.5224, allocations: 1.561 MB / 0.5703 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5224, allocations: 0 / 0.5703 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003894/0.5263, allocations: 1.932 MB / 0.5722 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006411/0.527, allocations: 307.3 kB / 0.5725 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/0.5273, allocations: 4.062 kB / 0.5725 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007986/0.5281, allocations: 47.95 kB / 0.5725 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5283, allocations: 64.58 kB / 0.5726 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.671e-05/0.5284, allocations: 27.98 kB / 0.5726 GB, free: 12.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002322/0.5307, allocations: 1.208 MB / 0.5738 GB, free: 11.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001099/0.5318, allocations: 227.7 kB / 0.574 GB, free: 11.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 56 * 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 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006799/0.5325, allocations: 235.7 kB / 0.5743 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.5361, allocations: 1.195 MB / 0.5754 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5361, allocations: 0 / 0.5754 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.5387, allocations: 0.8097 MB / 0.5762 GB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.5399, allocations: 78.14 kB / 0.5763 GB, free: 9.129 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/0.5459, allocations: 1.964 MB / 0.5782 GB, free: 7.125 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/0.5476, allocations: 1.282 MB / 0.5795 GB, free: 5.816 MB / 394.7 MB Notification: Performance of SimCode: time 3.787e-06/0.5476, allocations: 0 / 0.5795 GB, free: 5.816 MB / 394.7 MB Notification: Performance of Templates: time 0.02764/0.5753, allocations: 13.25 MB / 0.5924 GB, free: 8.57 MB / 410.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)