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: "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [: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.0009925/0.0009925, allocations: 180.3 kB / 7.838 MB, free: 2.195 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.117/1.117, allocations: 221.4 MB / 229.7 MB, free: 3.062 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.0009486/0.0009487, allocations: 82.08 kB / 280.5 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03641/0.03641, allocations: 8.097 MB / 339.4 MB, free: 6.332 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1763/0.2128, allocations: 58.62 MB / 398 MB, free: 67.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07542/0.2882, allocations: 52.51 MB / 450.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2386/0.5268, allocations: 80.68 MB / 0.5187 GB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.5271, allocations: 63.97 kB / 0.5188 GB, free: 13.38 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.01797/0.5451, allocations: 6.467 MB / 0.5251 GB, free: 7.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.5451, allocations: 15.94 kB / 0.5251 GB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.5452, allocations: 31.62 kB / 0.5252 GB, free: 7.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.5458, allocations: 383.7 kB / 0.5255 GB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.5459, allocations: 8 kB / 0.5255 GB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.5459, allocations: 8 kB / 0.5255 GB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002899/0.5462, allocations: 173.7 kB / 0.5257 GB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.5465, allocations: 242.5 kB / 0.5259 GB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5466, allocations: 5.672 kB / 0.526 GB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.5466, allocations: 0 / 0.526 GB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.5466, allocations: 4 kB / 0.526 GB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.5478, allocations: 0.8147 MB / 0.5268 GB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.548, allocations: 128.3 kB / 0.5269 GB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.5483, allocations: 147.2 kB / 0.527 GB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.5484, allocations: 7.906 kB / 0.527 GB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.5484, allocations: 34.25 kB / 0.5271 GB, free: 6.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.253e-06/0.5484, allocations: 0 / 0.5271 GB, free: 6.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.003175/0.5516, allocations: 1.024 MB / 0.5281 GB, free: 5.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.5517, allocations: 210.9 kB / 0.5283 GB, free: 4.816 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.5521, allocations: 323.8 kB / 0.5286 GB, free: 4.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.5522, allocations: 25.7 kB / 0.5286 GB, free: 4.539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/0.5522, allocations: 141.3 kB / 0.5287 GB, free: 4.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.908e-05/0.5523, allocations: 46.45 kB / 0.5288 GB, free: 4.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.5523, allocations: 0 / 0.5288 GB, free: 4.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5524, allocations: 336.8 kB / 0.5291 GB, free: 4.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.5525, allocations: 71.28 kB / 0.5292 GB, free: 3.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.5527, allocations: 126.9 kB / 0.5293 GB, free: 3.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.5556, allocations: 0.9172 MB / 0.5302 GB, free: 2.973 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5556, allocations: 0 / 0.5302 GB, free: 2.973 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.003113/0.5587, allocations: 1.034 MB / 0.5312 GB, free: 1.977 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5588, allocations: 8 kB / 0.5312 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5588, allocations: 3.906 kB / 0.5312 GB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.5588, allocations: 0 / 0.5312 GB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.559, allocations: 43.97 kB / 0.5312 GB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.559, allocations: 4 kB / 0.5312 GB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.5596, allocations: 135.3 kB / 0.5314 GB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.5596, allocations: 12 kB / 0.5314 GB, free: 1.777 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.0001545/0.5598, allocations: 113.8 kB / 0.5315 GB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.5598, allocations: 23.72 kB / 0.5315 GB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003311/0.5631, allocations: 1.081 MB / 0.5326 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.5632, allocations: 0 / 0.5326 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5632, allocations: 7.984 kB / 0.5326 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5632, allocations: 3.984 kB / 0.5326 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.5669, allocations: 1.461 MB / 0.534 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.5669, allocations: 0 / 0.534 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.5671, allocations: 36.02 kB / 0.534 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5671, allocations: 0 / 0.534 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.5671, allocations: 3.984 kB / 0.534 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.095e-05/0.5672, allocations: 4 kB / 0.534 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5672, allocations: 3.938 kB / 0.5341 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003402/0.5706, allocations: 1.258 MB / 0.5353 GB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003615/0.5742, allocations: 1.748 MB / 0.537 GB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5743, allocations: 111.8 kB / 0.5371 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.5744, allocations: 4 kB / 0.5371 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005831/0.575, allocations: 135.4 kB / 0.5372 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.5752, allocations: 101.8 kB / 0.5373 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.5752, allocations: 4 kB / 0.5373 GB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002752/0.5755, allocations: 265.5 kB / 0.5376 GB, free: 11.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009507/0.5765, allocations: 71.91 kB / 0.5376 GB, free: 11.72 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.000474/0.577, allocations: 217.4 kB / 0.5379 GB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.5773, allocations: 165.6 kB / 0.538 GB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.5773, allocations: 0 / 0.538 GB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.5775, allocations: 128 kB / 0.5381 GB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.5777, allocations: 28.7 kB / 0.5382 GB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.5794, allocations: 0.5377 MB / 0.5387 GB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004655/0.5799, allocations: 0.7963 MB / 0.5395 GB, free: 9.977 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5799, allocations: 4 kB / 0.5395 GB, free: 9.973 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)