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.585/1.585, allocations: 292.6 MB / 307.5 MB, free: 5.188 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.001048/0.001048, allocations: 189 kB / 377.1 MB, free: 1.52 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.841/1.841, allocations: 205.4 MB / 0.6367 GB, free: 8.559 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.0009475/0.0009471, allocations: 92.48 kB / 0.751 GB, free: 63.22 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006074/0.0006076, allocations: 8 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4224, allocations: 116.3 MB / 0.9884 GB, free: 6.75 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9218/1.344, allocations: 165.2 MB / 1.15 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/1.345, allocations: 95.77 kB / 1.15 GB, free: 14.77 MB / 0.7292 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.05007/1.395, allocations: 21.2 MB / 1.171 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.916e-06/1.395, allocations: 0 / 1.171 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.921e-05/1.395, allocations: 20 kB / 1.171 GB, free: 12.03 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.002208/1.397, allocations: 0.8158 MB / 1.171 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/1.397, allocations: 12.02 kB / 1.171 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009494/1.398, allocations: 119 kB / 1.171 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009753/1.399, allocations: 421.8 kB / 1.172 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-05/1.399, allocations: 65.98 kB / 1.172 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/1.399, allocations: 77.03 kB / 1.172 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/1.401, allocations: 0.8597 MB / 1.173 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/1.401, allocations: 3.984 kB / 1.173 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.373e-05/1.401, allocations: 32 kB / 1.173 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.441e-05/1.401, allocations: 45.92 kB / 1.173 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/1.402, allocations: 0.5637 MB / 1.173 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004747/1.407, allocations: 3.719 MB / 1.177 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/1.408, allocations: 293.1 kB / 1.177 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/1.408, allocations: 8.375 kB / 1.177 GB, free: 4.621 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/1.408, allocations: 219.3 kB / 1.178 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.655e-06/1.408, allocations: 4 kB / 1.178 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0009037/1.409, allocations: 441.4 kB / 1.178 GB, free: 3.957 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/1.409, allocations: 71.34 kB / 1.178 GB, free: 3.875 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005276/1.41, allocations: 380.4 kB / 1.178 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.394e-05/1.41, allocations: 45.7 kB / 1.178 GB, free: 3.445 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/1.41, allocations: 347.4 kB / 1.179 GB, free: 3.102 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.000137/1.41, allocations: 130.4 kB / 1.179 GB, free: 2.973 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/1.41, allocations: 16 kB / 1.179 GB, free: 2.957 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001767/1.411, allocations: 354.8 kB / 1.179 GB, free: 2.602 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/1.411, allocations: 161.9 kB / 1.179 GB, free: 2.441 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004619/1.411, allocations: 399.5 kB / 1.18 GB, free: 1.957 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/1.412, allocations: 186.1 kB / 1.18 GB, free: 1.777 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/1.412, allocations: 4 kB / 1.18 GB, free: 1.773 MB / 0.7448 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001106/1.413, allocations: 0.5955 MB / 1.181 GB, free: 1.168 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001489/1.414, allocations: 2.707 MB / 1.183 GB, free: 14.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/1.414, allocations: 8 kB / 1.183 GB, free: 14.25 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.283e-05/1.414, allocations: 12 kB / 1.183 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/1.415, allocations: 111.7 kB / 1.183 GB, free: 14.12 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.952e-05/1.415, allocations: 20.94 kB / 1.183 GB, free: 14.11 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/1.415, allocations: 59.44 kB / 1.183 GB, free: 14.05 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.494e-05/1.415, allocations: 35.98 kB / 1.183 GB, free: 14.01 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/1.415, allocations: 4 kB / 1.183 GB, free: 14.01 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009251/1.416, allocations: 0.5286 MB / 1.184 GB, free: 13.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/1.416, allocations: 8 kB / 1.184 GB, free: 13.47 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/1.416, allocations: 12 kB / 1.184 GB, free: 13.46 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/1.417, allocations: 103.8 kB / 1.184 GB, free: 13.36 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/1.417, allocations: 11.94 kB / 1.184 GB, free: 13.34 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/1.417, allocations: 59.52 kB / 1.184 GB, free: 13.29 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.926e-05/1.417, allocations: 36.31 kB / 1.184 GB, free: 13.25 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.0004849/1.418, allocations: 328.8 kB / 1.185 GB, free: 12.92 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.571e-05/1.418, allocations: 43.44 kB / 1.185 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007451/1.419, allocations: 391 kB / 1.185 GB, free: 12.49 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/1.419, allocations: 7.984 kB / 1.185 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.419, allocations: 2.188 kB / 1.185 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/1.419, allocations: 0 / 1.185 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001657/1.42, allocations: 1.034 MB / 1.186 GB, free: 11.39 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/1.42, allocations: 0 / 1.186 GB, free: 11.39 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002264/1.421, allocations: 43.91 kB / 1.186 GB, free: 11.35 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.856e-06/1.421, allocations: 4 kB / 1.186 GB, free: 11.35 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/1.421, allocations: 8 kB / 1.186 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/1.421, allocations: 7.953 kB / 1.186 GB, free: 11.33 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.421, allocations: 0 / 1.186 GB, free: 11.33 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009929/1.422, allocations: 0.6153 MB / 1.187 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/1.422, allocations: 148.5 kB / 1.187 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.313e-05/1.422, allocations: 11.98 kB / 1.187 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/1.422, allocations: 16 kB / 1.187 GB, free: 10.51 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/1.422, allocations: 56.25 kB / 1.187 GB, free: 10.45 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/1.422, allocations: 11.94 kB / 1.187 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003161/1.423, allocations: 263.2 kB / 1.187 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.31e-07/1.423, allocations: 4.062 kB / 1.187 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000971/1.424, allocations: 235.6 kB / 1.187 GB, free: 9.949 MB / 0.7605 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.0002843/1.424, allocations: 137.5 kB / 1.187 GB, free: 9.809 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001294/1.425, allocations: 0.7263 MB / 1.188 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.425, allocations: 0 / 1.188 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003215/1.426, allocations: 174.4 kB / 1.188 GB, free: 8.914 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/1.426, allocations: 95.34 kB / 1.188 GB, free: 8.824 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/1.428, allocations: 1.163 MB / 1.19 GB, free: 7.633 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/1.429, allocations: 0.9232 MB / 1.19 GB, free: 6.684 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0005104/1.43, allocations: 114.3 kB / 1.191 GB, free: 6.574 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/1.43, allocations: 47.42 kB / 1.191 GB, free: 6.527 MB / 0.7605 GB Notification: Performance of SimCode: time 3.91e-07/1.43, allocations: 0 / 1.191 GB, free: 6.527 MB / 0.7605 GB Notification: Performance of Templates: time 0.01274/1.443, allocations: 5.358 MB / 1.196 GB, free: 1.273 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)