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.001023/0.001023, allocations: 93.06 kB / 19.65 MB, free: 280 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.00116/0.00116, allocations: 169 kB / 23.02 MB, free: 1.555 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.02/1.02, allocations: 177.1 MB / 203.4 MB, free: 5.656 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.001686/0.001686, allocations: 234 kB / 260.2 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 0.76/0.76, allocations: 138.4 MB / 455.2 MB, free: 1.5 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.503e-06/1.503e-06, allocations: 0 / 0.5551 GB, free: 0.5234 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.769e-05/2.92e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.5195 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.00296/0.002989, allocations: 2.631 MB / 0.5577 GB, free: 13.87 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.004772, allocations: 1.099 MB / 0.5587 GB, free: 12.76 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.004954, allocations: 19.81 kB / 0.5587 GB, free: 12.74 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.005191, allocations: 67.31 kB / 0.5588 GB, free: 12.67 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.005414, allocations: 142.9 kB / 0.5589 GB, free: 12.53 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.005882, allocations: 175.6 kB / 0.5591 GB, free: 12.36 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004726/0.006354, allocations: 0.5137 MB / 0.5596 GB, free: 11.84 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.006473, allocations: 36.83 kB / 0.5597 GB, free: 11.81 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.00689, allocations: 319.2 kB / 0.56 GB, free: 11.5 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.007117, allocations: 183.5 kB / 0.5601 GB, free: 11.32 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.007165, allocations: 28 kB / 0.5602 GB, free: 11.29 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.007322, allocations: 87.88 kB / 0.5602 GB, free: 11.21 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-05/0.007385, allocations: 75.67 kB / 0.5603 GB, free: 11.13 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.007508, allocations: 131.6 kB / 0.5604 GB, free: 11 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.007876, allocations: 358.7 kB / 0.5608 GB, free: 10.65 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.007879, allocations: 0 / 0.5608 GB, free: 10.65 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.007881, allocations: 0 / 0.5608 GB, free: 10.65 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.007887, allocations: 0 / 0.5608 GB, free: 10.65 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.001007/0.008894, allocations: 0.8376 MB / 0.5616 GB, free: 9.758 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.008934, allocations: 12.75 kB / 0.5616 GB, free: 9.746 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003687/0.009303, allocations: 100.7 kB / 0.5617 GB, free: 9.648 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.009623, allocations: 291 kB / 0.562 GB, free: 9.336 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.009645, allocations: 20.88 kB / 0.562 GB, free: 9.312 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.009699, allocations: 28.33 kB / 0.562 GB, free: 9.285 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.01009, allocations: 276.5 kB / 0.5623 GB, free: 9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.01011, allocations: 192 / 0.5623 GB, free: 9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.01013, allocations: 12.38 kB / 0.5623 GB, free: 8.988 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.01014, allocations: 7.938 kB / 0.5623 GB, free: 8.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.01036, allocations: 132.8 kB / 0.5624 GB, free: 8.852 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007748/0.01114, allocations: 0.7167 MB / 0.5631 GB, free: 8.094 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004824/0.01162, allocations: 238.5 kB / 0.5634 GB, free: 7.836 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.01178, allocations: 107.3 kB / 0.5635 GB, free: 7.723 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/0.01204, allocations: 63.94 kB / 0.5635 GB, free: 7.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003426/0.01239, allocations: 248.1 kB / 0.5638 GB, free: 7.395 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 1.914e-06/0.01239, allocations: 0 / 0.5638 GB, free: 7.395 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.000698/0.01309, allocations: 413.5 kB / 0.5642 GB, free: 6.988 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.01315, allocations: 85.11 kB / 0.5642 GB, free: 6.887 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.01341, allocations: 350.2 kB / 0.5646 GB, free: 6.523 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.01344, allocations: 37.7 kB / 0.5646 GB, free: 6.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.01357, allocations: 207.7 kB / 0.5648 GB, free: 6.273 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.382e-05/0.01366, allocations: 154.6 kB / 0.565 GB, free: 6.121 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.01377, allocations: 99.81 kB / 0.5651 GB, free: 6.012 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.01392, allocations: 0.5196 MB / 0.5656 GB, free: 5.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.01413, allocations: 198.7 kB / 0.5658 GB, free: 5.262 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.01433, allocations: 252.3 kB / 0.566 GB, free: 4.977 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/0.01484, allocations: 0.5178 MB / 0.5665 GB, free: 4.402 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.01484, allocations: 0 / 0.5665 GB, free: 4.402 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005529/0.01539, allocations: 0.5653 MB / 0.5671 GB, free: 3.797 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.684e-05/0.01545, allocations: 97.03 kB / 0.5671 GB, free: 3.684 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.01546, allocations: 0 / 0.5671 GB, free: 3.684 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.01547, allocations: 4 kB / 0.5671 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.01576, allocations: 119.9 kB / 0.5673 GB, free: 3.562 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.01577, allocations: 7.984 kB / 0.5673 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.01596, allocations: 55.77 kB / 0.5673 GB, free: 3.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.01599, allocations: 23.98 kB / 0.5673 GB, free: 3.477 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.0002231/0.01621, allocations: 237.2 kB / 0.5676 GB, free: 3.246 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.01627, allocations: 59.69 kB / 0.5676 GB, free: 3.188 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006523/0.01692, allocations: 485 kB / 0.5681 GB, free: 2.707 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.01693, allocations: 4 kB / 0.5681 GB, free: 2.703 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.01693, allocations: 4 kB / 0.5681 GB, free: 2.699 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.01694, allocations: 7.984 kB / 0.5681 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/0.0172, allocations: 304.2 kB / 0.5684 GB, free: 2.359 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.01721, allocations: 3.984 kB / 0.5684 GB, free: 2.355 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.01748, allocations: 95.89 kB / 0.5685 GB, free: 2.262 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.01749, allocations: 7.984 kB / 0.5685 GB, free: 2.254 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/0.01752, allocations: 15.94 kB / 0.5685 GB, free: 2.238 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.01752, allocations: 7.938 kB / 0.5685 GB, free: 2.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.01752, allocations: 0 / 0.5685 GB, free: 2.23 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.01817, allocations: 0.5465 MB / 0.5691 GB, free: 1.656 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.01828, allocations: 83.56 kB / 0.5691 GB, free: 1.574 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.01832, allocations: 15.94 kB / 0.5692 GB, free: 1.559 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.01848, allocations: 27.97 kB / 0.5692 GB, free: 1.531 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.01858, allocations: 51.91 kB / 0.5692 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.0186, allocations: 19.98 kB / 0.5692 GB, free: 1.461 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.01873, allocations: 231 kB / 0.5695 GB, free: 1.234 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01873, allocations: 0 / 0.5695 GB, free: 1.234 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002643/0.019, allocations: 123.9 kB / 0.5696 GB, free: 1.113 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.0001739/0.01917, allocations: 139.1 kB / 0.5697 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005043/0.01968, allocations: 0.5343 MB / 0.5702 GB, free: 380 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01968, allocations: 0 / 0.5702 GB, free: 380 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.01988, allocations: 172.4 kB / 0.5704 GB, free: 204 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.02018, allocations: 81.58 kB / 0.5705 GB, free: 124 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.02147, allocations: 0.9072 MB / 0.5714 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.42e-05/0.02154, allocations: 111 kB / 0.5715 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002035/0.02174, allocations: 83.38 kB / 0.5716 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.02188, allocations: 56.47 kB / 0.5716 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/0.02188, allocations: 0 / 0.5716 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of Templates: time 0.008662/0.03054, allocations: 6.299 MB / 0.5778 GB, free: 8.688 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: 4.022442200221121]