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.001112/0.001112, 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.001402/0.001402, 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.51/1.51, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2561/0.2561, allocations: 22.34 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005456/0.0005457, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3107, allocations: 55.96 MB / 437.9 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002646/0.3134, allocations: 2.918 MB / 440.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3147, allocations: 0.8937 MB / 441.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.3148, allocations: 9.625 kB / 441.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.315, allocations: 49.67 kB / 441.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.3153, allocations: 175.5 kB / 441.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005201/0.3159, allocations: 140.1 kB / 442.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005765/0.3164, allocations: 0.731 MB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004232/0.3169, allocations: 355.1 kB / 443.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.3171, allocations: 260.6 kB / 443.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.3175, allocations: 368.5 kB / 443.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-05/0.3176, allocations: 46.72 kB / 443.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.944e-05/0.3177, allocations: 48.97 kB / 443.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3178, allocations: 170.8 kB / 444 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.407e-05/0.3179, allocations: 128 kB / 444.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.3183, allocations: 0.5877 MB / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3183, allocations: 0 / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3183, allocations: 0 / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.3183, allocations: 0 / 444.7 MB, free: 35.48 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.00142/0.3197, allocations: 0.8053 MB / 445.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3198, allocations: 11.72 kB / 445.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.3199, allocations: 66.16 kB / 445.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.3204, allocations: 379.2 kB / 446 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.3205, allocations: 112.2 kB / 446.1 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-05/0.3206, allocations: 53.19 kB / 446.2 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.3219, allocations: 0.7247 MB / 446.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.322, allocations: 0 / 446.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.322, allocations: 19 kB / 446.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.322, allocations: 12 kB / 446.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.3233, allocations: 0.6532 MB / 447.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004425/0.3277, allocations: 2.686 MB / 450.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.3288, allocations: 0.5784 MB / 450.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/0.3296, allocations: 444.5 kB / 451.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.122e-05/0.3296, allocations: 5.688 kB / 451.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.3297, allocations: 37.62 kB / 451.3 MB, free: 32.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.474e-06/0.3297, allocations: 3.938 kB / 451.3 MB, free: 32.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005212/0.3349, allocations: 2.383 MB / 453.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.335, allocations: 57.88 kB / 453.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.3354, allocations: 348.9 kB / 454.1 MB, free: 31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.3354, allocations: 40.22 kB / 454.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.3356, allocations: 231.8 kB / 454.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.3358, allocations: 188.3 kB / 454.5 MB, free: 30.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.3358, allocations: 11.25 kB / 454.5 MB, free: 30.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3359, allocations: 349.6 kB / 454.9 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008468/0.3368, allocations: 408.3 kB / 455.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000923/0.3377, allocations: 443.2 kB / 455.7 MB, free: 29.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008866/0.3386, allocations: 387.5 kB / 456.1 MB, free: 29.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3386, allocations: 4.938 kB / 456.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001931/0.3406, allocations: 0.9141 MB / 457 MB, free: 29.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3406, allocations: 7.5 kB / 457 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3406, allocations: 4.641 kB / 457 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.3407, allocations: 3.969 kB / 457 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005627/0.3463, allocations: 1.2 MB / 458.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.439e-05/0.3463, allocations: 10.62 kB / 458.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000599/0.3469, allocations: 77.45 kB / 458.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.007e-05/0.347, allocations: 25.69 kB / 458.3 MB, free: 29.4 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004174/0.3474, allocations: 197.3 kB / 458.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.466e-05/0.3475, allocations: 41 kB / 458.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.3495, allocations: 0.9037 MB / 459.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3495, allocations: 5.906 kB / 459.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3496, allocations: 3.953 kB / 459.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.3496, allocations: 3.797 kB / 459.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.353, allocations: 1.838 MB / 461.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.353, allocations: 4.031 kB / 461.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005733/0.3587, allocations: 1.187 MB / 462.5 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.732e-05/0.3588, allocations: 2.5 kB / 462.5 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.3589, allocations: 21.25 kB / 462.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.645e-06/0.3589, allocations: 10.31 kB / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3589, allocations: 1.859 kB / 462.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.3616, allocations: 1.368 MB / 463.9 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.3618, allocations: 120.1 kB / 464 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.169e-05/0.3619, allocations: 14.16 kB / 464.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.3624, allocations: 74.89 kB / 464.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.3626, allocations: 72.12 kB / 464.2 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.3627, allocations: 17.83 kB / 464.2 MB, free: 27.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003102/0.363, allocations: 265.8 kB / 464.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.363, allocations: 4.094 kB / 464.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005101/0.3635, allocations: 145.8 kB / 464.6 MB, free: 27.02 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 (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.0001517/0.3637, allocations: 112.9 kB / 464.7 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.3654, allocations: 0.8532 MB / 465.6 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3655, allocations: 5.438 kB / 465.6 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008753/0.3663, allocations: 450.2 kB / 466 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.3669, allocations: 99.55 kB / 466.1 MB, free: 26.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.3705, allocations: 2.123 MB / 468.2 MB, free: 25.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.3709, allocations: 0.8528 MB / 469.1 MB, free: 24.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005215/0.3714, allocations: 99.78 kB / 469.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002711/0.3717, allocations: 56.39 kB / 469.3 MB, free: 24.55 MB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3717, allocations: 0 / 469.3 MB, free: 24.55 MB / 350.1 MB Notification: Performance of Templates: time 0.01372/0.3854, allocations: 7.308 MB / 476.6 MB, free: 22.44 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)