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.002222/0.002222, allocations: 85.48 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.002681/0.002681, allocations: 173.6 kB / 22.76 MB, free: 1.664 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.647/1.647, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.003124/0.003124, allocations: 237 kB / 259.8 MB, free: 12.84 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.281/1.281, allocations: 138.4 MB / 454.7 MB, free: 1.48 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.994e-06/1.994e-06, allocations: 0 / 0.5543 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.225e-05/3.425e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.8867 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.004359/0.004394, allocations: 2.577 MB / 0.5568 GB, free: 14.29 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.006729, allocations: 1.096 MB / 0.5579 GB, free: 13.18 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.006896, allocations: 15.88 kB / 0.5579 GB, free: 13.17 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.007163, allocations: 67.31 kB / 0.558 GB, free: 13.1 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002805/0.007444, allocations: 146.8 kB / 0.5581 GB, free: 12.96 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.00791, allocations: 171.6 kB / 0.5583 GB, free: 12.79 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.008533, allocations: 0.5175 MB / 0.5588 GB, free: 12.27 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.008654, allocations: 32.91 kB / 0.5588 GB, free: 12.24 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.009166, allocations: 319.2 kB / 0.5591 GB, free: 11.93 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/0.00951, allocations: 179.5 kB / 0.5593 GB, free: 11.75 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 7.765e-05/0.009587, allocations: 28 kB / 0.5593 GB, free: 11.73 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.009797, allocations: 83.94 kB / 0.5594 GB, free: 11.64 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.009903, allocations: 75.67 kB / 0.5595 GB, free: 11.57 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.0101, allocations: 139.6 kB / 0.5596 GB, free: 11.43 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006585/0.01076, allocations: 458.4 kB / 0.56 GB, free: 10.98 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.01076, allocations: 4 kB / 0.56 GB, free: 10.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01076, allocations: 0 / 0.56 GB, free: 10.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.01077, allocations: 0 / 0.56 GB, free: 10.98 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.001991/0.01276, allocations: 0.8568 MB / 0.5609 GB, free: 10.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.0128, allocations: 8.75 kB / 0.5609 GB, free: 10.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007003/0.01351, allocations: 96.66 kB / 0.561 GB, free: 9.961 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.01401, allocations: 291 kB / 0.5612 GB, free: 9.648 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.01404, allocations: 16.88 kB / 0.5613 GB, free: 9.629 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.076e-05/0.01411, allocations: 28.31 kB / 0.5613 GB, free: 9.602 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007187/0.01483, allocations: 323.8 kB / 0.5616 GB, free: 9.273 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.01485, allocations: 192 / 0.5616 GB, free: 9.273 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.01488, allocations: 12.31 kB / 0.5616 GB, free: 9.262 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.01489, allocations: 11.94 kB / 0.5616 GB, free: 9.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007577/0.01565, allocations: 251.8 kB / 0.5619 GB, free: 9.004 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.01701, allocations: 0.7793 MB / 0.5626 GB, free: 8.184 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.01801, allocations: 354.5 kB / 0.563 GB, free: 7.812 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004353/0.01845, allocations: 179.2 kB / 0.5631 GB, free: 7.629 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004392/0.01889, allocations: 59.94 kB / 0.5632 GB, free: 7.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006882/0.01958, allocations: 320.4 kB / 0.5635 GB, free: 7.234 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.01958, allocations: 0 / 0.5635 GB, free: 7.234 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.001565/0.02114, allocations: 0.5839 MB / 0.5641 GB, free: 6.648 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.02122, allocations: 85.05 kB / 0.5641 GB, free: 6.547 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.02192, allocations: 406.3 kB / 0.5645 GB, free: 6.133 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.02198, allocations: 33.7 kB / 0.5646 GB, free: 6.094 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.02217, allocations: 223.6 kB / 0.5648 GB, free: 5.871 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.02235, allocations: 162.7 kB / 0.5649 GB, free: 5.711 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.02256, allocations: 111.8 kB / 0.565 GB, free: 5.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003364/0.0229, allocations: 0.5352 MB / 0.5656 GB, free: 5.043 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.02345, allocations: 286.6 kB / 0.5658 GB, free: 4.738 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.02405, allocations: 332.3 kB / 0.5662 GB, free: 4.375 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.02551, allocations: 0.7356 MB / 0.5669 GB, free: 3.582 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.02552, allocations: 0 / 0.5669 GB, free: 3.582 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001523/0.02704, allocations: 0.7133 MB / 0.5676 GB, free: 2.828 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.02715, allocations: 101.2 kB / 0.5677 GB, free: 2.711 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.02715, allocations: 4 kB / 0.5677 GB, free: 2.707 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.02718, allocations: 4 kB / 0.5677 GB, free: 2.703 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005881/0.02777, allocations: 115.8 kB / 0.5678 GB, free: 2.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.02778, allocations: 7.984 kB / 0.5678 GB, free: 2.582 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.02824, allocations: 55.75 kB / 0.5678 GB, free: 2.527 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.02829, allocations: 19.98 kB / 0.5679 GB, free: 2.508 MB / 490.7 MB 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 = 0.685 * 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 = 0.685 * 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.0004003/0.02869, allocations: 250.6 kB / 0.5681 GB, free: 2.258 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.0288, allocations: 55.7 kB / 0.5682 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.0304, allocations: 0.5981 MB / 0.5687 GB, free: 1.602 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.0304, allocations: 4 kB / 0.5687 GB, free: 1.598 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.03041, allocations: 0 / 0.5687 GB, free: 1.598 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.03042, allocations: 11.98 kB / 0.5688 GB, free: 1.586 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005655/0.03099, allocations: 344.2 kB / 0.5691 GB, free: 1.215 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.03099, allocations: 0 / 0.5691 GB, free: 1.215 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005851/0.03158, allocations: 103.8 kB / 0.5692 GB, free: 1.113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.03159, allocations: 8 kB / 0.5692 GB, free: 1.105 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/0.03164, allocations: 15.94 kB / 0.5692 GB, free: 1.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.03164, allocations: 4 kB / 0.5692 GB, free: 1.086 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.03165, allocations: 0 / 0.5692 GB, free: 1.086 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.03335, allocations: 0.7613 MB / 0.57 GB, free: 304 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002157/0.03356, allocations: 87.47 kB / 0.57 GB, free: 216 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.85e-05/0.03364, allocations: 23.92 kB / 0.5701 GB, free: 192 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.034, allocations: 31.98 kB / 0.5701 GB, free: 160 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.03417, allocations: 59.89 kB / 0.5701 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.03421, allocations: 16 kB / 0.5702 GB, free: 84 kB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003177/0.03453, allocations: 266.9 kB / 0.5704 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9e-08/0.03453, allocations: 0 / 0.5704 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004591/0.03499, allocations: 119.9 kB / 0.5705 GB, free: 15.7 MB / 0.4948 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.0002571/0.03525, allocations: 144.5 kB / 0.5707 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001541/0.03679, allocations: 0.6866 MB / 0.5713 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.03679, allocations: 0 / 0.5713 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006042/0.03739, allocations: 244.4 kB / 0.5716 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.03789, allocations: 77.64 kB / 0.5716 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.0398, allocations: 0.9691 MB / 0.5726 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.04002, allocations: 200.9 kB / 0.5728 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000369/0.04039, allocations: 83.38 kB / 0.5729 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.04058, allocations: 56.47 kB / 0.5729 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of SimCode: time 1.142e-06/0.04058, allocations: 0 / 0.5729 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of Templates: time 0.01403/0.05462, allocations: 6.284 MB / 0.5791 GB, free: 6.926 MB / 0.4948 GB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 6.339843811001629]