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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 194.6 kB / 16.14 MB, free: 6.703 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.196/1.196, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1799/0.1799, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 59.91 kB / 380.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2112, allocations: 54.95 MB / 435.2 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003001/0.2142, allocations: 3.442 MB / 438.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009875/0.2152, allocations: 0.9317 MB / 439.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2154, allocations: 2.656 kB / 439.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.2155, allocations: 51.72 kB / 439.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.2158, allocations: 155.1 kB / 439.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.2161, allocations: 166.7 kB / 439.9 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.2165, allocations: 0.8084 MB / 440.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.2169, allocations: 389.8 kB / 441.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2171, allocations: 279.5 kB / 441.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.2174, allocations: 391.9 kB / 441.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.54e-05/0.2175, allocations: 50.66 kB / 441.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.219e-05/0.2175, allocations: 50.84 kB / 441.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.2177, allocations: 178 kB / 442 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.2179, allocations: 318.7 kB / 442.4 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.2183, allocations: 0.7635 MB / 443.1 MB, free: 35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2183, allocations: 0 / 443.1 MB, free: 35 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2183, allocations: 0 / 443.1 MB, free: 35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2183, allocations: 0 / 443.1 MB, free: 35 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.001393/0.2197, allocations: 0.8972 MB / 444 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.2197, allocations: 11.12 kB / 444 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.623e-05/0.2198, allocations: 99.56 kB / 444.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.2199, allocations: 66.31 kB / 444.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.2203, allocations: 394.3 kB / 444.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.2204, allocations: 106.9 kB / 444.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.863e-05/0.2204, allocations: 51.84 kB / 444.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2217, allocations: 0.6897 MB / 445.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.2217, allocations: 0 / 445.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.323e-05/0.2218, allocations: 21.69 kB / 445.4 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.2218, allocations: 12.31 kB / 445.4 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.2229, allocations: 0.604 MB / 446.1 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003705/0.2267, allocations: 2.583 MB / 448.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009153/0.2276, allocations: 0.5498 MB / 449.2 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006798/0.2283, allocations: 413.4 kB / 449.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-05/0.2283, allocations: 4.188 kB / 449.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.2283, allocations: 43.66 kB / 449.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.462e-06/0.2283, allocations: 0 / 449.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004389/0.2327, allocations: 2.192 MB / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.2328, allocations: 58.16 kB / 451.9 MB, free: 30.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.233, allocations: 353.1 kB / 452.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.2331, allocations: 36.73 kB / 452.3 MB, free: 30.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.2332, allocations: 233.8 kB / 452.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.309e-05/0.2333, allocations: 185.4 kB / 452.7 MB, free: 30.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.2334, allocations: 95.84 kB / 452.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.2335, allocations: 359 kB / 453.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006744/0.2342, allocations: 370.3 kB / 453.5 MB, free: 29.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007142/0.2349, allocations: 413.6 kB / 453.9 MB, free: 29.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00556/0.2404, allocations: 1.991 MB / 455.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.2405, allocations: 1.062 kB / 455.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001578/0.242, allocations: 0.8497 MB / 456.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.2421, allocations: 9.062 kB / 456.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2421, allocations: 5.312 kB / 456.7 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2421, allocations: 4.156 kB / 456.7 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005152/0.2473, allocations: 0.9089 MB / 457.7 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2473, allocations: 4.469 kB / 457.7 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.2477, allocations: 60.11 kB / 457.7 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.2478, allocations: 19.59 kB / 457.7 MB, free: 28.41 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.0002394/0.248, allocations: 209.3 kB / 457.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.431e-05/0.2481, allocations: 44.69 kB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.2498, allocations: 0.8441 MB / 458.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.2498, allocations: 4.969 kB / 458.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2498, allocations: 0 / 458.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2499, allocations: 3.969 kB / 458.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.2526, allocations: 1.744 MB / 460.6 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2526, allocations: 0 / 460.6 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005257/0.2579, allocations: 0.9033 MB / 461.5 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2579, allocations: 2.438 kB / 461.5 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.2579, allocations: 17.44 kB / 461.5 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2579, allocations: 1.406 kB / 461.5 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.258, allocations: 1.438 kB / 461.5 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.2603, allocations: 1.269 MB / 462.8 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.118e-05/0.2603, allocations: 119.3 kB / 462.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.417e-05/0.2604, allocations: 14.75 kB / 462.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004772/0.2609, allocations: 58.8 kB / 463 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.2611, allocations: 69.73 kB / 463 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.2611, allocations: 17.86 kB / 463 MB, free: 26.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.2613, allocations: 261.3 kB / 463.3 MB, free: 26.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2613, allocations: 0 / 463.3 MB, free: 26.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004085/0.2618, allocations: 140.6 kB / 463.4 MB, free: 26.12 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.002444/0.2642, allocations: 1.829 MB / 465.3 MB, free: 25.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.2658, allocations: 0.7861 MB / 466.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2658, allocations: 0 / 466.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.2666, allocations: 417.8 kB / 466.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.2671, allocations: 109.9 kB / 466.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008447/0.2755, allocations: 6.239 MB / 472.8 MB, free: 21.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.2758, allocations: 0.8537 MB / 473.7 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004178/0.2762, allocations: 92.16 kB / 473.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/0.2766, allocations: 190.3 kB / 473.9 MB, free: 20.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2766, allocations: 0 / 473.9 MB, free: 20.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9989/1.275, allocations: 11.86 MB / 485.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/1.276, allocations: 232.2 kB / 486 MB, free: 10.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/3.084, allocations: 4.562 kB / 486 MB, free: 10.93 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload.fmu > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)