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") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.696/2.696, allocations: 287.5 MB / 302.4 MB, free: 8.316 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.001604/0.001604, allocations: 180 kB / 371 MB, free: 10.79 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 2.048/2.048, allocations: 205.4 MB / 0.6297 GB, free: 10.5 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 98.91 kB / 0.743 GB, free: 6.496 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005183/0.0005183, allocations: 11.3 kB / 0.8658 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2286, allocations: 115.3 MB / 0.9784 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9722/1.201, allocations: 164.1 MB / 1.139 GB, free: 14.02 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/1.201, allocations: 92.17 kB / 1.139 GB, free: 14.01 MB / 0.6823 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 - DAE generated: time 0.1204/1.322, allocations: 21.19 MB / 1.159 GB, free: 17.86 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.975e-06/1.322, allocations: 0 / 1.159 GB, free: 17.86 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.384e-05/1.322, allocations: 23.98 kB / 1.159 GB, free: 17.84 MB / 0.698 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.00245/1.324, allocations: 0.8239 MB / 1.16 GB, free: 17.01 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/1.324, allocations: 16.02 kB / 1.16 GB, free: 17 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001427/1.326, allocations: 123 kB / 1.16 GB, free: 16.88 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/1.327, allocations: 409.7 kB / 1.161 GB, free: 16.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/1.327, allocations: 63.62 kB / 1.161 GB, free: 16.46 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/1.327, allocations: 81.62 kB / 1.161 GB, free: 16.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/1.33, allocations: 0.8565 MB / 1.162 GB, free: 15.72 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.137e-05/1.33, allocations: 7.938 kB / 1.162 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/1.33, allocations: 40.34 kB / 1.162 GB, free: 15.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.744e-05/1.33, allocations: 34 kB / 1.162 GB, free: 15.66 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/1.332, allocations: 0.5676 MB / 1.162 GB, free: 15.28 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007568/1.34, allocations: 3.71 MB / 1.166 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000915/1.341, allocations: 303.9 kB / 1.166 GB, free: 11.62 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.276e-05/1.341, allocations: 4.375 kB / 1.166 GB, free: 11.62 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005528/1.341, allocations: 218.7 kB / 1.166 GB, free: 11.45 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.707e-06/1.341, allocations: 0 / 1.166 GB, free: 11.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.00132/1.343, allocations: 451.9 kB / 1.167 GB, free: 11.11 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/1.343, allocations: 63.41 kB / 1.167 GB, free: 11.04 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006729/1.343, allocations: 385 kB / 1.167 GB, free: 10.74 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001009/1.344, allocations: 47.83 kB / 1.167 GB, free: 10.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/1.344, allocations: 342.8 kB / 1.168 GB, free: 10.43 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/1.344, allocations: 124.4 kB / 1.168 GB, free: 10.32 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/1.344, allocations: 14.44 kB / 1.168 GB, free: 10.32 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000199/1.344, allocations: 360.6 kB / 1.168 GB, free: 9.98 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004812/1.345, allocations: 154.2 kB / 1.168 GB, free: 9.879 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/1.346, allocations: 397.3 kB / 1.169 GB, free: 9.465 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005423/1.346, allocations: 193.6 kB / 1.169 GB, free: 9.34 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/1.346, allocations: 0 / 1.169 GB, free: 9.34 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001635/1.348, allocations: 0.5989 MB / 1.169 GB, free: 8.879 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001313/1.349, allocations: 2.703 MB / 1.172 GB, free: 6.012 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.868e-05/1.349, allocations: 8 kB / 1.172 GB, free: 6.004 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.481e-05/1.349, allocations: 12 kB / 1.172 GB, free: 5.992 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007984/1.35, allocations: 103.2 kB / 1.172 GB, free: 5.895 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.413e-05/1.35, allocations: 11.94 kB / 1.172 GB, free: 5.883 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006317/1.351, allocations: 73.92 kB / 1.172 GB, free: 5.824 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.22e-05/1.351, allocations: 35.42 kB / 1.172 GB, free: 5.793 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/1.351, allocations: 4 kB / 1.172 GB, free: 5.789 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001437/1.352, allocations: 0.5291 MB / 1.173 GB, free: 5.414 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/1.352, allocations: 8 kB / 1.173 GB, free: 5.406 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.352, allocations: 12.81 kB / 1.173 GB, free: 5.395 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000652/1.353, allocations: 102.9 kB / 1.173 GB, free: 5.297 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/1.353, allocations: 16 kB / 1.173 GB, free: 5.281 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000553/1.354, allocations: 64.84 kB / 1.173 GB, free: 5.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.74e-05/1.354, allocations: 33.69 kB / 1.173 GB, free: 5.203 MB / 0.698 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 () * Number of clocked 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.0005767/1.354, allocations: 319 kB / 1.173 GB, free: 4.934 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/1.354, allocations: 51.38 kB / 1.173 GB, free: 4.883 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/1.356, allocations: 389.6 kB / 1.174 GB, free: 4.613 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/1.356, allocations: 8 kB / 1.174 GB, free: 4.605 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/1.356, allocations: 0 / 1.174 GB, free: 4.605 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/1.356, allocations: 7.938 kB / 1.174 GB, free: 4.598 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/1.358, allocations: 1.021 MB / 1.175 GB, free: 3.777 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/1.358, allocations: 3.984 kB / 1.175 GB, free: 3.773 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/1.358, allocations: 39.92 kB / 1.175 GB, free: 3.734 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/1.358, allocations: 4 kB / 1.175 GB, free: 3.73 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/1.358, allocations: 19.5 kB / 1.175 GB, free: 3.719 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/1.358, allocations: 0 / 1.175 GB, free: 3.719 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.358, allocations: 4 kB / 1.175 GB, free: 3.715 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/1.36, allocations: 0.6124 MB / 1.176 GB, free: 3.246 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/1.36, allocations: 151.4 kB / 1.176 GB, free: 3.094 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.335e-05/1.36, allocations: 7.938 kB / 1.176 GB, free: 3.09 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/1.361, allocations: 23.12 kB / 1.176 GB, free: 3.074 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/1.361, allocations: 50.66 kB / 1.176 GB, free: 3.031 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.725e-05/1.361, allocations: 15.75 kB / 1.176 GB, free: 3.02 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004383/1.361, allocations: 259.9 kB / 1.176 GB, free: 2.816 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.01e-07/1.361, allocations: 0 / 1.176 GB, free: 2.816 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001225/1.363, allocations: 240.5 kB / 1.176 GB, free: 2.609 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.0002566/1.363, allocations: 136 kB / 1.176 GB, free: 2.477 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00188/1.365, allocations: 0.7246 MB / 1.177 GB, free: 1.938 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/1.365, allocations: 0 / 1.177 GB, free: 1.938 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004499/1.365, allocations: 180.5 kB / 1.177 GB, free: 1.801 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000801/1.366, allocations: 94.61 kB / 1.177 GB, free: 1.734 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/1.369, allocations: 1.163 MB / 1.178 GB, free: 0.6406 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/1.369, allocations: 0.9214 MB / 1.179 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0007223/1.37, allocations: 104.7 kB / 1.179 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/1.37, allocations: 53.92 kB / 1.18 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of SimCode: time 1.152e-06/1.37, allocations: 0 / 1.18 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of Templates: time 0.0185/1.389, allocations: 5.37 MB / 1.185 GB, free: 10.24 MB / 0.7136 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)