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.0009898/0.0009897, allocations: 87.11 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.0008314/0.0008313, 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.311/1.311, allocations: 223.2 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2062/0.2062, allocations: 22.36 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002944, allocations: 8 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2581, allocations: 55.99 MB / 438 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002432/0.2606, allocations: 2.903 MB / 440.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2617, allocations: 0.8916 MB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2619, allocations: 5.188 kB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.2621, allocations: 56.31 kB / 441.9 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.2623, allocations: 171.6 kB / 442.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.2627, allocations: 146.5 kB / 442.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.2632, allocations: 0.7312 MB / 442.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.2636, allocations: 354.7 kB / 443.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.2638, allocations: 263.8 kB / 443.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.2642, allocations: 361.8 kB / 443.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.776e-05/0.2643, allocations: 51.75 kB / 443.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.125e-05/0.2643, allocations: 44.31 kB / 444 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.2645, allocations: 171 kB / 444.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.029e-05/0.2646, allocations: 133.3 kB / 444.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.2649, allocations: 0.585 MB / 444.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.265, allocations: 0 / 444.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.265, allocations: 0 / 444.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.265, allocations: 0 / 444.9 MB, free: 35.42 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.001476/0.2665, allocations: 0.8075 MB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2665, allocations: 8.438 kB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.767e-05/0.2666, allocations: 92.94 kB / 445.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.727e-05/0.2667, allocations: 67.5 kB / 445.8 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.2671, allocations: 377.7 kB / 446.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.2672, allocations: 115.9 kB / 446.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.133e-05/0.2673, allocations: 52.06 kB / 446.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.2687, allocations: 0.7279 MB / 447.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2687, allocations: 6.938 kB / 447.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/0.2687, allocations: 14.97 kB / 447.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.2688, allocations: 11.53 kB / 447.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.27, allocations: 0.6512 MB / 447.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.274, allocations: 2.67 MB / 450.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.275, allocations: 0.5907 MB / 451 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007486/0.2758, allocations: 442.2 kB / 451.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.025e-05/0.2758, allocations: 9.688 kB / 451.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.2759, allocations: 33.59 kB / 451.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.673e-06/0.2759, allocations: 0 / 451.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004796/0.2807, allocations: 2.378 MB / 453.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.259e-05/0.2807, allocations: 65.69 kB / 454 MB, free: 31.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000282/0.281, allocations: 354.2 kB / 454.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.281, allocations: 32.73 kB / 454.3 MB, free: 30.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.34e-05/0.2811, allocations: 228.4 kB / 454.6 MB, free: 30.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.2813, allocations: 186.7 kB / 454.7 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.2813, allocations: 9.031 kB / 454.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.349e-05/0.2814, allocations: 352.9 kB / 455.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007968/0.2822, allocations: 408.8 kB / 455.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008076/0.283, allocations: 446 kB / 455.9 MB, free: 29.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007746/0.2838, allocations: 390.3 kB / 456.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2838, allocations: 0 / 456.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00173/0.2855, allocations: 0.9121 MB / 457.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2856, allocations: 5.312 kB / 457.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2856, allocations: 5.188 kB / 457.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2856, allocations: 12.11 kB / 457.2 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/0.2911, allocations: 1.202 MB / 458.4 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2911, allocations: 3.75 kB / 458.4 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.2916, allocations: 85.12 kB / 458.5 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/0.2917, allocations: 24.78 kB / 458.6 MB, free: 29.27 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.0002842/0.292, allocations: 199.9 kB / 458.7 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.449e-05/0.292, allocations: 40.81 kB / 458.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001889/0.2939, allocations: 0.9143 MB / 459.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.294, allocations: 5.859 kB / 459.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.294, allocations: 4.797 kB / 459.7 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.294, allocations: 2.812 kB / 459.7 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003142/0.2971, allocations: 1.83 MB / 461.5 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.2971, allocations: 1.125 kB / 461.5 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005601/0.3028, allocations: 1.191 MB / 462.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.3028, allocations: 3.094 kB / 462.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.3028, allocations: 15.88 kB / 462.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3029, allocations: 3.578 kB / 462.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3029, allocations: 4.875 kB / 462.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/0.3055, allocations: 1.372 MB / 464.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.195e-05/0.3056, allocations: 118.8 kB / 464.3 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.549e-05/0.3057, allocations: 14.77 kB / 464.3 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000483/0.3062, allocations: 75.91 kB / 464.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.3064, allocations: 71.22 kB / 464.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.3065, allocations: 21.3 kB / 464.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.3067, allocations: 254.2 kB / 464.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3067, allocations: 0 / 464.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.3072, allocations: 142.3 kB / 464.8 MB, free: 26.91 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.002753/0.31, allocations: 1.927 MB / 466.7 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.3118, allocations: 0.8617 MB / 467.6 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3118, allocations: 0 / 467.6 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.3127, allocations: 451.6 kB / 468 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005466/0.3132, allocations: 106.5 kB / 468.2 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007556/0.3208, allocations: 4.612 MB / 472.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.3211, allocations: 0.8533 MB / 473.6 MB, free: 22.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004827/0.3216, allocations: 99.97 kB / 473.7 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003691/0.322, allocations: 186.4 kB / 473.9 MB, free: 22.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.763e-06/0.322, allocations: 0 / 473.9 MB, free: 22.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.343, allocations: 11.55 MB / 485.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001193/0.3431, allocations: 197.9 kB / 485.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.298, allocations: 2.5 kB / 485.6 MB, free: 13.32 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: