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.0007192/0.0007192, allocations: 72.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007095/0.0007095, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8724/0.8724, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.001532/0.001532, allocations: 230.7 kB / 260.2 MB, free: 13.03 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 0.6649/0.6649, allocations: 138.4 MB / 455.1 MB, free: 29.99 MB / 410.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.703e-06/1.703e-06, allocations: 0 / 0.6475 GB, free: 1.488 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.783e-05/2.954e-05, allocations: 2.281 kB / 0.6475 GB, free: 1.484 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.2866/0.2866, allocations: 2.475 MB / 0.6499 GB, free: 56.1 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.2884, allocations: 1.072 MB / 0.6509 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2886, allocations: 14.31 kB / 0.6509 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002661/0.2889, allocations: 75.88 kB / 0.651 GB, free: 55.62 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.2891, allocations: 129.6 kB / 0.6511 GB, free: 55.55 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.2896, allocations: 184.6 kB / 0.6513 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0004529/0.29, allocations: 0.5184 MB / 0.6518 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.2902, allocations: 28.81 kB / 0.6519 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003778/0.2906, allocations: 318.2 kB / 0.6522 GB, free: 55.32 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.2908, allocations: 181.1 kB / 0.6523 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.2908, allocations: 29.25 kB / 0.6524 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.291, allocations: 79.58 kB / 0.6524 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 6.913e-05/0.2911, allocations: 83.2 kB / 0.6525 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2912, allocations: 127.9 kB / 0.6526 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0005338/0.2917, allocations: 458.7 kB / 0.6531 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2917, allocations: 0 / 0.6531 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.375e-06/0.2917, allocations: 3.531 kB / 0.6531 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.597e-06/0.2918, allocations: 0 / 0.6531 GB, free: 54.98 MB / 0.5573 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.001175/0.2929, allocations: 0.7477 MB / 0.6538 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.293, allocations: 13.75 kB / 0.6538 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003765/0.2934, allocations: 80.83 kB / 0.6539 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.2937, allocations: 280.2 kB / 0.6542 GB, free: 54.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.2937, allocations: 19.55 kB / 0.6542 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.2938, allocations: 21.61 kB / 0.6542 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005148/0.2943, allocations: 327.6 kB / 0.6545 GB, free: 54.05 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.2943, allocations: 2.094 kB / 0.6545 GB, free: 54.05 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.2943, allocations: 11.61 kB / 0.6545 GB, free: 54.05 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2943, allocations: 12.09 kB / 0.6545 GB, free: 54.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.2948, allocations: 291.9 kB / 0.6548 GB, free: 53.97 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.2957, allocations: 0.6432 MB / 0.6554 GB, free: 53.52 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007156/0.2964, allocations: 355.7 kB / 0.6558 GB, free: 53.39 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.2967, allocations: 192.6 kB / 0.656 GB, free: 53.32 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000307/0.297, allocations: 67.59 kB / 0.656 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005539/0.2975, allocations: 332.5 kB / 0.6564 GB, free: 53.18 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 2.084e-06/0.2975, allocations: 0 / 0.6564 GB, free: 53.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=42): time 0.001037/0.2986, allocations: 0.6097 MB / 0.6569 GB, free: 52.98 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2986, allocations: 91.66 kB / 0.657 GB, free: 52.88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.2988, allocations: 302.8 kB / 0.6573 GB, free: 52.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.2989, allocations: 34.92 kB / 0.6574 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/0.299, allocations: 164.2 kB / 0.6575 GB, free: 52.54 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.299, allocations: 145.2 kB / 0.6577 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.2992, allocations: 96.42 kB / 0.6577 GB, free: 52.38 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.104e-05/0.2992, allocations: 350.8 kB / 0.6581 GB, free: 52.05 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.2996, allocations: 292 kB / 0.6584 GB, free: 51.88 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.2999, allocations: 334.9 kB / 0.6587 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.174/3.474, allocations: 0.866 GB / 1.525 GB, free: 260.3 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/3.474, allocations: 0 / 1.525 GB, free: 260.3 MB / 0.7605 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009659/3.475, allocations: 0.739 MB / 1.525 GB, free: 260.1 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.155e-05/3.475, allocations: 91.72 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/3.475, allocations: 1.812 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/3.475, allocations: 5.25 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/3.475, allocations: 112.7 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/3.475, allocations: 8.156 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/3.475, allocations: 70 kB / 1.526 GB, free: 260 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/3.475, allocations: 24.81 kB / 1.526 GB, free: 260 MB / 0.7605 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.0002831/3.476, allocations: 200.5 kB / 1.526 GB, free: 259.9 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/3.476, allocations: 40.48 kB / 1.526 GB, free: 259.9 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/3.477, allocations: 0.6363 MB / 1.527 GB, free: 259.8 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/3.477, allocations: 5.781 kB / 1.527 GB, free: 259.8 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/3.477, allocations: 0 / 1.527 GB, free: 259.8 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/3.477, allocations: 6.641 kB / 1.527 GB, free: 259.8 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/3.477, allocations: 314.3 kB / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/3.477, allocations: 0 / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/3.477, allocations: 105.2 kB / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/3.477, allocations: 4 kB / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/3.477, allocations: 19.69 kB / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/3.477, allocations: 3.688 kB / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/3.477, allocations: 0 / 1.527 GB, free: 259.7 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009943/3.478, allocations: 0.7931 MB / 1.528 GB, free: 259.4 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/3.478, allocations: 79.8 kB / 1.528 GB, free: 259.4 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/3.478, allocations: 16.83 kB / 1.528 GB, free: 259.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/3.479, allocations: 37.58 kB / 1.528 GB, free: 259.3 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/3.479, allocations: 56.97 kB / 1.528 GB, free: 259.3 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/3.479, allocations: 20.05 kB / 1.528 GB, free: 259.3 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001247/3.479, allocations: 207.1 kB / 1.528 GB, free: 259.2 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5.1e-08/3.479, allocations: 2.531 kB / 1.528 GB, free: 259.2 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000306/3.479, allocations: 124.7 kB / 1.528 GB, free: 259.2 MB / 0.7605 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.0001871/3.479, allocations: 144.9 kB / 1.528 GB, free: 259.1 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0007083/3.48, allocations: 0.6824 MB / 1.529 GB, free: 258.7 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/3.48, allocations: 3.875 kB / 1.529 GB, free: 258.7 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002809/3.48, allocations: 238.8 kB / 1.529 GB, free: 258.6 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/3.481, allocations: 74.83 kB / 1.529 GB, free: 258.6 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/3.482, allocations: 0.9625 MB / 1.53 GB, free: 258 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.313e-05/3.482, allocations: 204.6 kB / 1.531 GB, free: 257.9 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/3.482, allocations: 55.67 kB / 1.531 GB, free: 257.9 MB / 0.7605 GB Notification: Performance of SimCode: time 1.512e-06/3.482, allocations: 0 / 1.531 GB, free: 257.9 MB / 0.7605 GB Notification: Performance of Templates: time 0.008235/3.49, allocations: 6.204 MB / 1.537 GB, free: 257.3 MB / 0.7605 GB " [Timeout remaining time 657] 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: 8.916347540915012] Failed to read output from testmodel.py, exit status != 0: 3.4964586598798633 3.505293243 3.211636606 Calling exit ...