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/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_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") [/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.08973/0.08973, allocations: 21.61 MB / 37.41 MB, free: 0.7617 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.001008/0.001008, allocations: 184.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.285/1.285, allocations: 205.1 MB / 254.8 MB, free: 14.26 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.0009238/0.0009238, allocations: 100.5 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001192, allocations: 51.39 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07951/0.08073, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003596/0.08436, allocations: 3.421 MB / 427.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.08639, allocations: 1.037 MB / 428.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.08681, allocations: 4 kB / 428.8 MB, free: 10 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.08709, allocations: 47.61 kB / 428.8 MB, free: 9.957 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.08748, allocations: 154.9 kB / 429 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.08798, allocations: 175.7 kB / 429.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007167/0.0887, allocations: 0.7992 MB / 429.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005119/0.08923, allocations: 385.7 kB / 430.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.08957, allocations: 279.1 kB / 430.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.08997, allocations: 382.7 kB / 431 MB, free: 7.809 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.09008, allocations: 52 kB / 431 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.09026, allocations: 79.97 kB / 431.1 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.0904, allocations: 187.4 kB / 431.3 MB, free: 7.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.09064, allocations: 310.6 kB / 431.6 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.09114, allocations: 0.7748 MB / 432.3 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.09115, allocations: 0 / 432.3 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.09116, allocations: 0 / 432.3 MB, free: 6.414 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.09118, allocations: 0 / 432.3 MB, free: 6.414 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001685/0.09287, allocations: 0.9044 MB / 433.3 MB, free: 5.457 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.09291, allocations: 8.031 kB / 433.3 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.09304, allocations: 64.19 kB / 433.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.09349, allocations: 392.1 kB / 433.7 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.09361, allocations: 105 kB / 433.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.0937, allocations: 60.22 kB / 433.9 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.09503, allocations: 0.6819 MB / 434.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.09506, allocations: 4 kB / 434.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.09512, allocations: 20 kB / 434.6 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.09513, allocations: 12 kB / 434.6 MB, free: 4.066 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.09633, allocations: 0.5972 MB / 435.2 MB, free: 3.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004529/0.1009, allocations: 2.594 MB / 437.8 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009246/0.1018, allocations: 0.5215 MB / 438.3 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/0.1026, allocations: 401.4 kB / 438.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001833/0.1028, allocations: 93.47 kB / 438.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1028, allocations: 38.97 kB / 438.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 1.784e-06/0.1028, allocations: 0 / 438.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.005331/0.1082, allocations: 2.15 MB / 441 MB, free: 13.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.1082, allocations: 55.84 kB / 441 MB, free: 13.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.1086, allocations: 357.7 kB / 441.4 MB, free: 13.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.1086, allocations: 33.7 kB / 441.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1087, allocations: 232.4 kB / 441.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.1089, allocations: 177.4 kB / 441.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.109, allocations: 98.23 kB / 441.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1092, allocations: 350.8 kB / 442.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007794/0.1099, allocations: 370.2 kB / 442.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008346/0.1108, allocations: 412 kB / 443 MB, free: 11.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008648/0.1195, allocations: 2.15 MB / 445.2 MB, free: 9.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1195, allocations: 0 / 445.2 MB, free: 9.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001947/0.1214, allocations: 0.8457 MB / 446 MB, free: 8.379 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.1215, allocations: 6.5 kB / 446 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1215, allocations: 4 kB / 446 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.1215, allocations: 4 kB / 446 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006658/0.1282, allocations: 0.9948 MB / 447 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003973/0.1286, allocations: 0.5899 MB / 447.6 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.1292, allocations: 63.86 kB / 447.7 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.339e-05/0.1293, allocations: 20 kB / 447.7 MB, free: 6.676 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: 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): 65 * 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.0004306/0.1297, allocations: 207.3 kB / 447.9 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1299, allocations: 39.53 kB / 447.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.1318, allocations: 0.8171 MB / 448.7 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.1319, allocations: 11.94 kB / 448.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1319, allocations: 0 / 448.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.1319, allocations: 3.984 kB / 448.8 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.1353, allocations: 1.724 MB / 450.5 MB, free: 3.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1353, allocations: 0 / 450.5 MB, free: 3.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006576/0.1419, allocations: 0.9792 MB / 451.5 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.1419, allocations: 4 kB / 451.5 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/0.142, allocations: 19.92 kB / 451.5 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003088/0.1423, allocations: 0.5899 MB / 452.1 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1423, allocations: 3.938 kB / 452.1 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/0.1596, allocations: 6.958 MB / 459 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.1598, allocations: 116.5 kB / 459.1 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.324e-05/0.1599, allocations: 16 kB / 459.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004842/0.1603, allocations: 59.86 kB / 459.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.1605, allocations: 72.31 kB / 459.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.1606, allocations: 15.98 kB / 459.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002487/0.1608, allocations: 255.2 kB / 459.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1608, allocations: 0 / 459.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006692/0.1615, allocations: 224 kB / 459.8 MB, free: 10.32 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: 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): 50 * 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.0001819/0.1617, allocations: 111.3 kB / 459.9 MB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.1647, allocations: 0.9076 MB / 460.8 MB, free: 9.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1647, allocations: 0 / 460.8 MB, free: 9.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002017/0.1668, allocations: 0.5296 MB / 461.3 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006143/0.1674, allocations: 97.52 kB / 461.4 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004599/0.172, allocations: 2.369 MB / 463.8 MB, free: 6.258 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.1725, allocations: 0.8553 MB / 464.6 MB, free: 5.371 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005625/0.173, allocations: 112.3 kB / 464.8 MB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003469/0.1734, allocations: 51.41 kB / 464.8 MB, free: 5.207 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1734, allocations: 0 / 464.8 MB, free: 5.207 MB / 330.7 MB Notification: Performance of Templates: time 0.01785/0.1912, allocations: 10.75 MB / 475.6 MB, free: 10.45 MB / 346.7 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)