Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.398/2.398, allocations: 285 MB / 292.5 MB, free: 10.53 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001446/0.001446, allocations: 177 kB / 360.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.935/1.935, allocations: 205.3 MB / 0.6192 GB, free: 12.12 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 89.86 kB / 0.7322 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.224e-05, allocations: 4 kB / 0.8509 GB, free: 3.363 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8025/0.8026, allocations: 115.3 MB / 0.9634 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.283/1.086, allocations: 163.4 MB / 1.123 GB, free: 9.082 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/1.086, allocations: 88.58 kB / 1.123 GB, free: 8.996 MB / 0.7292 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0822/1.168, allocations: 20.89 MB / 1.143 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.423e-06/1.168, allocations: 0 / 1.143 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.909e-05/1.168, allocations: 27.88 kB / 1.143 GB, free: 4.039 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.001832/1.17, allocations: 0.7785 MB / 1.144 GB, free: 3.203 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/1.17, allocations: 8.031 kB / 1.144 GB, free: 3.195 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009179/1.171, allocations: 121 kB / 1.144 GB, free: 3.078 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/1.172, allocations: 413.8 kB / 1.145 GB, free: 2.637 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.81e-05/1.172, allocations: 24 kB / 1.145 GB, free: 2.613 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000269/1.173, allocations: 59.94 kB / 1.145 GB, free: 2.555 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002382/1.175, allocations: 487.9 kB / 1.145 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003242/1.178, allocations: 0.7484 MB / 1.146 GB, free: 1.27 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/1.179, allocations: 3.938 kB / 1.146 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/1.179, allocations: 4 kB / 1.146 GB, free: 1.262 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/1.179, allocations: 41.98 kB / 1.146 GB, free: 1.223 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009263/1.188, allocations: 3.552 MB / 1.15 GB, free: 13.46 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/1.189, allocations: 268.5 kB / 1.15 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008017/1.19, allocations: 182.2 kB / 1.15 GB, free: 13.01 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 6.144e-05/1.19, allocations: 4.375 kB / 1.15 GB, free: 13 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000716/1.191, allocations: 205 kB / 1.15 GB, free: 12.79 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 5.29e-06/1.191, allocations: 3.938 kB / 1.15 GB, free: 12.79 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.001257/1.192, allocations: 288.9 kB / 1.15 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/1.192, allocations: 67.11 kB / 1.151 GB, free: 12.42 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007326/1.193, allocations: 305.8 kB / 1.151 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001188/1.193, allocations: 37.7 kB / 1.151 GB, free: 12.08 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004927/1.194, allocations: 351.2 kB / 1.151 GB, free: 11.73 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/1.194, allocations: 126.4 kB / 1.151 GB, free: 11.6 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.771e-05/1.194, allocations: 3.188 kB / 1.151 GB, free: 11.6 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002288/1.194, allocations: 354.8 kB / 1.152 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/1.195, allocations: 133.5 kB / 1.152 GB, free: 11.11 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008501/1.196, allocations: 367.9 kB / 1.152 GB, free: 10.66 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006787/1.197, allocations: 166 kB / 1.152 GB, free: 10.5 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/1.197, allocations: 4 kB / 1.152 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00205/1.199, allocations: 0.4942 MB / 1.153 GB, free: 9.988 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001619/1.2, allocations: 2.706 MB / 1.155 GB, free: 7.074 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.172e-05/1.201, allocations: 8 kB / 1.155 GB, free: 7.066 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.963e-05/1.201, allocations: 12 kB / 1.155 GB, free: 7.055 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/1.202, allocations: 107.8 kB / 1.156 GB, free: 6.949 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/1.202, allocations: 11.94 kB / 1.156 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/1.202, allocations: 43.58 kB / 1.156 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.828e-05/1.202, allocations: 28 kB / 1.156 GB, free: 6.867 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/1.202, allocations: 4 kB / 1.156 GB, free: 6.863 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001134/1.203, allocations: 437.4 kB / 1.156 GB, free: 6.434 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/1.203, allocations: 8 kB / 1.156 GB, free: 6.426 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/1.203, allocations: 12.81 kB / 1.156 GB, free: 6.414 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/1.204, allocations: 103.8 kB / 1.156 GB, free: 6.312 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/1.204, allocations: 12 kB / 1.156 GB, free: 6.301 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/1.205, allocations: 35.67 kB / 1.156 GB, free: 6.266 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.121e-05/1.205, allocations: 28.31 kB / 1.156 GB, free: 6.238 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 () * 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.0002272/1.205, allocations: 161.7 kB / 1.156 GB, free: 6.07 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/1.205, allocations: 39.53 kB / 1.156 GB, free: 6.031 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009892/1.206, allocations: 338.9 kB / 1.157 GB, free: 5.695 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/1.206, allocations: 11.94 kB / 1.157 GB, free: 5.684 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/1.206, allocations: 0 / 1.157 GB, free: 5.684 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/1.206, allocations: 3.984 kB / 1.157 GB, free: 5.68 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/1.208, allocations: 0.9626 MB / 1.158 GB, free: 4.652 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/1.208, allocations: 3.938 kB / 1.158 GB, free: 4.648 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/1.209, allocations: 43.92 kB / 1.158 GB, free: 4.605 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/1.209, allocations: 4 kB / 1.158 GB, free: 4.602 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/1.209, allocations: 7.984 kB / 1.158 GB, free: 4.594 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/1.209, allocations: 12.02 kB / 1.158 GB, free: 4.582 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.209, allocations: 1.875 kB / 1.158 GB, free: 4.582 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/1.21, allocations: 0.5862 MB / 1.158 GB, free: 3.961 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/1.211, allocations: 148.6 kB / 1.158 GB, free: 3.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.256e-05/1.211, allocations: 12 kB / 1.158 GB, free: 3.785 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/1.211, allocations: 7.938 kB / 1.158 GB, free: 3.777 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/1.211, allocations: 48.36 kB / 1.159 GB, free: 3.73 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/1.211, allocations: 12 kB / 1.159 GB, free: 3.719 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003154/1.212, allocations: 200.6 kB / 1.159 GB, free: 3.523 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5.62e-07/1.212, allocations: 0 / 1.159 GB, free: 3.523 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001321/1.213, allocations: 211.5 kB / 1.159 GB, free: 3.316 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) * 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.0002886/1.213, allocations: 122.7 kB / 1.159 GB, free: 3.188 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001648/1.215, allocations: 0.6466 MB / 1.16 GB, free: 2.547 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.215, allocations: 384 / 1.16 GB, free: 2.547 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003901/1.215, allocations: 161.6 kB / 1.16 GB, free: 2.391 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008073/1.216, allocations: 82.16 kB / 1.16 GB, free: 2.32 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/1.218, allocations: 0.7045 MB / 1.161 GB, free: 1.582 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000723/1.219, allocations: 0.9235 MB / 1.162 GB, free: 0.6289 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0008223/1.22, allocations: 118.1 kB / 1.162 GB, free: 0.5195 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/1.22, allocations: 43.42 kB / 1.162 GB, free: 488 kB / 0.7605 GB Notification: Performance of SimCode: time 1.253e-06/1.22, allocations: 0 / 1.162 GB, free: 488 kB / 0.7605 GB Notification: Performance of Templates: time 0.01844/1.239, allocations: 5.384 MB / 1.167 GB, free: 11.22 MB / 0.7761 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)