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.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.001504/0.001504, allocations: 119.2 kB / 17.13 MB, free: 5.758 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.001529/0.001529, allocations: 193.2 kB / 20.08 MB, free: 2.848 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.367/1.367, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.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.002494/0.002494, allocations: 286.5 kB / 303.6 MB, free: 3.645 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.003/1.003, allocations: 180.9 MB / 0.5268 GB, free: 2.738 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.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 0.002669/0.002669, allocations: 99.84 kB / 0.7259 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4745/0.4772, allocations: 94.15 MB / 0.8178 GB, free: 7.461 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003135/0.4803, allocations: 2.667 MB / 0.8204 GB, free: 5.559 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0015/0.4818, allocations: 1.089 MB / 0.8215 GB, free: 4.789 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.482, allocations: 15.06 kB / 0.8215 GB, free: 4.781 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.4822, allocations: 68.92 kB / 0.8216 GB, free: 4.742 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.4824, allocations: 138.7 kB / 0.8217 GB, free: 4.641 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.4827, allocations: 167.7 kB / 0.8219 GB, free: 4.559 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.4831, allocations: 0.5152 MB / 0.8224 GB, free: 4.309 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.4832, allocations: 29.12 kB / 0.8224 GB, free: 4.297 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.4835, allocations: 237.4 kB / 0.8226 GB, free: 4.199 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.4838, allocations: 222.9 kB / 0.8228 GB, free: 4.109 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.4839, allocations: 30.34 kB / 0.8229 GB, free: 4.109 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.484, allocations: 77.73 kB / 0.8229 GB, free: 4.098 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 7.867e-05/0.4841, allocations: 77.61 kB / 0.823 GB, free: 4.051 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.4843, allocations: 187.4 kB / 0.8232 GB, free: 3.938 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0004485/0.4847, allocations: 421.8 kB / 0.8236 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.4847, allocations: 0 / 0.8236 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of FrontEnd: time 2.205e-06/0.4847, allocations: 4.547 kB / 0.8236 GB, free: 3.766 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.4847, allocations: 4 kB / 0.8236 GB, free: 3.762 MB / 0.5763 GB 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.001622/0.4864, allocations: 0.8188 MB / 0.8244 GB, free: 3.109 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.4864, allocations: 11.25 kB / 0.8244 GB, free: 3.109 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.67e-05/0.4865, allocations: 39.36 kB / 0.8244 GB, free: 3.09 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.4868, allocations: 343 kB / 0.8248 GB, free: 2.805 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.4868, allocations: 21 kB / 0.8248 GB, free: 2.793 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.4869, allocations: 25.19 kB / 0.8248 GB, free: 2.785 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006948/0.4876, allocations: 333.5 kB / 0.8251 GB, free: 2.656 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.4876, allocations: 3.938 kB / 0.8251 GB, free: 2.652 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.4876, allocations: 7.312 kB / 0.8251 GB, free: 2.648 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4876, allocations: 5.656 kB / 0.8252 GB, free: 2.648 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/0.4884, allocations: 297.8 kB / 0.8254 GB, free: 2.574 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009438/0.4894, allocations: 0.7775 MB / 0.8262 GB, free: 2.027 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.4904, allocations: 361.1 kB / 0.8265 GB, free: 1.887 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.4908, allocations: 188.6 kB / 0.8267 GB, free: 1.816 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005254/0.4913, allocations: 450.6 kB / 0.8272 GB, free: 1.34 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006771/0.492, allocations: 330 kB / 0.8275 GB, free: 1.199 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=42): time 1.593e-06/0.492, allocations: 0 / 0.8275 GB, free: 1.199 MB / 0.5763 GB Notification: Performance of matching and sorting (n=42): time 0.001516/0.4935, allocations: 0.6125 MB / 0.8281 GB, free: 0.9883 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.4936, allocations: 86.69 kB / 0.8281 GB, free: 0.8945 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.4938, allocations: 303.6 kB / 0.8284 GB, free: 0.7266 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.4939, allocations: 35.11 kB / 0.8285 GB, free: 0.6914 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.4939, allocations: 167.4 kB / 0.8286 GB, free: 0.5469 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 9.294e-05/0.494, allocations: 147.5 kB / 0.8288 GB, free: 440 kB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.4942, allocations: 95.27 kB / 0.8289 GB, free: 388 kB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.4942, allocations: 353.2 kB / 0.8292 GB, free: 48 kB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005178/0.4948, allocations: 197.3 kB / 0.8294 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000547/0.4953, allocations: 249 kB / 0.8296 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.113/6.608, allocations: 0.866 GB / 1.696 GB, free: 138.9 MB / 0.8888 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/6.608, allocations: 0.625 kB / 1.696 GB, free: 138.9 MB / 0.8888 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001293/6.609, allocations: 0.6397 MB / 1.696 GB, free: 138.4 MB / 0.8888 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/6.61, allocations: 89.09 kB / 1.696 GB, free: 138.3 MB / 0.8888 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/6.61, allocations: 4 kB / 1.696 GB, free: 138.3 MB / 0.8888 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/6.61, allocations: 4 kB / 1.696 GB, free: 138.3 MB / 0.8888 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/6.61, allocations: 118 kB / 1.696 GB, free: 138.1 MB / 0.8888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/6.61, allocations: 7.875 kB / 1.697 GB, free: 138.1 MB / 0.8888 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00048/6.611, allocations: 64.11 kB / 1.697 GB, free: 138.1 MB / 0.8888 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/6.611, allocations: 19.98 kB / 1.697 GB, free: 138.1 MB / 0.8888 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 = 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.0002662/6.611, allocations: 200.8 kB / 1.697 GB, free: 137.9 MB / 0.8888 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/6.611, allocations: 40.45 kB / 1.697 GB, free: 137.9 MB / 0.8888 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/6.612, allocations: 0.6378 MB / 1.697 GB, free: 137.2 MB / 0.8888 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/6.612, allocations: 8 kB / 1.697 GB, free: 137.2 MB / 0.8888 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/6.612, allocations: 3.938 kB / 1.697 GB, free: 137.2 MB / 0.8888 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/6.612, allocations: 3.984 kB / 1.697 GB, free: 137.2 MB / 0.8888 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/6.613, allocations: 440.5 kB / 1.698 GB, free: 136.8 MB / 0.8888 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/6.613, allocations: 0 / 1.698 GB, free: 136.8 MB / 0.8888 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005245/6.613, allocations: 111.9 kB / 1.698 GB, free: 136.7 MB / 0.8888 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/6.613, allocations: 0 / 1.698 GB, free: 136.7 MB / 0.8888 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/6.613, allocations: 19.98 kB / 1.698 GB, free: 136.6 MB / 0.8888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/6.613, allocations: 0 / 1.698 GB, free: 136.6 MB / 0.8888 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/6.613, allocations: 3.938 kB / 1.698 GB, free: 136.6 MB / 0.8888 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/6.615, allocations: 0.785 MB / 1.699 GB, free: 135.9 MB / 0.8888 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/6.615, allocations: 165.8 kB / 1.699 GB, free: 135.7 MB / 0.8888 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/6.615, allocations: 12 kB / 1.699 GB, free: 135.7 MB / 0.8888 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004051/6.615, allocations: 48.97 kB / 1.699 GB, free: 135.6 MB / 0.8888 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/6.615, allocations: 51.92 kB / 1.699 GB, free: 135.6 MB / 0.8888 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/6.615, allocations: 19.98 kB / 1.699 GB, free: 135.6 MB / 0.8888 GB Notification: Performance of sorting global known variables: time 0.000148/6.616, allocations: 211.1 kB / 1.699 GB, free: 135.4 MB / 0.8888 GB Notification: Performance of sort global known variables: time 7e-08/6.616, allocations: 0 / 1.699 GB, free: 135.4 MB / 0.8888 GB Notification: Performance of remove unused functions: time 0.000376/6.616, allocations: 120.8 kB / 1.699 GB, free: 135.2 MB / 0.8888 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.0001739/6.616, allocations: 139.4 kB / 1.7 GB, free: 135.1 MB / 0.8888 GB Notification: Performance of simCode: created initialization part: time 0.001059/6.617, allocations: 0.6102 MB / 1.7 GB, free: 134.5 MB / 0.8888 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/6.617, allocations: 0 / 1.7 GB, free: 134.5 MB / 0.8888 GB Notification: Performance of simCode: created simulation system equations: time 0.0004819/6.618, allocations: 243.4 kB / 1.7 GB, free: 134.2 MB / 0.8888 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/6.618, allocations: 73.39 kB / 1.7 GB, free: 134.2 MB / 0.8888 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/6.62, allocations: 1.13 MB / 1.702 GB, free: 133 MB / 0.8888 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/6.62, allocations: 0.8012 MB / 1.702 GB, free: 132.2 MB / 0.8888 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/6.62, allocations: 59.41 kB / 1.702 GB, free: 132.1 MB / 0.8888 GB Notification: Performance of SimCode: time 5.01e-07/6.62, allocations: 0 / 1.702 GB, free: 132.1 MB / 0.8888 GB Notification: Performance of Templates: time 0.007068/6.627, allocations: 6.031 MB / 1.708 GB, free: 126.1 MB / 0.8888 GB " [Timeout remaining time 653] 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: 14.446010375861079] Failed to read output from testmodel.py, exit status != 0: 6.633966503897682 6.6415487109999995 6.154943999 Calling exit ...