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.001082/0.001082, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.001096/0.001096, allocations: 169.7 kB / 23.27 MB, free: 1.223 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.9837/0.9837, allocations: 177.1 MB / 203.7 MB, free: 5.488 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.001798/0.001798, allocations: 241.6 kB / 260.5 MB, free: 12.64 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.7838/0.7838, allocations: 138.5 MB / 455.5 MB, free: 1.43 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.924e-06/1.924e-06, allocations: 0 / 0.5556 GB, free: 316 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.405e-05, allocations: 10.25 kB / 0.5556 GB, free: 304 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003761/0.003785, allocations: 2.584 MB / 0.5581 GB, free: 13.69 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.005052, allocations: 1.092 MB / 0.5592 GB, free: 12.59 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.005165, allocations: 15.88 kB / 0.5592 GB, free: 12.57 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.005347, allocations: 75.31 kB / 0.5593 GB, free: 12.5 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.005502, allocations: 142.9 kB / 0.5594 GB, free: 12.36 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.005788, allocations: 167.6 kB / 0.5596 GB, free: 12.2 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.006108, allocations: 0.5253 MB / 0.5601 GB, free: 11.67 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.241e-05/0.006201, allocations: 28.91 kB / 0.5601 GB, free: 11.64 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002833/0.006484, allocations: 319.2 kB / 0.5604 GB, free: 11.33 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.006671, allocations: 183.5 kB / 0.5606 GB, free: 11.15 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.006713, allocations: 28 kB / 0.5606 GB, free: 11.12 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.006823, allocations: 83.88 kB / 0.5607 GB, free: 11.04 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.161e-05/0.006874, allocations: 75.72 kB / 0.5608 GB, free: 10.97 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 8.728e-05/0.006962, allocations: 127.6 kB / 0.5609 GB, free: 10.84 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.007244, allocations: 366.6 kB / 0.5612 GB, free: 10.48 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.007246, allocations: 0 / 0.5612 GB, free: 10.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.007246, allocations: 0 / 0.5612 GB, free: 10.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.00725, allocations: 0 / 0.5612 GB, free: 10.48 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.0008921/0.008142, allocations: 0.8492 MB / 0.5621 GB, free: 9.578 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.008178, allocations: 12.73 kB / 0.5621 GB, free: 9.566 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003309/0.008508, allocations: 100.7 kB / 0.5622 GB, free: 9.469 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.008754, allocations: 287.1 kB / 0.5624 GB, free: 9.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.008769, allocations: 12.88 kB / 0.5624 GB, free: 9.145 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.845e-05/0.008807, allocations: 32.33 kB / 0.5625 GB, free: 9.113 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.009104, allocations: 272.4 kB / 0.5627 GB, free: 8.832 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.009115, allocations: 192 / 0.5627 GB, free: 8.832 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.009135, allocations: 8.375 kB / 0.5627 GB, free: 8.824 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.009143, allocations: 7.938 kB / 0.5628 GB, free: 8.816 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.009289, allocations: 103.9 kB / 0.5629 GB, free: 8.715 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000595/0.009884, allocations: 0.6741 MB / 0.5635 GB, free: 8.008 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.01051, allocations: 218.5 kB / 0.5637 GB, free: 7.77 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.01066, allocations: 110.1 kB / 0.5638 GB, free: 7.656 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/0.01087, allocations: 71.86 kB / 0.5639 GB, free: 7.586 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.01111, allocations: 224.1 kB / 0.5641 GB, free: 7.344 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.01111, allocations: 0 / 0.5641 GB, free: 7.344 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.0004575/0.01157, allocations: 367.6 kB / 0.5645 GB, free: 6.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.01161, allocations: 92.98 kB / 0.5645 GB, free: 6.871 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.01178, allocations: 342.2 kB / 0.5649 GB, free: 6.516 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.01181, allocations: 37.69 kB / 0.5649 GB, free: 6.473 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.235e-05/0.01191, allocations: 215.6 kB / 0.5651 GB, free: 6.258 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.417e-05/0.01199, allocations: 158.6 kB / 0.5653 GB, free: 6.102 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/0.01209, allocations: 99.77 kB / 0.5654 GB, free: 5.992 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.01221, allocations: 0.5234 MB / 0.5659 GB, free: 5.457 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.01236, allocations: 182.6 kB / 0.566 GB, free: 5.254 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.01251, allocations: 232.3 kB / 0.5663 GB, free: 4.988 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.01287, allocations: 482.2 kB / 0.5667 GB, free: 4.461 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.01287, allocations: 0 / 0.5667 GB, free: 4.461 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004297/0.0133, allocations: 0.5228 MB / 0.5672 GB, free: 3.895 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.01335, allocations: 93.09 kB / 0.5673 GB, free: 3.785 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01335, allocations: 3.938 kB / 0.5673 GB, free: 3.781 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.01336, allocations: 4 kB / 0.5673 GB, free: 3.777 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.01362, allocations: 112 kB / 0.5674 GB, free: 3.668 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.01363, allocations: 8 kB / 0.5674 GB, free: 3.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.0138, allocations: 55.75 kB / 0.5675 GB, free: 3.605 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.01383, allocations: 27.91 kB / 0.5675 GB, free: 3.578 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_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 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 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_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1,$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) * 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.0001856/0.01402, allocations: 247.6 kB / 0.5678 GB, free: 3.336 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.271e-05/0.01407, allocations: 47.77 kB / 0.5678 GB, free: 3.289 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005458/0.01462, allocations: 464.4 kB / 0.5683 GB, free: 2.832 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01462, allocations: 4 kB / 0.5683 GB, free: 2.828 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.01462, allocations: 3.938 kB / 0.5683 GB, free: 2.824 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.01463, allocations: 7.984 kB / 0.5683 GB, free: 2.816 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.01486, allocations: 268.8 kB / 0.5685 GB, free: 2.527 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01486, allocations: 0 / 0.5685 GB, free: 2.527 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.0151, allocations: 99.88 kB / 0.5686 GB, free: 2.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.01511, allocations: 4 kB / 0.5686 GB, free: 2.426 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.01513, allocations: 12 kB / 0.5686 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.01513, allocations: 7.984 kB / 0.5686 GB, free: 2.406 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.01514, allocations: 7.875 kB / 0.5686 GB, free: 2.398 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.01563, allocations: 491.6 kB / 0.5691 GB, free: 1.891 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.01574, allocations: 83.56 kB / 0.5692 GB, free: 1.809 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.01577, allocations: 16 kB / 0.5692 GB, free: 1.793 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.01592, allocations: 31.91 kB / 0.5692 GB, free: 1.762 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.016, allocations: 59.89 kB / 0.5693 GB, free: 1.703 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.01602, allocations: 12 kB / 0.5693 GB, free: 1.691 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.903e-05/0.01612, allocations: 218.9 kB / 0.5695 GB, free: 1.477 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01612, allocations: 0 / 0.5695 GB, free: 1.477 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002397/0.01636, allocations: 127.9 kB / 0.5696 GB, free: 1.352 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.0001362/0.0165, allocations: 139 kB / 0.5698 GB, free: 1.207 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003857/0.01688, allocations: 0.4914 MB / 0.5703 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01688, allocations: 0 / 0.5703 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.01731, allocations: 160.3 kB / 0.5704 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.01758, allocations: 85.36 kB / 0.5705 GB, free: 420 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.01859, allocations: 0.8957 MB / 0.5714 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.041e-05/0.01866, allocations: 107 kB / 0.5715 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001932/0.01885, allocations: 79.39 kB / 0.5715 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.01908, allocations: 174.1 kB / 0.5717 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of SimCode: time 7.52e-07/0.01908, allocations: 0 / 0.5717 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.008286/0.02737, allocations: 6.806 MB / 0.5784 GB, free: 8.406 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.638517238199711]