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.001342/0.001342, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.00156/0.00156, allocations: 217.1 kB / 23.01 MB, free: 4.602 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.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.1083/0.1083, allocations: 24.12 MB / 337.3 MB, free: 11.43 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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") [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.002355/0.002355, allocations: 64.53 kB / 474.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3663, allocations: 59.61 MB / 0.5216 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004523/0.3708, allocations: 3.379 MB / 0.5249 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.3731, allocations: 0.9833 MB / 0.5259 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004091/0.3735, allocations: 16.81 kB / 0.5259 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.3739, allocations: 102.4 kB / 0.526 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006415/0.3745, allocations: 269.1 kB / 0.5263 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006899/0.3752, allocations: 189.7 kB / 0.5265 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001382/0.3766, allocations: 1.242 MB / 0.5277 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.3776, allocations: 0.6631 MB / 0.5283 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007899/0.3784, allocations: 0.4896 MB / 0.5288 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008807/0.3793, allocations: 0.5758 MB / 0.5294 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.3795, allocations: 132.9 kB / 0.5295 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.3797, allocations: 132.6 kB / 0.5296 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004176/0.3801, allocations: 403.5 kB / 0.53 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006535/0.3808, allocations: 0.5357 MB / 0.5305 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.3827, allocations: 1.458 MB / 0.5319 GB, free: 4.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3827, allocations: 4 kB / 0.5319 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3827, allocations: 0 / 0.5319 GB, free: 4.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.3827, allocations: 5.125 kB / 0.5319 GB, free: 4.531 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.003319/0.386, allocations: 1.232 MB / 0.5332 GB, free: 3.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.3861, allocations: 14.89 kB / 0.5332 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.3864, allocations: 90.16 kB / 0.5333 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.3874, allocations: 0.5038 MB / 0.5337 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.011e-05/0.3875, allocations: 81.83 kB / 0.5338 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.3877, allocations: 85.25 kB / 0.5339 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.3895, allocations: 0.9249 MB / 0.5348 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.3895, allocations: 5.969 kB / 0.5348 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.3896, allocations: 29.78 kB / 0.5348 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.312e-05/0.3896, allocations: 21.7 kB / 0.5349 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.3911, allocations: 0.8167 MB / 0.5357 GB, free: 2.641 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.006551/0.3977, allocations: 3.916 MB / 0.5395 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.4008, allocations: 1.014 MB / 0.5405 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008363/0.4016, allocations: 405.1 kB / 0.5409 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.73e-05/0.4017, allocations: 10.34 kB / 0.5409 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.45e-05/0.4017, allocations: 41.97 kB / 0.5409 GB, free: 15.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.615e-06/0.4017, allocations: 0 / 0.5409 GB, free: 15.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004231/0.406, allocations: 1.614 MB / 0.5425 GB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.406, allocations: 62.25 kB / 0.5425 GB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000658/0.4067, allocations: 412.5 kB / 0.5429 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/0.4068, allocations: 35.67 kB / 0.543 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.407, allocations: 333 kB / 0.5433 GB, free: 13.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002966/0.4073, allocations: 242.6 kB / 0.5435 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.4076, allocations: 118.9 kB / 0.5436 GB, free: 13.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4078, allocations: 374.2 kB / 0.544 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007203/0.4085, allocations: 454.2 kB / 0.5444 GB, free: 13.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007748/0.4092, allocations: 0.4991 MB / 0.5449 GB, free: 12.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007327/0.4166, allocations: 2.356 MB / 0.5472 GB, free: 11.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.4166, allocations: 5.375 kB / 0.5472 GB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002922/0.4195, allocations: 1.339 MB / 0.5485 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.4195, allocations: 13.33 kB / 0.5485 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.4196, allocations: 5.625 kB / 0.5485 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.421, allocations: 341 kB / 0.5489 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.4223, allocations: 188.2 kB / 0.549 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01285/0.4351, allocations: 14.13 MB / 0.5628 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008827/0.436, allocations: 80.09 kB / 0.5629 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.349e-05/0.4361, allocations: 20.75 kB / 0.5629 GB, free: 12.47 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.0006413/0.4367, allocations: 282.3 kB / 0.5632 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.4369, allocations: 56.17 kB / 0.5633 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.4391, allocations: 1.138 MB / 0.5644 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/0.4391, allocations: 5.609 kB / 0.5644 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4391, allocations: 7.516 kB / 0.5644 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.4391, allocations: 3.984 kB / 0.5644 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.4429, allocations: 2.102 MB / 0.5664 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.4429, allocations: 1.375 kB / 0.5664 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009604/0.4439, allocations: 166.5 kB / 0.5666 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008971/0.4448, allocations: 309.8 kB / 0.5669 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-05/0.4449, allocations: 31.11 kB / 0.5669 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/0.4568, allocations: 13.69 MB / 0.5803 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.4568, allocations: 5.438 kB / 0.5803 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003187/0.46, allocations: 1.602 MB / 0.5819 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/0.4603, allocations: 71.52 kB / 0.5819 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.4605, allocations: 32.12 kB / 0.582 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.4609, allocations: 31.95 kB / 0.582 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.4611, allocations: 60.34 kB / 0.5821 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.4612, allocations: 19.98 kB / 0.5821 GB, free: 10.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.4616, allocations: 295.2 kB / 0.5824 GB, free: 10.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4616, allocations: 0 / 0.5824 GB, free: 10.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001178/0.4627, allocations: 295.5 kB / 0.5826 GB, free: 9.809 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.0002359/0.463, allocations: 141.7 kB / 0.5828 GB, free: 9.656 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.4658, allocations: 2.015 MB / 0.5847 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4658, allocations: 0 / 0.5847 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.4678, allocations: 1.545 MB / 0.5862 GB, free: 5.836 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009441/0.4687, allocations: 174.8 kB / 0.5864 GB, free: 5.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00602/0.4747, allocations: 3.159 MB / 0.5895 GB, free: 2.473 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008034/0.4756, allocations: 1.005 MB / 0.5905 GB, free: 1.441 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.4759, allocations: 51.42 kB / 0.5905 GB, free: 1.391 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4759, allocations: 4 kB / 0.5905 GB, free: 1.387 MB / 430.1 MB Notification: Performance of Templates: time 0.04244/0.5184, allocations: 35.95 MB / 0.6256 GB, free: 13.42 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.133702251827344] Failed to read output from testmodel.py, exit status != 0: 0.5284744170494378 0.5423511169999999 0.15652688899999995 Calling exit ...