Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 108.1 kB / 16.41 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.1189/0.1189, allocations: 22.32 MB / 319.6 MB, free: 6.766 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002001, allocations: 67.89 kB / 445.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1093, allocations: 54.95 MB / 0.4885 GB, free: 1.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004732/0.1141, allocations: 3.336 MB / 0.4917 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1159, allocations: 0.939 MB / 0.4927 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.1162, allocations: 11.94 kB / 0.4927 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.1165, allocations: 103.1 kB / 0.4928 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004525/0.1169, allocations: 250.5 kB / 0.493 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.1175, allocations: 191.6 kB / 0.4932 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.1188, allocations: 1.225 MB / 0.4944 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.12, allocations: 0.8942 MB / 0.4953 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006119/0.1206, allocations: 482.8 kB / 0.4957 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008463/0.1215, allocations: 0.5647 MB / 0.4963 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.1217, allocations: 136 kB / 0.4964 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.1219, allocations: 132 kB / 0.4965 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003632/0.1223, allocations: 395.1 kB / 0.4969 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006135/0.1229, allocations: 0.5408 MB / 0.4974 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.1243, allocations: 1.468 MB / 0.4989 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1243, allocations: 0 / 0.4989 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1243, allocations: 0 / 0.4989 GB, free: 6.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.1244, allocations: 0 / 0.4989 GB, free: 6.914 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002863/0.1272, allocations: 1.308 MB / 0.5001 GB, free: 5.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.1273, allocations: 8.031 kB / 0.5002 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000168/0.1275, allocations: 122.7 kB / 0.5003 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.1277, allocations: 92.38 kB / 0.5004 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008881/0.1286, allocations: 0.5625 MB / 0.5009 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.96e-05/0.1287, allocations: 80.27 kB / 0.501 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.1288, allocations: 84.33 kB / 0.5011 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.1305, allocations: 0.9325 MB / 0.502 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.1306, allocations: 0 / 0.502 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.4e-05/0.1307, allocations: 35.94 kB / 0.502 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1307, allocations: 19.94 kB / 0.502 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1321, allocations: 0.8082 MB / 0.5028 GB, free: 2.762 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(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2116/0.3436, allocations: 3.988 MB / 0.5067 GB, free: 19.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.3462, allocations: 1.024 MB / 0.5077 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005606/0.3468, allocations: 418.8 kB / 0.5081 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/0.3468, allocations: 12.16 kB / 0.5081 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.3468, allocations: 42.47 kB / 0.5082 GB, free: 19.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.635e-06/0.3469, allocations: 0.5938 kB / 0.5082 GB, free: 19.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.00369/0.3506, allocations: 2.373 MB / 0.5105 GB, free: 18.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.3506, allocations: 59.31 kB / 0.5105 GB, free: 18.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004857/0.3511, allocations: 422.4 kB / 0.5109 GB, free: 18.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.3512, allocations: 32.73 kB / 0.511 GB, free: 18.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.3513, allocations: 335.6 kB / 0.5113 GB, free: 17.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.3515, allocations: 241.1 kB / 0.5115 GB, free: 17.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/0.3518, allocations: 127.9 kB / 0.5116 GB, free: 17.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.3518, allocations: 366.6 kB / 0.512 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006353/0.3525, allocations: 457 kB / 0.5124 GB, free: 17.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/0.3531, allocations: 0.5027 MB / 0.5129 GB, free: 17.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006998/0.3601, allocations: 2.35 MB / 0.5152 GB, free: 17.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.3602, allocations: 5.219 kB / 0.5152 GB, free: 17.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002382/0.3626, allocations: 1.344 MB / 0.5165 GB, free: 17.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3626, allocations: 5.844 kB / 0.5165 GB, free: 17.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3626, allocations: 5.438 kB / 0.5165 GB, free: 17.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.3637, allocations: 346.1 kB / 0.5169 GB, free: 17.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008798/0.3646, allocations: 184.8 kB / 0.5171 GB, free: 17.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00802/0.3726, allocations: 15.15 MB / 0.5319 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007315/0.3734, allocations: 73.47 kB / 0.5319 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.149e-05/0.3735, allocations: 28.62 kB / 0.532 GB, free: 3.355 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (79): * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004669/0.374, allocations: 277.7 kB / 0.5322 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3741, allocations: 56.67 kB / 0.5323 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.3759, allocations: 1.142 MB / 0.5334 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.376, allocations: 7.109 kB / 0.5334 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.376, allocations: 3.25 kB / 0.5334 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.376, allocations: 3.141 kB / 0.5334 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003486/0.3795, allocations: 2.141 MB / 0.5355 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3795, allocations: 1.125 kB / 0.5355 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.3806, allocations: 167.9 kB / 0.5356 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008295/0.3814, allocations: 309.9 kB / 0.5359 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.849e-05/0.3815, allocations: 31.05 kB / 0.536 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.3926, allocations: 14.72 MB / 0.5503 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3926, allocations: 1.719 kB / 0.5503 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.3958, allocations: 1.615 MB / 0.5519 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.3961, allocations: 143.8 kB / 0.5521 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.3962, allocations: 34.28 kB / 0.5521 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.3966, allocations: 31.34 kB / 0.5521 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.3969, allocations: 61.86 kB / 0.5522 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.382e-05/0.3969, allocations: 17 kB / 0.5522 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00041/0.3973, allocations: 300.2 kB / 0.5525 GB, free: 2.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3973, allocations: 0 / 0.5525 GB, free: 2.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00104/0.3984, allocations: 293.9 kB / 0.5528 GB, free: 2.199 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003188/0.4016, allocations: 2.193 MB / 0.5549 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.4045, allocations: 2.053 MB / 0.5569 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.4046, allocations: 5.172 kB / 0.5569 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.4065, allocations: 1.557 MB / 0.5584 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000851/0.4073, allocations: 173 kB / 0.5586 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/0.4218, allocations: 8.86 MB / 0.5673 GB, free: 8.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.4226, allocations: 1.008 MB / 0.5682 GB, free: 7.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006222/0.4232, allocations: 168.6 kB / 0.5684 GB, free: 7.027 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/0.4237, allocations: 259.3 kB / 0.5686 GB, free: 6.773 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4237, allocations: 0 / 0.5686 GB, free: 6.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.5243, allocations: 19.7 MB / 0.5879 GB, free: 3.352 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.67, allocations: 13 kB / 0.5879 GB, free: 3.344 MB / 430.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.454455213970505] Failed to read output from testmodel.py, exit status != 0: 11.757503091008402 11.778447327 11.65028636 Calling exit ...