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.00161/0.00161, allocations: 79.2 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001794/0.001794, allocations: 165.8 kB / 22.45 MB, free: 5.375 MB / 14.72 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.444/1.444, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.002639/0.002639, allocations: 241.2 kB / 259.4 MB, free: 460 kB / 238.1 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 1.088/1.088, allocations: 138.4 MB / 454.3 MB, free: 2 MB / 366.1 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.733e-06/1.733e-06, allocations: 0 / 0.6467 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.902e-05/3.076e-05, allocations: 9.734 kB / 0.6467 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.004181/0.004211, allocations: 2.477 MB / 0.6492 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.006506, allocations: 1.064 MB / 0.6502 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002447/0.00675, allocations: 19.81 kB / 0.6502 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.007035, allocations: 67.31 kB / 0.6503 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003085/0.007343, allocations: 138.9 kB / 0.6504 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.007884, allocations: 175.6 kB / 0.6506 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008003/0.008684, allocations: 0.5253 MB / 0.6511 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.00885, allocations: 24.92 kB / 0.6511 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006996/0.00955, allocations: 319.2 kB / 0.6514 GB, free: 228 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004066/0.009956, allocations: 179.5 kB / 0.6516 GB, free: 48 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.048e-05/0.01004, allocations: 28 kB / 0.6516 GB, free: 20 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2688/0.2788, allocations: 79.12 kB / 0.6517 GB, free: 53.83 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2789, allocations: 78.69 kB / 0.6518 GB, free: 53.83 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002881/0.2792, allocations: 125.2 kB / 0.6519 GB, free: 53.83 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.2799, allocations: 462.1 kB / 0.6523 GB, free: 53.81 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2799, allocations: 0.6875 kB / 0.6523 GB, free: 53.81 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.21e-07/0.2799, allocations: 0 / 0.6523 GB, free: 53.81 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.907e-05/0.2799, allocations: 0.5312 kB / 0.6523 GB, free: 53.81 MB / 0.5606 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.001609/0.2815, allocations: 0.7513 MB / 0.6531 GB, free: 53.3 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.644e-05/0.2815, allocations: 12.78 kB / 0.6531 GB, free: 53.3 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006352/0.2822, allocations: 83.75 kB / 0.6532 GB, free: 53.28 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.2825, allocations: 283.3 kB / 0.6534 GB, free: 53.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.2825, allocations: 18.41 kB / 0.6535 GB, free: 53.11 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.514e-05/0.2826, allocations: 21.47 kB / 0.6535 GB, free: 53.11 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.2832, allocations: 328.9 kB / 0.6538 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.2833, allocations: 3.25 kB / 0.6538 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.2833, allocations: 10.5 kB / 0.6538 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2833, allocations: 8.844 kB / 0.6538 GB, free: 53.05 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007738/0.2841, allocations: 295 kB / 0.6541 GB, free: 53.05 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008981/0.285, allocations: 0.6385 MB / 0.6547 GB, free: 52.75 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.286, allocations: 359.6 kB / 0.6551 GB, free: 52.71 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.2865, allocations: 191.3 kB / 0.6552 GB, free: 52.69 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005007/0.287, allocations: 71.27 kB / 0.6553 GB, free: 52.69 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007799/0.2878, allocations: 323.5 kB / 0.6556 GB, free: 52.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 3.016e-06/0.2878, allocations: 0 / 0.6556 GB, free: 52.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.001649/0.2895, allocations: 0.6169 MB / 0.6562 GB, free: 52.56 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.2895, allocations: 93.44 kB / 0.6563 GB, free: 52.47 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.2898, allocations: 299.1 kB / 0.6566 GB, free: 52.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/0.2898, allocations: 37.36 kB / 0.6566 GB, free: 52.32 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.316e-05/0.2899, allocations: 166.5 kB / 0.6568 GB, free: 52.23 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.2901, allocations: 145.9 kB / 0.6569 GB, free: 52.14 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.2902, allocations: 95.34 kB / 0.657 GB, free: 52.12 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.2903, allocations: 348.6 kB / 0.6573 GB, free: 51.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005297/0.2908, allocations: 293.4 kB / 0.6576 GB, free: 51.64 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.2913, allocations: 325.1 kB / 0.6579 GB, free: 51.44 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.337/6.629, allocations: 0.866 GB / 1.524 GB, free: 4.324 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/6.629, allocations: 0 / 1.524 GB, free: 4.324 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001888/6.631, allocations: 0.7245 MB / 1.525 GB, free: 3.738 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 5.644e-05/6.631, allocations: 93.78 kB / 1.525 GB, free: 3.633 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/6.631, allocations: 8 kB / 1.525 GB, free: 3.625 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/6.631, allocations: 4 kB / 1.525 GB, free: 3.621 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/6.631, allocations: 114.5 kB / 1.525 GB, free: 3.52 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/6.631, allocations: 4 kB / 1.525 GB, free: 3.516 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/6.632, allocations: 66.33 kB / 1.525 GB, free: 3.48 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/6.632, allocations: 26.36 kB / 1.525 GB, free: 3.461 MB / 0.7637 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.0003879/6.632, allocations: 193.3 kB / 1.525 GB, free: 3.297 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/6.632, allocations: 41.14 kB / 1.525 GB, free: 3.277 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/6.634, allocations: 0.6256 MB / 1.526 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/6.634, allocations: 8 kB / 1.526 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/6.634, allocations: 0 / 1.526 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/6.634, allocations: 7.641 kB / 1.526 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/6.634, allocations: 334.7 kB / 1.526 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/6.634, allocations: 1.812 kB / 1.526 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/6.635, allocations: 111.8 kB / 1.526 GB, free: 2.348 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.433e-06/6.635, allocations: 0 / 1.526 GB, free: 2.348 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.78e-05/6.635, allocations: 19.98 kB / 1.526 GB, free: 2.328 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/6.635, allocations: 0 / 1.526 GB, free: 2.328 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/6.635, allocations: 1.062 kB / 1.526 GB, free: 2.328 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/6.637, allocations: 0.7896 MB / 1.527 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/6.637, allocations: 80.88 kB / 1.527 GB, free: 1.477 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.368e-05/6.637, allocations: 12 kB / 1.527 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/6.637, allocations: 39.95 kB / 1.527 GB, free: 1.426 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/6.637, allocations: 67.77 kB / 1.527 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/6.637, allocations: 16 kB / 1.527 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000176/6.638, allocations: 215.6 kB / 1.527 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8e-08/6.638, allocations: 0 / 1.527 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004364/6.638, allocations: 118.8 kB / 1.528 GB, free: 1.023 MB / 0.7637 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.0002155/6.638, allocations: 138.6 kB / 1.528 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001165/6.639, allocations: 0.6954 MB / 1.528 GB, free: 148 kB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/6.639, allocations: 0 / 1.528 GB, free: 148 kB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.2558/6.895, allocations: 237.1 kB / 1.529 GB, free: 264.3 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006447/6.896, allocations: 69.89 kB / 1.529 GB, free: 264.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/6.897, allocations: 0.9259 MB / 1.53 GB, free: 263.9 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/6.898, allocations: 201.5 kB / 1.53 GB, free: 263.8 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003094/6.898, allocations: 82.86 kB / 1.53 GB, free: 263.8 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/6.898, allocations: 57.88 kB / 1.53 GB, free: 263.7 MB / 0.7637 GB Notification: Performance of SimCode: time 8.62e-07/6.898, allocations: 0 / 1.53 GB, free: 263.7 MB / 0.7637 GB Notification: Performance of Templates: time 0.01023/6.908, allocations: 6.231 MB / 1.536 GB, free: 263.2 MB / 0.7637 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: 12.721718680113554] Failed to read output from testmodel.py, exit status != 0: 6.91648044064641 6.926815522 6.644269727 Calling exit ...