Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.001194/0.001194, 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.001146/0.001145, allocations: 198.1 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.19/1.19, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1715/0.1715, allocations: 22.35 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 55.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2043, allocations: 54.94 MB / 435.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002973/0.2074, allocations: 3.429 MB / 438.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009856/0.2084, allocations: 0.9288 MB / 439.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.2085, allocations: 9.125 kB / 439.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.2086, allocations: 52.89 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.2089, allocations: 150.3 kB / 439.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.2092, allocations: 167.6 kB / 439.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.2097, allocations: 0.8044 MB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.21, allocations: 389.4 kB / 441.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.2102, allocations: 281.8 kB / 441.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.2105, allocations: 383.1 kB / 441.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.571e-05/0.2106, allocations: 52.34 kB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.265e-05/0.2107, allocations: 51.06 kB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.2108, allocations: 182.8 kB / 442 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.211, allocations: 309.1 kB / 442.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003756/0.2114, allocations: 0.7601 MB / 443.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2114, allocations: 0 / 443.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2114, allocations: 3.938 kB / 443.1 MB, free: 34.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.2114, allocations: 0 / 443.1 MB, free: 34.9 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001458/0.2129, allocations: 0.9026 MB / 444 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.88e-05/0.2129, allocations: 16.56 kB / 444 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.007e-05/0.213, allocations: 92.98 kB / 444.1 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.2131, allocations: 61.31 kB / 444.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.2135, allocations: 388.8 kB / 444.5 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.711e-05/0.2136, allocations: 110.6 kB / 444.6 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.941e-05/0.2137, allocations: 49.69 kB / 444.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.2149, allocations: 0.687 MB / 445.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.215, allocations: 0 / 445.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.324e-05/0.215, allocations: 16.88 kB / 445.4 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.215, allocations: 11.5 kB / 445.4 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.2162, allocations: 0.6051 MB / 446 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004038/0.2202, allocations: 2.597 MB / 448.6 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008865/0.2211, allocations: 0.5329 MB / 449.1 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006776/0.2218, allocations: 405.3 kB / 449.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.336e-05/0.2219, allocations: 10.16 kB / 449.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.2219, allocations: 40.98 kB / 449.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.513e-06/0.2219, allocations: 0 / 449.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004409/0.2263, allocations: 2.159 MB / 451.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.771e-05/0.2263, allocations: 57.09 kB / 451.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.2266, allocations: 361.4 kB / 452.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.2267, allocations: 29.7 kB / 452.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/0.2267, allocations: 233.9 kB / 452.4 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.2268, allocations: 184 kB / 452.6 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.227, allocations: 96.88 kB / 452.7 MB, free: 29.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.115e-05/0.2271, allocations: 353.5 kB / 453 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006852/0.2277, allocations: 369.3 kB / 453.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006624/0.2284, allocations: 409.1 kB / 453.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005657/0.2341, allocations: 1.976 MB / 455.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2341, allocations: 1.312 kB / 455.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001548/0.2357, allocations: 0.8433 MB / 456.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2357, allocations: 5.156 kB / 456.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2357, allocations: 2.5 kB / 456.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.2357, allocations: 8.062 kB / 456.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005086/0.2408, allocations: 0.898 MB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.2408, allocations: 3.953 kB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.2413, allocations: 58.45 kB / 457.6 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-05/0.2413, allocations: 21.95 kB / 457.6 MB, free: 28.34 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: 7 * 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 (66): * Single equations (assignments): 66 * 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.0002378/0.2416, allocations: 197.2 kB / 457.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.2417, allocations: 49.09 kB / 457.8 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/0.2433, allocations: 0.8169 MB / 458.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2433, allocations: 10.77 kB / 458.7 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2434, allocations: 0 / 458.7 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2434, allocations: 2.25 kB / 458.7 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.2461, allocations: 1.738 MB / 460.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2462, allocations: 0.5625 kB / 460.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00522/0.2514, allocations: 0.8796 MB / 461.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2514, allocations: 6.531 kB / 461.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.2515, allocations: 18.19 kB / 461.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2515, allocations: 1.25 kB / 461.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2515, allocations: 1.969 kB / 461.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.2538, allocations: 1.252 MB / 462.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.2539, allocations: 119.3 kB / 462.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.388e-05/0.2539, allocations: 12.72 kB / 462.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.2544, allocations: 52.59 kB / 462.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.2546, allocations: 73.55 kB / 462.8 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.2546, allocations: 21.31 kB / 462.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.2549, allocations: 257.1 kB / 463.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2549, allocations: 0 / 463.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000414/0.2553, allocations: 144.3 kB / 463.2 MB, free: 26.06 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.002445/0.2577, allocations: 1.798 MB / 465 MB, free: 24.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.2593, allocations: 0.782 MB / 465.8 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2593, allocations: 0 / 465.8 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000746/0.26, allocations: 407 kB / 466.2 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.2606, allocations: 104.8 kB / 466.3 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009004/0.2696, allocations: 6.314 MB / 472.6 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.2698, allocations: 0.8509 MB / 473.5 MB, free: 20.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003876/0.2702, allocations: 91.61 kB / 473.6 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.2706, allocations: 181.8 kB / 473.7 MB, free: 20.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2706, allocations: 0 / 473.7 MB, free: 20.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.2903, allocations: 11.75 MB / 485.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001114/0.2904, allocations: 213.1 kB / 485.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.046, allocations: 4 kB / 485.7 MB, free: 11.2 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)