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/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_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") [/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.09647/0.09647, allocations: 21.6 MB / 37.4 MB, free: 0.7461 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.001041/0.001041, allocations: 188.5 kB / 43.63 MB, free: 3.57 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.295/1.295, allocations: 205.1 MB / 254.8 MB, free: 14.24 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.0008926/0.0008926, allocations: 104 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 54.31 kB / 372.3 MB, free: 59.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0725/0.07363, allocations: 51.97 MB / 424.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003145/0.07681, allocations: 3.44 MB / 427.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.07805, allocations: 1.041 MB / 428.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.07821, allocations: 4 kB / 428.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.07837, allocations: 47.61 kB / 428.8 MB, free: 9.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.07861, allocations: 150.9 kB / 429 MB, free: 9.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.079, allocations: 167.8 kB / 429.1 MB, free: 9.605 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004401/0.07945, allocations: 0.807 MB / 430 MB, free: 8.797 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.07981, allocations: 389.7 kB / 430.3 MB, free: 8.418 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.08001, allocations: 283.1 kB / 430.6 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.08032, allocations: 382.7 kB / 431 MB, free: 7.766 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.064e-05/0.08039, allocations: 52 kB / 431 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.08054, allocations: 79.97 kB / 431.1 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.08065, allocations: 183.4 kB / 431.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001928/0.08085, allocations: 318.5 kB / 431.6 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.08128, allocations: 0.7671 MB / 432.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08129, allocations: 0 / 432.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.08129, allocations: 0 / 432.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.08131, allocations: 0 / 432.4 MB, free: 6.375 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001448/0.08276, allocations: 0.9043 MB / 433.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.0828, allocations: 16.03 kB / 433.3 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.46e-05/0.0829, allocations: 64.19 kB / 433.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.0833, allocations: 380.2 kB / 433.7 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.641e-05/0.0834, allocations: 112.9 kB / 433.8 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.08349, allocations: 52.28 kB / 433.9 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.08471, allocations: 0.6858 MB / 434.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.08473, allocations: 4 kB / 434.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.08479, allocations: 20 kB / 434.6 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.0848, allocations: 12 kB / 434.6 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.08601, allocations: 0.605 MB / 435.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.08981, allocations: 2.582 MB / 437.8 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009272/0.09075, allocations: 0.55 MB / 438.3 MB, free: 220 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000779/0.09154, allocations: 406.7 kB / 438.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.09171, allocations: 93.45 kB / 438.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.09174, allocations: 42.98 kB / 438.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/0.09175, allocations: 0 / 438.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=52): time 0.00527/0.09703, allocations: 2.182 MB / 441.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.09708, allocations: 59.83 kB / 441.1 MB, free: 13.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.09742, allocations: 349.7 kB / 441.5 MB, free: 13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.09747, allocations: 41.64 kB / 441.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.09761, allocations: 220.4 kB / 441.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.09775, allocations: 193.3 kB / 441.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.09794, allocations: 94.14 kB / 442 MB, free: 12.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.09808, allocations: 358.8 kB / 442.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008035/0.09889, allocations: 366.3 kB / 442.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008468/0.09974, allocations: 411.1 kB / 443.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008951/0.1087, allocations: 2.173 MB / 445.3 MB, free: 9.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1087, allocations: 4 kB / 445.3 MB, free: 9.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001814/0.1106, allocations: 0.8497 MB / 446.1 MB, free: 8.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1106, allocations: 8 kB / 446.1 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1106, allocations: 0 / 446.1 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1106, allocations: 4 kB / 446.1 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006713/0.1173, allocations: 1.003 MB / 447.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003931/0.1178, allocations: 0.5938 MB / 447.7 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005634/0.1183, allocations: 64.05 kB / 447.8 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/0.1184, allocations: 16 kB / 447.8 MB, free: 6.535 MB / 314.7 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): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003456/0.1187, allocations: 207.5 kB / 448 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.753e-05/0.1188, allocations: 43.44 kB / 448.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.1208, allocations: 0.8368 MB / 448.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1208, allocations: 4 kB / 448.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1208, allocations: 0 / 448.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1208, allocations: 0 / 448.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/0.124, allocations: 1.747 MB / 450.6 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.124, allocations: 0 / 450.6 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006851/0.1309, allocations: 0.9948 MB / 451.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.1309, allocations: 0 / 451.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.1311, allocations: 19.98 kB / 451.7 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003978/0.1315, allocations: 0.5938 MB / 452.3 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1315, allocations: 0 / 452.3 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/0.149, allocations: 7.047 MB / 459.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.581e-05/0.1491, allocations: 124.5 kB / 459.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/0.1492, allocations: 12 kB / 459.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.1497, allocations: 63.86 kB / 459.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.1499, allocations: 72.31 kB / 459.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.594e-05/0.1499, allocations: 15.98 kB / 459.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002414/0.1502, allocations: 255.2 kB / 459.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.1502, allocations: 4 kB / 459.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006251/0.1508, allocations: 223.9 kB / 460.1 MB, free: 10.02 MB / 330.7 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): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/0.151, allocations: 115.3 kB / 460.2 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.154, allocations: 0.9154 MB / 461.1 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.154, allocations: 0 / 461.1 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.1561, allocations: 0.5335 MB / 461.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.1566, allocations: 105.5 kB / 461.7 MB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004291/0.1609, allocations: 2.283 MB / 464 MB, free: 6.031 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.1615, allocations: 0.8631 MB / 464.9 MB, free: 5.141 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00059/0.1621, allocations: 112.3 kB / 465 MB, free: 5.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.1624, allocations: 55.36 kB / 465 MB, free: 4.973 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1624, allocations: 0 / 465 MB, free: 4.973 MB / 330.7 MB Notification: Performance of Templates: time 0.01772/0.1802, allocations: 10.89 MB / 475.9 MB, free: 10.08 MB / 346.7 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)