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.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.001362/0.001362, allocations: 77.7 kB / 19.76 MB, free: 2.031 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.001427/0.001427, allocations: 158.8 kB / 23.01 MB, free: 4.941 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.412/1.412, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] 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.1013/0.1013, allocations: 17.8 MB / 277.6 MB, free: 15.33 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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,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=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [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.003349/0.003349, allocations: 71.89 kB / 415.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.114, allocations: 59.55 MB / 475 MB, free: 8.023 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.00447/0.1185, allocations: 2.91 MB / 477.9 MB, free: 5.094 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1204, allocations: 0.9119 MB / 478.8 MB, free: 4.176 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.1207, allocations: 11.88 kB / 478.8 MB, free: 4.164 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002438/0.1209, allocations: 63.34 kB / 478.9 MB, free: 4.102 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004423/0.1214, allocations: 174.7 kB / 479.1 MB, free: 3.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005652/0.1219, allocations: 199.6 kB / 479.3 MB, free: 3.734 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008785/0.1228, allocations: 0.7447 MB / 480 MB, free: 2.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005529/0.1234, allocations: 354.1 kB / 480.4 MB, free: 2.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004813/0.1238, allocations: 315.1 kB / 480.7 MB, free: 2.324 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005563/0.1244, allocations: 346.8 kB / 481 MB, free: 1.984 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1245, allocations: 76 kB / 481.1 MB, free: 1.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.1247, allocations: 80 kB / 481.2 MB, free: 1.832 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.1249, allocations: 203.4 kB / 481.4 MB, free: 1.633 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.1253, allocations: 298.8 kB / 481.6 MB, free: 1.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008106/0.1261, allocations: 0.8018 MB / 482.4 MB, free: 0.5352 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1261, allocations: 0 / 482.4 MB, free: 0.5352 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1261, allocations: 0 / 482.4 MB, free: 0.5352 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.1261, allocations: 4 kB / 482.5 MB, free: 0.5312 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.1763/0.3024, allocations: 0.8433 MB / 483.3 MB, free: 52.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3024, allocations: 13.7 kB / 483.3 MB, free: 52.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.3025, allocations: 66.19 kB / 483.4 MB, free: 52.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004591/0.303, allocations: 328.5 kB / 483.7 MB, free: 52.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.3031, allocations: 109.1 kB / 483.8 MB, free: 52.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.976e-05/0.3032, allocations: 49.31 kB / 483.8 MB, free: 52.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3045, allocations: 0.7348 MB / 484.6 MB, free: 52.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3046, allocations: 3.938 kB / 484.6 MB, free: 52.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.393e-05/0.3046, allocations: 23.34 kB / 484.6 MB, free: 52.24 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.3046, allocations: 10.19 kB / 484.6 MB, free: 52.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.3058, allocations: 0.5943 MB / 485.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004222/0.3101, allocations: 2.284 MB / 487.5 MB, free: 51.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009602/0.311, allocations: 0.5207 MB / 488 MB, free: 51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007503/0.3118, allocations: 395.7 kB / 488.4 MB, free: 50.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.3118, allocations: 7.562 kB / 488.4 MB, free: 50.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.3118, allocations: 36.84 kB / 488.4 MB, free: 50.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 1.924e-06/0.3118, allocations: 0 / 488.4 MB, free: 50.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=52): time 0.005246/0.3171, allocations: 2.185 MB / 490.6 MB, free: 49.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.3171, allocations: 55.56 kB / 490.7 MB, free: 49.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.3173, allocations: 286.1 kB / 491 MB, free: 49.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.3173, allocations: 36.92 kB / 491 MB, free: 49.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.755e-05/0.3174, allocations: 240 kB / 491.2 MB, free: 49.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.088e-05/0.3175, allocations: 193.1 kB / 491.4 MB, free: 49.37 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.3177, allocations: 101.4 kB / 491.5 MB, free: 49.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.3177, allocations: 349.7 kB / 491.9 MB, free: 48.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/0.3185, allocations: 372.3 kB / 492.2 MB, free: 48.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007461/0.3192, allocations: 427.5 kB / 492.6 MB, free: 48.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006005/0.3252, allocations: 1.997 MB / 494.6 MB, free: 48.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3252, allocations: 0 / 494.6 MB, free: 48.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001642/0.3268, allocations: 0.8578 MB / 495.5 MB, free: 47.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3269, allocations: 6.438 kB / 495.5 MB, free: 47.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3269, allocations: 3.125 kB / 495.5 MB, free: 47.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3269, allocations: 3.156 kB / 495.5 MB, free: 47.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00562/0.3325, allocations: 0.9029 MB / 496.4 MB, free: 47.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3325, allocations: 3.219 kB / 496.4 MB, free: 47.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004734/0.333, allocations: 56.39 kB / 496.5 MB, free: 47.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.333, allocations: 19.5 kB / 496.5 MB, free: 47.74 MB / 446.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (68): * Single equations (assignments): 68 * 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.0002641/0.3333, allocations: 208.8 kB / 496.7 MB, free: 47.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.3334, allocations: 42.2 kB / 496.7 MB, free: 47.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.3351, allocations: 0.827 MB / 497.6 MB, free: 47.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3351, allocations: 6.5 kB / 497.6 MB, free: 47.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3351, allocations: 1.875 kB / 497.6 MB, free: 47.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3351, allocations: 4.078 kB / 497.6 MB, free: 47.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.338, allocations: 1.6 MB / 499.2 MB, free: 46.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.338, allocations: 0 / 499.2 MB, free: 46.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005741/0.3437, allocations: 0.8835 MB / 0.4883 GB, free: 46.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3437, allocations: 7.328 kB / 0.4883 GB, free: 46.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.3438, allocations: 19.91 kB / 0.4884 GB, free: 46.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3438, allocations: 3.312 kB / 0.4884 GB, free: 46.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3438, allocations: 1.688 kB / 0.4884 GB, free: 46.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.3461, allocations: 1.272 MB / 0.4896 GB, free: 45.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.3461, allocations: 36.27 kB / 0.4896 GB, free: 45.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/0.3462, allocations: 14.28 kB / 0.4897 GB, free: 45.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004908/0.3467, allocations: 56.34 kB / 0.4897 GB, free: 45.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.3469, allocations: 77.69 kB / 0.4898 GB, free: 45.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.3469, allocations: 16.31 kB / 0.4898 GB, free: 45.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.347, allocations: 203.6 kB / 0.49 GB, free: 45.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.347, allocations: 4 kB / 0.49 GB, free: 45.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004596/0.3475, allocations: 141.8 kB / 0.4901 GB, free: 45.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 53 * 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.0001017/0.3476, allocations: 127.5 kB / 0.4903 GB, free: 45.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.3492, allocations: 0.7466 MB / 0.491 GB, free: 45.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3492, allocations: 0 / 0.491 GB, free: 45.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007897/0.35, allocations: 410.2 kB / 0.4914 GB, free: 45.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.3505, allocations: 77.66 kB / 0.4915 GB, free: 45.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.3539, allocations: 1.872 MB / 0.4933 GB, free: 44.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001722/0.3541, allocations: 256.3 kB / 0.4935 GB, free: 44.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003085/0.3544, allocations: 88.17 kB / 0.4936 GB, free: 44.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.3546, allocations: 52.2 kB / 0.4937 GB, free: 44.05 MB / 446.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3546, allocations: 1.969 kB / 0.4937 GB, free: 44.05 MB / 446.1 MB Notification: Performance of Templates: time 0.01097/0.3656, allocations: 7.813 MB / 0.5013 GB, free: 43.25 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile [Timeout 660] (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_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 144.68882982991636] Failed to read output from testmodel.py, exit status != 0: 0.37625569000374526 0.38459726200000005 0.256017965 Calling exit ...