Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.085/2.085, allocations: 284.9 MB / 292.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001587/0.001586, allocations: 181.3 kB / 360.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.1 MB / 0.6188 GB, free: 12.42 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001227/0.001226, allocations: 90.64 kB / 0.7318 GB, free: 44.95 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.324e-06, allocations: 0 / 0.8502 GB, free: 3.824 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5523/0.5523, allocations: 115.2 MB / 0.9628 GB, free: 78.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.7883, allocations: 163.3 MB / 1.122 GB, free: 9.43 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.7887, allocations: 88.56 kB / 1.122 GB, free: 9.344 MB / 0.7292 GB [/var/lib/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);. [/var/lib/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: Performance of FrontEnd: time 0.07672/0.8654, allocations: 20.49 MB / 1.142 GB, free: 4.832 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.608e-05/0.8655, allocations: 23.94 kB / 1.142 GB, free: 4.809 MB / 0.7448 GB 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.001724/0.8673, allocations: 0.7785 MB / 1.143 GB, free: 3.973 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.8673, allocations: 8.031 kB / 1.143 GB, free: 3.965 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009781/0.8683, allocations: 134.9 kB / 1.143 GB, free: 3.832 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.8692, allocations: 409.4 kB / 1.144 GB, free: 3.391 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/0.8692, allocations: 36 kB / 1.144 GB, free: 3.355 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.8694, allocations: 44 kB / 1.144 GB, free: 3.312 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001524/0.8709, allocations: 0.4959 MB / 1.144 GB, free: 2.816 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.8727, allocations: 0.7446 MB / 1.145 GB, free: 2.004 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.8727, allocations: 3.938 kB / 1.145 GB, free: 2 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.681e-05/0.8728, allocations: 11.98 kB / 1.145 GB, free: 1.988 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.715e-05/0.8729, allocations: 39.11 kB / 1.145 GB, free: 1.953 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.8783, allocations: 3.559 MB / 1.148 GB, free: 14.2 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007749/0.8791, allocations: 268.5 kB / 1.149 GB, free: 13.92 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005546/0.8797, allocations: 181.6 kB / 1.149 GB, free: 13.74 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.8797, allocations: 4.375 kB / 1.149 GB, free: 13.73 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004424/0.8802, allocations: 193 kB / 1.149 GB, free: 13.54 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.336e-06/0.8802, allocations: 0 / 1.149 GB, free: 13.54 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0007825/0.881, allocations: 284.8 kB / 1.149 GB, free: 13.25 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.8811, allocations: 59.41 kB / 1.149 GB, free: 13.18 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.8815, allocations: 309.5 kB / 1.15 GB, free: 12.87 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 7.613e-05/0.8816, allocations: 37.7 kB / 1.15 GB, free: 12.82 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.8819, allocations: 327.2 kB / 1.15 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.8821, allocations: 119.3 kB / 1.15 GB, free: 12.38 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.8821, allocations: 0 / 1.15 GB, free: 12.38 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001916/0.8823, allocations: 358.7 kB / 1.15 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.8828, allocations: 137.5 kB / 1.151 GB, free: 11.89 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.8834, allocations: 360 kB / 1.151 GB, free: 11.43 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.8838, allocations: 171 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.8838, allocations: 8 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001255/0.8851, allocations: 0.4994 MB / 1.152 GB, free: 10.76 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009847/0.8861, allocations: 2.698 MB / 1.154 GB, free: 7.848 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.8861, allocations: 9.125 kB / 1.154 GB, free: 7.84 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.8862, allocations: 12 kB / 1.154 GB, free: 7.828 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006969/0.8869, allocations: 103.8 kB / 1.154 GB, free: 7.727 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.8869, allocations: 15.94 kB / 1.154 GB, free: 7.711 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005466/0.8875, allocations: 43.58 kB / 1.154 GB, free: 7.668 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/0.8876, allocations: 28 kB / 1.154 GB, free: 7.641 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/0.8876, allocations: 4 kB / 1.154 GB, free: 7.637 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0011/0.8887, allocations: 438.6 kB / 1.155 GB, free: 7.207 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.8887, allocations: 4 kB / 1.155 GB, free: 7.203 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.8887, allocations: 16.06 kB / 1.155 GB, free: 7.188 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006208/0.8894, allocations: 109.1 kB / 1.155 GB, free: 7.082 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.8894, allocations: 15.94 kB / 1.155 GB, free: 7.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.8899, allocations: 37.17 kB / 1.155 GB, free: 7.031 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/0.89, allocations: 28 kB / 1.155 GB, free: 7.004 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.0001904/0.8902, allocations: 156.4 kB / 1.155 GB, free: 6.844 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.885e-05/0.8903, allocations: 43.53 kB / 1.155 GB, free: 6.801 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009916/0.8913, allocations: 330.8 kB / 1.156 GB, free: 6.477 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.8913, allocations: 4 kB / 1.156 GB, free: 6.473 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.8913, allocations: 4 kB / 1.156 GB, free: 6.469 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.8913, allocations: 6.422 kB / 1.156 GB, free: 6.465 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.8934, allocations: 0.9593 MB / 1.157 GB, free: 5.441 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.8935, allocations: 0 / 1.157 GB, free: 5.441 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003913/0.8939, allocations: 47.91 kB / 1.157 GB, free: 5.395 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.8939, allocations: 0 / 1.157 GB, free: 5.395 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.8939, allocations: 7.984 kB / 1.157 GB, free: 5.387 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.8939, allocations: 4 kB / 1.157 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.894, allocations: 0 / 1.157 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001257/0.8952, allocations: 0.5935 MB / 1.157 GB, free: 4.754 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.8954, allocations: 149.7 kB / 1.157 GB, free: 4.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.843e-05/0.8955, allocations: 0 / 1.157 GB, free: 4.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.8959, allocations: 16.05 kB / 1.157 GB, free: 4.574 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.896, allocations: 44.36 kB / 1.157 GB, free: 4.531 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.927e-05/0.8961, allocations: 16 kB / 1.157 GB, free: 4.516 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0003046/0.8964, allocations: 196.5 kB / 1.158 GB, free: 4.32 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001075/0.8975, allocations: 207.4 kB / 1.158 GB, free: 4.117 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.000217/0.8977, allocations: 125.9 kB / 1.158 GB, free: 3.988 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001549/0.8993, allocations: 0.6621 MB / 1.159 GB, free: 3.332 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8993, allocations: 0 / 1.159 GB, free: 3.332 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.8997, allocations: 170.8 kB / 1.159 GB, free: 3.164 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007467/0.9005, allocations: 81.19 kB / 1.159 GB, free: 3.09 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.9027, allocations: 0.7036 MB / 1.159 GB, free: 2.355 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008323/0.9035, allocations: 0.9736 MB / 1.16 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of SimCode: time 2.645e-06/0.9035, allocations: 1.5 kB / 1.16 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of Templates: time 0.02123/0.9248, allocations: 7.188 MB / 1.167 GB, free: 10.31 MB / 0.7761 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (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 & ./Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)