Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 78.09 kB / 19.76 MB, free: 1.875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 156 kB / 23.01 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.399/1.399, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1446/0.1446, allocations: 17.8 MB / 277.6 MB, free: 15.34 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 67.89 kB / 414.7 MB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09838, allocations: 59.56 MB / 474.2 MB, free: 8.812 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005342/0.1037, allocations: 3.744 MB / 478 MB, free: 5.043 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.1061, allocations: 1.169 MB / 479.1 MB, free: 3.867 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.1064, allocations: 7.938 kB / 479.1 MB, free: 3.859 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.1067, allocations: 102.9 kB / 479.2 MB, free: 3.758 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000615/0.1073, allocations: 277.9 kB / 479.5 MB, free: 3.484 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007859/0.1081, allocations: 307.5 kB / 479.8 MB, free: 3.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001367/0.1095, allocations: 1.194 MB / 481 MB, free: 1.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008245/0.1103, allocations: 0.5556 MB / 481.6 MB, free: 1.414 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006841/0.111, allocations: 494.5 kB / 482 MB, free: 0.9297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008496/0.1118, allocations: 0.5409 MB / 482.6 MB, free: 396 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002219/0.112, allocations: 124 kB / 482.7 MB, free: 272 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.1123, allocations: 120 kB / 482.8 MB, free: 152 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.177/0.2893, allocations: 322.2 kB / 483.1 MB, free: 47.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000502/0.2898, allocations: 462.8 kB / 483.6 MB, free: 47.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008238/0.2906, allocations: 1.265 MB / 484.8 MB, free: 47.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2906, allocations: 6.531 kB / 484.9 MB, free: 47.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2906, allocations: 0 / 484.9 MB, free: 47.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2906, allocations: 0 / 484.9 MB, free: 47.18 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002307/0.2929, allocations: 1.204 MB / 486.1 MB, free: 46.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.293, allocations: 10.08 kB / 486.1 MB, free: 46.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.2931, allocations: 101.3 kB / 486.2 MB, free: 46.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006306/0.2938, allocations: 469.7 kB / 486.6 MB, free: 46.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.2939, allocations: 163 kB / 486.8 MB, free: 46.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.294, allocations: 90.84 kB / 486.9 MB, free: 46.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.2958, allocations: 1.087 MB / 488 MB, free: 46.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.2958, allocations: 2.562 kB / 488 MB, free: 46.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/0.2959, allocations: 29.44 kB / 488 MB, free: 46.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.2959, allocations: 19.72 kB / 488 MB, free: 46.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.2977, allocations: 0.8988 MB / 488.9 MB, free: 46.1 MB / 446.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005362/0.303, allocations: 3.086 MB / 492 MB, free: 44.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3046, allocations: 0.8756 MB / 492.9 MB, free: 44.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3057, allocations: 0.5954 MB / 493.5 MB, free: 44.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.559e-05/0.3058, allocations: 13.47 kB / 493.5 MB, free: 44.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.3058, allocations: 38.12 kB / 493.5 MB, free: 44.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=79): time 2.145e-06/0.3058, allocations: 4 kB / 493.5 MB, free: 44.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.006909/0.3127, allocations: 3.077 MB / 496.6 MB, free: 42.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.3127, allocations: 61.81 kB / 496.7 MB, free: 42.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.313, allocations: 413.1 kB / 497.1 MB, free: 42.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.3131, allocations: 44.92 kB / 497.1 MB, free: 42.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3132, allocations: 345 kB / 497.4 MB, free: 42.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.3133, allocations: 317.2 kB / 497.8 MB, free: 42.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.3135, allocations: 162 kB / 497.9 MB, free: 42.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.048e-05/0.3136, allocations: 369.7 kB / 498.3 MB, free: 41.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.3146, allocations: 0.5414 MB / 498.8 MB, free: 41.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3157, allocations: 0.6178 MB / 499.4 MB, free: 41.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009298/0.325, allocations: 3.064 MB / 0.4907 GB, free: 40.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.325, allocations: 0 / 0.4907 GB, free: 40.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002301/0.3273, allocations: 1.284 MB / 0.492 GB, free: 39.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3273, allocations: 6.25 kB / 0.492 GB, free: 39.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3273, allocations: 0 / 0.492 GB, free: 39.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3273, allocations: 9.281 kB / 0.492 GB, free: 39.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006582/0.3339, allocations: 1.032 MB / 0.493 GB, free: 39.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3339, allocations: 6.625 kB / 0.493 GB, free: 39.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/0.3346, allocations: 72.14 kB / 0.4931 GB, free: 39.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.3346, allocations: 37.28 kB / 0.4931 GB, free: 39.86 MB / 446.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (114): * Single equations (assignments): 114 * 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.0003111/0.335, allocations: 254.1 kB / 0.4933 GB, free: 39.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3351, allocations: 68.3 kB / 0.4934 GB, free: 39.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/0.3374, allocations: 1.195 MB / 0.4946 GB, free: 39.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.3374, allocations: 14.45 kB / 0.4946 GB, free: 39.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3374, allocations: 0 / 0.4946 GB, free: 39.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.3374, allocations: 7.375 kB / 0.4946 GB, free: 39.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/0.3412, allocations: 2.19 MB / 0.4967 GB, free: 38.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3412, allocations: 7.594 kB / 0.4967 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006746/0.348, allocations: 1.007 MB / 0.4977 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.348, allocations: 6.344 kB / 0.4977 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.115e-05/0.3481, allocations: 30.58 kB / 0.4978 GB, free: 38.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3481, allocations: 3 kB / 0.4978 GB, free: 38.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3481, allocations: 7.094 kB / 0.4978 GB, free: 38.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/0.3512, allocations: 1.837 MB / 0.4996 GB, free: 37.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.332e-05/0.3513, allocations: 62.14 kB / 0.4996 GB, free: 37.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3514, allocations: 24.59 kB / 0.4997 GB, free: 37.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006825/0.352, allocations: 68.98 kB / 0.4997 GB, free: 37.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.3522, allocations: 118 kB / 0.4998 GB, free: 37.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.45e-05/0.3523, allocations: 29.28 kB / 0.4999 GB, free: 37.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.3525, allocations: 282.5 kB / 0.5001 GB, free: 37.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3525, allocations: 0 / 0.5001 GB, free: 37.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005389/0.353, allocations: 227.8 kB / 0.5003 GB, free: 37.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (87): * Single equations (assignments): 87 * 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.0001253/0.3532, allocations: 145.6 kB / 0.5005 GB, free: 36.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002117/0.3553, allocations: 1.094 MB / 0.5016 GB, free: 36.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3553, allocations: 0 / 0.5016 GB, free: 36.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.3565, allocations: 0.5661 MB / 0.5021 GB, free: 36.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006577/0.3572, allocations: 130.1 kB / 0.5022 GB, free: 36.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.362, allocations: 2.78 MB / 0.5049 GB, free: 34.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.3623, allocations: 370.4 kB / 0.5053 GB, free: 34.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005185/0.3628, allocations: 156 kB / 0.5054 GB, free: 34.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003312/0.3632, allocations: 70.09 kB / 0.5055 GB, free: 34.77 MB / 446.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3632, allocations: 0 / 0.5055 GB, free: 34.77 MB / 446.1 MB Notification: Performance of Templates: time 0.01816/0.3813, allocations: 11.58 MB / 0.5168 GB, free: 33.54 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 480] Could not SIGINT process: 3355733. Could not SIGINT process: 3355734. Could not SIGINT process: 3355737. Could not SIGINT process: 3355360. [Calling os._exit(0), Time elapsed: 485.0375933990581] Failed to read output from testmodel.py, exit status != 0: 0.38890373799949884 0.39907551299999994 0.10616384300000001 Calling exit ...