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.01005/0.01005, allocations: 100.6 kB / 15.73 MB, free: 6.023 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.001627/0.001627, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2/0.2, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001979, allocations: 63.48 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1033, allocations: 54.96 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.004407/0.1078, allocations: 4.204 MB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.1098, allocations: 1.161 MB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.1101, allocations: 7.938 kB / 496.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.1104, allocations: 110.9 kB / 497 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005337/0.111, allocations: 257.9 kB / 497.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006895/0.1117, allocations: 307.5 kB / 497.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.1127, allocations: 1.194 MB / 498.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008219/0.1136, allocations: 0.6762 MB / 499.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005196/0.1141, allocations: 478.6 kB / 499.9 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007115/0.1148, allocations: 0.6112 MB / 0.4888 GB, free: 8.695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.115, allocations: 120 kB / 0.4889 GB, free: 8.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.1152, allocations: 120 kB / 0.489 GB, free: 8.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002526/0.1154, allocations: 323.1 kB / 0.4893 GB, free: 8.145 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.1159, allocations: 0.525 MB / 0.4898 GB, free: 7.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.117, allocations: 1.247 MB / 0.4911 GB, free: 6.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.117, allocations: 0 / 0.4911 GB, free: 6.367 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.117, allocations: 0 / 0.4911 GB, free: 6.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.1171, 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.00268/0.1197, allocations: 1.271 MB / 0.4923 GB, free: 5.047 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1198, allocations: 8.031 kB / 0.4923 GB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.1199, allocations: 131 kB / 0.4924 GB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.1201, allocations: 103.9 kB / 0.4925 GB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007694/0.1209, allocations: 0.5073 MB / 0.493 GB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.1211, allocations: 159.6 kB / 0.4932 GB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.1212, allocations: 88.22 kB / 0.4933 GB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.1234, allocations: 1.011 MB / 0.4942 GB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.1234, allocations: 0 / 0.4942 GB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.545e-05/0.1235, allocations: 32 kB / 0.4943 GB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1235, allocations: 20 kB / 0.4943 GB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.1255, allocations: 0.9017 MB / 0.4952 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006971/0.1325, allocations: 3.551 MB / 0.4986 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.1344, allocations: 0.9046 MB / 0.4995 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.1357, allocations: 0.6171 MB / 0.5001 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.315e-05/0.1358, allocations: 20.64 kB / 0.5001 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.1358, allocations: 47.19 kB / 0.5002 GB, free: 12.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.006e-06/0.1358, allocations: 0 / 0.5002 GB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.007354/0.1432, allocations: 3.021 MB / 0.5031 GB, free: 9.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.1433, allocations: 60.41 kB / 0.5032 GB, free: 9.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005927/0.1439, allocations: 0.5028 MB / 0.5037 GB, free: 9.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/0.144, allocations: 41.7 kB / 0.5037 GB, free: 9.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.1442, allocations: 324.3 kB / 0.504 GB, free: 8.766 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.1444, allocations: 307.6 kB / 0.5043 GB, free: 8.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.1447, allocations: 154.5 kB / 0.5045 GB, free: 8.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1448, allocations: 386.7 kB / 0.5048 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.146, allocations: 0.5278 MB / 0.5054 GB, free: 7.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.1472, allocations: 0.6125 MB / 0.506 GB, free: 6.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/0.1574, allocations: 3.03 MB / 0.5089 GB, free: 3.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1574, allocations: 4 kB / 0.5089 GB, free: 3.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002822/0.1603, allocations: 1.278 MB / 0.5102 GB, free: 2.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.1603, allocations: 4 kB / 0.5102 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.1603, allocations: 4 kB / 0.5102 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.1604, allocations: 4 kB / 0.5102 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00674/0.1671, allocations: 1.026 MB / 0.5112 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.319e-05/0.1672, allocations: 8 kB / 0.5112 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/0.168, allocations: 79.91 kB / 0.5113 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.1682, allocations: 39.92 kB / 0.5113 GB, free: 1.223 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.0005275/0.1687, allocations: 258.2 kB / 0.5116 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.1688, allocations: 71.16 kB / 0.5116 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.1715, allocations: 1.197 MB / 0.5128 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.1716, allocations: 8 kB / 0.5128 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1716, allocations: 0 / 0.5128 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1716, allocations: 3.984 kB / 0.5128 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004788/0.1764, allocations: 2.376 MB / 0.5151 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.1764, allocations: 7.938 kB / 0.5151 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006857/0.1833, allocations: 1.003 MB / 0.5161 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.006e-05/0.1834, allocations: 8 kB / 0.5161 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002108/0.1836, allocations: 23.98 kB / 0.5161 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.1836, allocations: 7.938 kB / 0.5161 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1836, allocations: 4 kB / 0.5162 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004003/0.1876, allocations: 1.811 MB / 0.5179 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.1879, allocations: 152.3 kB / 0.5181 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.1881, allocations: 23.98 kB / 0.5181 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007268/0.1888, allocations: 63.92 kB / 0.5181 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.189, allocations: 104.5 kB / 0.5182 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/0.1891, allocations: 27.98 kB / 0.5183 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004176/0.1895, allocations: 366.8 kB / 0.5186 GB, free: 9.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1896, allocations: 4 kB / 0.5186 GB, free: 9.586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006711/0.1902, allocations: 232 kB / 0.5188 GB, free: 9.359 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.004127/0.1944, allocations: 2.389 MB / 0.5212 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.197, allocations: 1.15 MB / 0.5223 GB, free: 5.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.1971, allocations: 3.938 kB / 0.5223 GB, free: 5.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.1983, allocations: 0.582 MB / 0.5229 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.1994, allocations: 166.3 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.01626/0.2157, allocations: 8.782 MB / 0.5316 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.2163, allocations: 0.9621 MB / 0.5326 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007063/0.217, allocations: 169.9 kB / 0.5327 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.2176, allocations: 307.3 kB / 0.533 GB, free: 10.61 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2176, allocations: 0 / 0.533 GB, free: 10.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04397/0.2616, allocations: 19.55 MB / 0.5521 GB, free: 7.281 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.49, allocations: 20.61 kB / 0.5521 GB, free: 7.266 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)