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.000943/0.0009434, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00687/0.00687, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1902/0.1902, allocations: 22.35 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 8 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2159, allocations: 55.98 MB / 438.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002191/0.2181, allocations: 3.053 MB / 441.6 MB, free: 37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2192, allocations: 0.9233 MB / 442.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2193, allocations: 5.562 kB / 442.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.2195, allocations: 48.95 kB / 442.6 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.2197, allocations: 146.6 kB / 442.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.2201, allocations: 170.4 kB / 442.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004726/0.2206, allocations: 0.8046 MB / 443.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003651/0.2209, allocations: 384.7 kB / 444.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.2211, allocations: 262.4 kB / 444.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.2215, allocations: 371.8 kB / 444.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.988e-05/0.2215, allocations: 43.62 kB / 444.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.044e-05/0.2216, allocations: 46.66 kB / 444.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.2217, allocations: 177.4 kB / 445 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.222, allocations: 325.6 kB / 445.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.2224, allocations: 0.7566 MB / 446.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2224, allocations: 0 / 446.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2224, allocations: 0 / 446.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2224, allocations: 3.938 kB / 446.1 MB, free: 34.84 MB / 350.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.00139/0.2238, allocations: 0.7974 MB / 446.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.2238, allocations: 16.66 kB / 446.9 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.2239, allocations: 62.69 kB / 446.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.2243, allocations: 387.6 kB / 447.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.2244, allocations: 107.6 kB / 447.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.2246, allocations: 56.09 kB / 447.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.226, allocations: 0.7355 MB / 448.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.226, allocations: 0 / 448.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.2261, allocations: 21.81 kB / 448.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.2261, allocations: 15.62 kB / 448.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.2274, allocations: 0.6449 MB / 448.9 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004235/0.2317, allocations: 2.689 MB / 451.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.2328, allocations: 0.5834 MB / 452.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008381/0.2336, allocations: 446.8 kB / 452.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.138e-05/0.2337, allocations: 9.906 kB / 452.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.2337, allocations: 42.81 kB / 452.6 MB, free: 31.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.573e-06/0.2337, allocations: 0 / 452.6 MB, free: 31.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005306/0.239, allocations: 2.377 MB / 455 MB, free: 30.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.2391, allocations: 57.56 kB / 455.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.2394, allocations: 358.8 kB / 455.4 MB, free: 30.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.2394, allocations: 36.36 kB / 455.5 MB, free: 30.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.2395, allocations: 226.2 kB / 455.7 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.2396, allocations: 191.2 kB / 455.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.2397, allocations: 54.72 kB / 455.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.073e-05/0.2398, allocations: 355.2 kB / 456.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008668/0.2407, allocations: 405.2 kB / 456.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008878/0.2416, allocations: 453 kB / 457.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00674/0.2483, allocations: 2.238 MB / 459.4 MB, free: 28.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2483, allocations: 1.281 kB / 459.4 MB, free: 28.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001956/0.2503, allocations: 0.9216 MB / 460.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2503, allocations: 8.125 kB / 460.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2503, allocations: 1.031 kB / 460.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.2504, allocations: 4.25 kB / 460.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006441/0.2568, allocations: 1.202 MB / 461.5 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2568, allocations: 4 kB / 461.5 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.2574, allocations: 76.03 kB / 461.6 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.2575, allocations: 24.8 kB / 461.6 MB, free: 28.27 MB / 350.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.0002815/0.2577, allocations: 193.6 kB / 461.8 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.2578, allocations: 49.31 kB / 461.8 MB, free: 28.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.2599, allocations: 0.9058 MB / 462.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.2599, allocations: 9.281 kB / 462.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2599, allocations: 1.219 kB / 462.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.2599, allocations: 6.562 kB / 462.8 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/0.2631, allocations: 1.825 MB / 464.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2631, allocations: 1.438 kB / 464.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006482/0.2696, allocations: 1.191 MB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.2696, allocations: 2.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.338e-05/0.2697, allocations: 17.44 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.2697, allocations: 2.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2697, allocations: 0.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.2725, allocations: 1.379 MB / 467.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.2725, allocations: 119.5 kB / 467.3 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.2726, allocations: 13.83 kB / 467.3 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.2732, allocations: 83.25 kB / 467.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.2734, allocations: 74.28 kB / 467.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.2734, allocations: 14.11 kB / 467.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.2737, allocations: 259.6 kB / 467.7 MB, free: 25.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2737, allocations: 0.9688 kB / 467.7 MB, free: 25.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004581/0.2741, allocations: 145.5 kB / 467.9 MB, free: 25.91 MB / 350.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.0001221/0.2743, allocations: 123.3 kB / 468 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.2761, allocations: 0.8566 MB / 468.8 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2761, allocations: 0 / 468.8 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009148/0.277, allocations: 456.8 kB / 469.3 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005842/0.2776, allocations: 100.5 kB / 469.4 MB, free: 25.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.281, allocations: 2.147 MB / 471.5 MB, free: 24.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2813, allocations: 0.8569 MB / 472.4 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004018/0.2817, allocations: 100.2 kB / 472.5 MB, free: 23.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.282, allocations: 47.73 kB / 472.5 MB, free: 23.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.282, allocations: 0 / 472.5 MB, free: 23.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01083/0.2928, allocations: 7.583 MB / 480.1 MB, free: 19.23 MB / 350.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)