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.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.0007854/0.0007854, allocations: 75.7 kB / 20.8 MB, free: 3.707 MB / 18.57 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.0008237/0.0008237, allocations: 165.3 kB / 24.09 MB, free: 424 kB / 18.57 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 0.8962/0.8962, allocations: 177.1 MB / 204.4 MB, free: 5.688 MB / 186.7 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.06058/0.06058, allocations: 18.14 MB / 279 MB, free: 11.44 MB / 266.7 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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,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=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 417.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.283e-05/2.407e-05, allocations: 4.547 kB / 417.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002576/0.0026, allocations: 2.924 MB / 420.3 MB, free: 9.848 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.003699, allocations: 0.9116 MB / 421.2 MB, free: 9.207 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.003828, allocations: 7.625 kB / 421.2 MB, free: 9.203 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.003978, allocations: 71.38 kB / 421.3 MB, free: 9.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.004209, allocations: 181.4 kB / 421.4 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004067/0.004616, allocations: 204.4 kB / 421.6 MB, free: 8.918 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005155/0.005131, allocations: 0.7676 MB / 422.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.005535, allocations: 359.3 kB / 422.8 MB, free: 8.379 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003588/0.005894, allocations: 304.6 kB / 423.1 MB, free: 8.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004023/0.006296, allocations: 321.5 kB / 423.4 MB, free: 8.141 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.006412, allocations: 79.75 kB / 423.4 MB, free: 8.137 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.006524, allocations: 82.78 kB / 423.5 MB, free: 8.133 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.006664, allocations: 206.2 kB / 423.7 MB, free: 8.012 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.006891, allocations: 258.9 kB / 424 MB, free: 7.891 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007472/0.007638, allocations: 0.8426 MB / 424.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.007641, allocations: 1.375 kB / 424.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007642, allocations: 0 / 424.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.007656, allocations: 0 / 424.8 MB, free: 7.566 MB / 330.7 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.001185/0.008841, allocations: 0.8377 MB / 425.7 MB, free: 7.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.008875, allocations: 10.92 kB / 425.7 MB, free: 7.027 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.827e-05/0.008973, allocations: 61.11 kB / 425.7 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000409/0.009382, allocations: 332.9 kB / 426.1 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.009688, allocations: 113.4 kB / 426.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.974e-05/0.009777, allocations: 51.38 kB / 426.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.0109, allocations: 0.7325 MB / 427 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.01091, allocations: 4.812 kB / 427 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.01096, allocations: 28.56 kB / 427 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.01098, allocations: 11.91 kB / 427 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.01198, allocations: 0.6042 MB / 427.6 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.01505, allocations: 2.275 MB / 429.9 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007789/0.01583, allocations: 0.535 MB / 430.4 MB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005456/0.01638, allocations: 396.8 kB / 430.8 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.01642, allocations: 6.594 kB / 430.8 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.01644, allocations: 39.47 kB / 430.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.633e-06/0.01644, allocations: 0 / 430.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=54): time 0.003614/0.02005, allocations: 2.226 MB / 433.1 MB, free: 3.578 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.02008, allocations: 56.97 kB / 433.1 MB, free: 3.516 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.02029, allocations: 277.6 kB / 433.4 MB, free: 3.359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.02032, allocations: 35.92 kB / 433.4 MB, free: 3.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.203e-05/0.0204, allocations: 244.3 kB / 433.7 MB, free: 3.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.0205, allocations: 197.9 kB / 433.9 MB, free: 2.965 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.02062, allocations: 98.64 kB / 434 MB, free: 2.914 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.806e-05/0.02066, allocations: 347.8 kB / 434.3 MB, free: 2.586 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/0.02121, allocations: 380.9 kB / 434.7 MB, free: 2.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006127/0.02182, allocations: 425 kB / 435.1 MB, free: 2.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003532/0.02535, allocations: 2.032 MB / 437.1 MB, free: 1.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.02535, allocations: 1.312 kB / 437.1 MB, free: 1.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00111/0.02646, allocations: 0.8557 MB / 438 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.02648, allocations: 10.41 kB / 438 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.02649, allocations: 1.125 kB / 438 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.0265, allocations: 4.938 kB / 438 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.02939, allocations: 0.9093 MB / 438.9 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.0294, allocations: 8.062 kB / 438.9 MB, free: 492 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.02964, allocations: 59.06 kB / 439 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.02967, allocations: 21.73 kB / 439 MB, free: 456 kB / 330.7 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: 7 * 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 (69): * Single equations (assignments): 69 * 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.0001967/0.02986, allocations: 209.3 kB / 439.2 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.965e-05/0.02991, allocations: 37.64 kB / 439.2 MB, free: 252 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.03105, allocations: 0.8401 MB / 440.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.03105, allocations: 6.031 kB / 440.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.03106, allocations: 7.938 kB / 440.1 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.03106, allocations: 1.156 kB / 440.1 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.03317, allocations: 1.613 MB / 441.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.03317, allocations: 0 / 441.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00292/0.03609, allocations: 0.9052 MB / 442.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.0361, allocations: 0 / 442.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.03613, allocations: 19.98 kB / 442.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.03614, allocations: 8 kB / 442.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.03614, allocations: 3.938 kB / 442.6 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.03776, allocations: 1.283 MB / 443.9 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.0378, allocations: 39.75 kB / 444 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.141e-05/0.03785, allocations: 19.94 kB / 444 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.03809, allocations: 55.92 kB / 444 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.03821, allocations: 80.39 kB / 444.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.03824, allocations: 19.98 kB / 444.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.03836, allocations: 199.1 kB / 444.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03836, allocations: 0 / 444.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002954/0.03866, allocations: 148 kB / 444.5 MB, free: 11.75 MB / 346.7 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0001063/0.03877, allocations: 115.1 kB / 444.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.04006, allocations: 0.7596 MB / 445.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.04006, allocations: 192 / 445.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.04059, allocations: 419.1 kB / 445.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.04092, allocations: 84.86 kB / 445.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.04292, allocations: 1.575 MB / 447.4 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.04308, allocations: 258.6 kB / 447.7 MB, free: 8.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002286/0.04331, allocations: 87.31 kB / 447.7 MB, free: 8.395 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.04348, allocations: 44.48 kB / 447.8 MB, free: 8.352 MB / 346.7 MB Notification: Performance of SimCode: time 4.31e-07/0.04348, allocations: 0 / 447.8 MB, free: 8.352 MB / 346.7 MB Notification: Performance of Templates: time 0.009869/0.05335, allocations: 7.82 MB / 455.6 MB, free: 0.625 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile [Timeout 660] (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_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.0567203192040324] Failed to read output from testmodel.py, exit status != 0: 0.05852554738521576 0.06835922400000001 0.058154909000000005 Calling exit ...