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.00168/0.00168, allocations: 109.8 kB / 19.58 MB, free: 2.336 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.001925/0.001925, allocations: 188.1 kB / 22.85 MB, free: 5.641 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.381/1.381, allocations: 225.6 MB / 251.5 MB, free: 13.06 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.002481/0.002481, allocations: 294.3 kB / 307 MB, free: 8.453 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.182/1.182, allocations: 180.8 MB / 0.5304 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 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.002805/0.002805, allocations: 104.1 kB / 0.7311 GB, free: 38.87 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1467, allocations: 94.2 MB / 0.8231 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003306/0.15, allocations: 1.959 MB / 0.825 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1515, allocations: 0.8854 MB / 0.8258 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.295e-05/0.1516, allocations: 11.88 kB / 0.8259 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.1518, allocations: 43.69 kB / 0.8259 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.1519, allocations: 51.58 kB / 0.8259 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.1522, allocations: 95.75 kB / 0.826 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.1524, allocations: 195.2 kB / 0.8262 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.1525, allocations: 17.69 kB / 0.8262 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.1527, allocations: 87.62 kB / 0.8263 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1528, allocations: 79.67 kB / 0.8264 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.1528, allocations: 12 kB / 0.8264 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.153, allocations: 71.94 kB / 0.8265 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.979e-05/0.153, allocations: 23.86 kB / 0.8265 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.179e-05/0.1531, allocations: 75.59 kB / 0.8266 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.1534, allocations: 195.2 kB / 0.8268 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1534, allocations: 0 / 0.8268 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1534, allocations: 0 / 0.8268 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.1534, allocations: 0 / 0.8268 GB, free: 14.09 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.0009659/0.1543, allocations: 435 kB / 0.8272 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.1544, allocations: 12.03 kB / 0.8272 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.1544, allocations: 20.84 kB / 0.8272 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.1547, allocations: 182.2 kB / 0.8274 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1547, allocations: 4.375 kB / 0.8274 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.1547, allocations: 8.375 kB / 0.8274 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.1551, allocations: 125.8 kB / 0.8275 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1551, allocations: 4 kB / 0.8275 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.1551, allocations: 4 kB / 0.8275 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1551, allocations: 0 / 0.8275 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003242/0.1554, allocations: 101.8 kB / 0.8276 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006796/0.1561, allocations: 395.5 kB / 0.828 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.1565, allocations: 122.4 kB / 0.8281 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.1566, allocations: 72.81 kB / 0.8282 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004792/0.1571, allocations: 59.91 kB / 0.8282 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.1575, allocations: 127.5 kB / 0.8284 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.1575, allocations: 4 kB / 0.8284 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006785/0.1582, allocations: 229.6 kB / 0.8286 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.1582, allocations: 55.41 kB / 0.8286 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.1584, allocations: 192 kB / 0.8288 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.1584, allocations: 25.7 kB / 0.8288 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.766e-05/0.1585, allocations: 112.1 kB / 0.829 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.1585, allocations: 67.47 kB / 0.829 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.423e-05/0.1586, allocations: 37.7 kB / 0.8291 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1588, allocations: 330.8 kB / 0.8294 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.159, allocations: 98.5 kB / 0.8295 GB, free: 11.13 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1592, allocations: 116.2 kB / 0.8296 GB, free: 11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.634/2.793, allocations: 378.8 MB / 1.199 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/2.793, allocations: 0 / 1.199 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004936/2.794, allocations: 278.6 kB / 1.2 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/2.794, allocations: 39.61 kB / 1.2 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/2.794, allocations: 0.875 kB / 1.2 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/2.794, allocations: 8.062 kB / 1.2 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/2.794, allocations: 42.77 kB / 1.2 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/2.794, allocations: 4 kB / 1.2 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/2.794, allocations: 18.39 kB / 1.2 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/2.794, allocations: 7.984 kB / 1.2 GB, free: 10.73 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.0001648/2.794, allocations: 153.9 kB / 1.2 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/2.794, allocations: 21.19 kB / 1.2 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005513/2.795, allocations: 233.9 kB / 1.2 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/2.795, allocations: 4 kB / 1.2 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/2.795, allocations: 0.625 kB / 1.2 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/2.795, allocations: 7.984 kB / 1.2 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/2.795, allocations: 239.2 kB / 1.2 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/2.795, allocations: 0 / 1.2 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/2.795, allocations: 35.61 kB / 1.201 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/2.795, allocations: 0 / 1.201 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/2.795, allocations: 11.8 kB / 1.201 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/2.795, allocations: 2.031 kB / 1.201 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/2.795, allocations: 0 / 1.201 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000595/2.796, allocations: 314.3 kB / 1.201 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.37e-05/2.796, allocations: 33.81 kB / 1.201 GB, free: 9.875 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/2.796, allocations: 9 kB / 1.201 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/2.796, allocations: 13.58 kB / 1.201 GB, free: 9.863 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/2.796, allocations: 18.59 kB / 1.201 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/2.796, allocations: 7.984 kB / 1.201 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.222e-05/2.796, allocations: 137.2 kB / 1.201 GB, free: 9.723 MB / 0.7481 GB Notification: Performance of sort global known variables: time 9.1e-08/2.796, allocations: 0 / 1.201 GB, free: 9.723 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002567/2.796, allocations: 54.97 kB / 1.201 GB, free: 9.676 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.0001297/2.797, allocations: 120.3 kB / 1.201 GB, free: 9.559 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004273/2.797, allocations: 243.1 kB / 1.201 GB, free: 9.348 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/2.797, allocations: 4 kB / 1.201 GB, free: 9.344 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/2.797, allocations: 80.23 kB / 1.202 GB, free: 9.285 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/2.797, allocations: 30.53 kB / 1.202 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007561/2.798, allocations: 0.5525 MB / 1.202 GB, free: 8.773 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/2.798, allocations: 0.7203 MB / 1.203 GB, free: 8.027 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001125/2.798, allocations: 30.31 kB / 1.203 GB, free: 8 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.458e-05/2.799, allocations: 24.53 kB / 1.203 GB, free: 7.977 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/2.799, allocations: 4 kB / 1.203 GB, free: 7.973 MB / 0.7481 GB Notification: Performance of Templates: time 0.005348/2.804, allocations: 2.668 MB / 1.205 GB, free: 5.395 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.225019779987633] Failed to read output from testmodel.py, exit status != 0: 2.81044844398275 2.82308024 2.666810437 Calling exit ...