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.001034/0.001034, allocations: 87.56 kB / 20.97 MB, free: 3.586 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.001126/0.001126, allocations: 177.3 kB / 24.28 MB, free: 284 kB / 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 1.061/1.061, allocations: 177.1 MB / 204.6 MB, free: 5.605 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.08711/0.08711, allocations: 18.14 MB / 279.2 MB, free: 11.36 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: 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: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 357.2 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.262e-05/3.488e-05, allocations: 5.266 kB / 357.3 MB, free: 8.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003532/0.003567, allocations: 3.335 MB / 360.6 MB, free: 4.832 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.005077, allocations: 0.9544 MB / 361.5 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.005267, allocations: 15.88 kB / 361.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.00549, allocations: 103.1 kB / 361.7 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003762/0.005866, allocations: 274.1 kB / 361.9 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.006419, allocations: 191.6 kB / 362.1 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000884/0.007303, allocations: 1.267 MB / 363.4 MB, free: 2.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006381/0.007941, allocations: 0.6879 MB / 364.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005488/0.00849, allocations: 491 kB / 364.5 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005926/0.009082, allocations: 0.5222 MB / 365.1 MB, free: 328 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.009217, allocations: 132 kB / 365.2 MB, free: 196 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.009348, allocations: 136 kB / 365.3 MB, free: 60 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000276/0.009624, allocations: 427.2 kB / 365.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.009948, allocations: 407.2 kB / 366.1 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007112/0.01066, allocations: 0.8726 MB / 367 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.01066, allocations: 0 / 367 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01067, allocations: 0 / 367 MB, free: 14.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.01068, allocations: 4 kB / 367 MB, free: 14.36 MB / 298.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.001672/0.01235, allocations: 1.334 MB / 368.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.01239, allocations: 12.92 kB / 368.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.01259, allocations: 152.4 kB / 368.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005672/0.01316, allocations: 0.4923 MB / 369 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/0.01323, allocations: 80.27 kB / 369.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.559e-05/0.01332, allocations: 80.33 kB / 369.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007234/0.01405, allocations: 0.5334 MB / 369.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.01406, allocations: 192 / 369.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.01412, allocations: 36.12 kB / 369.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.01413, allocations: 16 kB / 369.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005551/0.01469, allocations: 307.7 kB / 370.1 MB, free: 11.25 MB / 298.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.004332/0.01902, allocations: 2.18 MB / 372.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/0.02098, allocations: 0.6543 MB / 372.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.02133, allocations: 145.1 kB / 373 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.02137, allocations: 8.5 kB / 373 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.02141, allocations: 45.88 kB / 373.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.695e-06/0.02141, allocations: 0 / 373.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.00257/0.02398, allocations: 0.9164 MB / 374 MB, free: 7.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.02402, allocations: 55.91 kB / 374.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004572/0.02448, allocations: 410.6 kB / 374.5 MB, free: 6.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/0.02454, allocations: 41.7 kB / 374.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.02477, allocations: 379.3 kB / 374.9 MB, free: 6.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.02499, allocations: 246 kB / 375.1 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.02523, allocations: 136.3 kB / 375.2 MB, free: 5.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.02544, allocations: 0.5391 MB / 375.8 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.02585, allocations: 179.6 kB / 376 MB, free: 5.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/0.02628, allocations: 240.4 kB / 376.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.02744, allocations: 0.5444 MB / 376.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.02744, allocations: 0 / 376.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001596/0.02904, allocations: 0.7321 MB / 377.5 MB, free: 3.539 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.02906, allocations: 4 kB / 377.5 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.02907, allocations: 4 kB / 377.5 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.03036, allocations: 360.5 kB / 377.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007154/0.03107, allocations: 191.8 kB / 378 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009698/0.04077, allocations: 17.69 MB / 395.7 MB, free: 0 / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.0413, allocations: 67.69 kB / 395.8 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.04135, allocations: 24 kB / 395.8 MB, free: 15.91 MB / 330.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.0003854/0.04173, allocations: 196.6 kB / 396 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.04184, allocations: 75.61 kB / 396.1 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009392/0.04278, allocations: 0.6571 MB / 396.7 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.04279, allocations: 4 kB / 396.7 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.04279, allocations: 8 kB / 396.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.0428, allocations: 0 / 396.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.0446, allocations: 1.287 MB / 398 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.0446, allocations: 3.938 kB / 398 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005255/0.04513, allocations: 167.8 kB / 398.2 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007076/0.04583, allocations: 336.7 kB / 398.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.456e-05/0.0459, allocations: 28.03 kB / 398.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007683/0.05358, allocations: 17.42 MB / 416 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.05358, allocations: 0 / 416 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.05517, allocations: 0.9572 MB / 416.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.05532, allocations: 67.53 kB / 417 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/0.05541, allocations: 31.98 kB / 417 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.05568, allocations: 27.97 kB / 417 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.05588, allocations: 60.27 kB / 417.1 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.05591, allocations: 16 kB / 417.1 MB, free: 9.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002838/0.0562, allocations: 279.1 kB / 417.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0562, allocations: 0 / 417.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001059/0.05726, allocations: 299.5 kB / 417.7 MB, free: 8.496 MB / 346.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.0002119/0.05747, allocations: 152.4 kB / 417.8 MB, free: 8.344 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.05951, allocations: 2.089 MB / 419.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.05952, allocations: 0 / 419.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.06107, allocations: 1.885 MB / 421.8 MB, free: 4.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.06168, allocations: 153.3 kB / 422 MB, free: 3.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.06546, allocations: 2.319 MB / 424.3 MB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.06569, allocations: 207.5 kB / 424.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003141/0.066, allocations: 128.5 kB / 424.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.06613, allocations: 40.5 kB / 424.6 MB, free: 1.105 MB / 346.7 MB Notification: Performance of SimCode: time 3.206e-06/0.06613, allocations: 3.938 kB / 424.6 MB, free: 1.102 MB / 346.7 MB Notification: Performance of Templates: time 0.1423/0.2084, allocations: 13.81 MB / 438.4 MB, free: 73.18 MB / 346.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.578341218875721]