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.001261/0.001261, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001479/0.001479, allocations: 218.7 kB / 23.04 MB, free: 5.074 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.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.1043/0.1043, allocations: 22.94 MB / 336.2 MB, free: 12.61 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: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="cs",version="2.0",platforms={"static"}) [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.002073/0.002073, allocations: 69.45 kB / 472.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2966, allocations: 59.28 MB / 0.5191 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005011/0.3016, allocations: 4.237 MB / 0.5232 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.3037, allocations: 1.218 MB / 0.5244 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003365/0.3041, allocations: 10.41 kB / 0.5244 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.3044, allocations: 109.3 kB / 0.5245 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005164/0.3049, allocations: 276 kB / 0.5248 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007244/0.3056, allocations: 307 kB / 0.5251 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009849/0.3066, allocations: 1.196 MB / 0.5263 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006311/0.3072, allocations: 0.5615 MB / 0.5268 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005413/0.3078, allocations: 498.9 kB / 0.5273 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007192/0.3085, allocations: 0.6053 MB / 0.5279 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.3086, allocations: 119.4 kB / 0.528 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.3088, allocations: 129.2 kB / 0.5281 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.3091, allocations: 324.8 kB / 0.5284 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004386/0.3095, allocations: 0.5303 MB / 0.5289 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.3107, allocations: 1.259 MB / 0.5302 GB, free: 4.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3107, allocations: 0 / 0.5302 GB, free: 4.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3107, allocations: 1.125 kB / 0.5302 GB, free: 4.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.3108, allocations: 1.188 kB / 0.5302 GB, free: 4.02 MB / 382.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.002764/0.3135, allocations: 1.199 MB / 0.5314 GB, free: 3.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3136, allocations: 11.02 kB / 0.5314 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.201e-05/0.3136, allocations: 24.44 kB / 0.5314 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.3137, allocations: 129.7 kB / 0.5315 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.3139, allocations: 107.9 kB / 0.5316 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006986/0.3146, allocations: 463.2 kB / 0.5321 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.3148, allocations: 158.5 kB / 0.5322 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.3149, allocations: 89.05 kB / 0.5323 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.3171, allocations: 1.01 MB / 0.5333 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.3171, allocations: 0 / 0.5333 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.3e-05/0.3172, allocations: 34.22 kB / 0.5333 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.3172, allocations: 18.69 kB / 0.5333 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.3193, allocations: 0.9075 MB / 0.5342 GB, free: 2.012 MB / 382.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.006746/0.326, allocations: 3.475 MB / 0.5376 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.328, allocations: 0.8681 MB / 0.5385 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.3293, allocations: 0.5953 MB / 0.539 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.878e-05/0.3294, allocations: 20.84 kB / 0.5391 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.3295, allocations: 44.16 kB / 0.5391 GB, free: 15.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.405e-06/0.3295, allocations: 0 / 0.5391 GB, free: 15.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008913/0.3384, allocations: 3.091 MB / 0.5421 GB, free: 14.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.3384, allocations: 64.78 kB / 0.5422 GB, free: 14.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008771/0.3393, allocations: 0.5036 MB / 0.5427 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.3395, allocations: 45.58 kB / 0.5427 GB, free: 13.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.3397, allocations: 333.3 kB / 0.543 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003502/0.3401, allocations: 322.1 kB / 0.5433 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003193/0.3404, allocations: 155.6 kB / 0.5435 GB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3406, allocations: 388.2 kB / 0.5439 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.3418, allocations: 0.5381 MB / 0.5444 GB, free: 12.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3431, allocations: 0.6203 MB / 0.545 GB, free: 11.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/0.3542, allocations: 3.064 MB / 0.548 GB, free: 10.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.3542, allocations: 4 kB / 0.548 GB, free: 10.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003291/0.3575, allocations: 1.285 MB / 0.5492 GB, free: 9.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.3575, allocations: 10.58 kB / 0.5492 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.3575, allocations: 2.188 kB / 0.5493 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3575, allocations: 10.66 kB / 0.5493 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00715/0.3647, allocations: 1.031 MB / 0.5503 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.827e-05/0.3647, allocations: 6.281 kB / 0.5503 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3657, allocations: 70.53 kB / 0.5503 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.3658, allocations: 36.39 kB / 0.5504 GB, free: 9.391 MB / 398.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.0005889/0.3664, allocations: 248.5 kB / 0.5506 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.3666, allocations: 77.94 kB / 0.5507 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.3696, allocations: 1.209 MB / 0.5519 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.3696, allocations: 8.094 kB / 0.5519 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3696, allocations: 1.094 kB / 0.5519 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.3696, allocations: 3.984 kB / 0.5519 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005349/0.3749, allocations: 2.461 MB / 0.5543 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.375, allocations: 2.125 kB / 0.5543 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007082/0.382, allocations: 1.009 MB / 0.5553 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-05/0.3821, allocations: 5.062 kB / 0.5553 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.3822, allocations: 35.11 kB / 0.5553 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.3822, allocations: 8.406 kB / 0.5553 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3822, allocations: 2.062 kB / 0.5553 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/0.3865, allocations: 1.843 MB / 0.5571 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004003/0.3869, allocations: 79.22 kB / 0.5572 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.3871, allocations: 21.25 kB / 0.5572 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008213/0.3879, allocations: 73.41 kB / 0.5573 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.3882, allocations: 103.3 kB / 0.5574 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.983e-05/0.3883, allocations: 26.92 kB / 0.5574 GB, free: 5.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005823/0.3889, allocations: 366 kB / 0.5578 GB, free: 5.027 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3889, allocations: 5.562 kB / 0.5578 GB, free: 5.023 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009329/0.3898, allocations: 231.7 kB / 0.558 GB, free: 5 MB / 398.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.004529/0.3943, allocations: 2.426 MB / 0.5604 GB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002765/0.3971, allocations: 1.095 MB / 0.5614 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3971, allocations: 0 / 0.5614 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.3984, allocations: 0.5744 MB / 0.562 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.3996, allocations: 174.5 kB / 0.5622 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.418, allocations: 8.896 MB / 0.5708 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000865/0.4188, allocations: 0.97 MB / 0.5718 GB, free: 6.656 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001134/0.42, allocations: 169.9 kB / 0.5719 GB, free: 6.488 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007974/0.4208, allocations: 307.3 kB / 0.5722 GB, free: 6.188 MB / 414.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4208, allocations: 0 / 0.5722 GB, free: 6.188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04975/0.4705, allocations: 20.13 MB / 0.5919 GB, free: 2.324 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.58, allocations: 11.97 kB / 0.5919 GB, free: 2.312 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.696464687003754] Failed to read output from testmodel.py, exit status != 0: 14.759124948002864 14.792015139 14.475313151 Calling exit ...