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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09774/0.09774, allocations: 21.41 MB / 36.66 MB, free: 1.129 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009026/0.0009026, allocations: 180.5 kB / 42.85 MB, free: 3.898 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205 MB / 253.9 MB, free: 14.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007797/0.0007797, allocations: 84.48 kB / 307.2 MB, free: 11.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004821, allocations: 8.312 kB / 372.5 MB, free: 59.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1104, allocations: 52.52 MB / 425 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004003/0.1145, allocations: 4.529 MB / 429.5 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.1166, allocations: 1.305 MB / 430.8 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003234/0.1169, allocations: 11.94 kB / 430.8 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002606/0.1172, allocations: 75.38 kB / 430.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004341/0.1177, allocations: 230.4 kB / 431.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.1183, allocations: 251.6 kB / 431.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007322/0.119, allocations: 1.268 MB / 432.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005533/0.1196, allocations: 0.5942 MB / 433.2 MB, free: 6.023 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.1199, allocations: 434.6 kB / 433.7 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005127/0.1205, allocations: 0.5839 MB / 434.2 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1206, allocations: 80 kB / 434.3 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.1208, allocations: 112 kB / 434.4 MB, free: 4.824 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.121, allocations: 271.1 kB / 434.7 MB, free: 4.559 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.1214, allocations: 497.7 kB / 435.2 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007529/0.1221, allocations: 1.179 MB / 436.4 MB, free: 2.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1222, allocations: 0 / 436.4 MB, free: 2.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1222, allocations: 0 / 436.4 MB, free: 2.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.1222, allocations: 0 / 436.4 MB, free: 2.887 MB / 298.7 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.002339/0.1245, allocations: 1.24 MB / 437.6 MB, free: 1.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1246, allocations: 8.031 kB / 437.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.1247, allocations: 99.81 kB / 437.7 MB, free: 1.492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005934/0.1253, allocations: 0.5034 MB / 438.2 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.1255, allocations: 155.7 kB / 438.4 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1256, allocations: 80.38 kB / 438.4 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.1274, allocations: 1.003 MB / 439.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.1274, allocations: 4 kB / 439.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.781e-05/0.1275, allocations: 28 kB / 439.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.1276, allocations: 20 kB / 439.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.1294, allocations: 0.8939 MB / 440.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006484/0.136, allocations: 3.542 MB / 443.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.1378, allocations: 0.8851 MB / 444.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.1389, allocations: 0.6157 MB / 445.4 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001991/0.1391, allocations: 101.7 kB / 445.5 MB, free: 9.492 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.1392, allocations: 43.16 kB / 445.6 MB, free: 9.441 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 4.819e-06/0.1392, allocations: 7.984 kB / 445.6 MB, free: 9.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.006726/0.1459, allocations: 2.981 MB / 448.6 MB, free: 6.402 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.146, allocations: 60.41 kB / 448.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.1466, allocations: 0.4995 MB / 449.1 MB, free: 5.824 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.1466, allocations: 45.7 kB / 449.2 MB, free: 5.773 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.1469, allocations: 320.3 kB / 449.5 MB, free: 5.453 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002416/0.1471, allocations: 303.6 kB / 449.8 MB, free: 5.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.1474, allocations: 142.7 kB / 449.9 MB, free: 5.004 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1476, allocations: 386.7 kB / 450.3 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.1486, allocations: 0.5239 MB / 450.8 MB, free: 4.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.1498, allocations: 0.6008 MB / 451.4 MB, free: 3.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01349/0.1633, allocations: 3.17 MB / 454.6 MB, free: 268 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.1633, allocations: 4 kB / 454.6 MB, free: 264 kB / 314.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00264/0.1659, allocations: 1.25 MB / 455.8 MB, free: 15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.166, allocations: 4 kB / 455.8 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.166, allocations: 7.984 kB / 455.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.166, allocations: 15.88 kB / 455.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00821/0.1743, allocations: 1.213 MB / 457.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007576/0.175, allocations: 1.176 MB / 458.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008988/0.176, allocations: 84 kB / 458.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.472e-05/0.1761, allocations: 35.92 kB / 458.4 MB, free: 12.41 MB / 330.7 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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005371/0.1766, allocations: 241.4 kB / 458.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.1767, allocations: 71.16 kB / 458.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.1793, allocations: 1.189 MB / 459.9 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.1793, allocations: 8 kB / 459.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1794, allocations: 0 / 459.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.1794, allocations: 3.984 kB / 459.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004359/0.1837, allocations: 2.356 MB / 462.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.1838, allocations: 4 kB / 462.2 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008306/0.1921, allocations: 1.19 MB / 463.4 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-05/0.1921, allocations: 7.984 kB / 463.4 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.1923, allocations: 31.92 kB / 463.5 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006876/0.193, allocations: 1.188 MB / 464.7 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.193, allocations: 0 / 464.7 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.1965, allocations: 1.788 MB / 466.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.1967, allocations: 144.4 kB / 466.6 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.1968, allocations: 23.98 kB / 466.6 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006934/0.1975, allocations: 67.92 kB / 466.7 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.1978, allocations: 100.4 kB / 466.8 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.385e-05/0.1978, allocations: 23.98 kB / 466.8 MB, free: 3.809 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004115/0.1983, allocations: 362.9 kB / 467.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1983, allocations: 3.938 kB / 467.2 MB, free: 3.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006151/0.1989, allocations: 232 kB / 467.4 MB, free: 3.227 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (83): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002182/0.1991, allocations: 128.6 kB / 467.5 MB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004762/0.2039, allocations: 1.388 MB / 468.9 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2039, allocations: 4.375 kB / 468.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003492/0.2074, allocations: 0.8235 MB / 469.7 MB, free: 0.875 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000909/0.2083, allocations: 157.8 kB / 469.9 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005829/0.2142, allocations: 3.068 MB / 472.9 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.2147, allocations: 0.9581 MB / 473.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007981/0.2155, allocations: 173.8 kB / 474.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.2159, allocations: 71.41 kB / 474.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2159, allocations: 0 / 474.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of Templates: time 0.01732/0.2332, allocations: 11.13 MB / 485.3 MB, free: 1.242 MB / 346.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)