Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") [: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.001287/0.001287, allocations: 194 kB / 7.844 MB, free: 2.516 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.216/1.216, allocations: 221.4 MB / 229.7 MB, free: 3.012 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.0009492/0.0009492, allocations: 90.17 kB / 280.5 MB, free: 1.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03752/0.03752, allocations: 8.098 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 5.671e-06/5.811e-06, allocations: 0 / 397.9 MB, free: 68.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08838, allocations: 52.53 MB / 450.4 MB, free: 15.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2615/0.3499, allocations: 80.67 MB / 0.5187 GB, free: 13.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.3501, allocations: 66.47 kB / 0.5187 GB, free: 13.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01684/0.367, allocations: 5.718 MB / 0.5243 GB, free: 8.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.367, allocations: 4 kB / 0.5243 GB, free: 8.645 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001438/0.3685, allocations: 0.7346 MB / 0.525 GB, free: 7.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3685, allocations: 15.97 kB / 0.525 GB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.3687, allocations: 35.62 kB / 0.5251 GB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007248/0.3694, allocations: 381.4 kB / 0.5254 GB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.3694, allocations: 11.94 kB / 0.5254 GB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.3695, allocations: 11.98 kB / 0.5255 GB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003162/0.3698, allocations: 167.7 kB / 0.5256 GB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.3702, allocations: 246.8 kB / 0.5259 GB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3702, allocations: 0 / 0.5259 GB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.3703, allocations: 0 / 0.5259 GB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3703, allocations: 4 kB / 0.5259 GB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3717, allocations: 0.8191 MB / 0.5267 GB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.3719, allocations: 124.4 kB / 0.5268 GB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.3722, allocations: 147.4 kB / 0.5269 GB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.3723, allocations: 7.906 kB / 0.5269 GB, free: 6.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.3723, allocations: 38 kB / 0.527 GB, free: 6.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.3723, allocations: 1.875 kB / 0.527 GB, free: 6.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.003473/0.3758, allocations: 1.024 MB / 0.528 GB, free: 5.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.376, allocations: 215 kB / 0.5282 GB, free: 4.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.3764, allocations: 319.9 kB / 0.5285 GB, free: 4.664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.3765, allocations: 25.7 kB / 0.5285 GB, free: 4.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.3766, allocations: 141.4 kB / 0.5286 GB, free: 4.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.517e-05/0.3766, allocations: 38.7 kB / 0.5287 GB, free: 4.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.291e-05/0.3767, allocations: 0 / 0.5287 GB, free: 4.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3768, allocations: 340.8 kB / 0.529 GB, free: 4.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.3769, allocations: 71.03 kB / 0.5291 GB, free: 4.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.3771, allocations: 126.9 kB / 0.5292 GB, free: 3.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003112/0.3802, allocations: 0.9086 MB / 0.5301 GB, free: 3.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3803, allocations: 0 / 0.5301 GB, free: 3.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.003288/0.3836, allocations: 1.041 MB / 0.5311 GB, free: 2.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3836, allocations: 7.984 kB / 0.5311 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3836, allocations: 3.906 kB / 0.5311 GB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.3836, allocations: 7.938 kB / 0.5311 GB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.3839, allocations: 41.98 kB / 0.5311 GB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3839, allocations: 0 / 0.5311 GB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006363/0.3845, allocations: 136.6 kB / 0.5313 GB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.3846, allocations: 9.375 kB / 0.5313 GB, free: 1.875 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start ) "Charge as current integration" 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: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.3848, allocations: 109.5 kB / 0.5314 GB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3849, allocations: 23.72 kB / 0.5314 GB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003573/0.3885, allocations: 1.086 MB / 0.5325 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3885, allocations: 4 kB / 0.5325 GB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3885, allocations: 0 / 0.5325 GB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3885, allocations: 0 / 0.5325 GB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00394/0.3925, allocations: 1.461 MB / 0.5339 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3925, allocations: 4 kB / 0.5339 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.3927, allocations: 36 kB / 0.5339 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3927, allocations: 0 / 0.5339 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3927, allocations: 0 / 0.5339 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3927, allocations: 4 kB / 0.5339 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3927, allocations: 3.938 kB / 0.5339 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003502/0.3963, allocations: 1.263 MB / 0.5352 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.3964, allocations: 116 kB / 0.5353 GB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.719e-05/0.3965, allocations: 3.984 kB / 0.5353 GB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.3971, allocations: 131.6 kB / 0.5354 GB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/0.3974, allocations: 99.08 kB / 0.5355 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.3974, allocations: 7.25 kB / 0.5355 GB, free: 13.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002931/0.3977, allocations: 260.8 kB / 0.5358 GB, free: 13.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003896/0.3981, allocations: 67.75 kB / 0.5358 GB, free: 13.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005084/0.3987, allocations: 218 kB / 0.536 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.399, allocations: 173 kB / 0.5362 GB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.399, allocations: 0 / 0.5362 GB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.3993, allocations: 123.1 kB / 0.5363 GB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.3995, allocations: 25.03 kB / 0.5363 GB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.4013, allocations: 0.5444 MB / 0.5369 GB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/0.4018, allocations: 0.7938 MB / 0.5377 GB, free: 11.72 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4018, allocations: 0 / 0.5377 GB, free: 11.72 MB / 362.7 MB Notification: Performance of Templates: time 0.008156/0.41, allocations: 4.114 MB / 0.5417 GB, free: 7.625 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)