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.0008057/0.0008057, 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.0007898/0.0007898, 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.8672/0.8672, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.06043/0.06043, allocations: 18.13 MB / 278.1 MB, free: 11.52 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.422e-06/1.422e-06, allocations: 0 / 415.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.796e-05, allocations: 2.281 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002356/0.002374, allocations: 2.923 MB / 418.8 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009921/0.003366, allocations: 0.9155 MB / 419.7 MB, free: 9.754 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.003488, allocations: 8.5 kB / 419.7 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.00364, allocations: 62.78 kB / 419.8 MB, free: 9.715 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.003861, allocations: 183.9 kB / 419.9 MB, free: 9.586 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.004224, allocations: 204.1 kB / 420.1 MB, free: 9.473 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004714/0.004695, allocations: 0.7741 MB / 420.9 MB, free: 9.086 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.005055, allocations: 359.2 kB / 421.3 MB, free: 8.926 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002957/0.005351, allocations: 302.4 kB / 421.6 MB, free: 8.801 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.005674, allocations: 318.9 kB / 421.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-05/0.005759, allocations: 77.09 kB / 421.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.719e-05/0.005846, allocations: 77.47 kB / 422 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.005973, allocations: 212.7 kB / 422.2 MB, free: 8.566 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.006152, allocations: 259 kB / 422.5 MB, free: 8.445 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005888/0.00674, allocations: 0.8422 MB / 423.3 MB, free: 8.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.006743, allocations: 0 / 423.3 MB, free: 8.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.006744, allocations: 1.844 kB / 423.3 MB, free: 8.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.006752, allocations: 3.938 kB / 423.3 MB, free: 8.117 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.001127/0.007879, allocations: 0.8379 MB / 424.2 MB, free: 7.578 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.007911, allocations: 13.77 kB / 424.2 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.647e-05/0.007988, allocations: 92.27 kB / 424.3 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.138e-05/0.008069, allocations: 65.86 kB / 424.3 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.008443, allocations: 334.8 kB / 424.7 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.544e-05/0.008529, allocations: 111.8 kB / 424.8 MB, free: 7.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-05/0.008604, allocations: 53.27 kB / 424.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009827/0.009587, allocations: 0.733 MB / 425.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.009602, allocations: 2.203 kB / 425.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.009643, allocations: 27.56 kB / 425.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.009653, allocations: 12.75 kB / 425.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.01059, allocations: 0.5993 MB / 426.2 MB, free: 6.605 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.01351, allocations: 2.36 MB / 428.6 MB, free: 5.289 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007656/0.01427, allocations: 0.5409 MB / 429.1 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005243/0.0148, allocations: 401.1 kB / 429.5 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.01483, allocations: 10.64 kB / 429.5 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.01485, allocations: 37.84 kB / 429.5 MB, free: 4.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.934e-06/0.01485, allocations: 1.156 kB / 429.5 MB, free: 4.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=54): time 0.003722/0.01857, allocations: 2.222 MB / 431.8 MB, free: 3.992 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.0186, allocations: 62.08 kB / 431.8 MB, free: 3.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.01887, allocations: 357.1 kB / 432.2 MB, free: 3.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.01891, allocations: 36.77 kB / 432.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.066e-05/0.019, allocations: 233.1 kB / 432.4 MB, free: 3.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.01911, allocations: 200.5 kB / 432.6 MB, free: 3.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.01926, allocations: 97.67 kB / 432.7 MB, free: 3.297 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.01932, allocations: 357.1 kB / 433.1 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005891/0.01991, allocations: 373.1 kB / 433.4 MB, free: 2.832 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.02048, allocations: 429.2 kB / 433.9 MB, free: 2.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003671/0.02415, allocations: 2.028 MB / 435.9 MB, free: 1.637 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02416, allocations: 1.188 kB / 435.9 MB, free: 1.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00122/0.02538, allocations: 0.867 MB / 436.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.0254, allocations: 5.656 kB / 436.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.0254, allocations: 1.094 kB / 436.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.02542, allocations: 4.719 kB / 436.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.02834, allocations: 0.9138 MB / 437.7 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.02835, allocations: 3.906 kB / 437.7 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.02862, allocations: 58.16 kB / 437.7 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.02866, allocations: 22.92 kB / 437.8 MB, free: 0.8359 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.0002508/0.02891, allocations: 212 kB / 438 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.327e-05/0.02897, allocations: 48.78 kB / 438 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.03014, allocations: 0.8439 MB / 438.9 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.03015, allocations: 6.875 kB / 438.9 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.03015, allocations: 3.938 kB / 438.9 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.03016, allocations: 7.984 kB / 438.9 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.03257, allocations: 1.669 MB / 440.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.03257, allocations: 0 / 440.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002914/0.03548, allocations: 0.9051 MB / 441.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.03549, allocations: 4 kB / 441.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.03553, allocations: 19.98 kB / 441.5 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.03553, allocations: 0 / 441.5 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.03553, allocations: 8 kB / 441.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.03725, allocations: 1.295 MB / 442.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.03731, allocations: 47.7 kB / 442.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.03737, allocations: 15.98 kB / 442.8 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.03761, allocations: 55.94 kB / 442.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.03775, allocations: 84.28 kB / 443 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.03778, allocations: 16 kB / 443 MB, free: 12.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001893/0.03796, allocations: 259.2 kB / 443.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03796, allocations: 0 / 443.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003533/0.03832, allocations: 148 kB / 443.4 MB, free: 12.09 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.001967/0.04029, allocations: 1.846 MB / 445.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.04137, allocations: 0.7638 MB / 446 MB, free: 9.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.04137, allocations: 0 / 446 MB, free: 9.445 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005346/0.04191, allocations: 422.9 kB / 446.4 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.04234, allocations: 113.6 kB / 446.5 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.04903, allocations: 5.932 MB / 452.5 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.04919, allocations: 254.6 kB / 452.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002446/0.04944, allocations: 92.34 kB / 452.8 MB, free: 2.484 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.0497, allocations: 192.4 kB / 453 MB, free: 2.297 MB / 346.7 MB Notification: Performance of SimCode: time 5.82e-07/0.0497, allocations: 0 / 453 MB, free: 2.297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.07202, allocations: 14.44 MB / 467.4 MB, free: 4.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/7.665, allocations: 11.92 kB / 467.4 MB, free: 4.078 MB / 362.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 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 os._exit(0), Time elapsed: 9.694503595121205] Failed to read output from testmodel.py, exit status != 0: 7.7527945367619395 7.761428356 7.752994551 Calling exit ...