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.0008011/0.0008014, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.000854/0.0008541, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.213/0.213, allocations: 22.36 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003462/0.0003463, allocations: 8 kB / 382.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2745, allocations: 55.97 MB / 438 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003248/0.2778, allocations: 3.898 MB / 441.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2797, allocations: 1.183 MB / 443.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.28, allocations: 8.625 kB / 443.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002142/0.2802, allocations: 82.03 kB / 443.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000444/0.2806, allocations: 267.3 kB / 443.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.2813, allocations: 219 kB / 443.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.2823, allocations: 1.169 MB / 444.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007044/0.283, allocations: 0.5542 MB / 445.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.2834, allocations: 405.5 kB / 445.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005515/0.284, allocations: 0.5582 MB / 446.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2841, allocations: 72.16 kB / 446.4 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.2843, allocations: 68.28 kB / 446.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.2845, allocations: 268.6 kB / 446.7 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.2846, allocations: 186.4 kB / 446.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006235/0.2853, allocations: 0.9179 MB / 447.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2853, allocations: 0 / 447.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2853, allocations: 0 / 447.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.2853, allocations: 0 / 447.8 MB, free: 33.62 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.002/0.2873, allocations: 1.119 MB / 449 MB, free: 32.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2874, allocations: 8.594 kB / 449 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.2875, allocations: 135.5 kB / 449.1 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.2876, allocations: 100.8 kB / 449.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.2882, allocations: 0.493 MB / 449.7 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.2884, allocations: 161.1 kB / 449.9 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.2885, allocations: 87.31 kB / 449.9 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.2904, allocations: 1.05 MB / 451 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.2905, allocations: 0 / 451 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.483e-05/0.2905, allocations: 30.78 kB / 451 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.2906, allocations: 22.78 kB / 451 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.2923, allocations: 0.946 MB / 452 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005797/0.2982, allocations: 3.663 MB / 455.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.2999, allocations: 0.9362 MB / 456.6 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.3011, allocations: 0.6654 MB / 457.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.673e-05/0.3012, allocations: 17.48 kB / 457.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.3012, allocations: 37.84 kB / 457.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.204e-06/0.3012, allocations: 0 / 457.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007004/0.3082, allocations: 3.201 MB / 460.5 MB, free: 27.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.3083, allocations: 60.66 kB / 460.6 MB, free: 27.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006701/0.309, allocations: 0.5081 MB / 461.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.309, allocations: 40.7 kB / 461.1 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.3092, allocations: 322.4 kB / 461.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.3095, allocations: 302 kB / 461.7 MB, free: 27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.034e-05/0.3095, allocations: 15.75 kB / 461.7 MB, free: 26.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3097, allocations: 387 kB / 462.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.3108, allocations: 0.5671 MB / 462.7 MB, free: 26.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.312, allocations: 0.6412 MB / 463.3 MB, free: 26.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.3131, allocations: 0.5594 MB / 463.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3132, allocations: 1.094 kB / 463.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002649/0.3158, allocations: 1.345 MB / 465.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3158, allocations: 5.125 kB / 465.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3159, allocations: 3 kB / 465.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.97e-05/0.3159, allocations: 10.05 kB / 465.3 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006384/0.3223, allocations: 1.317 MB / 466.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.392e-05/0.3223, allocations: 7.625 kB / 466.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/0.3232, allocations: 94.47 kB / 466.7 MB, free: 25.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.627e-05/0.3233, allocations: 33.66 kB / 466.7 MB, free: 25.34 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: HnoTank.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004513/0.3237, allocations: 257.7 kB / 467 MB, free: 25.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.3238, allocations: 70.23 kB / 467 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.3266, allocations: 1.266 MB / 468.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.3266, allocations: 7.875 kB / 468.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3266, allocations: 0.5625 kB / 468.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3266, allocations: 5.797 kB / 468.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004582/0.3312, allocations: 2.479 MB / 470.8 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.3312, allocations: 0 / 470.8 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006402/0.3377, allocations: 1.293 MB / 472.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.423e-05/0.3377, allocations: 5.688 kB / 472.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.3379, allocations: 27.66 kB / 472.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.491e-05/0.3379, allocations: 3.5 kB / 472.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3379, allocations: 6.469 kB / 472.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.3418, allocations: 1.919 MB / 474 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.3421, allocations: 150.1 kB / 474.2 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.3423, allocations: 22.27 kB / 474.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007848/0.3431, allocations: 87.59 kB / 474.3 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.3433, allocations: 107 kB / 474.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-05/0.3434, allocations: 30.2 kB / 474.4 MB, free: 22.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004995/0.3439, allocations: 360.7 kB / 474.8 MB, free: 22.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3439, allocations: 0 / 474.8 MB, free: 22.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009179/0.3449, allocations: 232.1 kB / 475 MB, free: 22.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004242/0.3491, allocations: 2.491 MB / 477.5 MB, free: 20.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002581/0.3517, allocations: 1.222 MB / 478.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3517, allocations: 0 / 478.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.3529, allocations: 0.6101 MB / 479.3 MB, free: 19.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.354, allocations: 161.7 kB / 479.5 MB, free: 19.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.3654, allocations: 7.018 MB / 486.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3658, allocations: 0.9624 MB / 487.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00075/0.3666, allocations: 169.9 kB / 487.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005682/0.3672, allocations: 303.3 kB / 487.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3672, allocations: 3.938 kB / 487.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.3995, allocations: 17.46 MB / 0.4935 GB, free: 9.555 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/0.3997, allocations: 197.8 kB / 0.4937 GB, free: 9.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.118/2.518, allocations: 0 / 0.4937 GB, free: 9.309 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/linux/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) Environment - environmentSimulation: