Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.00139/0.00139, 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.001831/0.001831, allocations: 161.7 kB / 22.76 MB, free: 1.676 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.486/1.486, allocations: 177.1 MB / 203.1 MB, free: 5.535 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.00263/0.00263, allocations: 227.1 kB / 259.8 MB, free: 12.87 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.085/1.085, allocations: 138.4 MB / 454.7 MB, free: 1.453 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.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.5543 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.877e-05/3.021e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.875 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.004205/0.004236, allocations: 2.464 MB / 0.5567 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.006741, allocations: 1.068 MB / 0.5577 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.006979, allocations: 19.81 kB / 0.5578 GB, free: 13.3 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.007273, allocations: 67.38 kB / 0.5578 GB, free: 13.23 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003654/0.007638, allocations: 135 kB / 0.558 GB, free: 13.1 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005158/0.008154, allocations: 179.4 kB / 0.5581 GB, free: 12.92 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.008885, allocations: 0.5215 MB / 0.5586 GB, free: 12.4 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.009014, allocations: 24.92 kB / 0.5587 GB, free: 12.38 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005813/0.009595, allocations: 311.2 kB / 0.559 GB, free: 12.07 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.009953, allocations: 187.5 kB / 0.5591 GB, free: 11.89 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 8.392e-05/0.01004, allocations: 32 kB / 0.5592 GB, free: 11.86 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.01024, allocations: 87.94 kB / 0.5592 GB, free: 11.77 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.01035, allocations: 87.64 kB / 0.5593 GB, free: 11.69 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.01057, allocations: 135.6 kB / 0.5595 GB, free: 11.55 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006833/0.01125, allocations: 486.4 kB / 0.5599 GB, free: 11.08 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.01126, allocations: 0 / 0.5599 GB, free: 11.08 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01126, allocations: 0 / 0.5599 GB, free: 11.08 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.01127, allocations: 0 / 0.5599 GB, free: 11.08 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002084/0.01335, allocations: 0.7532 MB / 0.5607 GB, free: 10.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.01339, allocations: 8.75 kB / 0.5607 GB, free: 10.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000789/0.01418, allocations: 108.6 kB / 0.5608 GB, free: 10.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.01519, allocations: 344.6 kB / 0.5611 GB, free: 9.789 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.01521, allocations: 12.88 kB / 0.5611 GB, free: 9.777 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/0.01529, allocations: 24.38 kB / 0.5611 GB, free: 9.754 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008396/0.01613, allocations: 334.1 kB / 0.5615 GB, free: 9.414 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.01615, allocations: 4.172 kB / 0.5615 GB, free: 9.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.01619, allocations: 12.38 kB / 0.5615 GB, free: 9.398 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.0162, allocations: 7.938 kB / 0.5615 GB, free: 9.391 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009509/0.01715, allocations: 296.7 kB / 0.5618 GB, free: 9.102 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.01838, allocations: 0.629 MB / 0.5624 GB, free: 8.438 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.01955, allocations: 361.5 kB / 0.5627 GB, free: 8.066 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005387/0.02009, allocations: 189.5 kB / 0.5629 GB, free: 7.875 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005347/0.02062, allocations: 75.91 kB / 0.563 GB, free: 7.801 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009195/0.02154, allocations: 321 kB / 0.5633 GB, free: 7.469 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 3.486e-06/0.02155, allocations: 3.938 kB / 0.5633 GB, free: 7.465 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.002058/0.0236, allocations: 0.6333 MB / 0.5639 GB, free: 6.828 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.02368, allocations: 85.11 kB / 0.564 GB, free: 6.727 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.02405, allocations: 300.5 kB / 0.5643 GB, free: 6.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.638e-05/0.02411, allocations: 37.7 kB / 0.5643 GB, free: 6.387 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.02427, allocations: 160.9 kB / 0.5645 GB, free: 6.223 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000394/0.02466, allocations: 154.8 kB / 0.5646 GB, free: 6.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.02485, allocations: 90.16 kB / 0.5647 GB, free: 5.977 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.02508, allocations: 346.8 kB / 0.565 GB, free: 5.629 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006875/0.02576, allocations: 295.7 kB / 0.5653 GB, free: 5.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006779/0.02644, allocations: 335.3 kB / 0.5656 GB, free: 4.961 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.15/6.176, allocations: 0.866 GB / 1.432 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/6.176, allocations: 0 / 1.432 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001384/6.177, allocations: 0.7475 MB / 1.432 GB, free: 91.31 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/6.177, allocations: 91.84 kB / 1.432 GB, free: 91.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/6.177, allocations: 0 / 1.432 GB, free: 91.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/6.177, allocations: 4 kB / 1.432 GB, free: 91.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005345/6.178, allocations: 112.3 kB / 1.433 GB, free: 91.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/6.178, allocations: 9.141 kB / 1.433 GB, free: 91.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/6.178, allocations: 66.2 kB / 1.433 GB, free: 91.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/6.179, allocations: 23.8 kB / 1.433 GB, free: 91.04 MB / 0.6198 GB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_1C.EBou:VARIABLE(start = (1.0 - 0.315) * battery_1C.SOC_start * battery_1C.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_C20.EBou:VARIABLE(start = (1.0 - 0.315) * battery_C20.SOC_start * battery_C20.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0002973/6.179, allocations: 204.1 kB / 1.433 GB, free: 90.86 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/6.179, allocations: 53.66 kB / 1.433 GB, free: 90.83 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/6.18, allocations: 0.6324 MB / 1.434 GB, free: 90.38 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/6.18, allocations: 7.984 kB / 1.434 GB, free: 90.37 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/6.18, allocations: 4 kB / 1.434 GB, free: 90.37 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/6.18, allocations: 7.875 kB / 1.434 GB, free: 90.36 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003515/6.181, allocations: 305.3 kB / 1.434 GB, free: 90.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/6.181, allocations: 0 / 1.434 GB, free: 90.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/6.181, allocations: 107.9 kB / 1.434 GB, free: 90.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/6.181, allocations: 8 kB / 1.434 GB, free: 90 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/6.181, allocations: 15.98 kB / 1.434 GB, free: 89.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/6.181, allocations: 4 kB / 1.434 GB, free: 89.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/6.181, allocations: 4.703 kB / 1.434 GB, free: 89.98 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/6.183, allocations: 0.8049 MB / 1.435 GB, free: 89.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/6.183, allocations: 80.72 kB / 1.435 GB, free: 89.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.655e-05/6.183, allocations: 12 kB / 1.435 GB, free: 89.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/6.184, allocations: 39.95 kB / 1.435 GB, free: 89.05 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/6.184, allocations: 62.45 kB / 1.435 GB, free: 89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/6.184, allocations: 17.06 kB / 1.435 GB, free: 88.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000149/6.184, allocations: 211.1 kB / 1.435 GB, free: 88.78 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/6.184, allocations: 0 / 1.435 GB, free: 88.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003819/6.184, allocations: 129 kB / 1.435 GB, free: 88.66 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001786/6.184, allocations: 134.4 kB / 1.435 GB, free: 88.52 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001081/6.186, allocations: 0.6876 MB / 1.436 GB, free: 87.79 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/6.186, allocations: 4 kB / 1.436 GB, free: 87.78 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005032/6.186, allocations: 237.2 kB / 1.436 GB, free: 87.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/6.186, allocations: 87.47 kB / 1.436 GB, free: 87.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/6.188, allocations: 0.9495 MB / 1.437 GB, free: 86.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/6.188, allocations: 204.9 kB / 1.438 GB, free: 86.32 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003058/6.188, allocations: 82.73 kB / 1.438 GB, free: 86.25 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/6.188, allocations: 56.48 kB / 1.438 GB, free: 86.19 MB / 0.6198 GB Notification: Performance of SimCode: time 9.91e-07/6.188, allocations: 0 / 1.438 GB, free: 86.19 MB / 0.6198 GB Notification: Performance of Templates: time 0.00968/6.198, allocations: 6.261 MB / 1.444 GB, free: 80.18 MB / 0.6198 GB " [Timeout remaining time 654] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.002018742030486]