Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.638/1.638, allocations: 293 MB / 309 MB, free: 4.797 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.0009941/0.0009942, allocations: 175.2 kB / 378.7 MB, free: 1.012 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.521/1.521, allocations: 205.4 MB / 0.6383 GB, free: 9.152 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.0008082/0.0008083, allocations: 91.55 kB / 0.7527 GB, free: 62.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004324/0.0004326, allocations: 12 kB / 0.8768 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2942, allocations: 116.4 MB / 0.9904 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9278/1.222, allocations: 165.3 MB / 1.152 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/1.223, allocations: 90.44 kB / 1.152 GB, free: 13.98 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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.1.1-maint.8.1.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.04818/1.271, allocations: 21.22 MB / 1.173 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.065e-06/1.271, allocations: 0 / 1.173 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.059e-05/1.271, allocations: 16 kB / 1.173 GB, free: 10.96 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.001458/1.272, allocations: 0.8238 MB / 1.174 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.272, allocations: 8.031 kB / 1.174 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006207/1.273, allocations: 124 kB / 1.174 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006052/1.274, allocations: 422.9 kB / 1.174 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.712e-05/1.274, allocations: 66.36 kB / 1.174 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/1.274, allocations: 80.38 kB / 1.174 GB, free: 9.359 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/1.275, allocations: 0.8635 MB / 1.175 GB, free: 8.434 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/1.275, allocations: 7.938 kB / 1.175 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/1.275, allocations: 39.92 kB / 1.175 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.514e-05/1.275, allocations: 41.97 kB / 1.175 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/1.276, allocations: 0.5658 MB / 1.176 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004597/1.281, allocations: 3.709 MB / 1.179 GB, free: 3.855 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006385/1.282, allocations: 308.9 kB / 1.18 GB, free: 3.539 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003785/1.282, allocations: 200 kB / 1.18 GB, free: 3.344 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/1.282, allocations: 8.375 kB / 1.18 GB, free: 3.336 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/1.282, allocations: 219.8 kB / 1.18 GB, free: 3.109 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 3.697e-06/1.283, allocations: 0 / 1.18 GB, free: 3.109 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0008934/1.283, allocations: 441.4 kB / 1.18 GB, free: 2.672 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/1.283, allocations: 55.41 kB / 1.18 GB, free: 2.605 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/1.284, allocations: 433.1 kB / 1.181 GB, free: 2.176 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.227e-05/1.284, allocations: 49.7 kB / 1.181 GB, free: 2.121 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000272/1.284, allocations: 335.5 kB / 1.181 GB, free: 1.785 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/1.284, allocations: 130.4 kB / 1.181 GB, free: 1.656 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/1.285, allocations: 12 kB / 1.181 GB, free: 1.645 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002055/1.285, allocations: 362.8 kB / 1.182 GB, free: 1.281 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/1.285, allocations: 157.9 kB / 1.182 GB, free: 1.125 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/1.286, allocations: 387.6 kB / 1.182 GB, free: 0.6484 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/1.286, allocations: 0.4989 MB / 1.183 GB, free: 56 kB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/1.286, allocations: 4 kB / 1.183 GB, free: 52 kB / 0.7448 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0009755/1.287, allocations: 0.6 MB / 1.183 GB, free: 15.44 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002708/1.287, allocations: 293.2 kB / 1.184 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/1.288, allocations: 4 kB / 1.184 GB, free: 15.05 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.467e-05/1.288, allocations: 17.8 kB / 1.184 GB, free: 15.04 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/1.288, allocations: 103.8 kB / 1.184 GB, free: 14.94 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-05/1.288, allocations: 19.92 kB / 1.184 GB, free: 14.92 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003652/1.288, allocations: 63.45 kB / 1.184 GB, free: 14.86 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/1.288, allocations: 36 kB / 1.184 GB, free: 14.82 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/1.288, allocations: 4 kB / 1.184 GB, free: 14.82 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008315/1.289, allocations: 0.5248 MB / 1.184 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/1.289, allocations: 4 kB / 1.184 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/1.289, allocations: 16.09 kB / 1.184 GB, free: 14.27 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/1.29, allocations: 103.8 kB / 1.184 GB, free: 14.17 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/1.29, allocations: 15.94 kB / 1.184 GB, free: 14.15 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/1.29, allocations: 55.52 kB / 1.185 GB, free: 14.1 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/1.29, allocations: 36.86 kB / 1.185 GB, free: 14.06 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 () * 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.000478/1.29, allocations: 320.8 kB / 1.185 GB, free: 13.74 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-05/1.291, allocations: 51.38 kB / 1.185 GB, free: 13.69 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007123/1.291, allocations: 383.4 kB / 1.185 GB, free: 13.32 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/1.291, allocations: 7.938 kB / 1.185 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/1.291, allocations: 0 / 1.185 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/1.291, allocations: 11.92 kB / 1.185 GB, free: 13.3 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/1.293, allocations: 1.096 MB / 1.186 GB, free: 12.13 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/1.293, allocations: 5.922 kB / 1.186 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/1.293, allocations: 47.84 kB / 1.186 GB, free: 12.08 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/1.293, allocations: 4 kB / 1.186 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/1.293, allocations: 12 kB / 1.186 GB, free: 12.06 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/1.293, allocations: 0 / 1.186 GB, free: 12.06 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/1.293, allocations: 7.984 kB / 1.186 GB, free: 12.05 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009814/1.294, allocations: 0.614 MB / 1.187 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/1.295, allocations: 156.5 kB / 1.187 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.432e-05/1.295, allocations: 12 kB / 1.187 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/1.295, allocations: 8 kB / 1.187 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/1.295, allocations: 60.23 kB / 1.187 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/1.295, allocations: 16.06 kB / 1.187 GB, free: 11.15 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003075/1.295, allocations: 267.1 kB / 1.188 GB, free: 10.89 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.7e-07/1.295, allocations: 3.938 kB / 1.188 GB, free: 10.89 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0009846/1.296, allocations: 231.6 kB / 1.188 GB, free: 10.66 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) * Number of clocked states: 0 () * 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.0002754/1.297, allocations: 138.2 kB / 1.188 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001153/1.298, allocations: 0.7146 MB / 1.189 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/1.298, allocations: 320 / 1.189 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002693/1.298, allocations: 186.4 kB / 1.189 GB, free: 9.621 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006507/1.299, allocations: 90.98 kB / 1.189 GB, free: 9.535 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001937/1.301, allocations: 1.195 MB / 1.19 GB, free: 8.312 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/1.301, allocations: 0.9115 MB / 1.191 GB, free: 7.375 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0004479/1.302, allocations: 109.7 kB / 1.191 GB, free: 7.273 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/1.302, allocations: 51.36 kB / 1.191 GB, free: 7.223 MB / 0.7605 GB Notification: Performance of SimCode: time 1.142e-06/1.302, allocations: 0 / 1.191 GB, free: 7.223 MB / 0.7605 GB Notification: Performance of Templates: time 0.01116/1.313, allocations: 5.455 MB / 1.196 GB, free: 1.867 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)