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.0008054/0.0008054, allocations: 80.44 kB / 19.95 MB, free: 4.617 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.0009081/0.0009081, allocations: 165.2 kB / 23.23 MB, free: 1.336 MB / 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.9265/0.9265, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.0633/0.0633, allocations: 18.14 MB / 278.1 MB, free: 11.53 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: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.223e-05, allocations: 7.078 kB / 415.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.00275/0.002772, allocations: 2.928 MB / 418.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.004073, allocations: 0.9046 MB / 419.7 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.004218, allocations: 12.06 kB / 419.7 MB, free: 9.742 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.004399, allocations: 71.59 kB / 419.8 MB, free: 9.699 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.004662, allocations: 179.6 kB / 419.9 MB, free: 9.574 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.005111, allocations: 197.6 kB / 420.1 MB, free: 9.465 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005543/0.005666, allocations: 0.7723 MB / 420.9 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004465/0.006112, allocations: 366.2 kB / 421.3 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003384/0.00645, allocations: 302 kB / 421.6 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.006814, allocations: 316.4 kB / 421.9 MB, free: 8.684 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.55e-05/0.006899, allocations: 76.12 kB / 421.9 MB, free: 8.684 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.221e-05/0.006991, allocations: 78.03 kB / 422 MB, free: 8.684 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.007148, allocations: 215.8 kB / 422.2 MB, free: 8.555 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.007346, allocations: 255.1 kB / 422.5 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007091/0.008055, allocations: 0.8424 MB / 423.3 MB, free: 8.113 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.00806, allocations: 4.938 kB / 423.3 MB, free: 8.109 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.008062, allocations: 0 / 423.3 MB, free: 8.109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.008072, allocations: 0 / 423.3 MB, free: 8.109 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.001294/0.009366, allocations: 0.8374 MB / 424.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.009411, allocations: 11.92 kB / 424.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.013e-05/0.009491, allocations: 98.8 kB / 424.3 MB, free: 7.492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.559e-05/0.009587, allocations: 66.83 kB / 424.3 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.01001, allocations: 335.4 kB / 424.7 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.671e-05/0.01011, allocations: 106 kB / 424.8 MB, free: 7.129 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.01019, allocations: 53.62 kB / 424.8 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.0114, allocations: 0.7339 MB / 425.5 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.01142, allocations: 0.9062 kB / 425.6 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.432e-05/0.01147, allocations: 25.06 kB / 425.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.01148, allocations: 11.84 kB / 425.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.01256, allocations: 0.6042 MB / 426.2 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.0159, allocations: 2.366 MB / 428.6 MB, free: 5.273 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008133/0.01671, allocations: 0.5371 MB / 429.1 MB, free: 5.055 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.01727, allocations: 398.3 kB / 429.5 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.01731, allocations: 5.656 kB / 429.5 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.868e-05/0.01733, allocations: 38.17 kB / 429.5 MB, free: 4.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/0.01733, allocations: 1.312 kB / 429.5 MB, free: 4.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=54): time 0.003797/0.02113, allocations: 2.231 MB / 431.8 MB, free: 3.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.02116, allocations: 62.38 kB / 431.8 MB, free: 3.914 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.02144, allocations: 355.9 kB / 432.2 MB, free: 3.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.02148, allocations: 35.89 kB / 432.2 MB, free: 3.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/0.02156, allocations: 233.5 kB / 432.4 MB, free: 3.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.024e-05/0.02165, allocations: 201.4 kB / 432.6 MB, free: 3.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.02178, allocations: 95.72 kB / 432.7 MB, free: 3.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.02183, allocations: 356.6 kB / 433.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005356/0.02236, allocations: 381.9 kB / 433.4 MB, free: 2.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.02289, allocations: 429.8 kB / 433.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00363/0.02652, allocations: 2.019 MB / 435.9 MB, free: 1.617 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.02653, allocations: 0.9062 kB / 435.9 MB, free: 1.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001202/0.02773, allocations: 0.8674 MB / 436.7 MB, free: 1.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.02775, allocations: 7.688 kB / 436.8 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.02776, allocations: 5.969 kB / 436.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.02778, allocations: 3.594 kB / 436.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/0.03069, allocations: 0.9146 MB / 437.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.03071, allocations: 4.938 kB / 437.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.03113, allocations: 57.33 kB / 437.7 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.03117, allocations: 26.33 kB / 437.8 MB, free: 0.8086 MB / 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.0003626/0.03153, allocations: 212.6 kB / 438 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.0316, allocations: 49.66 kB / 438 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.03282, allocations: 0.848 MB / 438.9 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.03283, allocations: 4.969 kB / 438.9 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.03284, allocations: 1.031 kB / 438.9 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.03284, allocations: 3.984 kB / 438.9 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.03521, allocations: 1.674 MB / 440.6 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.03521, allocations: 4 kB / 440.6 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002948/0.03816, allocations: 0.9013 MB / 441.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.03817, allocations: 4 kB / 441.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.03821, allocations: 12 kB / 441.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.03822, allocations: 7.984 kB / 441.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.03822, allocations: 0 / 441.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.03998, allocations: 1.298 MB / 442.8 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.04009, allocations: 47.7 kB / 442.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.789e-05/0.04015, allocations: 12 kB / 442.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.04042, allocations: 51.92 kB / 442.9 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.04054, allocations: 88.3 kB / 443 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.04057, allocations: 19.98 kB / 443 MB, free: 12.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002088/0.04078, allocations: 255.2 kB / 443.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04078, allocations: 0 / 443.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003895/0.04117, allocations: 148 kB / 443.4 MB, free: 12.07 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.001953/0.04312, allocations: 1.854 MB / 445.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.04435, allocations: 0.756 MB / 446 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.04435, allocations: 384 / 446 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.0449, allocations: 426.5 kB / 446.4 MB, free: 9.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.04537, allocations: 109.5 kB / 446.5 MB, free: 8.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007056/0.05243, allocations: 5.924 MB / 452.4 MB, free: 2.832 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.0526, allocations: 258.6 kB / 452.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003038/0.05291, allocations: 96.33 kB / 452.8 MB, free: 2.461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.05319, allocations: 192.4 kB / 453 MB, free: 2.273 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.0532, allocations: 0 / 453 MB, free: 2.273 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.07859, allocations: 14.45 MB / 467.4 MB, free: 4.059 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.158/7.237, allocations: 15.84 kB / 467.4 MB, free: 4.043 MB / 362.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.294951951131225] Failed to read output from testmodel.py, exit status != 0: 7.323523066937923 7.332026232 7.321853628 Calling exit ...