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.001462/0.001462, allocations: 75.88 kB / 19.96 MB, free: 1.75 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.001492/0.001492, allocations: 174.6 kB / 23.24 MB, free: 4.867 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.487/1.487, allocations: 177.1 MB / 203.5 MB, free: 9.156 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.1029/0.1029, allocations: 18.14 MB / 278.1 MB, free: 15.04 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_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 2.215e-06/2.215e-06, allocations: 0 / 416.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.751e-05/3.973e-05, allocations: 6.219 kB / 416.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.008302/0.008341, allocations: 2.921 MB / 419.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003485/0.01183, allocations: 0.9194 MB / 420.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003465/0.01217, allocations: 4 kB / 420.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003254/0.0125, allocations: 67.36 kB / 420.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007115/0.01321, allocations: 186.5 kB / 420.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.01411, allocations: 195.5 kB / 420.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.01565, allocations: 0.7677 MB / 421.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.01669, allocations: 366 kB / 421.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.01776, allocations: 299.3 kB / 422.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.01897, allocations: 323.1 kB / 422.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.0193, allocations: 76 kB / 422.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000399/0.0197, allocations: 84 kB / 422.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004253/0.02013, allocations: 211.4 kB / 422.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008521/0.02098, allocations: 255.4 kB / 423 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002153/0.02313, allocations: 0.8491 MB / 423.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.02314, allocations: 0 / 423.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.02314, allocations: 0 / 423.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.02319, allocations: 0 / 423.8 MB, free: 10.26 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.003921/0.02711, allocations: 0.8401 MB / 424.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.02717, allocations: 8.922 kB / 424.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.0275, allocations: 64.61 kB / 424.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.02871, allocations: 333.3 kB / 425.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/0.02897, allocations: 112.9 kB / 425.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002221/0.0292, allocations: 56.38 kB / 425.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.0325, allocations: 0.7325 MB / 426 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.03252, allocations: 192 / 426 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.03264, allocations: 28.12 kB / 426 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.03267, allocations: 15.98 kB / 426 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002967/0.03564, allocations: 0.5972 MB / 426.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/0.04569, allocations: 2.273 MB / 428.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00266/0.04835, allocations: 0.5399 MB / 429.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002001/0.05035, allocations: 398.1 kB / 429.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.939e-05/0.05042, allocations: 4.5 kB / 429.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.718e-05/0.05049, allocations: 39.06 kB / 429.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.237e-06/0.05049, allocations: 0 / 429.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.01288/0.06337, allocations: 2.218 MB / 432.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.06343, allocations: 55.91 kB / 432.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005997/0.06403, allocations: 276.2 kB / 432.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.06414, allocations: 37.7 kB / 432.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002883/0.06443, allocations: 241.2 kB / 432.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.06477, allocations: 206.2 kB / 432.9 MB, free: 1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003689/0.06514, allocations: 94.33 kB / 433 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002764/0.06542, allocations: 350.8 kB / 433.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/0.06723, allocations: 375.2 kB / 433.7 MB, free: 184 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/0.06895, allocations: 428.8 kB / 434.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.07968, allocations: 2.023 MB / 436.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.07969, allocations: 0 / 436.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002625/0.08231, allocations: 0.8525 MB / 437 MB, free: 12.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.08234, allocations: 11.94 kB / 437 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.08235, allocations: 3.938 kB / 437 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.08237, allocations: 11.94 kB / 437 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00833/0.0907, allocations: 0.9091 MB / 437.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.119e-05/0.09073, allocations: 7.938 kB / 437.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009484/0.09168, allocations: 67.86 kB / 438 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.09185, allocations: 16 kB / 438 MB, free: 11.8 MB / 366.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: 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.0007634/0.09261, allocations: 195.4 kB / 438.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.09286, allocations: 39.77 kB / 438.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003312/0.09617, allocations: 0.8409 MB / 439.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.09618, allocations: 4 kB / 439.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.09619, allocations: 0 / 439.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.0962, allocations: 7.984 kB / 439.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005586/0.1018, allocations: 1.611 MB / 440.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.1018, allocations: 3.984 kB / 440.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008912/0.1107, allocations: 0.8974 MB / 441.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-05/0.1107, allocations: 7.938 kB / 441.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.1109, allocations: 19.98 kB / 441.6 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.717e-06/0.1109, allocations: 0 / 441.6 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.1109, allocations: 11.94 kB / 441.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.115, allocations: 1.287 MB / 442.9 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.1151, allocations: 39.75 kB / 443 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.1153, allocations: 19.98 kB / 443 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006082/0.1159, allocations: 55.94 kB / 443 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.1161, allocations: 84.38 kB / 443.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.118e-05/0.1161, allocations: 16 kB / 443.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.1164, allocations: 195.1 kB / 443.3 MB, free: 6.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1164, allocations: 0 / 443.3 MB, free: 6.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007071/0.1171, allocations: 144 kB / 443.5 MB, free: 6.25 MB / 366.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: 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.0002225/0.1173, allocations: 127 kB / 443.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.1195, allocations: 0.7558 MB / 444.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.1195, allocations: 0 / 444.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.1206, allocations: 423 kB / 444.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.1212, allocations: 83.41 kB / 444.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.1252, allocations: 1.567 MB / 446.4 MB, free: 3.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1255, allocations: 250.6 kB / 446.7 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000402/0.1259, allocations: 87.31 kB / 446.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.1262, allocations: 52.47 kB / 446.8 MB, free: 2.859 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1262, allocations: 0 / 446.8 MB, free: 2.859 MB / 366.1 MB Notification: Performance of Templates: time 0.1818/0.3079, allocations: 7.832 MB / 454.6 MB, free: 47.34 MB / 366.1 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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.04292381927371] Failed to read output from testmodel.py, exit status != 0: 0.3203093856573105 0.32939114 0.30335764000000004 Calling exit ...