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.437/2.437, allocations: 284.8 MB / 297.3 MB, free: 6.348 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.00144/0.001439, allocations: 180.8 kB / 365.7 MB, free: 2.594 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.005/2.005, allocations: 205.2 MB / 0.6241 GB, free: 8.172 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.001127/0.001127, allocations: 106 kB / 0.7372 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.205e-05/4.228e-05, allocations: 4 kB / 0.8574 GB, free: 13.72 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8026/0.8026, allocations: 115.2 MB / 0.97 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2738/1.076, allocations: 164 MB / 1.13 GB, free: 4.41 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/1.077, allocations: 89.08 kB / 1.13 GB, free: 4.324 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 - DAE generated: time 0.08693/1.164, allocations: 21.06 MB / 1.151 GB, free: 15.25 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.893e-06/1.164, allocations: 0 / 1.151 GB, free: 15.25 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 6.148e-05/1.164, allocations: 27.94 kB / 1.151 GB, free: 15.22 MB / 0.7605 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.00191/1.166, allocations: 0.7774 MB / 1.152 GB, free: 14.39 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/1.166, allocations: 8.031 kB / 1.152 GB, free: 14.39 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/1.167, allocations: 126.9 kB / 1.152 GB, free: 14.26 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009842/1.168, allocations: 409.9 kB / 1.152 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-05/1.168, allocations: 69.98 kB / 1.152 GB, free: 13.75 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/1.168, allocations: 79.95 kB / 1.152 GB, free: 13.68 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/1.17, allocations: 0.8458 MB / 1.153 GB, free: 12.77 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/1.17, allocations: 7.938 kB / 1.153 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/1.171, allocations: 28 kB / 1.153 GB, free: 12.73 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-05/1.171, allocations: 43.11 kB / 1.153 GB, free: 12.69 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/1.172, allocations: 0.5543 MB / 1.154 GB, free: 12.14 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006267/1.179, allocations: 3.698 MB / 1.157 GB, free: 8.223 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008719/1.179, allocations: 289.1 kB / 1.158 GB, free: 7.926 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/1.18, allocations: 202.4 kB / 1.158 GB, free: 7.727 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/1.18, allocations: 8.375 kB / 1.158 GB, free: 7.719 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005321/1.181, allocations: 212.9 kB / 1.158 GB, free: 7.5 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.246e-06/1.181, allocations: 0 / 1.158 GB, free: 7.5 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0009672/1.182, allocations: 332.2 kB / 1.158 GB, free: 7.168 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/1.182, allocations: 55.41 kB / 1.158 GB, free: 7.102 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006714/1.182, allocations: 390.3 kB / 1.159 GB, free: 6.715 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001004/1.183, allocations: 49.69 kB / 1.159 GB, free: 6.66 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003403/1.183, allocations: 344.6 kB / 1.159 GB, free: 6.32 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/1.183, allocations: 130.4 kB / 1.159 GB, free: 6.191 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/1.183, allocations: 16 kB / 1.159 GB, free: 6.176 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001735/1.183, allocations: 354.8 kB / 1.16 GB, free: 5.82 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004498/1.184, allocations: 149.5 kB / 1.16 GB, free: 5.676 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/1.185, allocations: 385.5 kB / 1.16 GB, free: 5.199 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000518/1.185, allocations: 187.2 kB / 1.16 GB, free: 5.016 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/1.185, allocations: 0 / 1.16 GB, free: 5.016 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00156/1.187, allocations: 0.5816 MB / 1.161 GB, free: 4.426 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.00117/1.188, allocations: 2.705 MB / 1.163 GB, free: 1.512 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/1.188, allocations: 12 kB / 1.163 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.007e-05/1.188, allocations: 12 kB / 1.163 GB, free: 1.488 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007536/1.189, allocations: 103.8 kB / 1.164 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-05/1.189, allocations: 8.844 kB / 1.164 GB, free: 1.379 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/1.189, allocations: 67.42 kB / 1.164 GB, free: 1.312 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.988e-05/1.189, allocations: 28 kB / 1.164 GB, free: 1.285 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/1.189, allocations: 4 kB / 1.164 GB, free: 1.281 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001319/1.191, allocations: 0.5209 MB / 1.164 GB, free: 0.7578 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/1.191, allocations: 8 kB / 1.164 GB, free: 0.75 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/1.191, allocations: 12 kB / 1.164 GB, free: 0.7383 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/1.192, allocations: 99.77 kB / 1.164 GB, free: 0.6406 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.177e-05/1.192, allocations: 15.98 kB / 1.164 GB, free: 0.625 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005999/1.192, allocations: 63.22 kB / 1.164 GB, free: 0.5664 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.452e-05/1.192, allocations: 31.56 kB / 1.164 GB, free: 0.5391 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.0002612/1.193, allocations: 172.8 kB / 1.165 GB, free: 376 kB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/1.193, allocations: 43.44 kB / 1.165 GB, free: 332 kB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/1.194, allocations: 388.8 kB / 1.165 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/1.194, allocations: 4 kB / 1.165 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.194, allocations: 0 / 1.165 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/1.194, allocations: 7.938 kB / 1.165 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/1.196, allocations: 1.096 MB / 1.166 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/1.196, allocations: 0 / 1.166 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/1.197, allocations: 43.92 kB / 1.166 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/1.197, allocations: 3.953 kB / 1.166 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-05/1.197, allocations: 11.98 kB / 1.166 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/1.197, allocations: 4 kB / 1.166 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.197, allocations: 4.062 kB / 1.166 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/1.198, allocations: 0.6329 MB / 1.167 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/1.198, allocations: 148.5 kB / 1.167 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/1.199, allocations: 12.62 kB / 1.167 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/1.199, allocations: 16.05 kB / 1.167 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/1.199, allocations: 44.38 kB / 1.167 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.088e-05/1.199, allocations: 23.97 kB / 1.167 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0004647/1.2, allocations: 257.2 kB / 1.167 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.3e-07/1.2, allocations: 0 / 1.167 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001192/1.201, allocations: 239.7 kB / 1.167 GB, free: 13.27 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.0002823/1.201, allocations: 145.3 kB / 1.168 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001796/1.203, allocations: 0.7046 MB / 1.168 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/1.203, allocations: 4 kB / 1.168 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004567/1.204, allocations: 174.5 kB / 1.168 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008996/1.204, allocations: 102 kB / 1.169 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/1.207, allocations: 0.7157 MB / 1.169 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006795/1.207, allocations: 0.9238 MB / 1.17 GB, free: 10.46 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0009418/1.208, allocations: 129 kB / 1.17 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/1.209, allocations: 47.42 kB / 1.17 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of SimCode: time 1.502e-06/1.209, allocations: 4 kB / 1.17 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of Templates: time 0.02037/1.229, allocations: 5.876 MB / 1.176 GB, free: 4.535 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)