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.4-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.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-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.4-maint.8.1.x/package.mo): time 1.646/1.646, allocations: 289.7 MB / 302.3 MB, free: 2.066 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.001134/0.001134, allocations: 180.3 kB / 371.6 MB, free: 3.359 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.555/1.555, allocations: 205.1 MB / 0.6309 GB, free: 11.74 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.000937/0.0009371, allocations: 96.03 kB / 0.745 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.767e-05, allocations: 4 kB / 0.8662 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.247, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7616/1.009, allocations: 165.1 MB / 1.141 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/1.009, allocations: 84.2 kB / 1.141 GB, free: 26.05 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-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.4-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.0492/1.058, allocations: 21.05 MB / 1.162 GB, free: 15.31 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.42e-07/1.058, allocations: 4 kB / 1.162 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.324e-05/1.058, allocations: 19.94 kB / 1.162 GB, free: 15.29 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.001086/1.059, allocations: 0.7816 MB / 1.162 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/1.059, allocations: 8.031 kB / 1.163 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006107/1.06, allocations: 129.7 kB / 1.163 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/1.06, allocations: 413 kB / 1.163 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/1.061, allocations: 64.06 kB / 1.163 GB, free: 14.08 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.623e-05/1.061, allocations: 78.69 kB / 1.163 GB, free: 14.03 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/1.062, allocations: 0.8481 MB / 1.164 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/1.062, allocations: 4 kB / 1.164 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/1.062, allocations: 28 kB / 1.164 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.625e-05/1.062, allocations: 45.48 kB / 1.164 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007866/1.063, allocations: 0.5589 MB / 1.165 GB, free: 13.06 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/1.066, allocations: 3.698 MB / 1.168 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004688/1.066, allocations: 290.4 kB / 1.168 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/1.067, allocations: 194.2 kB / 1.169 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/1.067, allocations: 13.72 kB / 1.169 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/1.067, allocations: 213.8 kB / 1.169 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.454e-06/1.067, allocations: 0 / 1.169 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.00054/1.068, allocations: 319.9 kB / 1.169 GB, free: 9.359 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/1.068, allocations: 68.16 kB / 1.169 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/1.068, allocations: 382.7 kB / 1.17 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/1.068, allocations: 49.83 kB / 1.17 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/1.068, allocations: 343.2 kB / 1.17 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/1.068, allocations: 123.4 kB / 1.17 GB, free: 8.637 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/1.068, allocations: 16.12 kB / 1.17 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.058e-05/1.068, allocations: 362.9 kB / 1.17 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/1.069, allocations: 145.7 kB / 1.171 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/1.069, allocations: 391 kB / 1.171 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/1.069, allocations: 186.3 kB / 1.171 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.069, allocations: 0 / 1.171 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007161/1.07, allocations: 0.5816 MB / 1.172 GB, free: 7.211 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004233/1.07, allocations: 2.704 MB / 1.174 GB, free: 4.344 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/1.07, allocations: 8 kB / 1.174 GB, free: 4.336 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/1.07, allocations: 12 kB / 1.174 GB, free: 4.324 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/1.071, allocations: 107.2 kB / 1.175 GB, free: 4.227 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/1.071, allocations: 11.94 kB / 1.175 GB, free: 4.215 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/1.071, allocations: 64.61 kB / 1.175 GB, free: 4.16 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/1.071, allocations: 35.55 kB / 1.175 GB, free: 4.133 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.172e-06/1.071, allocations: 4 kB / 1.175 GB, free: 4.129 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006395/1.072, allocations: 0.5201 MB / 1.175 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.072, allocations: 8 kB / 1.175 GB, free: 3.73 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/1.072, allocations: 12 kB / 1.175 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/1.072, allocations: 101.9 kB / 1.175 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/1.072, allocations: 17.42 kB / 1.175 GB, free: 3.609 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/1.072, allocations: 54.98 kB / 1.175 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/1.072, allocations: 33.33 kB / 1.175 GB, free: 3.539 MB / 0.7448 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.0001142/1.073, allocations: 168.3 kB / 1.176 GB, free: 3.395 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-05/1.073, allocations: 51.38 kB / 1.176 GB, free: 3.344 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005429/1.073, allocations: 376.8 kB / 1.176 GB, free: 3.066 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.073, allocations: 4 kB / 1.176 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.073, allocations: 0 / 1.176 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.073, allocations: 3.984 kB / 1.176 GB, free: 3.059 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/1.074, allocations: 1.101 MB / 1.177 GB, free: 2.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/1.074, allocations: 0 / 1.177 GB, free: 2.125 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/1.075, allocations: 47.8 kB / 1.177 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/1.075, allocations: 0 / 1.177 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/1.075, allocations: 22.67 kB / 1.177 GB, free: 2.062 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/1.075, allocations: 8.062 kB / 1.177 GB, free: 2.055 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.075, allocations: 4 kB / 1.177 GB, free: 2.051 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006517/1.075, allocations: 0.6339 MB / 1.178 GB, free: 1.531 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/1.075, allocations: 148.7 kB / 1.178 GB, free: 1.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.47e-05/1.076, allocations: 14.31 kB / 1.178 GB, free: 1.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/1.076, allocations: 18.42 kB / 1.178 GB, free: 1.363 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/1.076, allocations: 47.44 kB / 1.178 GB, free: 1.324 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/1.076, allocations: 14.48 kB / 1.178 GB, free: 1.312 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002062/1.076, allocations: 260.1 kB / 1.178 GB, free: 1.109 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.6e-07/1.076, allocations: 0 / 1.178 GB, free: 1.109 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006792/1.077, allocations: 234 kB / 1.178 GB, free: 0.9102 MB / 0.7448 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.0001643/1.077, allocations: 139.3 kB / 1.179 GB, free: 0.7734 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008614/1.078, allocations: 0.7107 MB / 1.179 GB, free: 248 kB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.078, allocations: 0 / 1.179 GB, free: 248 kB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002136/1.078, allocations: 177.8 kB / 1.179 GB, free: 116 kB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/1.079, allocations: 92.11 kB / 1.179 GB, free: 48 kB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/1.08, allocations: 0.7214 MB / 1.18 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/1.08, allocations: 0.9225 MB / 1.181 GB, free: 14.46 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0004695/1.081, allocations: 130.8 kB / 1.181 GB, free: 14.34 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/1.081, allocations: 51.42 kB / 1.181 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of SimCode: time 1.723e-06/1.081, allocations: 0 / 1.181 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of Templates: time 0.01096/1.092, allocations: 5.888 MB / 1.187 GB, free: 8.48 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)