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: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 107.8 kB / 16.41 MB, free: 6.484 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.001086/0.001086, allocations: 193.4 kB / 17.34 MB, free: 5.762 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09546/0.09546, allocations: 22.33 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 75.88 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09336, allocations: 54.94 MB / 492.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004162/0.09756, allocations: 3.198 MB / 495.9 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.09934, allocations: 0.8962 MB / 496.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.09962, allocations: 7.938 kB / 496.8 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002517/0.09988, allocations: 67.36 kB / 496.8 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004423/0.1004, allocations: 178.6 kB / 497 MB, free: 400 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005949/0.101, allocations: 187.7 kB / 497.2 MB, free: 212 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008472/0.1018, allocations: 0.7522 MB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006312/0.1025, allocations: 445.8 kB / 498.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003983/0.1029, allocations: 311.1 kB / 498.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005511/0.1034, allocations: 394.7 kB / 499.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.1036, allocations: 76 kB / 499.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.1038, allocations: 76 kB / 499.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/0.104, allocations: 203.4 kB / 499.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003597/0.1044, allocations: 338.5 kB / 499.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.1051, allocations: 0.7904 MB / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1052, allocations: 8 kB / 0.4888 GB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1052, allocations: 0 / 0.4888 GB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.173e-05/0.1052, allocations: 0 / 0.4888 GB, free: 12.84 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002087/0.1073, allocations: 0.9081 MB / 0.4897 GB, free: 11.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1073, allocations: 8.031 kB / 0.4897 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.1075, allocations: 60.28 kB / 0.4898 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.1081, allocations: 392.1 kB / 0.4901 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.1082, allocations: 109 kB / 0.4902 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.1083, allocations: 52.38 kB / 0.4903 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.11, allocations: 0.6896 MB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.11, allocations: 3.984 kB / 0.491 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.423e-05/0.1101, allocations: 24 kB / 0.491 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.1101, allocations: 12 kB / 0.491 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.1116, allocations: 0.605 MB / 0.4916 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005134/0.1168, allocations: 2.559 MB / 0.4941 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.118, allocations: 0.5462 MB / 0.4946 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008993/0.1189, allocations: 409.9 kB / 0.495 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.548e-05/0.119, allocations: 13.12 kB / 0.495 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.119, allocations: 43 kB / 0.4951 GB, free: 6.246 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.119, allocations: 0 / 0.4951 GB, free: 6.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005928/0.125, allocations: 2.186 MB / 0.4972 GB, free: 4.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.125, allocations: 63.84 kB / 0.4973 GB, free: 3.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.1254, allocations: 361.6 kB / 0.4976 GB, free: 3.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.38e-05/0.1255, allocations: 33.7 kB / 0.4976 GB, free: 3.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.1257, allocations: 220.5 kB / 0.4979 GB, free: 3.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.1258, allocations: 193.3 kB / 0.498 GB, free: 3.117 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.126, allocations: 90.23 kB / 0.4981 GB, free: 3.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1262, allocations: 358.7 kB / 0.4985 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008854/0.1271, allocations: 378.7 kB / 0.4988 GB, free: 2.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009016/0.128, allocations: 415 kB / 0.4992 GB, free: 1.867 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1954/0.3234, allocations: 1.995 MB / 0.5012 GB, free: 22.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3235, allocations: 0.9062 kB / 0.5012 GB, free: 22.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001897/0.3254, allocations: 0.8503 MB / 0.502 GB, free: 22.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3254, allocations: 8.188 kB / 0.502 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3254, allocations: 3.156 kB / 0.502 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.234e-05/0.3255, allocations: 4.5 kB / 0.502 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005823/0.3313, allocations: 0.9113 MB / 0.5029 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.3313, allocations: 6.266 kB / 0.5029 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000558/0.3319, allocations: 54.53 kB / 0.503 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.317e-05/0.3319, allocations: 22.33 kB / 0.503 GB, free: 22.02 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: H.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 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003165/0.3323, allocations: 195.1 kB / 0.5032 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.495e-05/0.3324, allocations: 47.38 kB / 0.5032 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.3343, allocations: 0.8325 MB / 0.504 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3343, allocations: 5.781 kB / 0.504 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3343, allocations: 0 / 0.504 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.3343, allocations: 4.406 kB / 0.504 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003084/0.3374, allocations: 1.738 MB / 0.5057 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3375, allocations: 0.75 kB / 0.5057 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006111/0.3436, allocations: 0.8976 MB / 0.5066 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.415e-05/0.3436, allocations: 2.375 kB / 0.5066 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.735e-05/0.3437, allocations: 22.14 kB / 0.5066 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.3437, allocations: 9.328 kB / 0.5066 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3437, allocations: 2.188 kB / 0.5066 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002673/0.3464, allocations: 1.267 MB / 0.5079 GB, free: 21.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.3465, allocations: 118.8 kB / 0.508 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.001e-05/0.3466, allocations: 18.23 kB / 0.508 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005153/0.3471, allocations: 53.89 kB / 0.5081 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.3473, allocations: 75.23 kB / 0.5081 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.3474, allocations: 20.81 kB / 0.5082 GB, free: 21.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.3476, allocations: 258 kB / 0.5084 GB, free: 21.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3476, allocations: 1.375 kB / 0.5084 GB, free: 21.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.3481, allocations: 144.2 kB / 0.5085 GB, free: 21.12 MB / 382.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 (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.000123/0.3482, allocations: 117.2 kB / 0.5087 GB, free: 21.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.35, allocations: 0.792 MB / 0.5094 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3501, allocations: 0 / 0.5094 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008845/0.3509, allocations: 413.2 kB / 0.5098 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.3515, allocations: 105.9 kB / 0.5099 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/0.355, allocations: 1.803 MB / 0.5117 GB, free: 20.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3553, allocations: 0.8488 MB / 0.5125 GB, free: 19.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.3557, allocations: 63.89 kB / 0.5126 GB, free: 19.53 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3557, allocations: 0 / 0.5126 GB, free: 19.53 MB / 382.1 MB Notification: Performance of Templates: time 0.01153/0.3672, allocations: 7.482 MB / 0.5199 GB, free: 17.32 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)