Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Containment_elements.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.002026/0.002026, allocations: 105.4 kB / 16.4 MB, free: 6.5 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.002124/0.002124, allocations: 191.7 kB / 19.36 MB, free: 3.75 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.499/1.499, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.09864/0.09864, allocations: 22.33 MB / 319.6 MB, free: 6.789 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.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 71.88 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.13, allocations: 54.95 MB / 0.4885 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.004594/0.1346, allocations: 1.936 MB / 0.4904 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007853/0.1355, allocations: 227.3 kB / 0.4906 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.614e-05/0.1356, allocations: 11.94 kB / 0.4906 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.1358, allocations: 19.84 kB / 0.4906 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005051/0.1363, allocations: 115.4 kB / 0.4907 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.1365, allocations: 47.92 kB / 0.4908 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004383/0.1369, allocations: 271 kB / 0.491 GB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1371, allocations: 53.31 kB / 0.4911 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.1373, allocations: 95.75 kB / 0.4912 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002795/0.1376, allocations: 127.6 kB / 0.4913 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.1376, allocations: 16 kB / 0.4913 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.1379, allocations: 67.89 kB / 0.4914 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.138, allocations: 75.78 kB / 0.4915 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.1382, allocations: 103.6 kB / 0.4916 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.1387, allocations: 275 kB / 0.4918 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1387, allocations: 0 / 0.4918 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1387, allocations: 0 / 0.4918 GB, free: 14.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1387, allocations: 4 kB / 0.4918 GB, free: 14.2 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001463/0.1402, allocations: 0.5552 MB / 0.4924 GB, free: 13.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1403, allocations: 8.031 kB / 0.4924 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.364e-05/0.1403, allocations: 42.73 kB / 0.4924 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.1404, allocations: 20.8 kB / 0.4924 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.141, allocations: 327.8 kB / 0.4927 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.141, allocations: 8.375 kB / 0.4928 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.583e-05/0.141, allocations: 20.36 kB / 0.4928 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.1414, allocations: 142.2 kB / 0.4929 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1414, allocations: 3.938 kB / 0.4929 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.1415, allocations: 4 kB / 0.4929 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1415, allocations: 4 kB / 0.4929 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1418, allocations: 103.8 kB / 0.493 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.1432, allocations: 0.6593 MB / 0.4937 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1443, allocations: 258.3 kB / 0.4939 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.1446, allocations: 85.06 kB / 0.494 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.1446, allocations: 8 kB / 0.494 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.1446, allocations: 30.56 kB / 0.494 GB, free: 11.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 4.879e-06/0.1447, allocations: 4 kB / 0.494 GB, free: 11.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001529/0.1462, allocations: 0.4933 MB / 0.4945 GB, free: 11.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.1463, allocations: 55.41 kB / 0.4946 GB, free: 11.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005083/0.1468, allocations: 311.8 kB / 0.4949 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.1468, allocations: 29.69 kB / 0.4949 GB, free: 10.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.147, allocations: 120.1 kB / 0.495 GB, free: 10.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.135e-05/0.147, allocations: 63.47 kB / 0.4951 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.1472, allocations: 33.7 kB / 0.4951 GB, free: 10.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.1474, allocations: 334.8 kB / 0.4954 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.1476, allocations: 63.97 kB / 0.4955 GB, free: 10.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.1478, allocations: 97.61 kB / 0.4956 GB, free: 10.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.1498, allocations: 472.1 kB / 0.496 GB, free: 9.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1498, allocations: 0 / 0.496 GB, free: 9.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008472/0.1507, allocations: 312.7 kB / 0.4963 GB, free: 9.273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1507, allocations: 4 kB / 0.4963 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1507, allocations: 0 / 0.4963 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.151, allocations: 49.62 kB / 0.4964 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.1514, allocations: 55.91 kB / 0.4964 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.1546, allocations: 2.817 MB / 0.4992 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.1549, allocations: 23.94 kB / 0.4992 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.1549, allocations: 7.984 kB / 0.4992 GB, free: 6.031 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[3]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[4]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [4] nonhomogeneous.T[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[2]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[3]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = \"K\" fixed = true nominal = 300.0 ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0003958/0.1553, allocations: 171.3 kB / 0.4994 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.334e-05/0.1554, allocations: 19.86 kB / 0.4994 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.953e-05/0.1555, allocations: 29.47 kB / 0.4994 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.1556, allocations: 11.98 kB / 0.4994 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.1556, allocations: 0 / 0.4994 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1556, allocations: 0 / 0.4994 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.1561, allocations: 293.4 kB / 0.4997 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.1561, allocations: 0 / 0.4997 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004375/0.1566, allocations: 59.91 kB / 0.4998 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002326/0.1568, allocations: 45.69 kB / 0.4998 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.1569, allocations: 11.94 kB / 0.4998 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003153/0.16, allocations: 2.825 MB / 0.5026 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1601, allocations: 0 / 0.5026 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009534/0.161, allocations: 412.9 kB / 0.503 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.1612, allocations: 105 kB / 0.5031 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.769e-05/0.1612, allocations: 15.94 kB / 0.5031 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.1615, allocations: 7.984 kB / 0.5031 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.1616, allocations: 11.98 kB / 0.5031 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1616, allocations: 4 kB / 0.5031 GB, free: 1.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.162, allocations: 241.4 kB / 0.5033 GB, free: 1.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.162, allocations: 0 / 0.5033 GB, free: 1.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006156/0.1626, allocations: 71.94 kB / 0.5034 GB, free: 1.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (homogeneous.T[1],homogeneous.T[2],homogeneous.T[3],homogeneous.T[4],nonhomogeneous.T[1],nonhomogeneous.T[2],nonhomogeneous.T[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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.001485/0.1641, allocations: 0.9599 MB / 0.5043 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2275/0.3916, allocations: 433.8 kB / 0.5048 GB, free: 20.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.3917, allocations: 0.9375 kB / 0.5048 GB, free: 20.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004097/0.3921, allocations: 311.4 kB / 0.5051 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004933/0.3926, allocations: 54.34 kB / 0.5051 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.3961, allocations: 3.116 MB / 0.5082 GB, free: 18.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.3963, allocations: 0.7446 MB / 0.5089 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.3964, allocations: 45.61 kB / 0.5089 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.567e-05/0.3965, allocations: 57.58 kB / 0.509 GB, free: 17.88 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3966, allocations: 0 / 0.509 GB, free: 17.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.4386, allocations: 6.401 MB / 0.5152 GB, free: 17.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.815/10.25, allocations: 17.61 kB / 0.5152 GB, free: 17.26 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Containment_elements.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Containment_elements_res.csv --start-time 0 --stop-time 100000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 10 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.172102777985856] Failed to read output from testmodel.py, exit status != 0: 10.336128713097423 10.352558021 10.210955852 Calling exit ...