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.007846/0.007846, allocations: 103.5 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.001856/0.001856, allocations: 197.5 kB / 16.67 MB, free: 5.969 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2439/0.2439, allocations: 22.35 MB / 312.9 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 66.67 kB / 437.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1332, allocations: 54.97 MB / 492 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003746/0.137, allocations: 3.196 MB / 495.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.1388, allocations: 0.908 MB / 496.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.139, allocations: 11.88 kB / 496.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.1392, allocations: 63.36 kB / 496.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.1396, allocations: 166.7 kB / 496.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.1401, allocations: 195.6 kB / 496.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000675/0.1408, allocations: 0.7445 MB / 497.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000529/0.1413, allocations: 453.7 kB / 497.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.1417, allocations: 311.1 kB / 498.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004627/0.1421, allocations: 386.7 kB / 498.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.1422, allocations: 76 kB / 498.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1424, allocations: 83.94 kB / 498.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.1426, allocations: 207.4 kB / 498.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.1428, allocations: 342.5 kB / 499.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006891/0.1435, allocations: 0.7866 MB / 499.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1435, allocations: 4 kB / 499.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1435, allocations: 0 / 499.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1436, allocations: 0 / 499.9 MB, free: 9.301 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001862/0.1454, allocations: 0.8965 MB / 0.4891 GB, free: 8.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1455, allocations: 12.03 kB / 0.4891 GB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1456, allocations: 64.19 kB / 0.4891 GB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005488/0.1462, allocations: 396 kB / 0.4895 GB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.1463, allocations: 109 kB / 0.4896 GB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1464, allocations: 48.38 kB / 0.4897 GB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.1479, allocations: 0.6935 MB / 0.4904 GB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.148, allocations: 0 / 0.4904 GB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.674e-05/0.148, allocations: 27.92 kB / 0.4904 GB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.148, allocations: 12 kB / 0.4904 GB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.1495, allocations: 0.6011 MB / 0.491 GB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004828/0.1543, allocations: 2.567 MB / 0.4935 GB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1555, allocations: 0.5436 MB / 0.494 GB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008835/0.1564, allocations: 413.9 kB / 0.4944 GB, free: 2.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.1565, allocations: 4.438 kB / 0.4944 GB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.1565, allocations: 39 kB / 0.4945 GB, free: 2.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.1565, allocations: 0 / 0.4945 GB, free: 2.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.005661/0.1622, allocations: 2.194 MB / 0.4966 GB, free: 472 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1622, allocations: 55.84 kB / 0.4966 GB, free: 404 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.1626, allocations: 365.6 kB / 0.497 GB, free: 28 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-05/0.1627, allocations: 37.7 kB / 0.497 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.1629, allocations: 224.5 kB / 0.4972 GB, free: 15.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.1631, allocations: 189.2 kB / 0.4974 GB, free: 15.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.1633, allocations: 94.23 kB / 0.4975 GB, free: 15.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1634, allocations: 354.8 kB / 0.4979 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.1642, allocations: 374.7 kB / 0.4982 GB, free: 14.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008133/0.165, allocations: 411.1 kB / 0.4986 GB, free: 14.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006565/0.1716, allocations: 2 MB / 0.5006 GB, free: 12.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1717, allocations: 0 / 0.5006 GB, free: 12.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001928/0.1736, allocations: 0.8536 MB / 0.5014 GB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.1736, allocations: 4 kB / 0.5014 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1737, allocations: 4 kB / 0.5014 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.1737, allocations: 4 kB / 0.5014 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005701/0.1794, allocations: 0.909 MB / 0.5023 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.1794, allocations: 4 kB / 0.5023 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.18, allocations: 59.94 kB / 0.5023 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.1801, allocations: 23.98 kB / 0.5024 GB, free: 10.44 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.0004788/0.1806, allocations: 201.2 kB / 0.5026 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1807, allocations: 47.38 kB / 0.5026 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/0.1827, allocations: 0.8327 MB / 0.5034 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.1827, allocations: 8 kB / 0.5034 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.1827, allocations: 3.938 kB / 0.5034 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.1827, allocations: 7.922 kB / 0.5034 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.1861, allocations: 1.74 MB / 0.5051 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1861, allocations: 0 / 0.5051 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005554/0.1917, allocations: 0.9012 MB / 0.506 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/0.1917, allocations: 0 / 0.506 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/0.1918, allocations: 19.98 kB / 0.506 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1918, allocations: 0 / 0.506 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1918, allocations: 4 kB / 0.506 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.1945, allocations: 1.278 MB / 0.5073 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1946, allocations: 112.6 kB / 0.5074 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.1947, allocations: 19.92 kB / 0.5074 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005039/0.1952, allocations: 47.94 kB / 0.5075 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.1954, allocations: 76.33 kB / 0.5075 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.1955, allocations: 15.98 kB / 0.5076 GB, free: 5.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002833/0.1957, allocations: 263.2 kB / 0.5078 GB, free: 4.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1958, allocations: 0 / 0.5078 GB, free: 4.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005103/0.1963, allocations: 147.9 kB / 0.5079 GB, free: 4.613 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.000165/0.1964, allocations: 119.2 kB / 0.5081 GB, free: 4.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001765/0.1982, allocations: 0.7944 MB / 0.5088 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1982, allocations: 0 / 0.5088 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008711/0.1991, allocations: 418.2 kB / 0.5092 GB, free: 3.289 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.1997, allocations: 116.2 kB / 0.5093 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/0.2032, allocations: 1.757 MB / 0.5111 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.2036, allocations: 0.859 MB / 0.5119 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003589/0.204, allocations: 92.34 kB / 0.512 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.2042, allocations: 51.41 kB / 0.512 GB, free: 360 kB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2042, allocations: 0 / 0.512 GB, free: 360 kB / 382.1 MB Notification: Performance of Templates: time 0.01405/0.2183, allocations: 8.433 MB / 0.5203 GB, free: 7.988 MB / 398.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)