Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.001676/0.001676, allocations: 78.95 kB / 19.18 MB, free: 2.523 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.001507/0.001507, allocations: 167 kB / 22.46 MB, free: 5.371 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.479/1.479, allocations: 177.1 MB / 202.8 MB, free: 9.172 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.002459/0.002459, allocations: 247.4 kB / 259.4 MB, free: 468 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.21/1.21, allocations: 138.4 MB / 454.3 MB, free: 1.984 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.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.6467 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.904e-05/3.06e-05, allocations: 9.875 kB / 0.6467 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.004648/0.004679, allocations: 1.893 MB / 0.6486 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002289/0.006968, allocations: 0.8541 MB / 0.6494 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000172/0.00714, allocations: 11.94 kB / 0.6494 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.007462, allocations: 47.58 kB / 0.6495 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.007684, allocations: 55.56 kB / 0.6495 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.008144, allocations: 95.62 kB / 0.6496 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.008561, allocations: 203.2 kB / 0.6498 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.008676, allocations: 13.73 kB / 0.6498 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.009009, allocations: 123.7 kB / 0.65 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.009191, allocations: 59.84 kB / 0.65 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/0.00924, allocations: 12 kB / 0.65 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.009435, allocations: 63.94 kB / 0.6501 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.54e-05/0.00949, allocations: 23.86 kB / 0.6501 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.009611, allocations: 55.83 kB / 0.6502 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.01003, allocations: 199.3 kB / 0.6504 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.01003, allocations: 0 / 0.6504 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.22e-07/0.01004, allocations: 4 kB / 0.6504 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.01004, allocations: 0 / 0.6504 GB, free: 1.348 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001197/0.01124, allocations: 447 kB / 0.6508 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.01128, allocations: 9.344 kB / 0.6508 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004241/0.01171, allocations: 32.83 kB / 0.6508 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.01207, allocations: 181.4 kB / 0.651 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.01209, allocations: 8.375 kB / 0.651 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.694e-05/0.01216, allocations: 8.375 kB / 0.651 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.01262, allocations: 132.3 kB / 0.6511 GB, free: 496 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.01264, allocations: 192 / 0.6511 GB, free: 496 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.01266, allocations: 4.359 kB / 0.6511 GB, free: 492 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.01268, allocations: 7.938 kB / 0.6511 GB, free: 484 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004874/0.01317, allocations: 95.92 kB / 0.6512 GB, free: 388 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008831/0.01405, allocations: 324.3 kB / 0.6515 GB, free: 32 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2688/0.2829, allocations: 122.2 kB / 0.6517 GB, free: 57.11 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.283, allocations: 74.72 kB / 0.6517 GB, free: 57.11 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000498/0.2835, allocations: 61.06 kB / 0.6518 GB, free: 57.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/0.2839, allocations: 125.1 kB / 0.6519 GB, free: 57.06 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 3.256e-06/0.2839, allocations: 0 / 0.6519 GB, free: 57.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.0006557/0.2846, allocations: 238.4 kB / 0.6521 GB, free: 57.03 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.2846, allocations: 61.36 kB / 0.6522 GB, free: 56.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.2847, allocations: 171.8 kB / 0.6524 GB, free: 56.86 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.2848, allocations: 32.42 kB / 0.6524 GB, free: 56.83 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/0.2848, allocations: 109.3 kB / 0.6525 GB, free: 56.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.2849, allocations: 61.02 kB / 0.6526 GB, free: 56.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.229e-05/0.2849, allocations: 41.89 kB / 0.6526 GB, free: 56.71 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.567e-05/0.285, allocations: 333.9 kB / 0.6529 GB, free: 56.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.2852, allocations: 96.69 kB / 0.653 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.2854, allocations: 118.7 kB / 0.6531 GB, free: 56.31 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.711/2.997, allocations: 378.8 MB / 1.023 GB, free: 220.6 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/2.997, allocations: 3.656 kB / 1.023 GB, free: 220.6 MB / 0.7637 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008145/2.997, allocations: 285.2 kB / 1.023 GB, free: 220.4 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/2.997, allocations: 35.33 kB / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/2.997, allocations: 0 / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/2.998, allocations: 6.25 kB / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/2.998, allocations: 44.34 kB / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/2.998, allocations: 0 / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/2.998, allocations: 24.62 kB / 1.023 GB, free: 220.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/2.998, allocations: 4.75 kB / 1.023 GB, free: 220.3 MB / 0.7637 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0002429/2.998, allocations: 160.5 kB / 1.024 GB, free: 220.1 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/2.998, allocations: 16.59 kB / 1.024 GB, free: 220.1 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008494/2.999, allocations: 242.2 kB / 1.024 GB, free: 220 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/2.999, allocations: 4 kB / 1.024 GB, free: 220 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/2.999, allocations: 0 / 1.024 GB, free: 220 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/2.999, allocations: 2.5 kB / 1.024 GB, free: 220 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/3, allocations: 181 kB / 1.024 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/3, allocations: 0 / 1.024 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/3, allocations: 39.17 kB / 1.024 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/3, allocations: 0 / 1.024 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/3, allocations: 9.359 kB / 1.024 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/3, allocations: 0 / 1.024 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/3, allocations: 0 / 1.024 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009203/3.001, allocations: 313.8 kB / 1.024 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/3.001, allocations: 32.92 kB / 1.024 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/3.001, allocations: 12.56 kB / 1.024 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/3.001, allocations: 7.984 kB / 1.024 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.199e-05/3.001, allocations: 23.52 kB / 1.024 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/3.001, allocations: 4 kB / 1.024 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0001047/3.001, allocations: 133.1 kB / 1.025 GB, free: 219.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.11e-07/3.001, allocations: 0 / 1.025 GB, free: 219.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004892/3.002, allocations: 60.56 kB / 1.025 GB, free: 219.3 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001993/3.002, allocations: 122.2 kB / 1.025 GB, free: 219.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006126/3.003, allocations: 251.5 kB / 1.025 GB, free: 218.9 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/3.003, allocations: 3.297 kB / 1.025 GB, free: 218.9 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002797/3.003, allocations: 81.78 kB / 1.025 GB, free: 218.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/3.003, allocations: 33.73 kB / 1.025 GB, free: 218.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009578/3.004, allocations: 456.7 kB / 1.025 GB, free: 218.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.721e-05/3.005, allocations: 108.3 kB / 1.026 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001712/3.005, allocations: 30.7 kB / 1.026 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/3.005, allocations: 20.5 kB / 1.026 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of SimCode: time 4.01e-07/3.005, allocations: 3.062 kB / 1.026 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of Templates: time 0.008011/3.013, allocations: 2.624 MB / 1.028 GB, free: 215.7 MB / 0.7637 GB " [Timeout remaining time 657] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.866250410676003] Failed to read output from testmodel.py, exit status != 0: 3.0233389250934124 3.036791105 3.023569647 Calling exit ...