Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 200 kB / 16.79 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1857/0.1857, allocations: 22.35 MB / 313 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2329, allocations: 54.94 MB / 435.7 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003237/0.2362, allocations: 3.442 MB / 439.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.2374, allocations: 0.931 MB / 440.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.2375, allocations: 2.844 kB / 440.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2377, allocations: 51.61 kB / 440.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.238, allocations: 152.5 kB / 440.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.2384, allocations: 165.6 kB / 440.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.2389, allocations: 0.8098 MB / 441.3 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.2393, allocations: 388.8 kB / 441.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/0.2395, allocations: 283.7 kB / 441.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.2399, allocations: 388.7 kB / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-05/0.24, allocations: 50.34 kB / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.2401, allocations: 50.69 kB / 442.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.2402, allocations: 185 kB / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.2404, allocations: 312.2 kB / 442.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.2408, allocations: 0.5963 MB / 443.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2408, allocations: 3.938 kB / 443.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2408, allocations: 3.344 kB / 443.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2408, allocations: 0 / 443.5 MB, free: 35.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001622/0.2424, allocations: 0.8974 MB / 444.4 MB, free: 34.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.2425, allocations: 12.78 kB / 444.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2426, allocations: 63.28 kB / 444.5 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.243, allocations: 387.3 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.2431, allocations: 112.4 kB / 444.9 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-05/0.2432, allocations: 56.08 kB / 445 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.2447, allocations: 0.6915 MB / 445.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.2447, allocations: 4 kB / 445.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.2448, allocations: 18.72 kB / 445.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.2448, allocations: 13.75 kB / 445.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2461, allocations: 0.6044 MB / 446.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004177/0.2503, allocations: 2.58 MB / 448.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.2513, allocations: 0.5421 MB / 449.5 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008051/0.2522, allocations: 416.3 kB / 449.9 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.2522, allocations: 10.94 kB / 449.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.2522, allocations: 37.56 kB / 449.9 MB, free: 31.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.2522, allocations: 6.281 kB / 449.9 MB, free: 31.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004979/0.2572, allocations: 2.193 MB / 452.1 MB, free: 30.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.2573, allocations: 54.97 kB / 452.2 MB, free: 30.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.2576, allocations: 360 kB / 452.5 MB, free: 30.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.317e-05/0.2576, allocations: 40.89 kB / 452.6 MB, free: 30.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.2577, allocations: 227.1 kB / 452.8 MB, free: 30.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2578, allocations: 183.8 kB / 453 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.258, allocations: 92.41 kB / 453 MB, free: 30.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.806e-05/0.2581, allocations: 356.7 kB / 453.4 MB, free: 29.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007512/0.2589, allocations: 374.5 kB / 453.8 MB, free: 29.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007829/0.2596, allocations: 416.3 kB / 454.2 MB, free: 29.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006231/0.2659, allocations: 1.992 MB / 456.2 MB, free: 28.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2659, allocations: 4 kB / 456.2 MB, free: 28.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001758/0.2677, allocations: 0.8505 MB / 457 MB, free: 28.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2677, allocations: 5.312 kB / 457 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2677, allocations: 1.344 kB / 457 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2677, allocations: 4.188 kB / 457 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005483/0.2732, allocations: 0.9099 MB / 457.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2733, allocations: 3.922 kB / 457.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/0.2738, allocations: 59.33 kB / 458 MB, free: 28.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.2738, allocations: 24.69 kB / 458 MB, free: 28.61 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * 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.0003028/0.2742, allocations: 205.6 kB / 458.2 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-05/0.2743, allocations: 43.81 kB / 458.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.2761, allocations: 0.832 MB / 459.1 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.2761, allocations: 5.125 kB / 459.1 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2762, allocations: 1.281 kB / 459.1 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2762, allocations: 6.906 kB / 459.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.2792, allocations: 1.743 MB / 460.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.2792, allocations: 1.703 kB / 460.9 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005651/0.2849, allocations: 0.9026 MB / 461.8 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.2849, allocations: 1.625 kB / 461.8 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-05/0.285, allocations: 21.17 kB / 461.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.285, allocations: 3.016 kB / 461.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.285, allocations: 5.672 kB / 461.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.2876, allocations: 1.268 MB / 463.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.2877, allocations: 120.4 kB / 463.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/0.2878, allocations: 12.91 kB / 463.2 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.2883, allocations: 55.77 kB / 463.2 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.2885, allocations: 74.09 kB / 463.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.2886, allocations: 17.39 kB / 463.3 MB, free: 26.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002634/0.2889, allocations: 257.3 kB / 463.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2889, allocations: 0 / 463.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.2894, allocations: 149.2 kB / 463.7 MB, free: 26.31 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001293/0.2895, allocations: 117.3 kB / 463.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.2913, allocations: 0.7943 MB / 464.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2914, allocations: 0 / 464.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008405/0.2922, allocations: 420.5 kB / 465 MB, free: 25.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005741/0.2928, allocations: 100.8 kB / 465.1 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.2964, allocations: 1.992 MB / 467.1 MB, free: 24.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.2967, allocations: 0.853 MB / 468 MB, free: 23.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.2971, allocations: 50.75 kB / 468 MB, free: 23.85 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2971, allocations: 1.094 kB / 468 MB, free: 23.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01144/0.3086, allocations: 7.366 MB / 475.4 MB, free: 21.55 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)