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.0008812/0.0008812, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004762/0.004762, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.252/1.252, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1898/0.1898, allocations: 22.36 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002649, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002271/0.2223, allocations: 3.036 MB / 441.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2236, allocations: 0.9204 MB / 442.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.2238, allocations: 2.594 kB / 442.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.224, allocations: 51.83 kB / 442.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.2243, allocations: 148.7 kB / 442.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.2247, allocations: 174.6 kB / 442.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.2252, allocations: 0.7958 MB / 443.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003785/0.2256, allocations: 388.4 kB / 444.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.2259, allocations: 266.7 kB / 444.3 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003263/0.2262, allocations: 369.7 kB / 444.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.369e-05/0.2263, allocations: 50.47 kB / 444.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.055e-05/0.2264, allocations: 43.62 kB / 444.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.2265, allocations: 174.1 kB / 445 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.2267, allocations: 326.6 kB / 445.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.2271, allocations: 0.7447 MB / 446 MB, free: 34.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2271, allocations: 3.188 kB / 446 MB, free: 34.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2271, allocations: 0 / 446 MB, free: 34.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2271, allocations: 0 / 446 MB, free: 34.96 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.001401/0.2285, allocations: 0.8006 MB / 446.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.2286, allocations: 15.44 kB / 446.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.2287, allocations: 69.03 kB / 446.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003842/0.2291, allocations: 385.6 kB / 447.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.2292, allocations: 113.8 kB / 447.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-05/0.2293, allocations: 54.44 kB / 447.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2307, allocations: 0.7287 MB / 448.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2308, allocations: 0 / 448.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.2308, allocations: 17.41 kB / 448.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.2308, allocations: 10.88 kB / 448.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2322, allocations: 0.6455 MB / 448.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004416/0.2366, allocations: 2.701 MB / 451.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.2376, allocations: 0.5608 MB / 452.1 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008023/0.2385, allocations: 440.3 kB / 452.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.2385, allocations: 14.3 kB / 452.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.2385, allocations: 41.66 kB / 452.6 MB, free: 31.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.563e-06/0.2385, allocations: 0 / 452.6 MB, free: 31.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005151/0.2437, allocations: 2.339 MB / 454.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.895e-05/0.2437, allocations: 57.06 kB / 455 MB, free: 30.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.244, allocations: 361.1 kB / 455.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.2441, allocations: 35.98 kB / 455.4 MB, free: 30.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.479e-05/0.2442, allocations: 224.5 kB / 455.6 MB, free: 30.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.2443, allocations: 182.9 kB / 455.8 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/0.2444, allocations: 53.05 kB / 455.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.83e-05/0.2445, allocations: 354.1 kB / 456.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008487/0.2453, allocations: 407.1 kB / 456.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008466/0.2462, allocations: 446.1 kB / 457 MB, free: 29.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006645/0.2528, allocations: 2.22 MB / 459.2 MB, free: 28.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2528, allocations: 3.938 kB / 459.2 MB, free: 28.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001901/0.2547, allocations: 0.9192 MB / 460.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2548, allocations: 5.75 kB / 460.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2548, allocations: 5.312 kB / 460.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.2548, allocations: 4.688 kB / 460.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006295/0.2611, allocations: 1.193 MB / 461.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.2611, allocations: 4.156 kB / 461.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.2617, allocations: 74.72 kB / 461.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.787e-05/0.2617, allocations: 21.05 kB / 461.5 MB, free: 28.41 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.0002574/0.262, allocations: 199.9 kB / 461.7 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.585e-05/0.2621, allocations: 49.48 kB / 461.7 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.2641, allocations: 0.8875 MB / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2641, allocations: 6.203 kB / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2641, allocations: 0 / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2641, allocations: 2.578 kB / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.2673, allocations: 1.828 MB / 464.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2673, allocations: 4.875 kB / 464.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006352/0.2737, allocations: 1.181 MB / 465.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.2737, allocations: 2.094 kB / 465.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.2737, allocations: 17.42 kB / 465.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2737, allocations: 1.844 kB / 465.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2737, allocations: 1.719 kB / 465.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.2764, allocations: 1.352 MB / 467 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.571e-05/0.2765, allocations: 115.9 kB / 467.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/0.2766, allocations: 17.97 kB / 467.1 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.2771, allocations: 72.27 kB / 467.2 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.2773, allocations: 68.45 kB / 467.3 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.2774, allocations: 22.66 kB / 467.3 MB, free: 26.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.2776, allocations: 262 kB / 467.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2776, allocations: 0 / 467.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.278, allocations: 140.2 kB / 467.7 MB, free: 26.07 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.0001103/0.2782, allocations: 122.4 kB / 467.8 MB, free: 25.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.28, allocations: 0.8475 MB / 468.6 MB, free: 25.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.28, allocations: 0 / 468.6 MB, free: 25.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008921/0.2809, allocations: 447 kB / 469.1 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.2815, allocations: 104.7 kB / 469.2 MB, free: 25.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/0.2853, allocations: 2.235 MB / 471.4 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.2856, allocations: 0.8514 MB / 472.3 MB, free: 23.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003942/0.286, allocations: 103.9 kB / 472.4 MB, free: 23.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.2863, allocations: 46.06 kB / 472.4 MB, free: 23.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2863, allocations: 0 / 472.4 MB, free: 23.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01088/0.2972, allocations: 7.516 MB / 479.9 MB, free: 19.43 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)