Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.001196/0.001196, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009462/0.0009462, allocations: 191.7 kB / 16.13 MB, free: 6.695 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.192/1.192, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1673/0.1673, allocations: 22.36 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.89 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.204, allocations: 54.94 MB / 435.2 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002876/0.2069, allocations: 3.44 MB / 438.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009402/0.2079, allocations: 0.9368 MB / 439.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.208, allocations: 4.906 kB / 439.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.2081, allocations: 45.41 kB / 439.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.2084, allocations: 158.8 kB / 439.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2087, allocations: 167.1 kB / 439.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.2091, allocations: 0.8024 MB / 440.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.2095, allocations: 383.5 kB / 441.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2097, allocations: 283.6 kB / 441.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.2099, allocations: 389.2 kB / 441.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.628e-05/0.21, allocations: 53.22 kB / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.952e-05/0.2101, allocations: 52.22 kB / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.2102, allocations: 179.4 kB / 442 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.2104, allocations: 319.4 kB / 442.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.2108, allocations: 0.763 MB / 443.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2108, allocations: 0 / 443.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.2108, allocations: 3.062 kB / 443.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.2108, allocations: 0 / 443.1 MB, free: 34.82 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.001386/0.2122, allocations: 0.8975 MB / 444 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.739e-05/0.2123, allocations: 12.53 kB / 444 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.888e-05/0.2123, allocations: 93.28 kB / 444.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.013e-05/0.2124, allocations: 66.44 kB / 444.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.2128, allocations: 386 kB / 444.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.343e-05/0.2129, allocations: 114.3 kB / 444.7 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.561e-05/0.213, allocations: 46.22 kB / 444.7 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.2142, allocations: 0.6942 MB / 445.4 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.2143, allocations: 7.328 kB / 445.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.2143, allocations: 18.91 kB / 445.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2143, allocations: 11.47 kB / 445.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.2155, allocations: 0.6045 MB / 446 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.2192, allocations: 2.578 MB / 448.6 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008915/0.2201, allocations: 0.5616 MB / 449.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000671/0.2208, allocations: 408.2 kB / 449.6 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.513e-05/0.2208, allocations: 10.06 kB / 449.6 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.419e-05/0.2209, allocations: 38.97 kB / 449.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.804e-06/0.2209, allocations: 3.984 kB / 449.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004431/0.2253, allocations: 2.195 MB / 451.8 MB, free: 30.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.684e-05/0.2253, allocations: 57.09 kB / 451.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.2256, allocations: 354.6 kB / 452.2 MB, free: 30.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.2256, allocations: 36.86 kB / 452.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.837e-05/0.2257, allocations: 233.7 kB / 452.5 MB, free: 29.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.109e-05/0.2258, allocations: 184.5 kB / 452.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.226, allocations: 95.98 kB / 452.8 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.937e-05/0.226, allocations: 354.5 kB / 453.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007054/0.2267, allocations: 374.4 kB / 453.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006759/0.2274, allocations: 408.5 kB / 453.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005715/0.2331, allocations: 1.998 MB / 455.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2331, allocations: 0 / 455.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001562/0.2347, allocations: 0.8491 MB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2347, allocations: 5.344 kB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2347, allocations: 1.25 kB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2348, allocations: 15 kB / 456.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005218/0.24, allocations: 0.8996 MB / 457.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.24, allocations: 12.81 kB / 457.6 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004439/0.2405, allocations: 55.73 kB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.2405, allocations: 20.78 kB / 457.7 MB, free: 28.23 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.0002314/0.2407, allocations: 205.6 kB / 457.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-05/0.2408, allocations: 45.92 kB / 458 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.2425, allocations: 0.8427 MB / 458.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2426, allocations: 5.875 kB / 458.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2426, allocations: 0 / 458.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2426, allocations: 8.328 kB / 458.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/0.2453, allocations: 1.736 MB / 460.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2453, allocations: 0 / 460.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005307/0.2506, allocations: 0.9032 MB / 461.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2506, allocations: 1.5 kB / 461.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.2507, allocations: 18.38 kB / 461.5 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2507, allocations: 1.375 kB / 461.5 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2507, allocations: 1.625 kB / 461.5 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.253, allocations: 1.269 MB / 462.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.2531, allocations: 123.9 kB / 462.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/0.2532, allocations: 10.38 kB / 462.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.2537, allocations: 58.3 kB / 462.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.2538, allocations: 71.02 kB / 463 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.2539, allocations: 16.75 kB / 463 MB, free: 26.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000209/0.2541, allocations: 264.9 kB / 463.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2541, allocations: 0 / 463.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004209/0.2545, allocations: 146 kB / 463.4 MB, free: 25.93 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.002499/0.257, allocations: 1.822 MB / 465.3 MB, free: 24.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.2586, allocations: 0.7824 MB / 466 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2586, allocations: 4 kB / 466 MB, free: 24.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007698/0.2594, allocations: 420.6 kB / 466.4 MB, free: 24.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/0.2599, allocations: 100.8 kB / 466.5 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008533/0.2684, allocations: 6.236 MB / 472.8 MB, free: 20.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.2687, allocations: 0.8604 MB / 473.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003986/0.2691, allocations: 94.95 kB / 473.7 MB, free: 20.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/0.2694, allocations: 182.9 kB / 473.9 MB, free: 20.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2695, allocations: 1.219 kB / 473.9 MB, free: 20.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06281/0.3323, allocations: 11.82 MB / 485.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001314/0.3324, allocations: 209 kB / 485.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.179, allocations: 0 / 485.9 MB, free: 10.95 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)