Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009278/0.009278, allocations: 103.5 kB / 15.73 MB, free: 6.043 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.001862/0.001862, allocations: 189 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.362/1.362, 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.09131/0.09131, allocations: 22.33 MB / 312.8 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.89 kB / 437 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09771, allocations: 54.95 MB / 492 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003591/0.1013, allocations: 3.182 MB / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.1028, allocations: 0.9079 MB / 496.1 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.103, allocations: 7.938 kB / 496.1 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002087/0.1032, allocations: 63.36 kB / 496.1 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004129/0.1037, allocations: 166.7 kB / 496.3 MB, free: 396 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.1041, allocations: 199.6 kB / 496.5 MB, free: 196 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005897/0.1047, allocations: 0.7444 MB / 497.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.1052, allocations: 437.8 kB / 497.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.1055, allocations: 307.1 kB / 498 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/0.1059, allocations: 394.6 kB / 498.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.784e-05/0.106, allocations: 80 kB / 498.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1061, allocations: 80 kB / 498.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1063, allocations: 199.5 kB / 498.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.1065, allocations: 346.5 kB / 499 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.1071, allocations: 0.7904 MB / 499.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1072, allocations: 0 / 499.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1072, allocations: 0 / 499.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1072, allocations: 0 / 499.8 MB, 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001949/0.1091, allocations: 0.9067 MB / 0.489 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.1092, allocations: 8.031 kB / 0.489 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.1093, allocations: 68.28 kB / 0.4891 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.1098, allocations: 392.1 kB / 0.4895 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.1099, allocations: 109 kB / 0.4896 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.102e-05/0.11, allocations: 48.38 kB / 0.4896 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.1114, allocations: 0.6858 MB / 0.4903 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1115, allocations: 0 / 0.4903 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.1115, allocations: 20 kB / 0.4903 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.1115, allocations: 12 kB / 0.4903 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.1129, allocations: 0.605 MB / 0.4909 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004725/0.1176, allocations: 2.559 MB / 0.4934 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.1187, allocations: 0.5352 MB / 0.4939 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008487/0.1196, allocations: 401.4 kB / 0.4943 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.1196, allocations: 16.47 kB / 0.4943 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1197, allocations: 38.88 kB / 0.4943 GB, free: 6.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.214e-06/0.1197, allocations: 0 / 0.4943 GB, free: 6.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.007269/0.1269, allocations: 2.161 MB / 0.4965 GB, free: 4.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.127, allocations: 59.84 kB / 0.4965 GB, free: 3.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.1274, allocations: 365.6 kB / 0.4969 GB, free: 3.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.722e-05/0.1274, allocations: 33.7 kB / 0.4969 GB, free: 3.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1276, allocations: 232.4 kB / 0.4971 GB, free: 3.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1277, allocations: 177.4 kB / 0.4973 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.1279, allocations: 98.14 kB / 0.4974 GB, free: 3.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.128, allocations: 354.8 kB / 0.4977 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008016/0.1288, allocations: 370.7 kB / 0.4981 GB, free: 2.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008119/0.1297, allocations: 412 kB / 0.4985 GB, free: 1.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2108/0.3405, allocations: 1.971 MB / 0.5004 GB, free: 21.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3406, allocations: 3.812 kB / 0.5004 GB, free: 21.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00202/0.3426, allocations: 0.8475 MB / 0.5012 GB, free: 21.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.3426, allocations: 5.406 kB / 0.5012 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3426, allocations: 2.688 kB / 0.5012 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3427, allocations: 3.375 kB / 0.5012 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005598/0.3483, allocations: 0.895 MB / 0.5021 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.166e-05/0.3483, allocations: 3.781 kB / 0.5021 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.3489, allocations: 61.38 kB / 0.5022 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.349, allocations: 18.45 kB / 0.5022 GB, free: 21.92 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: 7 * 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 (66): * Single equations (assignments): 66 * 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.0003498/0.3493, allocations: 205.7 kB / 0.5024 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.901e-05/0.3494, allocations: 48.47 kB / 0.5024 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.3513, allocations: 0.8113 MB / 0.5032 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.3513, allocations: 7.062 kB / 0.5032 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3514, allocations: 0 / 0.5032 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3514, allocations: 2.625 kB / 0.5032 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.3546, allocations: 1.726 MB / 0.5049 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3546, allocations: 1 kB / 0.5049 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00581/0.3605, allocations: 0.8851 MB / 0.5058 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.3605, allocations: 2.734 kB / 0.5058 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.3606, allocations: 20.41 kB / 0.5058 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.3606, allocations: 6.844 kB / 0.5058 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3606, allocations: 0 / 0.5058 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.3633, allocations: 1.252 MB / 0.507 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.3635, allocations: 116.8 kB / 0.5071 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.907e-05/0.3635, allocations: 19.97 kB / 0.5072 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004837/0.364, allocations: 49.25 kB / 0.5072 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.3642, allocations: 71.16 kB / 0.5073 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.3643, allocations: 21.73 kB / 0.5073 GB, free: 21.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.3646, allocations: 258.4 kB / 0.5075 GB, free: 21.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3646, allocations: 0 / 0.5075 GB, free: 21.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006653/0.3653, allocations: 144.6 kB / 0.5077 GB, free: 21.04 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.0001506/0.3654, allocations: 111.5 kB / 0.5078 GB, free: 20.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.3673, allocations: 0.7845 MB / 0.5086 GB, free: 20.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3673, allocations: 5.328 kB / 0.5086 GB, free: 20.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008423/0.3681, allocations: 404.7 kB / 0.5089 GB, free: 20.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.3687, allocations: 111.2 kB / 0.5091 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.3726, allocations: 1.847 MB / 0.5109 GB, free: 20.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.3729, allocations: 0.8536 MB / 0.5117 GB, free: 19.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000404/0.3733, allocations: 97.91 kB / 0.5118 GB, free: 19.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.3736, allocations: 51.06 kB / 0.5118 GB, free: 19.47 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3736, allocations: 1.219 kB / 0.5118 GB, free: 19.47 MB / 382.1 MB Notification: Performance of Templates: time 0.01449/0.3881, allocations: 8.608 MB / 0.5202 GB, free: 16.86 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)