Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.288/1.288, allocations: 285.5 MB / 292.8 MB, free: 10.46 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009005/0.0009006, allocations: 187.5 kB / 361.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9858/0.9858, allocations: 205.1 MB / 0.6195 GB, free: 12.01 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007214/0.0007215, allocations: 91.69 kB / 0.7325 GB, free: 44.49 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1682/0.1689, allocations: 121.4 MB / 0.8511 GB, free: 3.156 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.5696, allocations: 115.3 MB / 0.9637 GB, free: 77.79 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.7173, allocations: 163.4 MB / 1.123 GB, free: 8.598 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.7176, allocations: 92.97 kB / 1.123 GB, free: 8.508 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.04547/0.7631, allocations: 21.29 MB / 1.144 GB, free: 3.137 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.7631, allocations: 8.5 kB / 1.144 GB, free: 3.129 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006164/0.7637, allocations: 131 kB / 1.144 GB, free: 3 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005278/0.7643, allocations: 413.3 kB / 1.145 GB, free: 2.559 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.794e-05/0.7643, allocations: 28 kB / 1.145 GB, free: 2.531 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.163e-05/0.7644, allocations: 44 kB / 1.145 GB, free: 2.488 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007875/0.7652, allocations: 0.4921 MB / 1.145 GB, free: 1.996 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009802/0.7662, allocations: 0.7562 MB / 1.146 GB, free: 1.176 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.7662, allocations: 4 kB / 1.146 GB, free: 1.172 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.7663, allocations: 7.984 kB / 1.146 GB, free: 1.164 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.075e-05/0.7663, allocations: 41.92 kB / 1.146 GB, free: 1.125 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.7695, allocations: 3.553 MB / 1.15 GB, free: 13.37 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.7699, allocations: 268.4 kB / 1.15 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.7702, allocations: 183.3 kB / 1.15 GB, free: 12.91 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.7702, allocations: 4.375 kB / 1.15 GB, free: 12.91 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.7705, allocations: 197 kB / 1.15 GB, free: 12.71 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 1.793e-06/0.7705, allocations: 3.938 kB / 1.15 GB, free: 12.7 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.000442/0.771, allocations: 280.8 kB / 1.15 GB, free: 12.42 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.771, allocations: 55.41 kB / 1.151 GB, free: 12.36 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.7713, allocations: 313.5 kB / 1.151 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.7713, allocations: 37.7 kB / 1.151 GB, free: 12 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.7715, allocations: 331.2 kB / 1.151 GB, free: 11.66 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.7716, allocations: 110.5 kB / 1.151 GB, free: 11.55 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.7716, allocations: 4 kB / 1.151 GB, free: 11.55 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.7717, allocations: 358.7 kB / 1.152 GB, free: 11.19 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.772, allocations: 137.5 kB / 1.152 GB, free: 11.06 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.7723, allocations: 360 kB / 1.152 GB, free: 10.61 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.7725, allocations: 174.3 kB / 1.152 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.7725, allocations: 4 kB / 1.152 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0006979/0.7732, allocations: 0.499 MB / 1.153 GB, free: 9.93 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007164/0.774, allocations: 2.705 MB / 1.155 GB, free: 7.016 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.774, allocations: 8 kB / 1.155 GB, free: 7.008 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.774, allocations: 12 kB / 1.155 GB, free: 6.996 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.7744, allocations: 99.77 kB / 1.156 GB, free: 6.898 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.7744, allocations: 11.98 kB / 1.156 GB, free: 6.887 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.7747, allocations: 43.58 kB / 1.156 GB, free: 6.844 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.543e-05/0.7747, allocations: 35.98 kB / 1.156 GB, free: 6.809 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 6.512e-06/0.7747, allocations: 4 kB / 1.156 GB, free: 6.805 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006012/0.7753, allocations: 438.4 kB / 1.156 GB, free: 6.375 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.7754, allocations: 8 kB / 1.156 GB, free: 6.367 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.7754, allocations: 12 kB / 1.156 GB, free: 6.355 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.7757, allocations: 95.77 kB / 1.156 GB, free: 6.262 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.7757, allocations: 20.62 kB / 1.156 GB, free: 6.242 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.776, allocations: 31.69 kB / 1.156 GB, free: 6.211 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.776, allocations: 37.8 kB / 1.156 GB, free: 6.176 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0001175/0.7762, allocations: 148.9 kB / 1.156 GB, free: 6.023 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.7762, allocations: 39.53 kB / 1.156 GB, free: 5.984 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005453/0.7768, allocations: 330.3 kB / 1.157 GB, free: 5.66 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.7768, allocations: 15.92 kB / 1.157 GB, free: 5.645 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.7768, allocations: 0 / 1.157 GB, free: 5.645 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.7768, allocations: 0 / 1.157 GB, free: 5.645 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.778, allocations: 0.9594 MB / 1.158 GB, free: 4.621 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.778, allocations: 1.25 kB / 1.158 GB, free: 4.621 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.7782, allocations: 47.91 kB / 1.158 GB, free: 4.574 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.7782, allocations: 3.984 kB / 1.158 GB, free: 4.57 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.7783, allocations: 8.062 kB / 1.158 GB, free: 4.562 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.7783, allocations: 7.938 kB / 1.158 GB, free: 4.555 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.7783, allocations: 0 / 1.158 GB, free: 4.555 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006944/0.779, allocations: 0.5934 MB / 1.158 GB, free: 3.926 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009622/0.7799, allocations: 1.124 MB / 1.159 GB, free: 2.766 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.7801, allocations: 136.6 kB / 1.16 GB, free: 2.613 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.7801, allocations: 9.562 kB / 1.16 GB, free: 2.605 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.7803, allocations: 17.17 kB / 1.16 GB, free: 2.59 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.674e-05/0.7804, allocations: 44.36 kB / 1.16 GB, free: 2.547 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.7805, allocations: 16 kB / 1.16 GB, free: 2.531 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001498/0.7806, allocations: 192.6 kB / 1.16 GB, free: 2.34 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00174/0.7824, allocations: 211.4 kB / 1.16 GB, free: 2.133 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001458/0.7825, allocations: 133.7 kB / 1.16 GB, free: 1.996 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0008455/0.7834, allocations: 0.6591 MB / 1.161 GB, free: 1.336 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7834, allocations: 0 / 1.161 GB, free: 1.336 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.7836, allocations: 169.5 kB / 1.161 GB, free: 1.172 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.784, allocations: 90.05 kB / 1.161 GB, free: 1.09 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.7853, allocations: 0.6998 MB / 1.162 GB, free: 368 kB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.7858, allocations: 0.9753 MB / 1.163 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of SimCode: time 1.222e-06/0.7859, allocations: 4 kB / 1.163 GB, free: 15.36 MB / 0.7761 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)