Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.378/1.378, allocations: 289.8 MB / 297 MB, free: 6.621 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.001115/0.001114, allocations: 180 kB / 366.3 MB, free: 1.93 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.073/1.073, allocations: 205.1 MB / 0.6256 GB, free: 5.766 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.0008419/0.000842, allocations: 82.75 kB / 0.7395 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.205/0.2059, allocations: 122.4 MB / 0.8591 GB, free: 13.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.459/0.6649, allocations: 116.3 MB / 0.9726 GB, free: 68.46 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1676/0.8325, allocations: 164.4 MB / 1.133 GB, free: 28 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.8328, allocations: 92.83 kB / 1.133 GB, free: 15.93 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4-maint.8.1.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.04637/0.8792, allocations: 21.3 MB / 1.154 GB, free: 10.45 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.8792, allocations: 12 kB / 1.154 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006041/0.8799, allocations: 123 kB / 1.154 GB, free: 10.32 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.8804, allocations: 417.3 kB / 1.155 GB, free: 9.867 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.8805, allocations: 31.98 kB / 1.155 GB, free: 9.836 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.165e-05/0.8806, allocations: 44 kB / 1.155 GB, free: 9.793 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007906/0.8814, allocations: 0.496 MB / 1.155 GB, free: 9.297 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.8824, allocations: 0.7484 MB / 1.156 GB, free: 8.484 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.8824, allocations: 0 / 1.156 GB, free: 8.484 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.214e-05/0.8825, allocations: 8 kB / 1.156 GB, free: 8.477 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-05/0.8825, allocations: 41.97 kB / 1.156 GB, free: 8.438 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/0.8857, allocations: 3.555 MB / 1.159 GB, free: 4.68 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.8861, allocations: 272.5 kB / 1.16 GB, free: 4.398 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.8865, allocations: 177.6 kB / 1.16 GB, free: 4.223 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.8865, allocations: 4.375 kB / 1.16 GB, free: 4.219 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.8868, allocations: 189.1 kB / 1.16 GB, free: 4.023 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 1.673e-06/0.8868, allocations: 3.938 kB / 1.16 GB, free: 4.02 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0004802/0.8873, allocations: 284.7 kB / 1.16 GB, free: 3.734 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.8873, allocations: 67.39 kB / 1.16 GB, free: 3.656 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.8876, allocations: 309.5 kB / 1.161 GB, free: 3.344 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.8877, allocations: 37.7 kB / 1.161 GB, free: 3.301 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.8879, allocations: 323.2 kB / 1.161 GB, free: 2.977 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 9.44e-05/0.888, allocations: 114.5 kB / 1.161 GB, free: 2.863 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.888, allocations: 0 / 1.161 GB, free: 2.863 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.8881, allocations: 358.7 kB / 1.161 GB, free: 2.504 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.8884, allocations: 137.5 kB / 1.162 GB, free: 2.371 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.8888, allocations: 368 kB / 1.162 GB, free: 1.914 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.889, allocations: 167.1 kB / 1.162 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.889, allocations: 7.938 kB / 1.162 GB, free: 1.742 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007074/0.8898, allocations: 0.5036 MB / 1.163 GB, free: 1.234 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009931/0.8908, allocations: 2.69 MB / 1.165 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.8908, allocations: 8 kB / 1.165 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.8908, allocations: 12 kB / 1.165 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.8912, allocations: 111.8 kB / 1.165 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/0.8912, allocations: 11.94 kB / 1.165 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003241/0.8915, allocations: 47.58 kB / 1.165 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.8916, allocations: 28 kB / 1.165 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.621e-06/0.8916, allocations: 4 kB / 1.165 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006052/0.8922, allocations: 433.8 kB / 1.166 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.8922, allocations: 8 kB / 1.166 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.8922, allocations: 12.91 kB / 1.166 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.8926, allocations: 103.8 kB / 1.166 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.8926, allocations: 19.94 kB / 1.166 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.8929, allocations: 35.67 kB / 1.166 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.8929, allocations: 28 kB / 1.166 GB, free: 13.49 MB / 0.7761 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.0001227/0.893, allocations: 154.3 kB / 1.166 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.063e-05/0.8931, allocations: 43.52 kB / 1.166 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005701/0.8937, allocations: 327.8 kB / 1.167 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.8937, allocations: 11.94 kB / 1.167 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.8937, allocations: 0 / 1.167 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.8937, allocations: 3.984 kB / 1.167 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.895, allocations: 0.9632 MB / 1.168 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.895, allocations: 0 / 1.168 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.8952, allocations: 47.91 kB / 1.168 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.8952, allocations: 4 kB / 1.168 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.8952, allocations: 0 / 1.168 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.8953, allocations: 7.984 kB / 1.168 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.8953, allocations: 3.938 kB / 1.168 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00072/0.896, allocations: 0.5896 MB / 1.168 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009931/0.897, allocations: 1.132 MB / 1.169 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.8971, allocations: 132.6 kB / 1.169 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.204e-05/0.8972, allocations: 7.984 kB / 1.169 GB, free: 9.906 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.8974, allocations: 11.91 kB / 1.169 GB, free: 9.895 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.8975, allocations: 44.36 kB / 1.169 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.8975, allocations: 12 kB / 1.169 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0001554/0.8977, allocations: 196.7 kB / 1.17 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00189/0.8996, allocations: 215.5 kB / 1.17 GB, free: 9.434 MB / 0.7761 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.000193/0.8998, allocations: 139.2 kB / 1.17 GB, free: 9.289 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0009244/0.9007, allocations: 0.6579 MB / 1.171 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.9007, allocations: 0 / 1.171 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.901, allocations: 169.6 kB / 1.171 GB, free: 8.465 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004611/0.9014, allocations: 92.88 kB / 1.171 GB, free: 8.379 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.9027, allocations: 0.6951 MB / 1.172 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/0.9033, allocations: 0.9742 MB / 1.173 GB, free: 6.652 MB / 0.7761 GB Notification: Performance of SimCode: time 1.513e-06/0.9033, allocations: 0 / 1.173 GB, free: 6.652 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)