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.001174/0.001174, 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.001134/0.001134, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.193/1.193, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1768/0.1768, allocations: 22.35 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 380.2 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1968, allocations: 54.93 MB / 435.2 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003014/0.1999, allocations: 3.448 MB / 438.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009581/0.2008, allocations: 0.928 MB / 439.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.201, allocations: 6.188 kB / 439.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.2011, allocations: 46.03 kB / 439.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.2014, allocations: 156 kB / 439.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.2017, allocations: 172 kB / 439.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004268/0.2021, allocations: 0.8039 MB / 440.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003278/0.2025, allocations: 393.9 kB / 441.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.2027, allocations: 273.2 kB / 441.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.2029, allocations: 388.6 kB / 441.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.541e-05/0.203, allocations: 51.09 kB / 441.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.454e-05/0.2031, allocations: 50.78 kB / 441.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2032, allocations: 185.2 kB / 442 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.2034, allocations: 317.8 kB / 442.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.2038, allocations: 0.7658 MB / 443.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.2038, allocations: 0 / 443.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2038, allocations: 0 / 443.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.2039, allocations: 0 / 443.1 MB, free: 34.95 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.001443/0.2053, allocations: 0.9039 MB / 444 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.709e-05/0.2053, allocations: 13.28 kB / 444 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.191e-05/0.2054, allocations: 96.56 kB / 444.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.535e-05/0.2055, allocations: 59.59 kB / 444.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.2059, allocations: 388.3 kB / 444.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.55e-05/0.206, allocations: 115.5 kB / 444.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.11e-05/0.2061, allocations: 51.31 kB / 444.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.2074, allocations: 0.6877 MB / 445.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.2074, allocations: 7.031 kB / 445.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.498e-05/0.2074, allocations: 15.12 kB / 445.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2075, allocations: 11.62 kB / 445.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.2087, allocations: 0.6037 MB / 446 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/0.2125, allocations: 2.587 MB / 448.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/0.2134, allocations: 0.5435 MB / 449.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000705/0.2141, allocations: 412.1 kB / 449.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/0.2142, allocations: 13.14 kB / 449.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.2142, allocations: 41.62 kB / 449.6 MB, free: 31.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.503e-06/0.2142, allocations: 0 / 449.6 MB, free: 31.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004459/0.2187, allocations: 2.191 MB / 451.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.223e-05/0.2187, allocations: 58.25 kB / 451.9 MB, free: 30.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.2189, allocations: 362 kB / 452.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.219, allocations: 29.7 kB / 452.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.992e-05/0.2191, allocations: 234.7 kB / 452.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.54e-05/0.2192, allocations: 190.4 kB / 452.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.2193, allocations: 87.28 kB / 452.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.2194, allocations: 359 kB / 453.1 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006882/0.2201, allocations: 375.2 kB / 453.5 MB, free: 29.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007127/0.2208, allocations: 408.8 kB / 453.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005746/0.2265, allocations: 1.996 MB / 455.9 MB, free: 28.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2266, allocations: 1.469 kB / 455.9 MB, free: 28.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00157/0.2281, allocations: 0.8554 MB / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.2282, allocations: 6.531 kB / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2282, allocations: 5.094 kB / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2282, allocations: 3.781 kB / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005245/0.2334, allocations: 0.9073 MB / 457.7 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.2335, allocations: 3.906 kB / 457.7 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.2339, allocations: 59.41 kB / 457.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/0.234, allocations: 21.61 kB / 457.7 MB, free: 28.36 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.000244/0.2342, allocations: 205.1 kB / 457.9 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/0.2343, allocations: 49.19 kB / 458 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.236, allocations: 0.8325 MB / 458.8 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.236, allocations: 5.156 kB / 458.8 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.236, allocations: 8 kB / 458.8 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.236, allocations: 3.969 kB / 458.8 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.2388, allocations: 1.737 MB / 460.6 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2388, allocations: 4.031 kB / 460.6 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005234/0.244, allocations: 0.8983 MB / 461.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.244, allocations: 6.75 kB / 461.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.2441, allocations: 16.69 kB / 461.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.2441, allocations: 3.484 kB / 461.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2441, allocations: 0 / 461.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.2464, allocations: 1.27 MB / 462.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.2465, allocations: 119.2 kB / 462.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.258e-05/0.2466, allocations: 14.47 kB / 462.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004657/0.2471, allocations: 58.11 kB / 463 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.2472, allocations: 71.47 kB / 463 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.433e-05/0.2473, allocations: 16.38 kB / 463 MB, free: 26.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.2475, allocations: 261.8 kB / 463.3 MB, free: 26.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2475, allocations: 0 / 463.3 MB, free: 26.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.2479, allocations: 144.6 kB / 463.4 MB, free: 26.07 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.002472/0.2504, allocations: 1.824 MB / 465.3 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.252, allocations: 0.7828 MB / 466 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.252, allocations: 0 / 466 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007629/0.2527, allocations: 421.3 kB / 466.5 MB, free: 24.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.2533, allocations: 105.4 kB / 466.6 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00859/0.2619, allocations: 6.243 MB / 472.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.2621, allocations: 0.8564 MB / 473.7 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004118/0.2625, allocations: 91.91 kB / 473.8 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.2629, allocations: 183.2 kB / 473.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2629, allocations: 0 / 473.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/0.2816, allocations: 11.86 MB / 485.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.2818, allocations: 234.8 kB / 486 MB, free: 10.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.081, allocations: 0 / 486 MB, free: 10.9 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)