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.0009996/0.0009997, allocations: 99.86 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.001159/0.001159, 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.236/1.236, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1869/0.1869, allocations: 22.35 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003325, allocations: 4 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2814, allocations: 55.96 MB / 437.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002458/0.2839, allocations: 2.703 MB / 440.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.2851, allocations: 0.9348 MB / 441.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2852, allocations: 9.594 kB / 441.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.2854, allocations: 50.64 kB / 441.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.2856, allocations: 170.2 kB / 441.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.286, allocations: 144.4 kB / 441.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000386/0.2864, allocations: 463.7 kB / 442.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003815/0.2868, allocations: 349.8 kB / 442.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.287, allocations: 252.1 kB / 442.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.2873, allocations: 330.9 kB / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.009e-05/0.2874, allocations: 46.38 kB / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.309e-05/0.2875, allocations: 44.75 kB / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.2876, allocations: 165.3 kB / 443.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.2877, allocations: 124.9 kB / 443.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.2881, allocations: 0.5784 MB / 444.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.2881, allocations: 7.938 kB / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2881, allocations: 0 / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.2881, allocations: 0 / 444.2 MB, free: 35.39 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.001429/0.2895, allocations: 0.8176 MB / 445 MB, free: 34.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2896, allocations: 9.25 kB / 445 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.333e-05/0.2897, allocations: 89.61 kB / 445.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.397e-05/0.2898, allocations: 62.69 kB / 445.2 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.2902, allocations: 377.3 kB / 445.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.2903, allocations: 110.3 kB / 445.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.2904, allocations: 51.84 kB / 445.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.2918, allocations: 0.7288 MB / 446.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.2918, allocations: 7.844 kB / 446.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.2919, allocations: 18.81 kB / 446.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.2919, allocations: 11.22 kB / 446.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.2932, allocations: 0.6503 MB / 447.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004241/0.2974, allocations: 2.667 MB / 449.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.2985, allocations: 0.5892 MB / 450.4 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.2985, allocations: 10.78 kB / 450.4 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.2985, allocations: 37.62 kB / 450.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.463e-06/0.2985, allocations: 0 / 450.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.00536/0.3039, allocations: 2.381 MB / 452.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.304, allocations: 57.22 kB / 452.9 MB, free: 31.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.3043, allocations: 354.7 kB / 453.2 MB, free: 30.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.3043, allocations: 37.64 kB / 453.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.3045, allocations: 228.3 kB / 453.5 MB, free: 30.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.3046, allocations: 184.9 kB / 453.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.3046, allocations: 10.25 kB / 453.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.3047, allocations: 359.4 kB / 454 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007818/0.3055, allocations: 404.9 kB / 454.4 MB, free: 30.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008331/0.3064, allocations: 443.6 kB / 454.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.3071, allocations: 383.3 kB / 455.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3072, allocations: 0 / 455.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001862/0.309, allocations: 0.9193 MB / 456.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.309, allocations: 5.906 kB / 456.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3091, allocations: 1.812 kB / 456.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.3091, allocations: 4.125 kB / 456.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006176/0.3153, allocations: 1.205 MB / 457.4 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.3153, allocations: 3.719 kB / 457.4 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/0.3158, allocations: 80.42 kB / 457.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/0.3159, allocations: 22.53 kB / 457.5 MB, free: 29.4 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002962/0.3162, allocations: 202.8 kB / 457.7 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.3163, allocations: 40.66 kB / 457.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.3182, allocations: 0.9113 MB / 458.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3183, allocations: 5.438 kB / 458.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3183, allocations: 3.953 kB / 458.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3183, allocations: 3.141 kB / 458.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3216, allocations: 1.836 MB / 460.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3216, allocations: 5.812 kB / 460.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006653/0.3283, allocations: 1.186 MB / 461.7 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/0.3283, allocations: 2.312 kB / 461.7 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-05/0.3284, allocations: 20.73 kB / 461.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3284, allocations: 7.516 kB / 461.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3284, allocations: 1.844 kB / 461.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002857/0.3313, allocations: 1.383 MB / 463.1 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3314, allocations: 118.1 kB / 463.2 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.3315, allocations: 13.2 kB / 463.2 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/0.332, allocations: 74.64 kB / 463.3 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.3322, allocations: 76.62 kB / 463.3 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.424e-05/0.3323, allocations: 21.3 kB / 463.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003116/0.3326, allocations: 258 kB / 463.6 MB, free: 27.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3326, allocations: 0 / 463.6 MB, free: 27.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.3332, allocations: 141.5 kB / 463.8 MB, free: 27.01 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 (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.003102/0.3363, allocations: 2.004 MB / 465.8 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.3383, allocations: 0.862 MB / 466.6 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3383, allocations: 1.375 kB / 466.6 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009555/0.3393, allocations: 454.4 kB / 467.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.3398, allocations: 97.95 kB / 467.2 MB, free: 25.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.3443, allocations: 3.28 MB / 470.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.3447, allocations: 0.8691 MB / 471.3 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004595/0.3452, allocations: 91.33 kB / 471.4 MB, free: 22.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.3455, allocations: 182.7 kB / 471.6 MB, free: 22.24 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3455, allocations: 0 / 471.6 MB, free: 22.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.3802, allocations: 11.25 MB / 482.8 MB, free: 16.08 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002361/0.3806, allocations: 184.6 kB / 483 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.3, allocations: 4.062 kB / 483 MB, free: 15.84 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/linux/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) Environment - environmentSimulation: