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.001418/0.001418, allocations: 88.72 kB / 19.44 MB, free: 356 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.001639/0.001639, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.462/1.462, allocations: 177.1 MB / 203.1 MB, free: 5.609 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.002628/0.002628, allocations: 233 kB / 259.8 MB, free: 12.86 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.117/1.117, allocations: 138.5 MB / 454.7 MB, free: 1.457 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.383e-06/1.383e-06, allocations: 0 / 0.5543 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.437e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003395/0.00342, allocations: 1.888 MB / 0.5561 GB, free: 14.95 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.005122, allocations: 0.8542 MB / 0.557 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.005235, allocations: 11.88 kB / 0.557 GB, free: 14.07 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.005464, allocations: 47.58 kB / 0.557 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001497/0.005614, allocations: 59.55 kB / 0.5571 GB, free: 13.97 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.005944, allocations: 83.72 kB / 0.5572 GB, free: 13.89 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.006239, allocations: 203.1 kB / 0.5574 GB, free: 13.69 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.959e-05/0.006328, allocations: 13.8 kB / 0.5574 GB, free: 13.68 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.006584, allocations: 123.6 kB / 0.5575 GB, free: 13.55 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.006727, allocations: 63.84 kB / 0.5576 GB, free: 13.49 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.006767, allocations: 8 kB / 0.5576 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.006929, allocations: 63.95 kB / 0.5576 GB, free: 13.42 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.006984, allocations: 35.83 kB / 0.5577 GB, free: 13.39 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.92e-05/0.007083, allocations: 55.83 kB / 0.5577 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003717/0.007455, allocations: 207.3 kB / 0.5579 GB, free: 13.13 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.007461, allocations: 8 kB / 0.5579 GB, free: 13.12 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.007462, allocations: 0 / 0.5579 GB, free: 13.12 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.007467, allocations: 0 / 0.5579 GB, free: 13.12 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.00106/0.008527, allocations: 446.9 kB / 0.5583 GB, free: 12.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.008564, allocations: 16.69 kB / 0.5584 GB, free: 12.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003393/0.008903, allocations: 40.83 kB / 0.5584 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.009352, allocations: 197.4 kB / 0.5586 GB, free: 12.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.00937, allocations: 8.375 kB / 0.5586 GB, free: 12.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.009406, allocations: 4.375 kB / 0.5586 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.009737, allocations: 124.7 kB / 0.5587 GB, free: 12.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.009749, allocations: 4.125 kB / 0.5587 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.009768, allocations: 4.375 kB / 0.5587 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.009775, allocations: 3.938 kB / 0.5587 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.01012, allocations: 107.9 kB / 0.5588 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006901/0.01081, allocations: 324.4 kB / 0.5591 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.01119, allocations: 126.4 kB / 0.5593 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.0114, allocations: 68.75 kB / 0.5593 GB, free: 11.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000514/0.01191, allocations: 63.92 kB / 0.5594 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.01226, allocations: 127.5 kB / 0.5595 GB, free: 11.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.01226, allocations: 0 / 0.5595 GB, free: 11.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007502/0.01301, allocations: 245.5 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.01306, allocations: 55.41 kB / 0.5598 GB, free: 11.06 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.01327, allocations: 175.6 kB / 0.56 GB, free: 10.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.0133, allocations: 29.7 kB / 0.56 GB, free: 10.84 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.672e-05/0.0134, allocations: 112.1 kB / 0.5601 GB, free: 10.72 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.031e-05/0.01347, allocations: 63.47 kB / 0.5602 GB, free: 10.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.503e-05/0.01355, allocations: 41.64 kB / 0.5602 GB, free: 10.61 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.01373, allocations: 334.8 kB / 0.5605 GB, free: 10.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.01397, allocations: 94.52 kB / 0.5606 GB, free: 10.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.01422, allocations: 117.2 kB / 0.5607 GB, free: 10.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.542/2.556, allocations: 378.8 MB / 0.9306 GB, free: 135.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/2.556, allocations: 0 / 0.9306 GB, free: 135.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005341/2.557, allocations: 293.2 kB / 0.9309 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/2.557, allocations: 33.77 kB / 0.9309 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/2.557, allocations: 0 / 0.9309 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/2.557, allocations: 4 kB / 0.9309 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/2.557, allocations: 44.05 kB / 0.931 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/2.557, allocations: 4 kB / 0.931 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/2.557, allocations: 18.66 kB / 0.931 GB, free: 135.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/2.557, allocations: 14.62 kB / 0.931 GB, free: 135.1 MB / 0.6198 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 = (1.0 - 0.315) * 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.0002285/2.557, allocations: 150.1 kB / 0.9312 GB, free: 135 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/2.557, allocations: 22.41 kB / 0.9312 GB, free: 135 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006663/2.558, allocations: 243.5 kB / 0.9314 GB, free: 134.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/2.558, allocations: 4 kB / 0.9314 GB, free: 134.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/2.558, allocations: 4 kB / 0.9314 GB, free: 134.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/2.558, allocations: 0 / 0.9314 GB, free: 134.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/2.558, allocations: 181.4 kB / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/2.558, allocations: 0 / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/2.559, allocations: 40.44 kB / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/2.559, allocations: 4 kB / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/2.559, allocations: 7.047 kB / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/2.559, allocations: 0 / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/2.559, allocations: 0 / 0.9316 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007674/2.559, allocations: 329.3 kB / 0.9319 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.654e-05/2.56, allocations: 32.92 kB / 0.932 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/2.56, allocations: 0 / 0.932 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/2.56, allocations: 15.23 kB / 0.932 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.808e-05/2.56, allocations: 19.02 kB / 0.932 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/2.56, allocations: 11.89 kB / 0.932 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.128e-05/2.56, allocations: 125.5 kB / 0.9321 GB, free: 134.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/2.56, allocations: 0 / 0.9321 GB, free: 134.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002764/2.56, allocations: 52.88 kB / 0.9322 GB, free: 134.1 MB / 0.6198 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.0001512/2.56, allocations: 132.4 kB / 0.9323 GB, free: 134 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004242/2.561, allocations: 241.8 kB / 0.9326 GB, free: 133.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/2.561, allocations: 0 / 0.9326 GB, free: 133.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/2.561, allocations: 84.53 kB / 0.9326 GB, free: 133.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/2.561, allocations: 31.98 kB / 0.9327 GB, free: 133.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007247/2.562, allocations: 471.5 kB / 0.9331 GB, free: 133.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.528e-05/2.562, allocations: 116.2 kB / 0.9332 GB, free: 133.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001255/2.562, allocations: 23.89 kB / 0.9332 GB, free: 133.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/2.562, allocations: 24.48 kB / 0.9333 GB, free: 133.1 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/2.562, allocations: 4 kB / 0.9333 GB, free: 133.1 MB / 0.6198 GB Notification: Performance of Templates: time 0.005482/2.568, allocations: 2.632 MB / 0.9358 GB, free: 130.7 MB / 0.6198 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 sys.exit(0), Time elapsed: 9.03264133806806]