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.000967/0.0009666, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.006055/0.006055, allocations: 170.9 kB / 16.27 MB, free: 6.652 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1911/0.1911, allocations: 22.35 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003125, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2294, allocations: 55.98 MB / 438.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003145/0.2325, allocations: 4.129 MB / 442.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.2344, allocations: 1.207 MB / 444 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004296/0.2349, allocations: 9.844 kB / 444 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.2351, allocations: 76.94 kB / 444.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004898/0.2356, allocations: 239.3 kB / 444.3 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006112/0.2362, allocations: 254.9 kB / 444.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007675/0.237, allocations: 1.29 MB / 445.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005499/0.2376, allocations: 0.5702 MB / 446.4 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.2379, allocations: 420 kB / 446.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004887/0.2384, allocations: 0.5628 MB / 447.4 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.2385, allocations: 68.81 kB / 447.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.2387, allocations: 72.06 kB / 447.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.2388, allocations: 269.2 kB / 447.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003223/0.2392, allocations: 0.4936 MB / 448.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000631/0.2398, allocations: 1.18 MB / 449.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2398, allocations: 3.938 kB / 449.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2398, allocations: 0 / 449.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.2398, allocations: 2.688 kB / 449.5 MB, free: 33.05 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.002103/0.2419, allocations: 1.097 MB / 450.6 MB, free: 32.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.242, allocations: 14.38 kB / 450.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.2421, allocations: 136.8 kB / 450.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.2423, allocations: 98.62 kB / 450.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.2429, allocations: 0.518 MB / 451.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.243, allocations: 157.7 kB / 451.5 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.2431, allocations: 92.91 kB / 451.6 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.2451, allocations: 1.047 MB / 452.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.2452, allocations: 0 / 452.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.925e-05/0.2452, allocations: 35 kB / 452.7 MB, free: 31.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.2453, allocations: 23.42 kB / 452.7 MB, free: 31.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.2471, allocations: 0.943 MB / 453.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006033/0.2532, allocations: 3.665 MB / 457.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.2551, allocations: 0.9365 MB / 458.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.2563, allocations: 0.6677 MB / 458.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6e-05/0.2564, allocations: 11.89 kB / 458.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.2564, allocations: 47.53 kB / 459 MB, free: 28.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.635e-06/0.2565, allocations: 0 / 459 MB, free: 28.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.00749/0.264, allocations: 3.206 MB / 462.2 MB, free: 27.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.264, allocations: 60.91 kB / 462.2 MB, free: 27.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.2645, allocations: 0.507 MB / 462.7 MB, free: 26.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.891e-05/0.2646, allocations: 41.95 kB / 462.8 MB, free: 26.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.2648, allocations: 326.5 kB / 463.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.265, allocations: 298.6 kB / 463.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.2651, allocations: 76.81 kB / 463.5 MB, free: 26.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.2652, allocations: 388.6 kB / 463.9 MB, free: 26.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.2664, allocations: 0.5676 MB / 464.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.2676, allocations: 0.6453 MB / 465.1 MB, free: 25.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/0.2785, allocations: 3.344 MB / 468.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.2786, allocations: 1.375 kB / 468.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002784/0.2814, allocations: 1.338 MB / 469.8 MB, free: 24.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2814, allocations: 6.281 kB / 469.8 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.2814, allocations: 7.219 kB / 469.8 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.2814, allocations: 6.125 kB / 469.8 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007489/0.2889, allocations: 1.321 MB / 471.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.2889, allocations: 6.547 kB / 471.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/0.2898, allocations: 94.66 kB / 471.2 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.58e-05/0.2899, allocations: 41.58 kB / 471.2 MB, free: 24.03 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.000403/0.2903, allocations: 263 kB / 471.5 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.2904, allocations: 68.5 kB / 471.6 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.2932, allocations: 1.271 MB / 472.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.2933, allocations: 8.5 kB / 472.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2933, allocations: 0.7031 kB / 472.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.2933, allocations: 4.125 kB / 472.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.2978, allocations: 2.468 MB / 475.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.2978, allocations: 4.969 kB / 475.3 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007638/0.3054, allocations: 1.299 MB / 476.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.996e-06/0.3055, allocations: 8.375 kB / 476.6 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-05/0.3055, allocations: 26.5 kB / 476.6 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.3056, allocations: 5.719 kB / 476.6 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3056, allocations: 1.031 kB / 476.7 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.3092, allocations: 1.922 MB / 478.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.3093, allocations: 148.3 kB / 478.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.3094, allocations: 23.98 kB / 478.7 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00075/0.3102, allocations: 91.83 kB / 478.8 MB, free: 20.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.3104, allocations: 100.4 kB / 478.9 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.3105, allocations: 23.98 kB / 479 MB, free: 20.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003147/0.3108, allocations: 366.9 kB / 479.3 MB, free: 20 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3108, allocations: 0 / 479.3 MB, free: 20 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006097/0.3114, allocations: 236 kB / 479.5 MB, free: 19.77 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.003604/0.315, allocations: 2.495 MB / 482 MB, free: 17.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002294/0.3173, allocations: 1.216 MB / 483.3 MB, free: 16.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3174, allocations: 0 / 483.3 MB, free: 16.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.3185, allocations: 0.6211 MB / 483.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008288/0.3193, allocations: 150.2 kB / 484 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.3326, allocations: 9.762 MB / 493.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.333, allocations: 0.9585 MB / 494.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006161/0.3336, allocations: 169.8 kB / 494.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005073/0.3341, allocations: 303.3 kB / 495.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3341, allocations: 0 / 495.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.917/2.251, allocations: 17.61 MB / 0.5008 GB, free: 2.543 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/2.251, allocations: 212.4 kB / 0.501 GB, free: 2.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/4.311, allocations: 0 / 0.501 GB, free: 2.281 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)