Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.651/1.651, allocations: 285.6 MB / 293.1 MB, free: 10.15 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.001041/0.001041, allocations: 176.9 kB / 361.4 MB, free: 6.809 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.626/1.626, allocations: 205.3 MB / 0.62 GB, free: 11.61 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.0007888/0.0007888, allocations: 99.48 kB / 0.733 GB, free: 44.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.715e-05/1.719e-05, allocations: 4 kB / 0.8518 GB, free: 2.715 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6033/0.6033, allocations: 115.3 MB / 0.9644 GB, free: 79.02 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2083/0.8117, allocations: 163.5 MB / 1.124 GB, free: 8.254 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.812, allocations: 87.95 kB / 1.124 GB, free: 8.168 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.0.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: Performance of FrontEnd - DAE generated: time 0.05053/0.8626, allocations: 20.88 MB / 1.145 GB, free: 3.242 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8626, allocations: 0 / 1.145 GB, free: 3.242 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.489e-05/0.8627, allocations: 27.88 kB / 1.145 GB, free: 3.215 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.001924/0.8646, allocations: 0.7785 MB / 1.145 GB, free: 2.379 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.8647, allocations: 14 kB / 1.145 GB, free: 2.367 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009182/0.8656, allocations: 119 kB / 1.145 GB, free: 2.25 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008358/0.8665, allocations: 413.8 kB / 1.146 GB, free: 1.805 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.213e-05/0.8665, allocations: 24 kB / 1.146 GB, free: 1.781 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.8667, allocations: 51.98 kB / 1.146 GB, free: 1.73 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001092/0.8678, allocations: 491.8 kB / 1.146 GB, free: 1.25 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.8693, allocations: 0.7484 MB / 1.147 GB, free: 448 kB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.8693, allocations: 7.938 kB / 1.147 GB, free: 440 kB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.8694, allocations: 7.969 kB / 1.147 GB, free: 432 kB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-05/0.8695, allocations: 45.98 kB / 1.147 GB, free: 388 kB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.8744, allocations: 3.547 MB / 1.151 GB, free: 12.63 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005451/0.875, allocations: 268.5 kB / 1.151 GB, free: 12.35 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.8754, allocations: 181.6 kB / 1.151 GB, free: 12.17 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.8754, allocations: 8.312 kB / 1.151 GB, free: 12.16 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.8758, allocations: 205 kB / 1.151 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 2.916e-06/0.8758, allocations: 0 / 1.151 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0006235/0.8765, allocations: 284.9 kB / 1.152 GB, free: 11.67 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.8765, allocations: 67.14 kB / 1.152 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.8769, allocations: 309.8 kB / 1.152 GB, free: 11.29 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/0.877, allocations: 37.7 kB / 1.152 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.8773, allocations: 347.2 kB / 1.152 GB, free: 10.9 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.8775, allocations: 126.2 kB / 1.152 GB, free: 10.78 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.8775, allocations: 0 / 1.152 GB, free: 10.78 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.8777, allocations: 358.8 kB / 1.153 GB, free: 10.42 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.878, allocations: 133.5 kB / 1.153 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.8783, allocations: 363.9 kB / 1.153 GB, free: 9.832 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.8787, allocations: 174 kB / 1.153 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.8787, allocations: 0 / 1.153 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008017/0.8795, allocations: 0.4983 MB / 1.154 GB, free: 9.152 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001003/0.8805, allocations: 2.701 MB / 1.156 GB, free: 6.242 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.8805, allocations: 8 kB / 1.156 GB, free: 6.234 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.8805, allocations: 16 kB / 1.157 GB, free: 6.219 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.8809, allocations: 99.77 kB / 1.157 GB, free: 6.121 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.8809, allocations: 19.92 kB / 1.157 GB, free: 6.102 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.8813, allocations: 39.58 kB / 1.157 GB, free: 6.062 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.8814, allocations: 35.98 kB / 1.157 GB, free: 6.027 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.8814, allocations: 5.25 kB / 1.157 GB, free: 6.023 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000667/0.882, allocations: 433.7 kB / 1.157 GB, free: 5.598 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.8821, allocations: 12.03 kB / 1.157 GB, free: 5.586 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.8821, allocations: 12 kB / 1.157 GB, free: 5.574 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.8824, allocations: 103.8 kB / 1.157 GB, free: 5.473 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.8824, allocations: 12 kB / 1.157 GB, free: 5.461 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.8827, allocations: 35.67 kB / 1.157 GB, free: 5.426 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.158e-05/0.8828, allocations: 28 kB / 1.157 GB, free: 5.398 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.0001561/0.883, allocations: 153.9 kB / 1.157 GB, free: 5.238 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.883, allocations: 39.47 kB / 1.157 GB, free: 5.199 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006179/0.8837, allocations: 339.7 kB / 1.158 GB, free: 4.863 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.8837, allocations: 4 kB / 1.158 GB, free: 4.859 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.8837, allocations: 0 / 1.158 GB, free: 4.859 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.8837, allocations: 7.984 kB / 1.158 GB, free: 4.852 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.8852, allocations: 0.9644 MB / 1.159 GB, free: 3.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.8852, allocations: 3.938 kB / 1.159 GB, free: 3.816 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.8854, allocations: 43.92 kB / 1.159 GB, free: 3.773 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.8854, allocations: 4 kB / 1.159 GB, free: 3.77 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.8855, allocations: 10.22 kB / 1.159 GB, free: 3.762 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.8855, allocations: 4 kB / 1.159 GB, free: 3.758 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8855, allocations: 3.953 kB / 1.159 GB, free: 3.754 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008024/0.8863, allocations: 0.594 MB / 1.159 GB, free: 3.125 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.8865, allocations: 144.6 kB / 1.16 GB, free: 2.965 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.289e-05/0.8866, allocations: 3.953 kB / 1.16 GB, free: 2.961 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.8867, allocations: 12 kB / 1.16 GB, free: 2.949 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.8869, allocations: 55.73 kB / 1.16 GB, free: 2.898 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.8869, allocations: 12 kB / 1.16 GB, free: 2.887 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001805/0.8871, allocations: 200.6 kB / 1.16 GB, free: 2.695 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8871, allocations: 0 / 1.16 GB, free: 2.695 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0007913/0.8879, allocations: 211.5 kB / 1.16 GB, free: 2.488 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.0002199/0.8881, allocations: 125.2 kB / 1.16 GB, free: 2.355 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.8892, allocations: 0.6455 MB / 1.161 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.8892, allocations: 1.438 kB / 1.161 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.8895, allocations: 165.6 kB / 1.161 GB, free: 1.559 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.89, allocations: 83.64 kB / 1.161 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.8916, allocations: 0.7012 MB / 1.162 GB, free: 0.75 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006456/0.8923, allocations: 0.9196 MB / 1.163 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004576/0.8927, allocations: 115.9 kB / 1.163 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.8928, allocations: 43.42 kB / 1.163 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of SimCode: time 7.22e-07/0.8928, allocations: 0 / 1.163 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of Templates: time 0.0115/0.9044, allocations: 5.386 MB / 1.168 GB, free: 10.4 MB / 0.7761 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)