Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.113/2.113, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001589/0.001588, allocations: 177.3 kB / 360.3 MB, free: 7.5 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001235/0.001234, allocations: 87.47 kB / 0.7317 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2421/0.2434, allocations: 121.4 MB / 0.8502 GB, free: 3.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5387/0.7822, allocations: 115.2 MB / 0.9627 GB, free: 78.53 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2426/1.025, allocations: 163.3 MB / 1.122 GB, free: 9.527 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/1.025, allocations: 88.14 kB / 1.122 GB, free: 9.445 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0/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.08232/1.108, allocations: 21.29 MB / 1.143 GB, free: 4.07 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.108, allocations: 12.5 kB / 1.143 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/1.109, allocations: 131 kB / 1.143 GB, free: 3.93 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009611/1.11, allocations: 417.3 kB / 1.144 GB, free: 3.48 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.173e-05/1.11, allocations: 24 kB / 1.144 GB, free: 3.457 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/1.11, allocations: 49.59 kB / 1.144 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001636/1.112, allocations: 0.4899 MB / 1.144 GB, free: 2.922 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/1.113, allocations: 0.764 MB / 1.145 GB, free: 2.09 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/1.114, allocations: 3.938 kB / 1.145 GB, free: 2.086 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.539e-05/1.114, allocations: 4 kB / 1.145 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.728e-05/1.114, allocations: 45.98 kB / 1.145 GB, free: 2.039 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006035/1.12, allocations: 3.551 MB / 1.148 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/1.121, allocations: 268.5 kB / 1.149 GB, free: 14.01 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005842/1.121, allocations: 178.8 kB / 1.149 GB, free: 13.84 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.801e-05/1.121, allocations: 20.3 kB / 1.149 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004544/1.122, allocations: 189 kB / 1.149 GB, free: 13.62 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.076e-06/1.122, allocations: 0 / 1.149 GB, free: 13.62 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0008426/1.123, allocations: 284.8 kB / 1.149 GB, free: 13.34 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/1.123, allocations: 59.41 kB / 1.149 GB, free: 13.27 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004966/1.123, allocations: 313.5 kB / 1.15 GB, free: 12.95 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 8.144e-05/1.123, allocations: 37.69 kB / 1.15 GB, free: 12.91 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/1.124, allocations: 323.2 kB / 1.15 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.000159/1.124, allocations: 119.3 kB / 1.15 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/1.124, allocations: 0 / 1.15 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002352/1.124, allocations: 358.7 kB / 1.15 GB, free: 12.11 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/1.125, allocations: 133.5 kB / 1.151 GB, free: 11.98 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00061/1.125, allocations: 368 kB / 1.151 GB, free: 11.52 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005/1.126, allocations: 167 kB / 1.151 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/1.126, allocations: 4 kB / 1.151 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001317/1.127, allocations: 0.5037 MB / 1.152 GB, free: 10.84 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001414/1.128, allocations: 2.692 MB / 1.154 GB, free: 7.938 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/1.128, allocations: 9.125 kB / 1.154 GB, free: 7.93 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.797e-05/1.129, allocations: 12 kB / 1.154 GB, free: 7.918 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007513/1.129, allocations: 107.8 kB / 1.154 GB, free: 7.812 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/1.129, allocations: 12 kB / 1.154 GB, free: 7.801 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005761/1.13, allocations: 39.58 kB / 1.154 GB, free: 7.762 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.079e-05/1.13, allocations: 35.98 kB / 1.154 GB, free: 7.727 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.654e-06/1.13, allocations: 4 kB / 1.154 GB, free: 7.723 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001148/1.131, allocations: 430.3 kB / 1.155 GB, free: 7.301 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/1.131, allocations: 11.98 kB / 1.155 GB, free: 7.289 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/1.131, allocations: 12 kB / 1.155 GB, free: 7.277 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/1.132, allocations: 103.8 kB / 1.155 GB, free: 7.176 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/1.132, allocations: 11.94 kB / 1.155 GB, free: 7.164 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004732/1.132, allocations: 38.05 kB / 1.155 GB, free: 7.129 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-05/1.132, allocations: 39.98 kB / 1.155 GB, free: 7.09 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.0002128/1.133, allocations: 148.4 kB / 1.155 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.788e-05/1.133, allocations: 45.59 kB / 1.155 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/1.134, allocations: 329.5 kB / 1.156 GB, free: 6.57 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/1.134, allocations: 4 kB / 1.156 GB, free: 6.566 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/1.134, allocations: 0 / 1.156 GB, free: 6.566 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/1.134, allocations: 9.859 kB / 1.156 GB, free: 6.559 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/1.136, allocations: 0.9671 MB / 1.157 GB, free: 5.527 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.136, allocations: 0 / 1.157 GB, free: 5.527 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/1.137, allocations: 43.86 kB / 1.157 GB, free: 5.484 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/1.137, allocations: 12.05 kB / 1.157 GB, free: 5.473 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/1.137, allocations: 4 kB / 1.157 GB, free: 5.469 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/1.137, allocations: 4 kB / 1.157 GB, free: 5.465 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.137, allocations: 0 / 1.157 GB, free: 5.465 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001391/1.138, allocations: 0.5974 MB / 1.157 GB, free: 4.832 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001903/1.14, allocations: 1.116 MB / 1.158 GB, free: 3.68 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/1.14, allocations: 148.7 kB / 1.158 GB, free: 3.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.396e-05/1.14, allocations: 0 / 1.158 GB, free: 3.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/1.141, allocations: 11.89 kB / 1.158 GB, free: 3.504 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/1.141, allocations: 45.62 kB / 1.158 GB, free: 3.461 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.908e-05/1.141, allocations: 18.52 kB / 1.158 GB, free: 3.445 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0003186/1.141, allocations: 196.6 kB / 1.159 GB, free: 3.25 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002898/1.144, allocations: 211.4 kB / 1.159 GB, free: 3.043 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.0002487/1.145, allocations: 132.9 kB / 1.159 GB, free: 2.91 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001694/1.146, allocations: 0.6593 MB / 1.16 GB, free: 2.254 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.146, allocations: 0 / 1.16 GB, free: 2.254 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0004112/1.147, allocations: 169.7 kB / 1.16 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/1.147, allocations: 83.16 kB / 1.16 GB, free: 2.016 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/1.15, allocations: 0.7038 MB / 1.161 GB, free: 1.281 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009172/1.151, allocations: 0.9797 MB / 1.162 GB, free: 284 kB / 0.7605 GB Notification: Performance of SimCode: time 1.263e-06/1.151, allocations: 0 / 1.162 GB, free: 284 kB / 0.7605 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)