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.579/1.579, allocations: 285.4 MB / 298 MB, free: 5.992 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.001193/0.001193, allocations: 168.9 kB / 366.4 MB, free: 2.102 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.495/1.495, allocations: 205.1 MB / 0.6248 GB, free: 7.738 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.0009071/0.0009072, allocations: 100.7 kB / 0.738 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.149e-05, allocations: 4 kB / 0.8583 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.65/0.65, allocations: 115.3 MB / 0.9709 GB, free: 77.91 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2149/0.865, allocations: 164.2 MB / 1.131 GB, free: 3.594 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003468/0.8654, allocations: 87.94 kB / 1.131 GB, free: 3.508 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.05243/0.9179, allocations: 21.05 MB / 1.152 GB, free: 14.42 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9179, allocations: 0 / 1.152 GB, free: 14.42 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.695e-05/0.918, allocations: 19.94 kB / 1.152 GB, free: 14.4 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.001273/0.9193, allocations: 0.7824 MB / 1.153 GB, free: 13.57 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.9193, allocations: 12.03 kB / 1.153 GB, free: 13.55 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.9199, allocations: 119 kB / 1.153 GB, free: 13.44 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.9205, allocations: 409.8 kB / 1.153 GB, free: 13 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.35e-05/0.9206, allocations: 65.98 kB / 1.153 GB, free: 12.93 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.9207, allocations: 83.98 kB / 1.153 GB, free: 12.85 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.9221, allocations: 0.8487 MB / 1.154 GB, free: 11.94 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.9221, allocations: 3.938 kB / 1.154 GB, free: 11.94 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.349e-05/0.9222, allocations: 35.98 kB / 1.154 GB, free: 11.9 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.648e-05/0.9222, allocations: 41.98 kB / 1.154 GB, free: 11.86 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008787/0.9231, allocations: 0.5485 MB / 1.155 GB, free: 11.32 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.9271, allocations: 3.703 MB / 1.158 GB, free: 7.398 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.9277, allocations: 289 kB / 1.159 GB, free: 7.102 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.9281, allocations: 198.5 kB / 1.159 GB, free: 6.906 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.42e-05/0.9282, allocations: 16.28 kB / 1.159 GB, free: 6.891 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.9285, allocations: 204.7 kB / 1.159 GB, free: 6.68 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.146e-06/0.9285, allocations: 0 / 1.159 GB, free: 6.68 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0006478/0.9292, allocations: 332.2 kB / 1.159 GB, free: 6.348 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.9293, allocations: 63.36 kB / 1.159 GB, free: 6.273 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.9297, allocations: 382.3 kB / 1.16 GB, free: 5.895 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.417e-05/0.9298, allocations: 53.7 kB / 1.16 GB, free: 5.836 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.93, allocations: 343.4 kB / 1.16 GB, free: 5.496 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.9301, allocations: 130.4 kB / 1.16 GB, free: 5.367 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.9301, allocations: 12 kB / 1.16 GB, free: 5.355 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.9303, allocations: 362.8 kB / 1.161 GB, free: 4.992 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.9306, allocations: 145.5 kB / 1.161 GB, free: 4.852 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.931, allocations: 389.5 kB / 1.161 GB, free: 4.371 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.9313, allocations: 183.2 kB / 1.161 GB, free: 4.191 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.9313, allocations: 0 / 1.161 GB, free: 4.191 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008478/0.9322, allocations: 0.5842 MB / 1.162 GB, free: 3.598 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009891/0.9332, allocations: 2.697 MB / 1.165 GB, free: 0.6914 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.9332, allocations: 8 kB / 1.165 GB, free: 0.6836 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.9332, allocations: 14.06 kB / 1.165 GB, free: 0.6719 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/0.9336, allocations: 111.8 kB / 1.165 GB, free: 0.5625 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.9336, allocations: 12 kB / 1.165 GB, free: 0.5508 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.9339, allocations: 63.42 kB / 1.165 GB, free: 500 kB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.653e-05/0.934, allocations: 32 kB / 1.165 GB, free: 468 kB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.934, allocations: 4.781 kB / 1.165 GB, free: 464 kB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007451/0.9348, allocations: 0.5116 MB / 1.165 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.453e-06/0.9348, allocations: 11.94 kB / 1.165 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.9348, allocations: 20.08 kB / 1.165 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.9351, allocations: 107.8 kB / 1.165 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.9352, allocations: 8 kB / 1.165 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.9354, allocations: 55.61 kB / 1.165 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.9355, allocations: 35.95 kB / 1.165 GB, free: 15.71 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.0001582/0.9357, allocations: 163.4 kB / 1.166 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.665e-05/0.9357, allocations: 59.36 kB / 1.166 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006335/0.9364, allocations: 378.6 kB / 1.166 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.9364, allocations: 8 kB / 1.166 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.9364, allocations: 0 / 1.166 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.9364, allocations: 3.984 kB / 1.166 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.9379, allocations: 1.093 MB / 1.167 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.9379, allocations: 0 / 1.167 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.9382, allocations: 47.91 kB / 1.167 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.9382, allocations: 4.75 kB / 1.167 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.9382, allocations: 15.95 kB / 1.167 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.9382, allocations: 0 / 1.167 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.9382, allocations: 4 kB / 1.167 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008244/0.9391, allocations: 0.6408 MB / 1.168 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.9392, allocations: 143.5 kB / 1.168 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.9393, allocations: 12 kB / 1.168 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.9395, allocations: 19.98 kB / 1.168 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.9396, allocations: 50.31 kB / 1.168 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.9397, allocations: 19.98 kB / 1.168 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002528/0.9399, allocations: 253.2 kB / 1.168 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9399, allocations: 0 / 1.168 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007942/0.9407, allocations: 239.7 kB / 1.169 GB, free: 12.45 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.0002408/0.941, allocations: 135.9 kB / 1.169 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00109/0.9421, allocations: 0.7168 MB / 1.169 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9421, allocations: 4.125 kB / 1.169 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000253/0.9423, allocations: 170.5 kB / 1.17 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.9428, allocations: 99.23 kB / 1.17 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.9442, allocations: 0.7217 MB / 1.17 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.9446, allocations: 0.9199 MB / 1.171 GB, free: 9.633 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004847/0.9451, allocations: 134.4 kB / 1.171 GB, free: 9.508 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.9452, allocations: 43.42 kB / 1.171 GB, free: 9.465 MB / 0.7761 GB Notification: Performance of SimCode: time 2.41e-07/0.9452, allocations: 0 / 1.171 GB, free: 9.465 MB / 0.7761 GB Notification: Performance of Templates: time 0.01061/0.9559, allocations: 5.866 MB / 1.177 GB, free: 3.723 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)