Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.0009821/0.000982, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007777/0.007777, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.331/1.331, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1908/0.1908, allocations: 22.34 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004404, allocations: 8.188 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2644, allocations: 55.98 MB / 438.7 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002299/0.2667, allocations: 3.056 MB / 441.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.2678, allocations: 0.9204 MB / 442.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2679, allocations: 3.656 kB / 442.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.2681, allocations: 49.45 kB / 442.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.2683, allocations: 155.2 kB / 442.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.2687, allocations: 162.8 kB / 443 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.2692, allocations: 0.8045 MB / 443.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.2696, allocations: 380.2 kB / 444.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.2698, allocations: 261.6 kB / 444.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.2702, allocations: 380.7 kB / 444.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.608e-05/0.2702, allocations: 45.19 kB / 444.9 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.069e-05/0.2703, allocations: 47.47 kB / 444.9 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2705, allocations: 171.2 kB / 445.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.2707, allocations: 327.7 kB / 445.4 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.2711, allocations: 0.7505 MB / 446.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2711, allocations: 0 / 446.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2711, allocations: 0 / 446.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2711, allocations: 3.938 kB / 446.2 MB, free: 34.88 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001422/0.2726, allocations: 0.7985 MB / 447 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.2726, allocations: 16 kB / 447 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.287e-05/0.2727, allocations: 90.31 kB / 447.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.886e-05/0.2728, allocations: 66.16 kB / 447.1 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.2732, allocations: 389.3 kB / 447.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.2733, allocations: 114.5 kB / 447.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.2734, allocations: 53.34 kB / 447.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2749, allocations: 0.7331 MB / 448.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.275, allocations: 4 kB / 448.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.275, allocations: 24.73 kB / 448.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.275, allocations: 11.34 kB / 448.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.2764, allocations: 0.6468 MB / 449.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004395/0.2809, allocations: 2.683 MB / 451.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.282, allocations: 0.5866 MB / 452.4 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008725/0.2829, allocations: 446.5 kB / 452.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.2829, allocations: 8.562 kB / 452.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2829, allocations: 41.81 kB / 452.8 MB, free: 31.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/0.283, allocations: 0 / 452.8 MB, free: 31.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005476/0.2884, allocations: 2.372 MB / 455.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/0.2885, allocations: 56.97 kB / 455.3 MB, free: 30.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.2888, allocations: 367.1 kB / 455.6 MB, free: 30.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.659e-05/0.2888, allocations: 36.08 kB / 455.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.2889, allocations: 228 kB / 455.9 MB, free: 30.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.2891, allocations: 188.3 kB / 456.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.2892, allocations: 52.66 kB / 456.1 MB, free: 29.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.038e-05/0.2892, allocations: 357.1 kB / 456.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008927/0.2901, allocations: 405 kB / 456.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009152/0.291, allocations: 449.3 kB / 457.3 MB, free: 29.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007034/0.2981, allocations: 2.244 MB / 459.6 MB, free: 28.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2981, allocations: 1 kB / 459.6 MB, free: 28.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002023/0.3001, allocations: 0.9201 MB / 460.5 MB, free: 28.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3002, allocations: 5.719 kB / 460.5 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3002, allocations: 5.125 kB / 460.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3002, allocations: 8.625 kB / 460.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006843/0.307, allocations: 1.192 MB / 461.7 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.3071, allocations: 5.375 kB / 461.7 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.3077, allocations: 75.36 kB / 461.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.3077, allocations: 25.02 kB / 461.8 MB, free: 28.24 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0002875/0.308, allocations: 199.2 kB / 462 MB, free: 28.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.119e-05/0.3081, allocations: 48.47 kB / 462 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.3102, allocations: 0.9128 MB / 462.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3103, allocations: 5.844 kB / 462.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3103, allocations: 0 / 462.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3103, allocations: 4.531 kB / 463 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/0.3135, allocations: 1.827 MB / 464.8 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3136, allocations: 0 / 464.8 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007005/0.3206, allocations: 1.193 MB / 466 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.3206, allocations: 3.406 kB / 466 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.3206, allocations: 12.83 kB / 466 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3207, allocations: 2.75 kB / 466 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3207, allocations: 4.734 kB / 466 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.3235, allocations: 1.382 MB / 467.4 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.268e-05/0.3236, allocations: 120.5 kB / 467.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.648e-05/0.3237, allocations: 9.328 kB / 467.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005801/0.3243, allocations: 75.06 kB / 467.6 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.3245, allocations: 74.08 kB / 467.7 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.3245, allocations: 18.03 kB / 467.7 MB, free: 26.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002366/0.3248, allocations: 261.2 kB / 467.9 MB, free: 25.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3248, allocations: 0 / 467.9 MB, free: 25.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004705/0.3252, allocations: 145 kB / 468.1 MB, free: 25.88 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003058/0.3283, allocations: 1.936 MB / 470 MB, free: 24.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.3303, allocations: 0.8567 MB / 470.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3303, allocations: 4 kB / 470.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009837/0.3313, allocations: 456.5 kB / 471.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3319, allocations: 104.1 kB / 471.4 MB, free: 24.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.3421, allocations: 6.602 MB / 478 MB, free: 20.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3424, allocations: 0.8534 MB / 478.9 MB, free: 19.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000421/0.3428, allocations: 94.39 kB / 479 MB, free: 19.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.3432, allocations: 188.2 kB / 479.1 MB, free: 19.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3432, allocations: 7.938 kB / 479.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.551/2.894, allocations: 11.66 MB / 490.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/2.895, allocations: 215.3 kB / 491 MB, free: 8.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.449/5.343, allocations: 4 kB / 491 MB, free: 8.41 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)