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.001274/0.001274, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.002109/0.002109, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2536/0.2536, allocations: 22.34 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 8 kB / 381.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3088, allocations: 55.98 MB / 437.9 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002669/0.3115, allocations: 2.896 MB / 440.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3128, allocations: 0.8918 MB / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.3129, allocations: 5.281 kB / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.3131, allocations: 52.14 kB / 441.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.3134, allocations: 178.5 kB / 441.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.3138, allocations: 136.6 kB / 442.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.3143, allocations: 0.7292 MB / 442.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.3148, allocations: 350.8 kB / 443.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.3151, allocations: 269.8 kB / 443.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003586/0.3154, allocations: 357.1 kB / 443.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/0.3155, allocations: 48.94 kB / 443.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.118e-05/0.3156, allocations: 49.06 kB / 443.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3157, allocations: 178.9 kB / 444 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.507e-05/0.3158, allocations: 126.8 kB / 444.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.3162, allocations: 0.5782 MB / 444.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3162, allocations: 3.406 kB / 444.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3162, allocations: 0 / 444.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3162, allocations: 0 / 444.7 MB, free: 35.2 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.001371/0.3176, allocations: 0.8064 MB / 445.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3176, allocations: 8.688 kB / 445.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.3178, allocations: 65.5 kB / 445.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.3182, allocations: 375.1 kB / 446 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.3183, allocations: 116.5 kB / 446.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.257e-05/0.3184, allocations: 46.28 kB / 446.1 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.3197, allocations: 0.7323 MB / 446.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3197, allocations: 0 / 446.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.3198, allocations: 22.16 kB / 446.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.3198, allocations: 16.41 kB / 446.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.321, allocations: 0.6344 MB / 447.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004233/0.3252, allocations: 2.689 MB / 450.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009473/0.3262, allocations: 0.5694 MB / 450.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000716/0.3269, allocations: 435.1 kB / 451.2 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.327, allocations: 14.09 kB / 451.2 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.327, allocations: 37.78 kB / 451.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.124e-06/0.327, allocations: 0 / 451.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004768/0.3318, allocations: 2.343 MB / 453.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.3319, allocations: 61.03 kB / 453.7 MB, free: 30.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.3322, allocations: 358.3 kB / 454 MB, free: 30.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.3322, allocations: 29.7 kB / 454 MB, free: 30.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.3323, allocations: 228.2 kB / 454.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3324, allocations: 184.8 kB / 454.4 MB, free: 30.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.3325, allocations: 7.188 kB / 454.5 MB, free: 30.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.592e-05/0.3326, allocations: 353.7 kB / 454.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007019/0.3333, allocations: 403 kB / 455.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008003/0.3341, allocations: 444.1 kB / 455.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.3349, allocations: 389.4 kB / 456 MB, free: 29.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3349, allocations: 1.281 kB / 456 MB, free: 29.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001805/0.3367, allocations: 0.9086 MB / 456.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3367, allocations: 8.875 kB / 456.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3367, allocations: 1.375 kB / 456.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.3368, allocations: 8.953 kB / 456.9 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005383/0.3421, allocations: 1.191 MB / 458.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.3422, allocations: 7.719 kB / 458.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/0.3428, allocations: 74.36 kB / 458.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.3429, allocations: 21.52 kB / 458.2 MB, free: 29.15 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003255/0.3432, allocations: 203.6 kB / 458.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.3433, allocations: 44.28 kB / 458.5 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.3451, allocations: 0.8884 MB / 459.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.3452, allocations: 5.438 kB / 459.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.3452, allocations: 6.766 kB / 459.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3452, allocations: 1 kB / 459.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.3485, allocations: 1.824 MB / 461.2 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.3485, allocations: 1.25 kB / 461.2 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005522/0.354, allocations: 1.176 MB / 462.4 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.755e-05/0.3541, allocations: 3.438 kB / 462.4 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.3542, allocations: 15.81 kB / 462.4 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/0.3542, allocations: 3.047 kB / 462.4 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3542, allocations: 1.031 kB / 462.4 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3568, allocations: 1.367 MB / 463.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.3569, allocations: 115.7 kB / 463.9 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.758e-05/0.357, allocations: 13.34 kB / 463.9 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004847/0.3575, allocations: 70.61 kB / 464 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.3577, allocations: 69.06 kB / 464 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.3578, allocations: 21.53 kB / 464 MB, free: 26.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.3581, allocations: 254.9 kB / 464.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3581, allocations: 0 / 464.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005116/0.3586, allocations: 143.7 kB / 464.4 MB, free: 26.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001265/0.3587, allocations: 116.5 kB / 464.6 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.3605, allocations: 0.8458 MB / 465.4 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3605, allocations: 0 / 465.4 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008602/0.3614, allocations: 448.7 kB / 465.8 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.362, allocations: 104.7 kB / 465.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3661, allocations: 2.219 MB / 468.2 MB, free: 25.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.3664, allocations: 0.8509 MB / 469 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005111/0.3669, allocations: 95.56 kB / 469.1 MB, free: 24.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.3672, allocations: 49.45 kB / 469.1 MB, free: 24.32 MB / 350.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3672, allocations: 0 / 469.1 MB, free: 24.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01289/0.3801, allocations: 7.273 MB / 476.4 MB, free: 22.46 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)