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.08941/0.08941, allocations: 21.6 MB / 37.4 MB, free: 0.7578 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.001027/0.001027, allocations: 188.5 kB / 43.64 MB, free: 3.566 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.296/1.296, allocations: 205.1 MB / 254.8 MB, free: 14.23 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.0008917/0.0008916, allocations: 94.31 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 53.84 kB / 372.3 MB, free: 59.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07748/0.07872, allocations: 51.98 MB / 424.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004111/0.08287, allocations: 4.545 MB / 428.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.08501, allocations: 1.302 MB / 430.2 MB, free: 8.602 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005401/0.08558, allocations: 8 kB / 430.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003468/0.08596, allocations: 79.36 kB / 430.2 MB, free: 8.516 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006087/0.08658, allocations: 234.4 kB / 430.5 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.08729, allocations: 251.6 kB / 430.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.08833, allocations: 1.284 MB / 432 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007682/0.08911, allocations: 0.5943 MB / 432.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005124/0.08964, allocations: 442.5 kB / 433 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.09031, allocations: 0.5839 MB / 433.6 MB, free: 5.125 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002145/0.09053, allocations: 80 kB / 433.7 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003334/0.09087, allocations: 112 kB / 433.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.09111, allocations: 287 kB / 434.1 MB, free: 4.656 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004014/0.09151, allocations: 497.7 kB / 434.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000678/0.0922, allocations: 1.211 MB / 435.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09221, allocations: 0 / 435.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09222, allocations: 8 kB / 435.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.09224, allocations: 3.938 kB / 435.8 MB, free: 2.941 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.002272/0.09451, allocations: 1.236 MB / 437 MB, free: 1.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.09457, allocations: 15.97 kB / 437 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.09472, allocations: 95.81 kB / 437.1 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006083/0.09534, allocations: 0.5112 MB / 437.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.09547, allocations: 155.7 kB / 437.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.09559, allocations: 84.28 kB / 437.9 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.09741, allocations: 1.011 MB / 438.9 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.09745, allocations: 0 / 438.9 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.09754, allocations: 32 kB / 438.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.09756, allocations: 20 kB / 438.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.0995, allocations: 0.9056 MB / 439.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.1062, allocations: 3.558 MB / 443.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.108, allocations: 0.893 MB / 444.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.1092, allocations: 0.6196 MB / 444.9 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001871/0.1094, allocations: 101.7 kB / 445 MB, free: 9.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1094, allocations: 43.16 kB / 445.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 3.056e-06/0.1094, allocations: 0 / 445.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.007017/0.1164, allocations: 3.008 MB / 448.1 MB, free: 6.379 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.1165, allocations: 64.34 kB / 448.1 MB, free: 6.305 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000672/0.1172, allocations: 0.5098 MB / 448.6 MB, free: 5.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.087e-05/0.1173, allocations: 33.7 kB / 448.7 MB, free: 5.746 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.1175, allocations: 324.5 kB / 449 MB, free: 5.422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.1178, allocations: 299.6 kB / 449.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.118, allocations: 156 kB / 449.4 MB, free: 4.965 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1182, allocations: 390.7 kB / 449.8 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.1193, allocations: 0.5317 MB / 450.3 MB, free: 4.039 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.1205, allocations: 0.6008 MB / 450.9 MB, free: 3.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01433/0.1348, allocations: 3.38 MB / 454.3 MB, free: 0 / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.221e-05/0.1348, allocations: 4.047 kB / 454.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002648/0.1375, allocations: 1.266 MB / 455.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1375, allocations: 4 kB / 455.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1376, allocations: 4 kB / 455.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.1376, allocations: 8 kB / 455.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008701/0.1463, allocations: 1.229 MB / 456.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007897/0.1471, allocations: 1.18 MB / 458 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009174/0.1481, allocations: 84 kB / 458.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.1482, allocations: 39.91 kB / 458.1 MB, free: 12.13 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.0005351/0.1488, allocations: 257.8 kB / 458.4 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.1489, allocations: 71.16 kB / 458.5 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/0.1516, allocations: 1.197 MB / 459.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.1516, allocations: 8 kB / 459.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1516, allocations: 0 / 459.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1516, allocations: 3.984 kB / 459.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/0.1561, allocations: 2.384 MB / 462.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1561, allocations: 0 / 462.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00871/0.1649, allocations: 1.19 MB / 463.2 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.792e-05/0.1649, allocations: 8 kB / 463.3 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.1651, allocations: 23.98 kB / 463.3 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006726/0.1658, allocations: 1.188 MB / 464.5 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1658, allocations: 0 / 464.5 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0254/0.1912, allocations: 9.759 MB / 474.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.1914, allocations: 140.4 kB / 474.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.1915, allocations: 27.98 kB / 474.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007026/0.1922, allocations: 67.92 kB / 474.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.1925, allocations: 96.48 kB / 474.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-05/0.1925, allocations: 39.86 kB / 474.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003818/0.1929, allocations: 358.9 kB / 474.9 MB, free: 11 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1929, allocations: 4 kB / 474.9 MB, free: 11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008778/0.1938, allocations: 348 kB / 475.3 MB, free: 10.66 MB / 346.7 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): 83 * 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.0002083/0.194, allocations: 132.6 kB / 475.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004865/0.1989, allocations: 1.396 MB / 476.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1989, allocations: 0 / 476.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003464/0.2024, allocations: 0.8395 MB / 477.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000908/0.2033, allocations: 153.8 kB / 477.8 MB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006437/0.2098, allocations: 3.567 MB / 481.4 MB, free: 4.512 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.2104, allocations: 0.982 MB / 482.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008628/0.2112, allocations: 185.8 kB / 482.5 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004843/0.2117, allocations: 83.41 kB / 482.6 MB, free: 3.238 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2118, allocations: 0 / 482.6 MB, free: 3.238 MB / 346.7 MB Notification: Performance of Templates: time 0.02404/0.2358, allocations: 16.1 MB / 498.7 MB, free: 3.117 MB / 362.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)