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.005014/0.005014, allocations: 99.58 kB / 15.73 MB, free: 6.039 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.001323/0.001323, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09984/0.09984, allocations: 22.32 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 64.09 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.09467, allocations: 54.96 MB / 491.5 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005296/0.1, allocations: 4.195 MB / 495.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.1021, allocations: 1.169 MB / 496.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.1023, allocations: 8 kB / 496.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002471/0.1025, allocations: 110.9 kB / 497 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004749/0.103, allocations: 261.9 kB / 497.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.1037, allocations: 303.5 kB / 497.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001124/0.1048, allocations: 1.186 MB / 498.7 MB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008061/0.1056, allocations: 0.68 MB / 499.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004856/0.1061, allocations: 478.6 kB / 499.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007456/0.1069, allocations: 0.6073 MB / 0.4887 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.107, allocations: 120 kB / 0.4889 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.1072, allocations: 120 kB / 0.489 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002958/0.1076, allocations: 323 kB / 0.4893 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005197/0.1081, allocations: 0.5251 MB / 0.4898 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.1093, allocations: 1.257 MB / 0.491 GB, free: 9.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1093, allocations: 0 / 0.491 GB, free: 9.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1093, allocations: 4 kB / 0.491 GB, free: 9.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.1093, allocations: 0 / 0.491 GB, free: 9.883 MB / 382.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.002696/0.112, allocations: 1.278 MB / 0.4923 GB, free: 8.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.112, allocations: 8.031 kB / 0.4923 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.1122, allocations: 131.1 kB / 0.4924 GB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.1124, allocations: 104.3 kB / 0.4925 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007404/0.1131, allocations: 0.5193 MB / 0.493 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.1133, allocations: 155.7 kB / 0.4932 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.1135, allocations: 88.31 kB / 0.4932 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.1157, allocations: 1.01 MB / 0.4942 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.1157, allocations: 8 kB / 0.4942 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.595e-05/0.1158, allocations: 32 kB / 0.4943 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.1159, allocations: 27.94 kB / 0.4943 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/0.118, allocations: 0.8978 MB / 0.4952 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00709/0.1251, allocations: 3.544 MB / 0.4986 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/0.1273, allocations: 0.9124 MB / 0.4995 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.1286, allocations: 0.6157 MB / 0.5001 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.1287, allocations: 12.64 kB / 0.5001 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.1287, allocations: 51.14 kB / 0.5002 GB, free: 288 kB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.444e-06/0.1288, allocations: 0 / 0.5002 GB, free: 288 kB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.1777/0.3065, allocations: 3.029 MB / 0.5031 GB, free: 21.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.3065, allocations: 61.94 kB / 0.5032 GB, free: 21.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004872/0.307, allocations: 0.5093 MB / 0.5037 GB, free: 21.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.406e-05/0.3071, allocations: 40.55 kB / 0.5037 GB, free: 21.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.3072, allocations: 324.8 kB / 0.5041 GB, free: 21.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.3074, allocations: 318.5 kB / 0.5044 GB, free: 21.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.3077, allocations: 154.1 kB / 0.5045 GB, free: 21.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.3078, allocations: 382.8 kB / 0.5049 GB, free: 20.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.3089, allocations: 0.5333 MB / 0.5054 GB, free: 20.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.31, allocations: 0.6022 MB / 0.506 GB, free: 20.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.3202, allocations: 3.041 MB / 0.5089 GB, free: 20.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3202, allocations: 4.375 kB / 0.509 GB, free: 20.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002636/0.3228, allocations: 1.268 MB / 0.5102 GB, free: 20.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3229, allocations: 7.109 kB / 0.5102 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3229, allocations: 5.312 kB / 0.5102 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.3229, allocations: 10.25 kB / 0.5102 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006832/0.3297, allocations: 1.027 MB / 0.5112 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-05/0.3298, allocations: 9.391 kB / 0.5112 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008007/0.3306, allocations: 76.69 kB / 0.5113 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.992e-05/0.3307, allocations: 30.41 kB / 0.5113 GB, free: 20.59 MB / 382.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.0004043/0.3311, allocations: 245.7 kB / 0.5116 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3312, allocations: 77.66 kB / 0.5116 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.3339, allocations: 1.197 MB / 0.5128 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.3339, allocations: 8.844 kB / 0.5128 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3339, allocations: 2.188 kB / 0.5128 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.334, allocations: 10.12 kB / 0.5128 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004613/0.3386, allocations: 2.383 MB / 0.5152 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3386, allocations: 5.859 kB / 0.5152 GB, free: 19.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006923/0.3455, allocations: 1.007 MB / 0.5161 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.424e-05/0.3456, allocations: 5.062 kB / 0.5161 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3457, allocations: 29.3 kB / 0.5162 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.3457, allocations: 3.875 kB / 0.5162 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3457, allocations: 5.031 kB / 0.5162 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003558/0.3493, allocations: 1.822 MB / 0.518 GB, free: 19.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.3494, allocations: 150.6 kB / 0.5181 GB, free: 19.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.3495, allocations: 21.89 kB / 0.5181 GB, free: 19.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007113/0.3502, allocations: 67.23 kB / 0.5182 GB, free: 19.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.3505, allocations: 103.2 kB / 0.5183 GB, free: 19.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.221e-05/0.3506, allocations: 29.19 kB / 0.5183 GB, free: 19.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004004/0.351, allocations: 365.5 kB / 0.5187 GB, free: 19.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.351, allocations: 0 / 0.5187 GB, free: 19.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006261/0.3516, allocations: 235.8 kB / 0.5189 GB, free: 19.14 MB / 382.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.003645/0.3553, allocations: 2.393 MB / 0.5212 GB, free: 17.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.3576, allocations: 1.15 MB / 0.5223 GB, free: 17.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3576, allocations: 5.406 kB / 0.5224 GB, free: 17.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3588, allocations: 0.5766 MB / 0.5229 GB, free: 17.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006992/0.3595, allocations: 171.9 kB / 0.5231 GB, free: 17.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.3723, allocations: 8.827 MB / 0.5317 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3726, allocations: 0.966 MB / 0.5326 GB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005575/0.3731, allocations: 173.8 kB / 0.5328 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.3736, allocations: 303.3 kB / 0.5331 GB, free: 9.902 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3736, allocations: 0 / 0.5331 GB, free: 9.902 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7948/1.168, allocations: 19.12 MB / 0.5518 GB, free: 7.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.95, allocations: 3.75 kB / 0.5518 GB, free: 7.016 MB / 398.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)