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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 197.4 kB / 16.54 MB, free: 6.672 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1893/0.1893, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 67.84 kB / 380.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 54.95 MB / 435.8 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003203/0.2609, allocations: 3.177 MB / 438.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2621, allocations: 0.9078 MB / 439.9 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.2622, allocations: 2.594 kB / 439.9 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.2624, allocations: 70.02 kB / 439.9 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.2627, allocations: 165.4 kB / 440.1 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.2631, allocations: 194.3 kB / 440.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000429/0.2635, allocations: 0.7391 MB / 441 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.2639, allocations: 446.6 kB / 441.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.2641, allocations: 305 kB / 441.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.2645, allocations: 393.6 kB / 442.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.473e-05/0.2646, allocations: 75.38 kB / 442.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.954e-05/0.2647, allocations: 76.69 kB / 442.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.2648, allocations: 206.7 kB / 442.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002434/0.265, allocations: 341.8 kB / 442.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.2655, allocations: 0.7862 MB / 443.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2655, allocations: 0 / 443.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2655, allocations: 2.75 kB / 443.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.2655, allocations: 4 kB / 443.6 MB, free: 35.13 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001538/0.2671, allocations: 0.8963 MB / 444.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.2671, allocations: 7.312 kB / 444.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.2672, allocations: 67.94 kB / 444.6 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.2676, allocations: 388.1 kB / 445 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.2677, allocations: 102.4 kB / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.747e-05/0.2678, allocations: 54.44 kB / 445.1 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.2691, allocations: 0.6863 MB / 445.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.2692, allocations: 0 / 445.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.2692, allocations: 21.25 kB / 445.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.2692, allocations: 14.75 kB / 445.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.2705, allocations: 0.6006 MB / 446.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.2747, allocations: 2.596 MB / 449 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009728/0.2757, allocations: 0.5333 MB / 449.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007468/0.2764, allocations: 404.5 kB / 450 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.2765, allocations: 7.844 kB / 450 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.2765, allocations: 37.78 kB / 450 MB, free: 31.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.904e-06/0.2765, allocations: 0 / 450 MB, free: 31.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004917/0.2814, allocations: 2.159 MB / 452.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.2815, allocations: 61.19 kB / 452.2 MB, free: 30.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.2818, allocations: 367.1 kB / 452.6 MB, free: 30.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.2818, allocations: 33.7 kB / 452.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.2819, allocations: 227.9 kB / 452.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.282, allocations: 179.8 kB / 453 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.2822, allocations: 95.69 kB / 453.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.2822, allocations: 359.8 kB / 453.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007373/0.283, allocations: 363.3 kB / 453.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007686/0.2838, allocations: 410.6 kB / 454.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006447/0.2902, allocations: 1.983 MB / 456.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.2903, allocations: 1.125 kB / 456.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001829/0.2921, allocations: 0.8465 MB / 457 MB, free: 28.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2921, allocations: 5.594 kB / 457 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2921, allocations: 2.156 kB / 457 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.2922, allocations: 4.062 kB / 457.1 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005901/0.2981, allocations: 0.897 MB / 458 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.711e-05/0.2981, allocations: 3.891 kB / 458 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007444/0.2989, allocations: 54.92 kB / 458 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.408e-05/0.299, allocations: 20.33 kB / 458 MB, free: 28.65 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: 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): 66 * 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.0004989/0.2995, allocations: 211.8 kB / 458.2 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.2996, allocations: 48.8 kB / 458.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/0.3018, allocations: 0.817 MB / 459.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3018, allocations: 10.27 kB / 459.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3018, allocations: 1 kB / 459.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3019, allocations: 1.875 kB / 459.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.3054, allocations: 1.737 MB / 460.8 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3054, allocations: 1.188 kB / 460.9 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006095/0.3116, allocations: 0.8881 MB / 461.7 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.3116, allocations: 2.156 kB / 461.7 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.3117, allocations: 17.14 kB / 461.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.927e-06/0.3117, allocations: 2.75 kB / 461.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.3117, allocations: 1.188 kB / 461.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/0.3147, allocations: 1.25 MB / 463 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.3149, allocations: 123.8 kB / 463.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.681e-05/0.315, allocations: 13.55 kB / 463.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005044/0.3155, allocations: 53.62 kB / 463.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.3157, allocations: 71.2 kB / 463.3 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-05/0.3157, allocations: 17.89 kB / 463.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002694/0.316, allocations: 261.2 kB / 463.5 MB, free: 26.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.316, allocations: 0 / 463.5 MB, free: 26.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005103/0.3165, allocations: 141.4 kB / 463.7 MB, free: 26.35 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: 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): 51 * 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.0001229/0.3166, allocations: 119.7 kB / 463.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.3187, allocations: 0.8302 MB / 464.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3187, allocations: 0 / 464.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008499/0.3196, allocations: 410.4 kB / 465 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.3201, allocations: 103.2 kB / 465.1 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.3241, allocations: 1.863 MB / 467 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.3244, allocations: 0.8512 MB / 467.8 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004311/0.3248, allocations: 92.08 kB / 467.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.3251, allocations: 50.62 kB / 468 MB, free: 24.08 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3251, allocations: 0 / 468 MB, free: 24.08 MB / 350.1 MB Notification: Performance of Templates: time 0.01251/0.3376, allocations: 8.298 MB / 476.3 MB, free: 20.95 MB / 350.1 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)