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.001423/0.001423, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 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.001457/0.001457, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 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 1.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 9.145 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.106/0.106, allocations: 24.1 MB / 333 MB, free: 12.64 MB / 270.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.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 75.89 kB / 467.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3223, allocations: 59.56 MB / 0.5151 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003913/0.3262, allocations: 3.374 MB / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3277, allocations: 0.978 MB / 0.5193 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.3278, allocations: 9.656 kB / 0.5193 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.3281, allocations: 102.1 kB / 0.5194 GB, free: 6.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.3285, allocations: 271.2 kB / 0.5197 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.3289, allocations: 189.8 kB / 0.5199 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.3301, allocations: 1.237 MB / 0.5211 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009295/0.331, allocations: 0.7452 MB / 0.5218 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006032/0.3316, allocations: 491.2 kB / 0.5223 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.3322, allocations: 0.5756 MB / 0.5228 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.3324, allocations: 132.3 kB / 0.5229 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.3326, allocations: 133.3 kB / 0.5231 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003015/0.3329, allocations: 408.2 kB / 0.5235 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004474/0.3334, allocations: 0.5346 MB / 0.524 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.3349, allocations: 1.463 MB / 0.5254 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3349, allocations: 0 / 0.5254 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3349, allocations: 0 / 0.5254 GB, free: 3.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.3349, allocations: 1.406 kB / 0.5254 GB, free: 3.805 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.002725/0.3376, allocations: 1.31 MB / 0.5267 GB, free: 3.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3377, allocations: 11.14 kB / 0.5267 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/0.3378, allocations: 119.1 kB / 0.5268 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.338, allocations: 89.67 kB / 0.5269 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008918/0.3389, allocations: 0.5697 MB / 0.5275 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-05/0.339, allocations: 82.17 kB / 0.5275 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.3392, allocations: 85.02 kB / 0.5276 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.3407, allocations: 0.9301 MB / 0.5285 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.3407, allocations: 4 kB / 0.5285 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.3408, allocations: 26.97 kB / 0.5286 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.3408, allocations: 16.72 kB / 0.5286 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.3424, allocations: 0.8127 MB / 0.5294 GB, free: 1.684 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.007492/0.3499, allocations: 3.997 MB / 0.5333 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.3528, allocations: 1.018 MB / 0.5343 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007764/0.3536, allocations: 403.9 kB / 0.5347 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.497e-05/0.3537, allocations: 19.97 kB / 0.5347 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.3537, allocations: 41.38 kB / 0.5347 GB, free: 14.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 3.176e-06/0.3537, allocations: 1.25 kB / 0.5347 GB, free: 14.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004881/0.3586, allocations: 2.362 MB / 0.537 GB, free: 12.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3587, allocations: 57.84 kB / 0.5371 GB, free: 12.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007309/0.3594, allocations: 412.5 kB / 0.5375 GB, free: 12.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.207e-05/0.3595, allocations: 36.48 kB / 0.5375 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002864/0.3598, allocations: 336.7 kB / 0.5378 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.3601, allocations: 245 kB / 0.5381 GB, free: 12.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.3604, allocations: 121.7 kB / 0.5382 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.3606, allocations: 368.5 kB / 0.5385 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000867/0.3614, allocations: 457.5 kB / 0.539 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008691/0.3623, allocations: 0.4999 MB / 0.5394 GB, free: 11.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00775/0.3701, allocations: 2.36 MB / 0.5418 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.3701, allocations: 7.922 kB / 0.5418 GB, free: 10.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002797/0.3729, allocations: 1.336 MB / 0.5431 GB, free: 9.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3729, allocations: 5.656 kB / 0.5431 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3729, allocations: 6.469 kB / 0.5431 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.3741, allocations: 344.7 kB / 0.5434 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009224/0.375, allocations: 187.7 kB / 0.5436 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/0.388, allocations: 15.16 MB / 0.5584 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00083/0.3889, allocations: 70.75 kB / 0.5585 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.3891, allocations: 20.72 kB / 0.5585 GB, free: 9.617 MB / 414.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.0008049/0.3899, allocations: 287.4 kB / 0.5587 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.3901, allocations: 57.09 kB / 0.5588 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.3926, allocations: 1.131 MB / 0.5599 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3926, allocations: 6.906 kB / 0.5599 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.3926, allocations: 6.875 kB / 0.5599 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3926, allocations: 7.922 kB / 0.5599 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004097/0.3967, allocations: 2.127 MB / 0.562 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.3967, allocations: 5.109 kB / 0.562 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.3978, allocations: 170.6 kB / 0.5622 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009619/0.3988, allocations: 315.1 kB / 0.5625 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.3989, allocations: 34.89 kB / 0.5625 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/0.4114, allocations: 14.71 MB / 0.5769 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4114, allocations: 1.375 kB / 0.5769 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003382/0.4148, allocations: 1.601 MB / 0.5784 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.4151, allocations: 149.1 kB / 0.5786 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.4153, allocations: 33.86 kB / 0.5786 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005985/0.4159, allocations: 32.34 kB / 0.5786 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.4161, allocations: 51.25 kB / 0.5787 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.4162, allocations: 20.7 kB / 0.5787 GB, free: 6.727 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004956/0.4167, allocations: 289.8 kB / 0.579 GB, free: 6.547 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4167, allocations: 0 / 0.579 GB, free: 6.547 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001522/0.4182, allocations: 302.6 kB / 0.5793 GB, free: 6.484 MB / 430.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.003517/0.4217, allocations: 2.201 MB / 0.5814 GB, free: 4.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.4247, allocations: 2.005 MB / 0.5834 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4247, allocations: 0 / 0.5834 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.4266, allocations: 1.553 MB / 0.5849 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009082/0.4275, allocations: 165.3 kB / 0.585 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.443, allocations: 8.859 MB / 0.5937 GB, free: 7.578 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009182/0.4439, allocations: 1.005 MB / 0.5947 GB, free: 6.547 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005563/0.4445, allocations: 172.6 kB / 0.5948 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004893/0.445, allocations: 255.4 kB / 0.5951 GB, free: 6.129 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.445, allocations: 3.938 kB / 0.5951 GB, free: 6.125 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08433/0.5293, allocations: 19.86 MB / 0.6145 GB, free: 2.527 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.81, allocations: 9.078 kB / 0.6145 GB, free: 2.523 MB / 462.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.59402017109096] Failed to read output from testmodel.py, exit status != 0: 11.90810452401638 11.925015361 11.586665076 Calling exit ...