Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 110 kB / 18.94 MB, free: 2.793 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 190.6 kB / 22.23 MB, free: 5.234 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002602/0.002602, allocations: 288 kB / 306.5 MB, free: 8.32 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.207/1.207, allocations: 180.9 MB / 0.53 GB, free: 14.48 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple")
translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002816/0.002816, allocations: 101.5 kB / 0.7308 GB, free: 38.69 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1694, allocations: 94.19 MB / 0.8228 GB, free: 1.785 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003372/0.1728, allocations: 1.966 MB / 0.8247 GB, free: 15.8 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.00154/0.1743, allocations: 0.8855 MB / 0.8256 GB, free: 14.91 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.1744, allocations: 7.938 kB / 0.8256 GB, free: 14.9 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.1747, allocations: 47.62 kB / 0.8256 GB, free: 14.86 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.1748, allocations: 55.56 kB / 0.8257 GB, free: 14.8 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.1752, allocations: 95.75 kB / 0.8258 GB, free: 14.71 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0002692/0.1754, allocations: 195.2 kB / 0.826 GB, free: 14.52 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.472e-05/0.1755, allocations: 17.69 kB / 0.826 GB, free: 14.49 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1757, allocations: 87.62 kB / 0.8261 GB, free: 14.41 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.1759, allocations: 79.67 kB / 0.8261 GB, free: 14.33 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.1759, allocations: 12 kB / 0.8262 GB, free: 14.32 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1761, allocations: 63.95 kB / 0.8262 GB, free: 14.25 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 4.622e-05/0.1761, allocations: 31.84 kB / 0.8262 GB, free: 14.22 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 9.649e-05/0.1762, allocations: 75.59 kB / 0.8263 GB, free: 14.15 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.000304/0.1765, allocations: 187.2 kB / 0.8265 GB, free: 13.96 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.1765, allocations: 0 / 0.8265 GB, free: 13.96 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.182e-06/0.1765, allocations: 0 / 0.8265 GB, free: 13.96 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 5.811e-06/0.1765, allocations: 0 / 0.8265 GB, free: 13.96 MB / 0.5762 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 19
 * Number of variables: 19
Notification: Performance of Generate backend data structure: time 0.000984/0.1775, allocations: 443 kB / 0.8269 GB, free: 13.5 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.1775, allocations: 8.031 kB / 0.8269 GB, free: 13.49 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.862e-05/0.1776, allocations: 20.84 kB / 0.8269 GB, free: 13.47 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.1778, allocations: 182.2 kB / 0.8271 GB, free: 13.27 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.1779, allocations: 4.375 kB / 0.8271 GB, free: 13.26 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1779, allocations: 12.38 kB / 0.8271 GB, free: 13.25 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.1782, allocations: 124.5 kB / 0.8273 GB, free: 13.12 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1782, allocations: 0 / 0.8273 GB, free: 13.12 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.1782, allocations: 4 kB / 0.8273 GB, free: 13.12 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1783, allocations: 7.938 kB / 0.8273 GB, free: 13.11 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003427/0.1786, allocations: 103.8 kB / 0.8274 GB, free: 13.01 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.1793, allocations: 395.5 kB / 0.8277 GB, free: 12.58 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003585/0.1796, allocations: 118.5 kB / 0.8279 GB, free: 12.46 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.1798, allocations: 68.81 kB / 0.8279 GB, free: 12.39 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0004826/0.1803, allocations: 59.92 kB / 0.828 GB, free: 12.33 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.1806, allocations: 135.5 kB / 0.8281 GB, free: 12.18 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.1806, allocations: 4 kB / 0.8281 GB, free: 12.18 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=16): time 0.0006724/0.1813, allocations: 226.9 kB / 0.8283 GB, free: 11.95 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.1814, allocations: 55.41 kB / 0.8284 GB, free: 11.89 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.1815, allocations: 192 kB / 0.8286 GB, free: 11.69 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.1816, allocations: 29.7 kB / 0.8286 GB, free: 11.66 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 8.273e-05/0.1817, allocations: 112.1 kB / 0.8287 GB, free: 11.54 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 6.014e-05/0.1817, allocations: 63.53 kB / 0.8288 GB, free: 11.48 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.1818, allocations: 33.7 kB / 0.8288 GB, free: 11.44 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.000147/0.1819, allocations: 330.8 kB / 0.8291 GB, free: 11.11 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1821, allocations: 76.8 kB / 0.8292 GB, free: 11.03 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.1824, allocations: 88.95 kB / 0.8293 GB, free: 10.94 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 2.707/2.889, allocations: 378.8 MB / 1.199 GB, free: 10.96 MB / 0.7481 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/2.889, allocations: 2.297 kB / 1.199 GB, free: 10.96 MB / 0.7481 GB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005077/2.89, allocations: 258.4 kB / 1.199 GB, free: 10.77 MB / 0.7481 GB
Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/2.89, allocations: 37.75 kB / 1.199 GB, free: 10.72 MB / 0.7481 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/2.89, allocations: 0 / 1.199 GB, free: 10.72 MB / 0.7481 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/2.89, allocations: 4 kB / 1.199 GB, free: 10.72 MB / 0.7481 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/2.89, allocations: 44.5 kB / 1.199 GB, free: 10.68 MB / 0.7481 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/2.89, allocations: 0 / 1.199 GB, free: 10.68 MB / 0.7481 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/2.89, allocations: 21.44 kB / 1.2 GB, free: 10.67 MB / 0.7481 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/2.89, allocations: 10.44 kB / 1.2 GB, free: 10.66 MB / 0.7481 GB
Warning: Assuming fixed start value for the following 4 variables:
         battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true )  \"Total energy charged to the battery\" type: Real
         battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true )  \"Total energy taken from the battery\" type: Real
         battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true )  \"Available charge of the battery\" type: Real
         battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true )  \"Bound charge of the battery\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (22):
 * Single equations (assignments): 21
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001794/2.89, allocations: 159.4 kB / 1.2 GB, free: 10.52 MB / 0.7481 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/2.891, allocations: 17.52 kB / 1.2 GB, free: 10.51 MB / 0.7481 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005509/2.891, allocations: 239.5 kB / 1.2 GB, free: 10.34 MB / 0.7481 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/2.891, allocations: 4 kB / 1.2 GB, free: 10.33 MB / 0.7481 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/2.891, allocations: 0 / 1.2 GB, free: 10.33 MB / 0.7481 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/2.891, allocations: 0 / 1.2 GB, free: 10.33 MB / 0.7481 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/2.891, allocations: 233.8 kB / 1.2 GB, free: 10.11 MB / 0.7481 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/2.891, allocations: 0 / 1.2 GB, free: 10.11 MB / 0.7481 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/2.891, allocations: 38.78 kB / 1.2 GB, free: 10.07 MB / 0.7481 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/2.891, allocations: 4.5 kB / 1.2 GB, free: 10.07 MB / 0.7481 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/2.892, allocations: 5.047 kB / 1.2 GB, free: 10.07 MB / 0.7481 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/2.892, allocations: 0 / 1.2 GB, free: 10.07 MB / 0.7481 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/2.892, allocations: 4.75 kB / 1.2 GB, free: 10.06 MB / 0.7481 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/2.892, allocations: 322.4 kB / 1.201 GB, free: 9.816 MB / 0.7481 GB
Notification: Performance of postOpt removeConstants (simulation): time 7.33e-05/2.892, allocations: 27.53 kB / 1.201 GB, free: 9.797 MB / 0.7481 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/2.892, allocations: 7.172 kB / 1.201 GB, free: 9.793 MB / 0.7481 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/2.892, allocations: 15.23 kB / 1.201 GB, free: 9.781 MB / 0.7481 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/2.892, allocations: 15.16 kB / 1.201 GB, free: 9.77 MB / 0.7481 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/2.892, allocations: 12.75 kB / 1.201 GB, free: 9.758 MB / 0.7481 GB
Notification: Performance of sorting global known variables: time 7.708e-05/2.893, allocations: 133.4 kB / 1.201 GB, free: 9.645 MB / 0.7481 GB
Notification: Performance of sort global known variables: time 9e-08/2.893, allocations: 0.75 kB / 1.201 GB, free: 9.645 MB / 0.7481 GB
Notification: Performance of remove unused functions: time 0.0002672/2.893, allocations: 53.34 kB / 1.201 GB, free: 9.598 MB / 0.7481 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged)
 * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count)
 * Number of discrete states: 1 (gain.count)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (20):
 * Single equations (assignments): 18
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001406/2.893, allocations: 119.4 kB / 1.201 GB, free: 9.484 MB / 0.7481 GB
Notification: Performance of simCode: created initialization part: time 0.0004473/2.893, allocations: 218.5 kB / 1.201 GB, free: 9.301 MB / 0.7481 GB
Notification: Performance of simCode: created event and clocks part: time 2.094e-06/2.893, allocations: 6.906 kB / 1.201 GB, free: 9.297 MB / 0.7481 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001924/2.894, allocations: 76.8 kB / 1.201 GB, free: 9.242 MB / 0.7481 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/2.894, allocations: 28.59 kB / 1.201 GB, free: 9.227 MB / 0.7481 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008138/2.895, allocations: 0.5459 MB / 1.202 GB, free: 8.73 MB / 0.7481 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/2.895, allocations: 0.7203 MB / 1.202 GB, free: 7.984 MB / 0.7481 GB
Notification: Performance of simCode: alias equations: time 0.000118/2.895, allocations: 31.19 kB / 1.202 GB, free: 7.953 MB / 0.7481 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.722e-05/2.895, allocations: 26.81 kB / 1.202 GB, free: 7.93 MB / 0.7481 GB
Notification: Performance of SimCode: time 4.81e-07/2.895, allocations: 0 / 1.202 GB, free: 7.93 MB / 0.7481 GB
Notification: Performance of Templates: time 0.005598/2.901, allocations: 2.659 MB / 1.205 GB, free: 5.352 MB / 0.7481 GB
"
[Timeout remaining time 657]
make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 9.602638334967196]
Failed to read output from testmodel.py, exit status != 0:
2.907211990095675 2.92072095 2.741198753
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f83996717b0>