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.636/1.636, allocations: 288.3 MB / 303.2 MB, free: 8.156 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.001106/0.001106, allocations: 181.8 kB / 371.8 MB, free: 10.28 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.77/1.77, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 101 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000418/0.0004181, allocations: 14.94 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2426, allocations: 115.3 MB / 0.9794 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8835/1.126, allocations: 164.3 MB / 1.14 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/1.127, allocations: 99.39 kB / 1.14 GB, free: 13.64 MB / 0.6823 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.04564/1.172, allocations: 21.18 MB / 1.161 GB, free: 16.68 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.964e-06/1.172, allocations: 0 / 1.161 GB, free: 16.68 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.536e-05/1.172, allocations: 20 kB / 1.161 GB, free: 16.66 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.001336/1.174, allocations: 0.8167 MB / 1.161 GB, free: 15.84 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/1.174, allocations: 15.95 kB / 1.161 GB, free: 15.82 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/1.174, allocations: 123 kB / 1.162 GB, free: 15.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/1.175, allocations: 412.9 kB / 1.162 GB, free: 15.32 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/1.175, allocations: 62.8 kB / 1.162 GB, free: 15.28 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/1.175, allocations: 76.06 kB / 1.162 GB, free: 15.23 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/1.176, allocations: 0.8668 MB / 1.163 GB, free: 14.54 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/1.176, allocations: 3.938 kB / 1.163 GB, free: 14.53 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.473e-05/1.176, allocations: 32.5 kB / 1.163 GB, free: 14.52 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.767e-05/1.177, allocations: 41.42 kB / 1.163 GB, free: 14.48 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009029/1.177, allocations: 0.562 MB / 1.164 GB, free: 14.11 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004052/1.181, allocations: 3.722 MB / 1.167 GB, free: 10.66 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005714/1.182, allocations: 302.7 kB / 1.167 GB, free: 10.45 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/1.182, allocations: 8.375 kB / 1.167 GB, free: 10.44 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003654/1.183, allocations: 216.7 kB / 1.168 GB, free: 10.27 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.156e-06/1.183, allocations: 0 / 1.168 GB, free: 10.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0007999/1.183, allocations: 448.5 kB / 1.168 GB, free: 9.938 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/1.183, allocations: 59.36 kB / 1.168 GB, free: 9.867 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/1.184, allocations: 389.3 kB / 1.169 GB, free: 9.559 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.459e-05/1.184, allocations: 51.5 kB / 1.169 GB, free: 9.516 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/1.184, allocations: 341.9 kB / 1.169 GB, free: 9.242 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/1.184, allocations: 127.3 kB / 1.169 GB, free: 9.137 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/1.184, allocations: 14.56 kB / 1.169 GB, free: 9.133 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001575/1.184, allocations: 359.7 kB / 1.169 GB, free: 8.793 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/1.185, allocations: 157 kB / 1.17 GB, free: 8.691 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/1.185, allocations: 397.1 kB / 1.17 GB, free: 8.281 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/1.185, allocations: 182.6 kB / 1.17 GB, free: 8.168 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.185, allocations: 7.938 kB / 1.17 GB, free: 8.16 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008652/1.186, allocations: 0.5943 MB / 1.171 GB, free: 7.699 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001096/1.187, allocations: 2.707 MB / 1.173 GB, free: 4.832 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/1.187, allocations: 8 kB / 1.173 GB, free: 4.824 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/1.187, allocations: 12 kB / 1.173 GB, free: 4.812 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/1.188, allocations: 110.4 kB / 1.173 GB, free: 4.711 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/1.188, allocations: 12 kB / 1.173 GB, free: 4.699 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/1.188, allocations: 66.55 kB / 1.174 GB, free: 4.645 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.557e-05/1.188, allocations: 30.94 kB / 1.174 GB, free: 4.617 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/1.188, allocations: 4 kB / 1.174 GB, free: 4.613 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00076/1.189, allocations: 0.5307 MB / 1.174 GB, free: 4.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/1.189, allocations: 8 kB / 1.174 GB, free: 4.223 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/1.189, allocations: 12 kB / 1.174 GB, free: 4.211 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/1.19, allocations: 103.2 kB / 1.174 GB, free: 4.117 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/1.19, allocations: 15.98 kB / 1.174 GB, free: 4.102 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/1.19, allocations: 54.28 kB / 1.174 GB, free: 4.059 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.736e-05/1.19, allocations: 41.23 kB / 1.174 GB, free: 4.027 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.0004309/1.19, allocations: 322 kB / 1.175 GB, free: 3.754 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/1.19, allocations: 43.44 kB / 1.175 GB, free: 3.711 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006695/1.191, allocations: 402 kB / 1.175 GB, free: 3.43 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/1.191, allocations: 4 kB / 1.175 GB, free: 3.426 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/1.191, allocations: 0 / 1.175 GB, free: 3.426 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/1.191, allocations: 3.984 kB / 1.175 GB, free: 3.422 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/1.193, allocations: 1.027 MB / 1.176 GB, free: 2.594 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/1.193, allocations: 0 / 1.176 GB, free: 2.594 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002181/1.193, allocations: 39.91 kB / 1.176 GB, free: 2.555 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/1.193, allocations: 4 kB / 1.176 GB, free: 2.551 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/1.193, allocations: 10.19 kB / 1.176 GB, free: 2.547 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/1.193, allocations: 11.94 kB / 1.176 GB, free: 2.535 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.193, allocations: 0 / 1.176 GB, free: 2.535 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008281/1.194, allocations: 0.618 MB / 1.177 GB, free: 2.062 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/1.194, allocations: 149 kB / 1.177 GB, free: 1.91 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/1.194, allocations: 13.25 kB / 1.177 GB, free: 1.906 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/1.194, allocations: 15.42 kB / 1.177 GB, free: 1.895 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/1.194, allocations: 53.52 kB / 1.177 GB, free: 1.852 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/1.194, allocations: 19.17 kB / 1.177 GB, free: 1.836 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002685/1.195, allocations: 261.5 kB / 1.177 GB, free: 1.629 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.195, allocations: 0 / 1.177 GB, free: 1.629 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008309/1.195, allocations: 233.7 kB / 1.177 GB, free: 1.43 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.0002135/1.196, allocations: 139.9 kB / 1.178 GB, free: 1.293 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001068/1.197, allocations: 0.7211 MB / 1.178 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.197, allocations: 4.062 kB / 1.178 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000252/1.197, allocations: 176.9 kB / 1.178 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/1.197, allocations: 93.22 kB / 1.179 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/1.199, allocations: 1.168 MB / 1.18 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/1.2, allocations: 0.9176 MB / 1.181 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.000418/1.2, allocations: 120.6 kB / 1.181 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/1.2, allocations: 51.42 kB / 1.181 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of SimCode: time 4.51e-07/1.2, allocations: 0 / 1.181 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of Templates: time 0.01093/1.211, allocations: 5.358 MB / 1.186 GB, free: 9.062 MB / 0.7136 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)