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.00148/0.00148, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.001628/0.001628, allocations: 177 kB / 23.49 MB, free: 1.059 MB / 18.57 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 0.9941/0.9941, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] 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.00171/0.00171, allocations: 241.5 kB / 260.5 MB, free: 12.89 MB / 250.7 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 0.7382/0.7382, allocations: 138.4 MB / 455.4 MB, free: 1.527 MB / 362.7 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: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.555 GB, free: 0.9102 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.606e-05/1.742e-05, allocations: 2.312 kB / 0.555 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002075/0.002092, allocations: 1.958 MB / 0.5569 GB, free: 14.93 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.003111, allocations: 0.8931 MB / 0.5578 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.223e-05/0.003193, allocations: 11.94 kB / 0.5578 GB, free: 14.02 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.003349, allocations: 51.56 kB / 0.5578 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 6.943e-05/0.003419, allocations: 47.62 kB / 0.5579 GB, free: 13.92 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.00365, allocations: 103.6 kB / 0.558 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.003826, allocations: 187.2 kB / 0.5582 GB, free: 13.63 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.949e-05/0.003915, allocations: 21.78 kB / 0.5582 GB, free: 13.61 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.004059, allocations: 115.7 kB / 0.5583 GB, free: 13.5 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.522e-05/0.004144, allocations: 67.8 kB / 0.5584 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.004165, allocations: 8 kB / 0.5584 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.876e-05/0.004264, allocations: 67.88 kB / 0.5584 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.004296, allocations: 31.84 kB / 0.5585 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.004351, allocations: 47.89 kB / 0.5585 GB, free: 13.28 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.004545, allocations: 167.4 kB / 0.5587 GB, free: 13.12 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-06/0.004547, allocations: 4 kB / 0.5587 GB, free: 13.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004548, allocations: 0 / 0.5587 GB, free: 13.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.004552, allocations: 0 / 0.5587 GB, free: 13.11 MB / 490.7 MB 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.0006624/0.005214, allocations: 0.5325 MB / 0.5592 GB, free: 12.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.005248, allocations: 8.75 kB / 0.5592 GB, free: 12.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.005417, allocations: 36.83 kB / 0.5592 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/0.005603, allocations: 188.2 kB / 0.5594 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.005618, allocations: 8.375 kB / 0.5594 GB, free: 12.28 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.005647, allocations: 12.38 kB / 0.5594 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.005824, allocations: 113.6 kB / 0.5595 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.005834, allocations: 192 / 0.5595 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.00585, allocations: 8.359 kB / 0.5595 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.005858, allocations: 3.938 kB / 0.5595 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.559e-05/0.005943, allocations: 43.97 kB / 0.5596 GB, free: 12.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004239/0.006367, allocations: 375.5 kB / 0.5599 GB, free: 11.69 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.006495, allocations: 83.03 kB / 0.56 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.539e-05/0.00656, allocations: 51.59 kB / 0.5601 GB, free: 11.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002157/0.006776, allocations: 55.94 kB / 0.5601 GB, free: 11.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/0.00692, allocations: 108.6 kB / 0.5602 GB, free: 11.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.006921, allocations: 0 / 0.5602 GB, free: 11.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002805/0.007202, allocations: 161.9 kB / 0.5604 GB, free: 11.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.007302, allocations: 51.41 kB / 0.5604 GB, free: 11.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.007428, allocations: 226.7 kB / 0.5607 GB, free: 10.91 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.007447, allocations: 37.69 kB / 0.5607 GB, free: 10.86 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.007513, allocations: 150.8 kB / 0.5608 GB, free: 10.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.00755, allocations: 67.45 kB / 0.5609 GB, free: 10.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.007606, allocations: 51.36 kB / 0.5609 GB, free: 10.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.007715, allocations: 0.4962 MB / 0.5614 GB, free: 10.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.349e-05/0.007799, allocations: 81.28 kB / 0.5615 GB, free: 9.988 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.658e-05/0.007875, allocations: 84.73 kB / 0.5616 GB, free: 9.887 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.008064, allocations: 190.4 kB / 0.5618 GB, free: 9.676 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.008066, allocations: 0 / 0.5618 GB, free: 9.676 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002151/0.008281, allocations: 235.3 kB / 0.562 GB, free: 9.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.008305, allocations: 33.7 kB / 0.562 GB, free: 9.391 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.00831, allocations: 4 kB / 0.562 GB, free: 9.387 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.008322, allocations: 8 kB / 0.562 GB, free: 9.379 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.008457, allocations: 39.97 kB / 0.5621 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.008462, allocations: 0 / 0.5621 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.126e-05/0.008543, allocations: 23.88 kB / 0.5621 GB, free: 9.316 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.008557, allocations: 8 kB / 0.5621 GB, free: 9.309 MB / 490.7 MB 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.0001358/0.008692, allocations: 195 kB / 0.5623 GB, free: 9.109 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/0.008717, allocations: 19.84 kB / 0.5623 GB, free: 9.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.008982, allocations: 199.2 kB / 0.5625 GB, free: 8.887 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.008984, allocations: 0 / 0.5625 GB, free: 8.887 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.008988, allocations: 4 kB / 0.5625 GB, free: 8.883 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.008992, allocations: 3.984 kB / 0.5625 GB, free: 8.879 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.009123, allocations: 180.5 kB / 0.5627 GB, free: 8.668 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.009126, allocations: 4 kB / 0.5627 GB, free: 8.664 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.009244, allocations: 35.98 kB / 0.5627 GB, free: 8.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.009247, allocations: 3.938 kB / 0.5627 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.009266, allocations: 11.98 kB / 0.5627 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.009267, allocations: 0 / 0.5627 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.009268, allocations: 0 / 0.5627 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.009536, allocations: 236.9 kB / 0.563 GB, free: 8.359 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.009581, allocations: 31.77 kB / 0.563 GB, free: 8.328 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.009603, allocations: 8 kB / 0.563 GB, free: 8.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.009667, allocations: 11.98 kB / 0.563 GB, free: 8.309 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.00972, allocations: 19.97 kB / 0.563 GB, free: 8.289 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.00973, allocations: 8 kB / 0.563 GB, free: 8.281 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.653e-05/0.009796, allocations: 169 kB / 0.5632 GB, free: 8.117 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009796, allocations: 0 / 0.5632 GB, free: 8.117 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001703/0.009966, allocations: 51.94 kB / 0.5632 GB, free: 8.066 MB / 490.7 MB 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.0001228/0.01009, allocations: 127.1 kB / 0.5634 GB, free: 7.934 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.01031, allocations: 199.4 kB / 0.5636 GB, free: 7.719 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01031, allocations: 3.938 kB / 0.5636 GB, free: 7.715 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 7.897e-05/0.01039, allocations: 67.59 kB / 0.5636 GB, free: 7.645 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.01057, allocations: 35.98 kB / 0.5637 GB, free: 7.609 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007023/0.01127, allocations: 451.8 kB / 0.5641 GB, free: 7.137 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.946e-05/0.01131, allocations: 75.98 kB / 0.5642 GB, free: 7.043 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.712e-05/0.01139, allocations: 21.64 kB / 0.5642 GB, free: 7.023 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.924e-05/0.01145, allocations: 28.48 kB / 0.5642 GB, free: 6.996 MB / 490.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01145, allocations: 0 / 0.5642 GB, free: 6.996 MB / 490.7 MB Notification: Performance of Templates: time 0.004073/0.01552, allocations: 2.654 MB / 0.5668 GB, free: 4.391 MB / 490.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.7969369038473815]