Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Components.myBattery.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.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",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.001121/0.001121, allocations: 196.8 kB / 7.848 MB, free: 2.496 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.133/1.133, allocations: 221.4 MB / 229.6 MB, free: 3.02 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.0009397/0.0009394, allocations: 95.75 kB / 280.5 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03799/0.03799, allocations: 8.087 MB / 339.4 MB, free: 6.418 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1736/0.2117, allocations: 58.63 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0792/0.2909, allocations: 52.51 MB / 450.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2414/0.5323, allocations: 81.43 MB / 0.5195 GB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.5326, allocations: 60.91 kB / 0.5195 GB, free: 12.67 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.02708/0.5597, allocations: 11.09 MB / 0.5304 GB, free: 3.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.5597, allocations: 11.94 kB / 0.5304 GB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.5599, allocations: 94.78 kB / 0.5305 GB, free: 3.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.561, allocations: 0.7221 MB / 0.5312 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.5611, allocations: 63.78 kB / 0.5312 GB, free: 2.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.5612, allocations: 12 kB / 0.5312 GB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002546/0.5614, allocations: 131.9 kB / 0.5314 GB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.5618, allocations: 239.1 kB / 0.5316 GB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.5618, allocations: 0 / 0.5316 GB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.5619, allocations: 0 / 0.5316 GB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.5619, allocations: 8 kB / 0.5316 GB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.5642, allocations: 1.404 MB / 0.533 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.5645, allocations: 226.3 kB / 0.5332 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.5647, allocations: 108.9 kB / 0.5333 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.5648, allocations: 3.938 kB / 0.5333 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.5648, allocations: 38.5 kB / 0.5333 GB, free: 492 kB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.5648, allocations: 4 kB / 0.5333 GB, free: 488 kB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004423/0.5653, allocations: 199.2 kB / 0.5335 GB, free: 308 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.962e-05/0.5654, allocations: 238.9 kB / 0.5338 GB, free: 16 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:54:7-55:59:writable] Warning: Parameter SOC_start has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:53:7-53:73:writable] Warning: Parameter Np has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:52:7-52:71:writable] Warning: Parameter Ns has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:425:9-425:73:writable] Warning: Parameter UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.5672, allocations: 1.362 MB / 0.5351 GB, free: 14.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.5673, allocations: 29.7 kB / 0.5351 GB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5674, allocations: 240.8 kB / 0.5353 GB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.5674, allocations: 46.2 kB / 0.5354 GB, free: 14.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-06/0.5675, allocations: 0 / 0.5354 GB, free: 14.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.5676, allocations: 317.6 kB / 0.5357 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.666e-05/0.5676, allocations: 37.98 kB / 0.5357 GB, free: 14.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.5678, allocations: 131 kB / 0.5358 GB, free: 14.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.568, allocations: 57.34 kB / 0.5359 GB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.568, allocations: 4 kB / 0.5359 GB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004025/0.5684, allocations: 232.7 kB / 0.5361 GB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.5684, allocations: 7.125 kB / 0.5361 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5684, allocations: 4 kB / 0.5361 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.5684, allocations: 3.938 kB / 0.5361 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008167/0.5692, allocations: 135.5 kB / 0.5363 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.5693, allocations: 3.938 kB / 0.5363 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.5696, allocations: 43.73 kB / 0.5363 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.5696, allocations: 11.98 kB / 0.5363 GB, free: 13.73 MB / 362.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: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.000128/0.5697, allocations: 113.4 kB / 0.5364 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.5699, allocations: 86.88 kB / 0.5365 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003868/0.5703, allocations: 235.5 kB / 0.5367 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5703, allocations: 4 kB / 0.5368 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.5703, allocations: 0 / 0.5368 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5703, allocations: 4 kB / 0.5368 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.5715, allocations: 0.9414 MB / 0.5377 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5715, allocations: 4 kB / 0.5377 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007557/0.5723, allocations: 119.9 kB / 0.5378 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.5723, allocations: 0 / 0.5378 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.5723, allocations: 4 kB / 0.5378 GB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5723, allocations: 0 / 0.5378 GB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5723, allocations: 0 / 0.5378 GB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004707/0.5728, allocations: 392.1 kB / 0.5382 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006594/0.5735, allocations: 0.8274 MB / 0.539 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.5738, allocations: 242.1 kB / 0.5392 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.5739, allocations: 0 / 0.5392 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.5742, allocations: 36.09 kB / 0.5392 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.5743, allocations: 23 kB / 0.5393 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.5743, allocations: 11.92 kB / 0.5393 GB, free: 11.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001142/0.5755, allocations: 1.058 MB / 0.5403 GB, free: 10.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009829/0.5765, allocations: 114.6 kB / 0.5404 GB, free: 10.11 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0004555/0.5769, allocations: 229.1 kB / 0.5406 GB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002223/0.5772, allocations: 118.7 kB / 0.5408 GB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.5772, allocations: 7.875 kB / 0.5408 GB, free: 9.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.78e-05/0.5773, allocations: 66.3 kB / 0.5408 GB, free: 9.785 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.5777, allocations: 63.86 kB / 0.5409 GB, free: 9.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.5802, allocations: 1.305 MB / 0.5422 GB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008041/0.581, allocations: 1.076 MB / 0.5432 GB, free: 7.488 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.5811, allocations: 4 kB / 0.5432 GB, free: 7.484 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Components.myBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Components.myBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Components.myBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Components.myBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Components_myBattery_fmu --startTime=0 --stopTime=144000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Components_myBattery.fmu > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)