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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 213.8 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.392/1.392, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002676/0.002676, allocations: 285.1 kB / 313.5 MB, free: 2.609 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.227/1.227, allocations: 180.6 MB / 0.5377 GB, free: 14.5 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00285/0.00285, allocations: 98.34 kB / 0.7407 GB, free: 28.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1711, allocations: 95.39 MB / 0.8338 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003076/0.1742, allocations: 1.88 MB / 0.8357 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1756, allocations: 0.8542 MB / 0.8365 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.1757, allocations: 11.88 kB / 0.8365 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.1759, allocations: 59.62 kB / 0.8366 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.1761, allocations: 55.56 kB / 0.8366 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.1763, allocations: 87.77 kB / 0.8367 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.1765, allocations: 187.3 kB / 0.8369 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.642e-05/0.1766, allocations: 21.66 kB / 0.8369 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.1768, allocations: 91.58 kB / 0.837 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.1769, allocations: 79.66 kB / 0.8371 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.1769, allocations: 12 kB / 0.8371 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1771, allocations: 55.97 kB / 0.8371 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.1771, allocations: 31.91 kB / 0.8372 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.481e-05/0.1772, allocations: 63.64 kB / 0.8372 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.1775, allocations: 187.2 kB / 0.8374 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1775, allocations: 4 kB / 0.8374 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1775, allocations: 0 / 0.8374 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.1775, allocations: 0 / 0.8374 GB, free: 4.105 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.0008745/0.1783, allocations: 450.9 kB / 0.8378 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.1784, allocations: 9.938 kB / 0.8379 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002696/0.1786, allocations: 36.83 kB / 0.8379 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1789, allocations: 178.2 kB / 0.8381 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.1789, allocations: 8.375 kB / 0.8381 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.1789, allocations: 8.375 kB / 0.8381 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.1792, allocations: 132.4 kB / 0.8382 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1793, allocations: 8 kB / 0.8382 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1793, allocations: 0 / 0.8382 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1793, allocations: 0 / 0.8382 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002991/0.1796, allocations: 103.9 kB / 0.8383 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.1802, allocations: 332.3 kB / 0.8386 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.1805, allocations: 122.4 kB / 0.8387 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.1806, allocations: 76.81 kB / 0.8388 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004304/0.1811, allocations: 59.92 kB / 0.8389 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003068/0.1814, allocations: 123.3 kB / 0.839 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1814, allocations: 0 / 0.839 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006206/0.182, allocations: 244.2 kB / 0.8392 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.1821, allocations: 51.41 kB / 0.8393 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1822, allocations: 183.5 kB / 0.8394 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.1822, allocations: 29.7 kB / 0.8395 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.1823, allocations: 104.1 kB / 0.8396 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/0.1824, allocations: 59.48 kB / 0.8396 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.885e-05/0.1825, allocations: 37.7 kB / 0.8397 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1826, allocations: 338.7 kB / 0.84 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.1828, allocations: 102.5 kB / 0.8401 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.183, allocations: 120.2 kB / 0.8402 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.471/2.654, allocations: 378.8 MB / 1.21 GB, free: 11.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/2.654, allocations: 0 / 1.21 GB, free: 11.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005534/2.654, allocations: 280.5 kB / 1.21 GB, free: 10.98 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/2.654, allocations: 33.08 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/2.654, allocations: 0 / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/2.654, allocations: 4 kB / 1.21 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/2.655, allocations: 47.33 kB / 1.21 GB, free: 10.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/2.655, allocations: 0 / 1.21 GB, free: 10.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/2.655, allocations: 26.58 kB / 1.21 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/2.655, allocations: 8.703 kB / 1.21 GB, free: 10.88 MB / 0.795 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.0002131/2.655, allocations: 148.9 kB / 1.211 GB, free: 10.74 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/2.655, allocations: 16.25 kB / 1.211 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005625/2.656, allocations: 240.8 kB / 1.211 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/2.656, allocations: 3.984 kB / 1.211 GB, free: 10.55 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/2.656, allocations: 0 / 1.211 GB, free: 10.55 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/2.656, allocations: 4 kB / 1.211 GB, free: 10.55 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/2.656, allocations: 184.7 kB / 1.211 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/2.656, allocations: 0 / 1.211 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/2.656, allocations: 47.19 kB / 1.211 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/2.656, allocations: 4 kB / 1.211 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/2.656, allocations: 3 kB / 1.211 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/2.656, allocations: 4 kB / 1.211 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/2.656, allocations: 0 / 1.211 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/2.657, allocations: 311.1 kB / 1.211 GB, free: 10.1 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.204e-05/2.657, allocations: 40.06 kB / 1.211 GB, free: 10.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/2.657, allocations: 3.5 kB / 1.211 GB, free: 10.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/2.657, allocations: 11.98 kB / 1.211 GB, free: 10.06 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.238e-05/2.657, allocations: 23.59 kB / 1.211 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/2.657, allocations: 9.219 kB / 1.211 GB, free: 10.04 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001188/2.657, allocations: 132.9 kB / 1.212 GB, free: 9.922 MB / 0.795 GB Notification: Performance of sort global known variables: time 7.1e-08/2.657, allocations: 0 / 1.212 GB, free: 9.922 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002596/2.658, allocations: 55.45 kB / 1.212 GB, free: 9.875 MB / 0.795 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.0001814/2.658, allocations: 121.2 kB / 1.212 GB, free: 9.762 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004762/2.658, allocations: 244.6 kB / 1.212 GB, free: 9.543 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/2.658, allocations: 4 kB / 1.212 GB, free: 9.539 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001985/2.658, allocations: 79.08 kB / 1.212 GB, free: 9.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/2.659, allocations: 36.64 kB / 1.212 GB, free: 9.461 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009556/2.66, allocations: 0.5527 MB / 1.213 GB, free: 8.938 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/2.66, allocations: 116.1 kB / 1.213 GB, free: 8.805 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/2.66, allocations: 27.42 kB / 1.213 GB, free: 8.777 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/2.66, allocations: 0 / 1.213 GB, free: 8.777 MB / 0.795 GB Notification: Performance of Templates: time 0.004968/2.665, allocations: 2.728 MB / 1.215 GB, free: 6.098 MB / 0.795 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 os._exit(0), Time elapsed: 10.71637573512271] Failed to read output from testmodel.py, exit status != 0: 2.6721548647619784 2.686194397 2.505928565 Calling exit ...