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.001025/0.001025, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001455/0.001455, allocations: 173 kB / 23.49 MB, free: 1.059 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.984/0.984, allocations: 177.1 MB / 203.8 MB, free: 5.605 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.001658/0.001658, allocations: 237 kB / 260.5 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 0.7428/0.7428, allocations: 138.4 MB / 455.4 MB, free: 1.535 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 2.224e-06/2.224e-06, allocations: 0 / 0.555 GB, free: 0.918 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.066e-05/3.288e-05, allocations: 6.312 kB / 0.555 GB, free: 0.9102 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.004419/0.004452, allocations: 2.616 MB / 0.5575 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.006627, allocations: 1.095 MB / 0.5586 GB, free: 13.17 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002263/0.006853, allocations: 19.81 kB / 0.5586 GB, free: 13.15 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000314/0.007167, allocations: 67.36 kB / 0.5587 GB, free: 13.08 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.007478, allocations: 138.9 kB / 0.5588 GB, free: 12.95 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.008049, allocations: 175.6 kB / 0.559 GB, free: 12.77 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006223/0.008672, allocations: 0.5214 MB / 0.5595 GB, free: 12.25 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.008823, allocations: 28.91 kB / 0.5595 GB, free: 12.23 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006029/0.009426, allocations: 319.2 kB / 0.5598 GB, free: 11.91 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.009759, allocations: 183.5 kB / 0.56 GB, free: 11.73 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 6.694e-05/0.009826, allocations: 32 kB / 0.56 GB, free: 11.7 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.01002, allocations: 79.89 kB / 0.5601 GB, free: 11.62 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 8.735e-05/0.01011, allocations: 83.64 kB / 0.5602 GB, free: 11.54 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.01028, allocations: 123.6 kB / 0.5603 GB, free: 11.42 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.01081, allocations: 358.7 kB / 0.5607 GB, free: 11.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.01081, allocations: 0 / 0.5607 GB, free: 11.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.01082, allocations: 4 kB / 0.5607 GB, free: 11.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.01083, allocations: 0 / 0.5607 GB, free: 11.07 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.001655/0.01248, allocations: 0.8414 MB / 0.5615 GB, free: 10.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/0.01254, allocations: 8.75 kB / 0.5615 GB, free: 10.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006969/0.01324, allocations: 104.7 kB / 0.5616 GB, free: 10.06 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.01374, allocations: 291 kB / 0.5619 GB, free: 9.746 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.01377, allocations: 16.88 kB / 0.5619 GB, free: 9.727 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.01384, allocations: 28.33 kB / 0.5619 GB, free: 9.699 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006205/0.01446, allocations: 284.5 kB / 0.5622 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.01448, allocations: 192 / 0.5622 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.857e-05/0.01452, allocations: 8.375 kB / 0.5622 GB, free: 9.398 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.01453, allocations: 15.94 kB / 0.5622 GB, free: 9.383 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.0149, allocations: 127.8 kB / 0.5623 GB, free: 9.258 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.01612, allocations: 0.7089 MB / 0.563 GB, free: 8.508 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.0168, allocations: 242.5 kB / 0.5633 GB, free: 8.246 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.01704, allocations: 113.2 kB / 0.5634 GB, free: 8.133 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003891/0.01743, allocations: 59.94 kB / 0.5634 GB, free: 8.074 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004828/0.01791, allocations: 252.1 kB / 0.5637 GB, free: 7.805 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 2.455e-06/0.01791, allocations: 0 / 0.5637 GB, free: 7.805 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.001002/0.01891, allocations: 418 kB / 0.5641 GB, free: 7.395 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.01898, allocations: 85.11 kB / 0.5641 GB, free: 7.293 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.01935, allocations: 346.3 kB / 0.5645 GB, free: 6.934 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.035e-05/0.0194, allocations: 37.7 kB / 0.5645 GB, free: 6.891 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.01955, allocations: 211.6 kB / 0.5647 GB, free: 6.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.01968, allocations: 154.7 kB / 0.5649 GB, free: 6.527 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.01986, allocations: 95.81 kB / 0.565 GB, free: 6.422 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.02006, allocations: 0.5235 MB / 0.5655 GB, free: 5.887 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/0.0204, allocations: 202.7 kB / 0.5657 GB, free: 5.664 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.02074, allocations: 248.3 kB / 0.5659 GB, free: 5.383 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008341/0.02158, allocations: 0.5178 MB / 0.5664 GB, free: 4.809 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.02158, allocations: 0 / 0.5664 GB, free: 4.809 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001012/0.02259, allocations: 0.5618 MB / 0.5669 GB, free: 4.203 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.02266, allocations: 101.2 kB / 0.567 GB, free: 4.086 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.02267, allocations: 4 kB / 0.567 GB, free: 4.082 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.0227, allocations: 4 kB / 0.5671 GB, free: 4.078 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.02325, allocations: 115.8 kB / 0.5672 GB, free: 3.965 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.02326, allocations: 4 kB / 0.5672 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.02363, allocations: 55.75 kB / 0.5672 GB, free: 3.906 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.02369, allocations: 19.98 kB / 0.5672 GB, free: 3.887 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.0003287/0.02401, allocations: 240.5 kB / 0.5675 GB, free: 3.652 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.02413, allocations: 59.69 kB / 0.5675 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.02524, allocations: 485 kB / 0.568 GB, free: 3.113 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.02525, allocations: 8 kB / 0.568 GB, free: 3.105 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.02526, allocations: 3.938 kB / 0.568 GB, free: 3.102 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.02527, allocations: 3.984 kB / 0.568 GB, free: 3.098 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.02571, allocations: 308.2 kB / 0.5683 GB, free: 2.762 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.02572, allocations: 0 / 0.5683 GB, free: 2.762 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.02622, allocations: 99.88 kB / 0.5684 GB, free: 2.664 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.02622, allocations: 4 kB / 0.5684 GB, free: 2.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.282e-05/0.02628, allocations: 19.92 kB / 0.5684 GB, free: 2.641 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.02628, allocations: 8 kB / 0.5684 GB, free: 2.633 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.02629, allocations: 0 / 0.5684 GB, free: 2.633 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.02734, allocations: 0.5387 MB / 0.5689 GB, free: 2.066 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.02755, allocations: 83.58 kB / 0.569 GB, free: 1.984 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.987e-05/0.02763, allocations: 19.92 kB / 0.569 GB, free: 1.965 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.02794, allocations: 27.97 kB / 0.5691 GB, free: 1.938 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.0281, allocations: 51.91 kB / 0.5691 GB, free: 1.887 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.02815, allocations: 19.98 kB / 0.5691 GB, free: 1.867 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002242/0.02837, allocations: 231 kB / 0.5694 GB, free: 1.641 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.02837, allocations: 4 kB / 0.5694 GB, free: 1.637 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0004628/0.02883, allocations: 123.9 kB / 0.5695 GB, free: 1.516 MB / 490.7 MB 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.0002595/0.02909, allocations: 131.1 kB / 0.5696 GB, free: 1.379 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008445/0.02994, allocations: 0.5343 MB / 0.5701 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.02994, allocations: 0 / 0.5701 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.03029, allocations: 175.9 kB / 0.5703 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.03079, allocations: 89.56 kB / 0.5704 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.03282, allocations: 0.8994 MB / 0.5713 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000108/0.03292, allocations: 114.9 kB / 0.5714 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003589/0.03328, allocations: 83.36 kB / 0.5715 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.03348, allocations: 64.47 kB / 0.5715 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/0.03348, allocations: 0 / 0.5715 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.01341/0.04689, allocations: 6.287 MB / 0.5777 GB, free: 9.102 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: 3.7659152089618146]