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.001947/0.001947, allocations: 89.47 kB / 19.44 MB, free: 344 kB / 13.93 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.00203/0.00203, allocations: 173.2 kB / 22.76 MB, free: 1.668 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 1.565/1.565, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 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.003214/0.003214, allocations: 240 kB / 259.8 MB, free: 12.83 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 1.182/1.182, allocations: 138.4 MB / 454.7 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.663e-06/1.663e-06, allocations: 0 / 0.5543 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.072e-05/3.238e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003763/0.003795, allocations: 1.927 MB / 0.5562 GB, free: 14.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.005659, allocations: 0.8854 MB / 0.557 GB, free: 14.08 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.005797, allocations: 7.875 kB / 0.5571 GB, free: 14.07 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.006057, allocations: 47.59 kB / 0.5571 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.006221, allocations: 55.56 kB / 0.5572 GB, free: 13.97 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.006603, allocations: 95.69 kB / 0.5572 GB, free: 13.88 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003335/0.006937, allocations: 199.2 kB / 0.5574 GB, free: 13.68 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.007062, allocations: 13.78 kB / 0.5574 GB, free: 13.67 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.00739, allocations: 123.6 kB / 0.5576 GB, free: 13.55 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.007547, allocations: 63.8 kB / 0.5576 GB, free: 13.49 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/0.007583, allocations: 8 kB / 0.5576 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.007751, allocations: 63.95 kB / 0.5577 GB, free: 13.42 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.255e-05/0.007803, allocations: 31.89 kB / 0.5577 GB, free: 13.39 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.007896, allocations: 51.83 kB / 0.5578 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.008259, allocations: 203.2 kB / 0.558 GB, free: 13.14 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.008265, allocations: 4 kB / 0.558 GB, free: 13.13 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.008266, allocations: 0 / 0.558 GB, free: 13.13 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.008272, allocations: 0 / 0.558 GB, free: 13.13 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.001036/0.009308, allocations: 0.5361 MB / 0.5585 GB, free: 12.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.009346, allocations: 12.75 kB / 0.5585 GB, free: 12.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.009662, allocations: 40.83 kB / 0.5585 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.009957, allocations: 188.2 kB / 0.5587 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.00997, allocations: 384 / 0.5587 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.01, allocations: 12.38 kB / 0.5587 GB, free: 12.28 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.01029, allocations: 114.2 kB / 0.5588 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.0103, allocations: 192 / 0.5588 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.01032, allocations: 8.375 kB / 0.5589 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.01033, allocations: 7.938 kB / 0.5589 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002819/0.01061, allocations: 83.94 kB / 0.5589 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007085/0.01132, allocations: 399.5 kB / 0.5593 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.01166, allocations: 127 kB / 0.5594 GB, free: 11.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.01183, allocations: 67.88 kB / 0.5595 GB, free: 11.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004099/0.01224, allocations: 55.88 kB / 0.5596 GB, free: 11.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.01255, allocations: 132.5 kB / 0.5597 GB, free: 11.24 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.01255, allocations: 0 / 0.5597 GB, free: 11.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006376/0.01319, allocations: 225.5 kB / 0.5599 GB, free: 11.01 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.01325, allocations: 55.41 kB / 0.56 GB, free: 10.95 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.01374, allocations: 250.7 kB / 0.5602 GB, free: 10.68 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.01378, allocations: 33.7 kB / 0.5602 GB, free: 10.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.01391, allocations: 162.8 kB / 0.5604 GB, free: 10.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.06e-05/0.01398, allocations: 59.48 kB / 0.5604 GB, free: 10.42 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.01407, allocations: 51.34 kB / 0.5605 GB, free: 10.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002998/0.01437, allocations: 0.5079 MB / 0.561 GB, free: 9.844 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.01459, allocations: 105.3 kB / 0.5611 GB, free: 9.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.01481, allocations: 128.2 kB / 0.5612 GB, free: 9.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005422/0.01535, allocations: 269.2 kB / 0.5615 GB, free: 9.305 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01536, allocations: 0 / 0.5615 GB, free: 9.305 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005446/0.0159, allocations: 276.8 kB / 0.5617 GB, free: 9.016 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.01595, allocations: 33.77 kB / 0.5618 GB, free: 8.977 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.01596, allocations: 7.984 kB / 0.5618 GB, free: 8.969 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.01597, allocations: 0 / 0.5618 GB, free: 8.969 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.01621, allocations: 43.92 kB / 0.5618 GB, free: 8.926 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.01622, allocations: 4 kB / 0.5618 GB, free: 8.922 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.01641, allocations: 19.88 kB / 0.5618 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.01643, allocations: 8 kB / 0.5618 GB, free: 8.895 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.0002582/0.01669, allocations: 201.7 kB / 0.562 GB, free: 8.684 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.01673, allocations: 23.84 kB / 0.5621 GB, free: 8.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006072/0.01734, allocations: 227.3 kB / 0.5623 GB, free: 8.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.01735, allocations: 7.938 kB / 0.5623 GB, free: 8.422 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.01735, allocations: 0 / 0.5623 GB, free: 8.422 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01736, allocations: 0 / 0.5623 GB, free: 8.422 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.01763, allocations: 208.5 kB / 0.5625 GB, free: 8.184 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.01763, allocations: 0 / 0.5625 GB, free: 8.184 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.01787, allocations: 39.91 kB / 0.5625 GB, free: 8.145 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.01787, allocations: 7.938 kB / 0.5625 GB, free: 8.137 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.0179, allocations: 4 kB / 0.5625 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.0179, allocations: 0 / 0.5625 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.0179, allocations: 8 kB / 0.5625 GB, free: 8.125 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.01868, allocations: 314.7 kB / 0.5628 GB, free: 7.797 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.915e-05/0.01877, allocations: 31.77 kB / 0.5629 GB, free: 7.766 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.01881, allocations: 11.98 kB / 0.5629 GB, free: 7.754 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.01895, allocations: 8 kB / 0.5629 GB, free: 7.746 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.01903, allocations: 19.97 kB / 0.5629 GB, free: 7.727 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.01905, allocations: 7.984 kB / 0.5629 GB, free: 7.719 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001639/0.01921, allocations: 181.1 kB / 0.5631 GB, free: 7.543 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01921, allocations: 0 / 0.5631 GB, free: 7.543 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002915/0.01951, allocations: 59.92 kB / 0.5631 GB, free: 7.484 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.0001992/0.0197, allocations: 107.2 kB / 0.5632 GB, free: 7.371 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005392/0.02024, allocations: 257.8 kB / 0.5635 GB, free: 7.098 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.02025, allocations: 0 / 0.5635 GB, free: 7.098 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.02046, allocations: 98.61 kB / 0.5636 GB, free: 7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.02075, allocations: 37.86 kB / 0.5636 GB, free: 6.969 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00095/0.0217, allocations: 459.9 kB / 0.5641 GB, free: 6.484 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.02182, allocations: 112.2 kB / 0.5642 GB, free: 6.359 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.02195, allocations: 33.61 kB / 0.5642 GB, free: 6.328 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.378e-05/0.02204, allocations: 28.48 kB / 0.5642 GB, free: 6.301 MB / 490.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02204, allocations: 0 / 0.5642 GB, free: 6.301 MB / 490.7 MB Notification: Performance of Templates: time 0.007837/0.02987, allocations: 2.654 MB / 0.5668 GB, free: 3.688 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: 6.9686339990003034]