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.006884/0.006885, allocations: 102.9 kB / 15.73 MB, free: 6.035 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.001684/0.001684, allocations: 193.8 kB / 16.67 MB, free: 5.973 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2124/0.2124, allocations: 22.34 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 66.59 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08683, allocations: 54.97 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004331/0.0912, allocations: 4.197 MB / 495.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.09347, allocations: 1.161 MB / 496.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000466/0.09396, allocations: 8 kB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003515/0.09435, allocations: 106.9 kB / 497 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007236/0.09508, allocations: 261.9 kB / 497.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008088/0.0959, allocations: 307.4 kB / 497.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.09726, allocations: 1.19 MB / 498.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009309/0.09821, allocations: 0.6723 MB / 499.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006557/0.09888, allocations: 490.5 kB / 499.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008141/0.0997, allocations: 0.6034 MB / 0.4888 GB, free: 8.707 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002641/0.09998, allocations: 120 kB / 0.4889 GB, free: 8.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002485/0.1002, allocations: 127.9 kB / 0.489 GB, free: 8.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.1005, allocations: 319.1 kB / 0.4893 GB, free: 8.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005251/0.101, allocations: 0.525 MB / 0.4898 GB, free: 7.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1021, allocations: 1.251 MB / 0.4911 GB, free: 6.371 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1021, allocations: 0 / 0.4911 GB, free: 6.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1022, allocations: 3.938 kB / 0.4911 GB, free: 6.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.1022, allocations: 0 / 0.4911 GB, free: 6.367 MB / 366.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.002951/0.1051, allocations: 1.267 MB / 0.4923 GB, free: 5.051 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1052, allocations: 8.031 kB / 0.4923 GB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.1054, allocations: 127.1 kB / 0.4924 GB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.1056, allocations: 99.91 kB / 0.4925 GB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000819/0.1064, allocations: 0.519 MB / 0.493 GB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.1066, allocations: 159.6 kB / 0.4932 GB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1067, allocations: 84.28 kB / 0.4933 GB, free: 4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1087, allocations: 1.007 MB / 0.4942 GB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.1088, allocations: 4 kB / 0.4942 GB, free: 2.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-05/0.1089, allocations: 32 kB / 0.4943 GB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.1089, allocations: 20 kB / 0.4943 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.1107, allocations: 0.9017 MB / 0.4952 GB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.1174, allocations: 3.547 MB / 0.4986 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1192, allocations: 0.906 MB / 0.4995 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/0.1203, allocations: 0.6158 MB / 0.5001 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.807e-05/0.1204, allocations: 16.62 kB / 0.5001 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.1204, allocations: 51.16 kB / 0.5002 GB, free: 12.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.464e-06/0.1204, allocations: 0 / 0.5002 GB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.006768/0.1272, allocations: 3.017 MB / 0.5031 GB, free: 9.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.1272, allocations: 64.34 kB / 0.5032 GB, free: 9.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.1278, allocations: 0.5106 MB / 0.5037 GB, free: 9.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.529e-05/0.1278, allocations: 33.7 kB / 0.5037 GB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.128, allocations: 332.3 kB / 0.504 GB, free: 8.766 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.1283, allocations: 299.6 kB / 0.5043 GB, free: 8.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.1285, allocations: 154.5 kB / 0.5045 GB, free: 8.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1287, allocations: 386.7 kB / 0.5048 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.1297, allocations: 0.5356 MB / 0.5054 GB, free: 7.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.1308, allocations: 0.6047 MB / 0.506 GB, free: 6.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009568/0.1404, allocations: 3.03 MB / 0.5089 GB, free: 3.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1404, allocations: 0 / 0.5089 GB, free: 3.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002586/0.143, allocations: 1.278 MB / 0.5102 GB, free: 2.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1431, allocations: 4 kB / 0.5102 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1431, allocations: 7.938 kB / 0.5102 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.1431, allocations: 4 kB / 0.5102 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00625/0.1494, allocations: 1.03 MB / 0.5112 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/0.1494, allocations: 8 kB / 0.5112 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000825/0.1503, allocations: 79.91 kB / 0.5113 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.1504, allocations: 35.92 kB / 0.5113 GB, free: 1.23 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.0006127/0.151, allocations: 251.5 kB / 0.5115 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.1512, allocations: 71.14 kB / 0.5116 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.1539, allocations: 1.201 MB / 0.5128 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.1539, allocations: 11.98 kB / 0.5128 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/0.1539, allocations: 3.938 kB / 0.5128 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.154, allocations: 3.984 kB / 0.5128 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004395/0.1584, allocations: 2.373 MB / 0.5151 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.1584, allocations: 3.938 kB / 0.5151 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006163/0.1646, allocations: 1.003 MB / 0.5161 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.937e-05/0.1646, allocations: 7.984 kB / 0.5161 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.1647, allocations: 23.98 kB / 0.5161 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/0.1647, allocations: 11.94 kB / 0.5161 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1647, allocations: 4 kB / 0.5162 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003546/0.1683, allocations: 1.807 MB / 0.5179 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.1685, allocations: 148.3 kB / 0.5181 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.1687, allocations: 23.98 kB / 0.5181 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007815/0.1695, allocations: 67.92 kB / 0.5181 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.1697, allocations: 104.5 kB / 0.5182 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.368e-05/0.1698, allocations: 23.98 kB / 0.5183 GB, free: 9.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004628/0.1703, allocations: 366.8 kB / 0.5186 GB, free: 9.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1703, allocations: 3.938 kB / 0.5186 GB, free: 9.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007492/0.1711, allocations: 240 kB / 0.5188 GB, free: 9.363 MB / 398.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.003823/0.1749, allocations: 2.393 MB / 0.5212 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.1773, allocations: 1.146 MB / 0.5223 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1773, allocations: 0 / 0.5223 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.1785, allocations: 0.582 MB / 0.5229 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008734/0.1794, allocations: 175.9 kB / 0.523 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/0.1955, allocations: 8.786 MB / 0.5316 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.1961, allocations: 0.9621 MB / 0.5326 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006727/0.1968, allocations: 161.9 kB / 0.5327 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005871/0.1974, allocations: 311.3 kB / 0.533 GB, free: 10.61 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1974, allocations: 4 kB / 0.533 GB, free: 10.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04249/0.2399, allocations: 19.54 MB / 0.5521 GB, free: 7.277 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.795/10.04, allocations: 10.67 kB / 0.5521 GB, free: 7.27 MB / 430.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)