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.00112/0.001121, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001313/0.001313, allocations: 177.3 kB / 15.95 MB, free: 216 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.301/1.301, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.185/0.185, allocations: 22.33 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002756, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2901, allocations: 55.98 MB / 437.9 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.002787/0.293, allocations: 3.562 MB / 441.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.2945, allocations: 1.237 MB / 442.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.2947, allocations: 5.781 kB / 442.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2949, allocations: 87.69 kB / 442.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.2952, allocations: 268.5 kB / 443 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.2958, allocations: 224.6 kB / 443.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000627/0.2964, allocations: 0.7237 MB / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.297, allocations: 0.5401 MB / 444.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/0.2973, allocations: 390.9 kB / 444.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.2978, allocations: 0.5043 MB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.2979, allocations: 69.62 kB / 445.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.2981, allocations: 70.94 kB / 445.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.2983, allocations: 259.1 kB / 445.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.2985, allocations: 186.6 kB / 446 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006806/0.2992, allocations: 0.9099 MB / 446.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2992, allocations: 0 / 446.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.2992, allocations: 3.938 kB / 446.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.2992, allocations: 6.969 kB / 446.9 MB, free: 33.93 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.002719/0.302, allocations: 1.115 MB / 448 MB, free: 33.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.302, allocations: 11.75 kB / 448 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001967/0.3022, allocations: 130.6 kB / 448.2 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.3024, allocations: 101.8 kB / 448.3 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000763/0.3032, allocations: 0.5012 MB / 448.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.3034, allocations: 158 kB / 448.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.3035, allocations: 84.28 kB / 449 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.3055, allocations: 1.042 MB / 450 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.3056, allocations: 4 kB / 450 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-05/0.3057, allocations: 31.66 kB / 450.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.3057, allocations: 19.72 kB / 450.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.3076, allocations: 0.9385 MB / 451 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006635/0.3142, allocations: 3.671 MB / 454.7 MB, free: 30.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.316, allocations: 0.9346 MB / 455.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.28e-05/0.3161, allocations: 21.38 kB / 455.7 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.3161, allocations: 46.34 kB / 455.7 MB, free: 29.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.946e-06/0.3161, allocations: 0 / 455.7 MB, free: 29.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007375/0.3235, allocations: 3.188 MB / 458.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.3236, allocations: 61.03 kB / 459 MB, free: 28.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.3243, allocations: 0.5074 MB / 459.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.43e-05/0.3244, allocations: 41.02 kB / 459.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.3246, allocations: 325.9 kB / 459.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.3248, allocations: 311.8 kB / 460.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.3249, allocations: 14.81 kB / 460.1 MB, free: 27.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.325, allocations: 378.9 kB / 460.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3262, allocations: 0.5701 MB / 461.1 MB, free: 26.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.3274, allocations: 0.6307 MB / 461.7 MB, free: 26.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.3286, allocations: 0.5642 MB / 462.3 MB, free: 26.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3286, allocations: 0 / 462.3 MB, free: 26.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002681/0.3313, allocations: 1.341 MB / 463.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3313, allocations: 6.656 kB / 463.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3313, allocations: 1.281 kB / 463.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.3314, allocations: 6.812 kB / 463.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007442/0.3388, allocations: 1.327 MB / 465 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.455e-05/0.3389, allocations: 7.828 kB / 465 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.3399, allocations: 88.86 kB / 465 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.34, allocations: 34.39 kB / 465.1 MB, free: 25.88 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.0005961/0.3407, allocations: 259.3 kB / 465.3 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.3409, allocations: 69.03 kB / 465.4 MB, free: 25.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002921/0.3438, allocations: 1.273 MB / 466.7 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.3438, allocations: 9.125 kB / 466.7 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3438, allocations: 4.703 kB / 466.7 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3438, allocations: 3.984 kB / 466.7 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005198/0.349, allocations: 2.467 MB / 469.2 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.3491, allocations: 1.062 kB / 469.2 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007297/0.3564, allocations: 1.294 MB / 470.5 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.022e-05/0.3565, allocations: 8.125 kB / 470.5 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004012/0.3569, allocations: 32.33 kB / 470.5 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.533e-05/0.3569, allocations: 8.266 kB / 470.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.357, allocations: 5.375 kB / 470.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005124/0.3621, allocations: 1.975 MB / 472.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003951/0.3625, allocations: 149.3 kB / 472.6 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.3628, allocations: 22.69 kB / 472.7 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.3638, allocations: 87.67 kB / 472.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/0.3642, allocations: 99.64 kB / 472.8 MB, free: 22.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.3643, allocations: 31.31 kB / 472.9 MB, free: 22.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000638/0.365, allocations: 358.1 kB / 473.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.365, allocations: 0.9688 kB / 473.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001157/0.3661, allocations: 235 kB / 473.4 MB, free: 22.67 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.004908/0.3711, allocations: 2.905 MB / 476.4 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004633/0.3757, allocations: 1.211 MB / 477.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.984e-06/0.3757, allocations: 0.9688 kB / 477.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002198/0.378, allocations: 0.6187 MB / 478.2 MB, free: 20.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.3793, allocations: 147.9 kB / 478.3 MB, free: 20.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.3897, allocations: 5.188 MB / 483.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.3902, allocations: 0.978 MB / 484.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.3912, allocations: 165.9 kB / 484.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007128/0.392, allocations: 307.3 kB / 485 MB, free: 13.55 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.392, allocations: 0 / 485 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04287/0.4349, allocations: 16.96 MB / 0.4901 GB, free: 12.87 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002742/0.4352, allocations: 194.4 kB / 0.4903 GB, free: 12.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.622, allocations: 0 / 0.4903 GB, free: 12.63 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: