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.001528/0.001528, allocations: 110.1 kB / 19.7 MB, free: 2.262 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.00167/0.00167, allocations: 214.4 kB / 23 MB, free: 5.113 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.372/1.372, allocations: 230.6 MB / 256.8 MB, free: 8.031 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.002477/0.002477, allocations: 289 kB / 313.5 MB, free: 2.824 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.165/1.165, allocations: 180.6 MB / 0.5377 GB, free: 13.04 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.002787/0.002787, allocations: 109.7 kB / 0.7408 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1695, allocations: 95.38 MB / 0.8339 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003417/0.1729, allocations: 1.983 MB / 0.8359 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.1745, allocations: 0.936 MB / 0.8368 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.1746, allocations: 7.938 kB / 0.8368 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.1748, allocations: 51.62 kB / 0.8368 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.1749, allocations: 51.56 kB / 0.8369 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.1753, allocations: 95.77 kB / 0.837 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002477/0.1755, allocations: 191.3 kB / 0.8371 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1756, allocations: 21.67 kB / 0.8372 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1758, allocations: 87.58 kB / 0.8373 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.1759, allocations: 83.66 kB / 0.8373 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.1759, allocations: 12 kB / 0.8373 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1761, allocations: 63.95 kB / 0.8374 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.1761, allocations: 27.91 kB / 0.8374 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.925e-05/0.1762, allocations: 71.59 kB / 0.8375 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.1765, allocations: 191.2 kB / 0.8377 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1765, allocations: 4 kB / 0.8377 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.804e-06/0.1765, allocations: 7.875 kB / 0.8377 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.1765, allocations: 0 / 0.8377 GB, free: 4.301 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.0009325/0.1774, allocations: 439 kB / 0.8381 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1775, allocations: 9.344 kB / 0.8381 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.1777, allocations: 36.83 kB / 0.8382 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.178, allocations: 182.2 kB / 0.8383 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.178, allocations: 4.375 kB / 0.8383 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.1781, allocations: 8.375 kB / 0.8383 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1784, allocations: 130.3 kB / 0.8385 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1784, allocations: 4 kB / 0.8385 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.1784, allocations: 0 / 0.8385 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.1784, allocations: 3.984 kB / 0.8385 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.1787, allocations: 110.1 kB / 0.8386 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006339/0.1793, allocations: 379.7 kB / 0.8389 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.1796, allocations: 130.4 kB / 0.8391 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.1798, allocations: 76.75 kB / 0.8391 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004542/0.1803, allocations: 59.92 kB / 0.8392 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003501/0.1806, allocations: 127.3 kB / 0.8393 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.532e-06/0.1806, allocations: 4 kB / 0.8393 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006232/0.1812, allocations: 240.9 kB / 0.8395 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.1813, allocations: 55.41 kB / 0.8396 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.1815, allocations: 181.2 kB / 0.8398 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1815, allocations: 33.7 kB / 0.8398 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.1816, allocations: 104.1 kB / 0.8399 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.1816, allocations: 71.45 kB / 0.84 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.78e-05/0.1817, allocations: 37.7 kB / 0.84 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1819, allocations: 338.8 kB / 0.8403 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.182, allocations: 68.81 kB / 0.8404 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.1822, allocations: 82.53 kB / 0.8405 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.402/2.584, allocations: 378.8 MB / 1.21 GB, free: 11.71 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/2.584, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005145/2.584, allocations: 256.2 kB / 1.211 GB, free: 11.52 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/2.584, allocations: 37.69 kB / 1.211 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/2.584, allocations: 0 / 1.211 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/2.584, allocations: 0 / 1.211 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/2.585, allocations: 46 kB / 1.211 GB, free: 11.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/2.585, allocations: 0 / 1.211 GB, free: 11.44 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/2.585, allocations: 28.91 kB / 1.211 GB, free: 11.42 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/2.585, allocations: 4 kB / 1.211 GB, free: 11.41 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.0002137/2.585, allocations: 156.9 kB / 1.211 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/2.585, allocations: 16.77 kB / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005654/2.586, allocations: 239 kB / 1.211 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/2.586, allocations: 4 kB / 1.211 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/2.586, allocations: 0 / 1.211 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/2.586, allocations: 0 / 1.211 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/2.586, allocations: 232.2 kB / 1.211 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/2.586, allocations: 0 / 1.211 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/2.586, allocations: 48.69 kB / 1.211 GB, free: 10.83 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/2.586, allocations: 4 kB / 1.211 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/2.586, allocations: 3.312 kB / 1.211 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/2.586, allocations: 7.938 kB / 1.211 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/2.586, allocations: 0 / 1.211 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/2.587, allocations: 320.2 kB / 1.212 GB, free: 10.58 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.65e-05/2.587, allocations: 36.11 kB / 1.212 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/2.587, allocations: 7.188 kB / 1.212 GB, free: 10.55 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/2.587, allocations: 11.98 kB / 1.212 GB, free: 10.54 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/2.587, allocations: 19.22 kB / 1.212 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/2.587, allocations: 7.625 kB / 1.212 GB, free: 10.52 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001076/2.587, allocations: 131.3 kB / 1.212 GB, free: 10.41 MB / 0.795 GB Notification: Performance of sort global known variables: time 6e-08/2.587, allocations: 0 / 1.212 GB, free: 10.41 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002674/2.587, allocations: 56.92 kB / 1.212 GB, free: 10.36 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.0001706/2.588, allocations: 123.5 kB / 1.212 GB, free: 10.25 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004704/2.588, allocations: 222.4 kB / 1.212 GB, free: 10.05 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/2.588, allocations: 0 / 1.212 GB, free: 10.05 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001903/2.588, allocations: 75.02 kB / 1.212 GB, free: 9.996 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/2.589, allocations: 31.98 kB / 1.212 GB, free: 9.977 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009979/2.59, allocations: 0.5611 MB / 1.213 GB, free: 9.445 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/2.59, allocations: 0.7279 MB / 1.214 GB, free: 8.691 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.329e-05/2.59, allocations: 27.42 kB / 1.214 GB, free: 8.664 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/2.59, allocations: 0 / 1.214 GB, free: 8.664 MB / 0.795 GB Notification: Performance of Templates: time 0.004744/2.595, allocations: 2.691 MB / 1.216 GB, free: 6.027 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.532914305105805] Failed to read output from testmodel.py, exit status != 0: 2.602232591016218 2.617029663 2.43755917 Calling exit ...