Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",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.001275/0.001275, allocations: 108 kB / 15.6 MB, free: 132 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.001107/0.001107, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1902/0.1902, allocations: 22.36 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 71.86 kB / 381 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2192, allocations: 54.93 MB / 435.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004054/0.2233, allocations: 4.187 MB / 440.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2247, allocations: 1.18 MB / 441.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.2249, allocations: 6.125 kB / 441.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.2251, allocations: 109.2 kB / 441.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003743/0.2255, allocations: 263.4 kB / 441.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.226, allocations: 307.5 kB / 441.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006583/0.2267, allocations: 1.183 MB / 443.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.2273, allocations: 0.6693 MB / 443.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003142/0.2276, allocations: 487 kB / 444.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004797/0.2281, allocations: 0.6046 MB / 444.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.2282, allocations: 120.8 kB / 445 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.2284, allocations: 119.8 kB / 445.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.2286, allocations: 321.4 kB / 445.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003307/0.2289, allocations: 0.5327 MB / 445.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006467/0.2296, allocations: 1.234 MB / 447.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2296, allocations: 0 / 447.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2296, allocations: 0 / 447.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.2296, allocations: 0 / 447.2 MB, free: 33.17 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002273/0.2319, allocations: 1.258 MB / 448.4 MB, free: 32.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2319, allocations: 10.19 kB / 448.4 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.232, allocations: 129.7 kB / 448.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.2322, allocations: 107.2 kB / 448.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.2327, allocations: 0.5164 MB / 449.2 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.2329, allocations: 158.8 kB / 449.3 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.233, allocations: 86.34 kB / 449.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.2348, allocations: 1.012 MB / 450.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.2348, allocations: 0 / 450.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.423e-05/0.2349, allocations: 36.16 kB / 450.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.2349, allocations: 19.5 kB / 450.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.2367, allocations: 0.8976 MB / 451.4 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005711/0.2424, allocations: 3.561 MB / 454.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.2442, allocations: 0.901 MB / 455.8 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.2453, allocations: 0.6316 MB / 456.5 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.834e-05/0.2454, allocations: 10.48 kB / 456.5 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.2454, allocations: 43.45 kB / 456.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.314e-06/0.2454, allocations: 0 / 456.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007247/0.2527, allocations: 3.026 MB / 459.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.2527, allocations: 60.52 kB / 459.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006041/0.2533, allocations: 0.508 MB / 460.1 MB, free: 27.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/0.2534, allocations: 40.98 kB / 460.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.2536, allocations: 328.1 kB / 460.5 MB, free: 26.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.2537, allocations: 298.5 kB / 460.8 MB, free: 26.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.254, allocations: 154.5 kB / 460.9 MB, free: 26.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.2541, allocations: 386.3 kB / 461.3 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.2552, allocations: 0.5361 MB / 461.8 MB, free: 25.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.2564, allocations: 0.6063 MB / 462.4 MB, free: 25.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009998/0.2664, allocations: 3.046 MB / 465.5 MB, free: 24.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.2664, allocations: 0 / 465.5 MB, free: 24.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00261/0.269, allocations: 1.272 MB / 466.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.269, allocations: 6.875 kB / 466.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.269, allocations: 1.375 kB / 466.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.2691, allocations: 7.391 kB / 466.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00692/0.276, allocations: 1.029 MB / 467.8 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.276, allocations: 15.12 kB / 467.8 MB, free: 24.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.2768, allocations: 72.59 kB / 467.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-05/0.2769, allocations: 38.77 kB / 467.9 MB, free: 24.14 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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: 10 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0003948/0.2773, allocations: 257.8 kB / 468.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.2774, allocations: 68.44 kB / 468.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.28, allocations: 1.201 MB / 469.5 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.28, allocations: 8.969 kB / 469.5 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.28, allocations: 0 / 469.5 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.2801, allocations: 5.75 kB / 469.5 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004293/0.2844, allocations: 2.384 MB / 471.9 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.2844, allocations: 5.25 kB / 471.9 MB, free: 22.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007046/0.2914, allocations: 1.006 MB / 472.9 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.59e-05/0.2915, allocations: 8.312 kB / 472.9 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.2916, allocations: 28.11 kB / 472.9 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/0.2916, allocations: 7.812 kB / 472.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2916, allocations: 2.406 kB / 472.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00382/0.2954, allocations: 1.81 MB / 474.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.2956, allocations: 148.8 kB / 474.9 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.2957, allocations: 23.39 kB / 474.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007287/0.2965, allocations: 73.61 kB / 475 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.2967, allocations: 98.48 kB / 475.1 MB, free: 21.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.605e-05/0.2968, allocations: 25.86 kB / 475.1 MB, free: 21.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.2971, allocations: 362.6 kB / 475.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2971, allocations: 0 / 475.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006827/0.2978, allocations: 235.8 kB / 475.7 MB, free: 20.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 85 * 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.003689/0.3015, allocations: 2.392 MB / 478.1 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.3042, allocations: 1.302 MB / 479.4 MB, free: 17.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3043, allocations: 3.984 kB / 479.4 MB, free: 17.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3053, allocations: 0.582 MB / 479.9 MB, free: 17.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.3061, allocations: 174.1 kB / 480.1 MB, free: 17.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/0.3193, allocations: 9.034 MB / 489.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.3196, allocations: 0.9621 MB / 490.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005951/0.3202, allocations: 169.9 kB / 490.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004726/0.3207, allocations: 307.3 kB / 490.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3207, allocations: 0 / 490.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1914/0.5121, allocations: 18.84 MB / 0.4975 GB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.533, allocations: 10.73 kB / 0.4975 GB, free: 3.801 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)