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.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.0008249/0.0008249, 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.0009089/0.0009089, 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.9355/0.9355, 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.06654/0.06654, allocations: 18.13 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_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 1.944e-06/1.944e-06, allocations: 0 / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.105e-05/2.299e-05, allocations: 2.281 kB / 415.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002853/0.002876, allocations: 3.067 MB / 418.1 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.00399, allocations: 0.9305 MB / 419.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.004134, allocations: 13.94 kB / 419.1 MB, free: 10.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.004346, allocations: 106 kB / 419.2 MB, free: 9.941 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.004665, allocations: 277.9 kB / 419.5 MB, free: 9.762 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.005136, allocations: 205.1 kB / 419.7 MB, free: 9.637 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000875/0.006011, allocations: 1.258 MB / 420.9 MB, free: 9.012 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005942/0.006605, allocations: 0.6551 MB / 421.6 MB, free: 8.711 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.007028, allocations: 480.5 kB / 422 MB, free: 8.504 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.00752, allocations: 0.4886 MB / 422.5 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.007645, allocations: 133.3 kB / 422.7 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.007782, allocations: 137 kB / 422.8 MB, free: 8.328 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.008029, allocations: 430.2 kB / 423.2 MB, free: 8.094 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002868/0.008316, allocations: 405.3 kB / 423.6 MB, free: 7.906 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.009432, allocations: 1.519 MB / 425.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.009434, allocations: 0 / 425.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.009436, allocations: 0.7812 kB / 425.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.009447, allocations: 0 / 425.1 MB, free: 7.363 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.001559/0.01101, allocations: 1.228 MB / 426.4 MB, free: 6.668 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.01104, allocations: 11.42 kB / 426.4 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.01115, allocations: 122.4 kB / 426.5 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.01127, allocations: 91.09 kB / 426.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.0118, allocations: 0.4947 MB / 427.1 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.803e-05/0.01186, allocations: 87.27 kB / 427.2 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.01196, allocations: 79.31 kB / 427.2 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.013, allocations: 0.9568 MB / 428.2 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.01301, allocations: 192 / 428.2 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.01306, allocations: 34.44 kB / 428.2 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.01308, allocations: 17.28 kB / 428.2 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008907/0.01397, allocations: 0.8045 MB / 429 MB, free: 5.375 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(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.01732, allocations: 2.791 MB / 431.8 MB, free: 4.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.01886, allocations: 1.02 MB / 432.9 MB, free: 3.539 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000409/0.01927, allocations: 402 kB / 433.2 MB, free: 3.328 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.01931, allocations: 10.34 kB / 433.3 MB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.01933, allocations: 43.47 kB / 433.3 MB, free: 3.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=58): time 1.533e-06/0.01933, allocations: 0 / 433.3 MB, free: 3.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.002269/0.0216, allocations: 1.605 MB / 434.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.02163, allocations: 65.7 kB / 435 MB, free: 2.324 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.02195, allocations: 421.6 kB / 435.4 MB, free: 2.066 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.02199, allocations: 34.67 kB / 435.4 MB, free: 2.027 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.0221, allocations: 333.4 kB / 435.7 MB, free: 1.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.02224, allocations: 239.1 kB / 436 MB, free: 1.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.02239, allocations: 123 kB / 436.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.02245, allocations: 366.2 kB / 436.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.0229, allocations: 459.8 kB / 436.9 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004819/0.02339, allocations: 0.4996 MB / 437.4 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.02744, allocations: 2.361 MB / 439.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.02745, allocations: 0 / 439.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001552/0.029, allocations: 1.338 MB / 441.1 MB, free: 14.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.02902, allocations: 8.156 kB / 441.1 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.02902, allocations: 4 kB / 441.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006077/0.02963, allocations: 344.2 kB / 441.4 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.03006, allocations: 187.8 kB / 441.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006602/0.03666, allocations: 14.05 MB / 455.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.03692, allocations: 71.56 kB / 455.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.679e-05/0.03695, allocations: 24 kB / 455.8 MB, free: 14.49 MB / 362.7 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.0003237/0.03728, allocations: 278.3 kB / 456 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.927e-05/0.03735, allocations: 55.61 kB / 456.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.03855, allocations: 1.137 MB / 457.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.03855, allocations: 4 kB / 457.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.03856, allocations: 8 kB / 457.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.03856, allocations: 3.984 kB / 457.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.04046, allocations: 1.963 MB / 459.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.04046, allocations: 4 kB / 459.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.04096, allocations: 171.8 kB / 459.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.04137, allocations: 304.5 kB / 459.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.365e-05/0.04142, allocations: 40.02 kB / 459.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005658/0.04708, allocations: 13.61 MB / 473.3 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.04708, allocations: 4.438 kB / 473.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.04876, allocations: 1.605 MB / 474.9 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/0.04883, allocations: 63.53 kB / 475 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/0.04889, allocations: 35.98 kB / 475 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.0491, allocations: 35.95 kB / 475.1 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.04919, allocations: 60.47 kB / 475.1 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.04922, allocations: 16 kB / 475.2 MB, free: 9.738 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002191/0.04944, allocations: 295.1 kB / 475.4 MB, free: 9.449 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04944, allocations: 0 / 475.4 MB, free: 9.449 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006355/0.05008, allocations: 295.6 kB / 475.7 MB, free: 9.16 MB / 378.7 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.001835/0.05191, allocations: 2.188 MB / 477.9 MB, free: 6.898 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.05338, allocations: 2.004 MB / 479.9 MB, free: 4.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.05338, allocations: 0 / 479.9 MB, free: 4.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.05423, allocations: 1.545 MB / 481.5 MB, free: 3.094 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.05485, allocations: 177.5 kB / 481.6 MB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008056/0.06291, allocations: 8.468 MB / 490.1 MB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.06322, allocations: 412.7 kB / 490.5 MB, free: 9.832 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002739/0.06349, allocations: 168.6 kB / 490.7 MB, free: 9.664 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.06377, allocations: 260.4 kB / 490.9 MB, free: 9.41 MB / 394.7 MB Notification: Performance of SimCode: time 7.81e-07/0.06377, allocations: 0 / 490.9 MB, free: 9.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04888/0.1126, allocations: 21.74 MB / 0.5007 GB, free: 3.973 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.616, allocations: 0 / 0.5007 GB, free: 3.973 MB / 410.7 MB " [Timeout remaining time 652] (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: 9.7130879862234] Failed to read output from testmodel.py, exit status != 0: 7.709457186982036 7.717893942 7.706728052 Calling exit ...