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.001102/0.001102, 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.001073/0.001073, allocations: 193.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.134/1.134, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1603/0.1603, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 63.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2155, allocations: 54.94 MB / 435.2 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.00352/0.2191, allocations: 4.547 MB / 439.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2203, allocations: 1.224 MB / 440.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.2205, allocations: 5.281 kB / 440.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.2207, allocations: 77.14 kB / 441 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.2211, allocations: 235.8 kB / 441.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004384/0.2215, allocations: 262.3 kB / 441.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006288/0.2221, allocations: 1.28 MB / 442.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004732/0.2226, allocations: 0.5965 MB / 443.4 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.2229, allocations: 432.8 kB / 443.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.2233, allocations: 0.5936 MB / 444.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.2234, allocations: 78 kB / 444.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.2236, allocations: 82.75 kB / 444.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2237, allocations: 285.5 kB / 444.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003065/0.2241, allocations: 0.4887 MB / 445.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005803/0.2246, allocations: 1.207 MB / 446.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2246, allocations: 2.875 kB / 446.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.2247, allocations: 0 / 446.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.2247, allocations: 0 / 446.5 MB, free: 32.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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002044/0.2267, allocations: 1.258 MB / 447.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.2268, allocations: 13.44 kB / 447.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001136/0.2269, allocations: 129.2 kB / 447.9 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.227, allocations: 95.66 kB / 448 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.2275, allocations: 0.5188 MB / 448.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.2277, allocations: 162.2 kB / 448.7 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.2278, allocations: 86.56 kB / 448.8 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.2295, allocations: 1.007 MB / 449.8 MB, free: 30.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2295, allocations: 0 / 449.8 MB, free: 30.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.697e-05/0.2296, allocations: 33.75 kB / 449.8 MB, free: 30.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2296, allocations: 16.84 kB / 449.8 MB, free: 30.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.2312, allocations: 0.9095 MB / 450.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005208/0.2364, allocations: 3.561 MB / 454.3 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2379, allocations: 0.9025 MB / 455.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.2389, allocations: 0.6218 MB / 455.8 MB, free: 28.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.249e-05/0.239, allocations: 16.61 kB / 455.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.239, allocations: 47.78 kB / 455.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 1.813e-06/0.2391, allocations: 0 / 455.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006055/0.2451, allocations: 3.021 MB / 458.9 MB, free: 26.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.182e-05/0.2451, allocations: 60.53 kB / 459 MB, free: 26.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004715/0.2456, allocations: 0.5103 MB / 459.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.588e-05/0.2457, allocations: 40.45 kB / 459.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.2458, allocations: 318.6 kB / 459.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.246, allocations: 302.8 kB / 460.1 MB, free: 26.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.2462, allocations: 154.8 kB / 460.3 MB, free: 26.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.407e-05/0.2463, allocations: 390 kB / 460.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00098/0.2473, allocations: 0.5292 MB / 461.2 MB, free: 25.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.2483, allocations: 0.6061 MB / 461.8 MB, free: 25.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008915/0.2573, allocations: 3.037 MB / 464.8 MB, free: 24.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2573, allocations: 5.406 kB / 464.8 MB, free: 24.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002292/0.2596, allocations: 1.268 MB / 466.1 MB, free: 23.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2596, allocations: 6.062 kB / 466.1 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2596, allocations: 3.438 kB / 466.1 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.2596, allocations: 10.53 kB / 466.1 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005642/0.2653, allocations: 1.038 MB / 467.2 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.2653, allocations: 5.188 kB / 467.2 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006516/0.266, allocations: 70.81 kB / 467.2 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.438e-05/0.266, allocations: 38.05 kB / 467.3 MB, free: 23.83 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.0003291/0.2664, allocations: 252.8 kB / 467.5 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.2665, allocations: 69.09 kB / 467.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.2688, allocations: 1.205 MB / 468.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2688, allocations: 9.188 kB / 468.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2688, allocations: 0.7031 kB / 468.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.2688, allocations: 3.609 kB / 468.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.2726, allocations: 2.382 MB / 471.2 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2726, allocations: 8.938 kB / 471.2 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005843/0.2784, allocations: 1.006 MB / 472.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.2785, allocations: 4.094 kB / 472.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.2785, allocations: 26.89 kB / 472.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2785, allocations: 4.953 kB / 472.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2786, allocations: 1.938 kB / 472.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003104/0.2817, allocations: 1.818 MB / 474.1 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-05/0.2818, allocations: 153 kB / 474.2 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.2819, allocations: 22 kB / 474.2 MB, free: 21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006293/0.2825, allocations: 63.58 kB / 474.3 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.2828, allocations: 105 kB / 474.4 MB, free: 20.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/0.2828, allocations: 25.33 kB / 474.4 MB, free: 20.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003297/0.2832, allocations: 369 kB / 474.8 MB, free: 20.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2832, allocations: 0 / 474.8 MB, free: 20.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005593/0.2837, allocations: 230.3 kB / 475 MB, free: 20.76 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.003173/0.2869, allocations: 2.393 MB / 477.4 MB, free: 19.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.2888, allocations: 1.155 MB / 478.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2888, allocations: 0 / 478.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009272/0.2898, allocations: 0.5697 MB / 479.1 MB, free: 17.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/0.2905, allocations: 166.5 kB / 479.3 MB, free: 17.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.3018, allocations: 9.335 MB / 488.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.302, allocations: 0.9624 MB / 489.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005658/0.3026, allocations: 165.8 kB / 489.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.3031, allocations: 303.3 kB / 490 MB, free: 6.508 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3031, allocations: 0 / 490 MB, free: 6.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05111/0.3542, allocations: 17.81 MB / 0.4959 GB, free: 4.961 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/0.3544, allocations: 217.1 kB / 0.4962 GB, free: 4.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.306, allocations: 2.25 kB / 0.4962 GB, free: 4.695 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)