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.0007802/0.0007802, allocations: 72.52 kB / 19.95 MB, free: 4.613 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.0008457/0.0008457, allocations: 169.2 kB / 23.23 MB, free: 1.332 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.9038/0.9038, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.06287/0.06287, allocations: 18.12 MB / 278.1 MB, free: 11.54 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.966e-05, allocations: 2.281 kB / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003307/0.003327, allocations: 3.744 MB / 418.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.004989, allocations: 1.182 MB / 420 MB, free: 9.363 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.005176, allocations: 6.156 kB / 420 MB, free: 9.363 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.005391, allocations: 105.6 kB / 420.1 MB, free: 9.301 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003711/0.005762, allocations: 292.1 kB / 420.4 MB, free: 9.098 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006198/0.006382, allocations: 312.7 kB / 420.7 MB, free: 8.922 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008589/0.007241, allocations: 1.229 MB / 421.9 MB, free: 8.316 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006132/0.007854, allocations: 0.5519 MB / 422.5 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004506/0.008305, allocations: 473.2 kB / 422.9 MB, free: 7.867 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000528/0.008833, allocations: 0.4929 MB / 423.4 MB, free: 7.695 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.008973, allocations: 120.1 kB / 423.5 MB, free: 7.695 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.009111, allocations: 120.3 kB / 423.7 MB, free: 7.695 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.009319, allocations: 334.3 kB / 424 MB, free: 7.5 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.009621, allocations: 408.4 kB / 424.4 MB, free: 7.312 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.01068, allocations: 1.32 MB / 425.7 MB, free: 6.809 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01068, allocations: 9.281 kB / 425.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01068, allocations: 0 / 425.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.01069, allocations: 3.938 kB / 425.7 MB, free: 6.797 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.001705/0.0124, allocations: 1.189 MB / 426.9 MB, free: 6.094 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.01244, allocations: 11.19 kB / 426.9 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.01256, allocations: 133.4 kB / 427 MB, free: 6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.0127, allocations: 103.2 kB / 427.1 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.01327, allocations: 462.3 kB / 427.6 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.0134, allocations: 162.5 kB / 427.8 MB, free: 5.512 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.01352, allocations: 91.06 kB / 427.8 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.0151, allocations: 1.084 MB / 428.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.01512, allocations: 1.344 kB / 428.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.388e-05/0.01519, allocations: 34.66 kB / 429 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.0152, allocations: 23.45 kB / 429 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.01665, allocations: 0.9014 MB / 429.9 MB, free: 4.695 MB / 330.7 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.004236/0.02089, allocations: 3.224 MB / 433.1 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.0221, allocations: 0.863 MB / 434 MB, free: 2.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007489/0.02285, allocations: 0.5876 MB / 434.6 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-05/0.0229, allocations: 20.69 kB / 434.6 MB, free: 2.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.02292, allocations: 43.62 kB / 434.6 MB, free: 2.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 1.823e-06/0.02292, allocations: 0 / 434.6 MB, free: 2.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.004772/0.02769, allocations: 3.096 MB / 437.7 MB, free: 412 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/0.02772, allocations: 61.31 kB / 437.8 MB, free: 348 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003743/0.0281, allocations: 0.5118 MB / 438.3 MB, free: 32 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.575e-05/0.02816, allocations: 41.34 kB / 438.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.02832, allocations: 328.5 kB / 438.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.02852, allocations: 322.9 kB / 439 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.02872, allocations: 151.1 kB / 439.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.02884, allocations: 381 kB / 439.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007654/0.02961, allocations: 0.5505 MB / 440 MB, free: 14.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007735/0.03038, allocations: 0.6152 MB / 440.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005414/0.0358, allocations: 3.064 MB / 443.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.0358, allocations: 0 / 443.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001661/0.03746, allocations: 1.286 MB / 445 MB, free: 10.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.03748, allocations: 10.34 kB / 445 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.03749, allocations: 4 kB / 445 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.03751, allocations: 4 kB / 445 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00313/0.04063, allocations: 1.03 MB / 446.1 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.04065, allocations: 18.42 kB / 446.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.04102, allocations: 71.92 kB / 446.1 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.04107, allocations: 35.98 kB / 446.2 MB, free: 9.309 MB / 346.7 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.0003081/0.04138, allocations: 253.1 kB / 446.4 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.323e-05/0.04146, allocations: 71.52 kB / 446.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.04304, allocations: 1.217 MB / 447.7 MB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.04305, allocations: 11.94 kB / 447.7 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.04305, allocations: 8 kB / 447.7 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.04306, allocations: 3.984 kB / 447.7 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.04592, allocations: 2.261 MB / 450 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.04592, allocations: 4 kB / 450 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003209/0.04913, allocations: 1.007 MB / 451 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.04914, allocations: 8 kB / 451 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-05/0.04922, allocations: 31.97 kB / 451 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.04922, allocations: 11.88 kB / 451.1 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.04923, allocations: 4 kB / 451.1 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.05154, allocations: 1.834 MB / 452.9 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.57e-05/0.05162, allocations: 71.52 kB / 453 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.77e-05/0.05171, allocations: 23.98 kB / 453 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.05206, allocations: 75.86 kB / 453.1 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.05223, allocations: 104.5 kB / 453.2 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.249e-05/0.05228, allocations: 23.98 kB / 453.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002816/0.05256, allocations: 370.8 kB / 453.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05256, allocations: 0 / 453.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004377/0.05299, allocations: 236 kB / 453.8 MB, free: 1.582 MB / 346.7 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.002532/0.05553, allocations: 2.413 MB / 456.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.05702, allocations: 1.103 MB / 457.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.05703, allocations: 0 / 457.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007335/0.05776, allocations: 0.5705 MB / 457.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.05828, allocations: 166.7 kB / 458 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009906/0.06819, allocations: 8.649 MB / 466.7 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.06844, allocations: 384.7 kB / 467.1 MB, free: 4.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003981/0.06884, allocations: 173.9 kB / 467.2 MB, free: 3.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/0.06925, allocations: 300.4 kB / 467.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.06925, allocations: 0 / 467.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.09882, allocations: 21.2 MB / 488.7 MB, free: 14.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.246/7.345, allocations: 7.438 kB / 488.7 MB, free: 14.66 MB / 394.7 MB " [Timeout remaining time 653] (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: 9.386377750895917] Failed to read output from testmodel.py, exit status != 0: 7.432686542160809 7.440818349 7.428479182 Calling exit ...