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.0008275/0.0008275, allocations: 75.7 kB / 20.8 MB, free: 3.707 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.0008426/0.0008426, allocations: 165.3 kB / 24.09 MB, free: 424 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 0.8971/0.8971, allocations: 177.1 MB / 204.4 MB, free: 5.711 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.0611/0.0611, allocations: 18.13 MB / 279 MB, free: 11.49 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.174e-06/2.174e-06, allocations: 0 / 416.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.41e-05/3.628e-05, allocations: 6.281 kB / 416.6 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.00442/0.004457, allocations: 3.069 MB / 419.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.006954, allocations: 0.9409 MB / 420.6 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006427/0.007596, allocations: 13.19 kB / 420.6 MB, free: 9.738 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003798/0.007976, allocations: 106.7 kB / 420.7 MB, free: 9.672 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006843/0.008661, allocations: 275.1 kB / 421 MB, free: 9.496 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005835/0.009244, allocations: 201.7 kB / 421.2 MB, free: 9.375 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.01025, allocations: 1.262 MB / 422.4 MB, free: 8.746 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000766/0.01102, allocations: 0.6555 MB / 423.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006212/0.01164, allocations: 482.4 kB / 423.5 MB, free: 8.234 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000624/0.01226, allocations: 0.4971 MB / 424 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.01243, allocations: 132.5 kB / 424.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.01259, allocations: 133.2 kB / 424.3 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002914/0.01288, allocations: 414.2 kB / 424.7 MB, free: 7.836 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003635/0.01324, allocations: 413.2 kB / 425.1 MB, free: 7.641 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.01448, allocations: 1.52 MB / 426.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.01449, allocations: 1.094 kB / 426.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01449, allocations: 0 / 426.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.0145, allocations: 0 / 426.6 MB, free: 7.098 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.001752/0.01626, allocations: 1.225 MB / 427.8 MB, free: 6.406 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.01629, allocations: 10.02 kB / 427.9 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.01643, allocations: 98.25 kB / 428 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.01698, allocations: 0.495 MB / 428.5 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.01704, allocations: 83 kB / 428.5 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.01716, allocations: 81.81 kB / 428.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.01831, allocations: 0.9509 MB / 429.6 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.01832, allocations: 192 / 429.6 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.934e-05/0.01837, allocations: 38.38 kB / 429.6 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.01839, allocations: 22.44 kB / 429.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.0194, allocations: 0.8069 MB / 430.4 MB, free: 5.188 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.003746/0.02315, allocations: 2.681 MB / 433.1 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.02471, allocations: 1.005 MB / 434.1 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004143/0.02512, allocations: 405.7 kB / 434.5 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.02517, allocations: 7.094 kB / 434.5 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.02518, allocations: 39.62 kB / 434.6 MB, free: 3.125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=58): time 1.763e-06/0.02519, allocations: 0 / 434.6 MB, free: 3.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.002196/0.02738, allocations: 1.62 MB / 436.2 MB, free: 2.227 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/0.0274, allocations: 58.69 kB / 436.2 MB, free: 2.164 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.02774, allocations: 400.3 kB / 436.6 MB, free: 1.914 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.02777, allocations: 39.95 kB / 436.7 MB, free: 1.871 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.02787, allocations: 333.9 kB / 437 MB, free: 1.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.02801, allocations: 243.2 kB / 437.2 MB, free: 1.367 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.02815, allocations: 118.8 kB / 437.3 MB, free: 1.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.02821, allocations: 369.8 kB / 437.7 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.02865, allocations: 450 kB / 438.1 MB, free: 0.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004478/0.0291, allocations: 0.5042 MB / 438.6 MB, free: 416 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003835/0.03293, allocations: 2.361 MB / 441 MB, free: 15.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.03294, allocations: 0 / 441 MB, free: 15.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001477/0.03441, allocations: 1.343 MB / 442.4 MB, free: 14.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.03443, allocations: 6.656 kB / 442.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.03444, allocations: 4 kB / 442.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005272/0.03496, allocations: 340.3 kB / 442.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.03541, allocations: 187.8 kB / 442.9 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006272/0.04168, allocations: 13.86 MB / 456.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/0.042, allocations: 71.64 kB / 456.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.04204, allocations: 27.98 kB / 456.8 MB, free: 14.5 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.0003709/0.04241, allocations: 274.6 kB / 457.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.04247, allocations: 55.66 kB / 457.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.04368, allocations: 1.133 MB / 458.3 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.04368, allocations: 8 kB / 458.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.04369, allocations: 0 / 458.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.04369, allocations: 3.984 kB / 458.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.04562, allocations: 1.859 MB / 460.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.04562, allocations: 3.938 kB / 460.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/0.04613, allocations: 171.8 kB / 460.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004081/0.04653, allocations: 308.5 kB / 460.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.201e-05/0.04659, allocations: 31.98 kB / 460.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005822/0.05241, allocations: 13.41 MB / 474.1 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.05241, allocations: 7.969 kB / 474.1 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.05401, allocations: 1.59 MB / 475.7 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.05411, allocations: 71.47 kB / 475.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.05418, allocations: 27.98 kB / 475.8 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.05438, allocations: 31.95 kB / 475.8 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.05448, allocations: 60.52 kB / 475.9 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.05451, allocations: 16 kB / 475.9 MB, free: 10.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002049/0.05471, allocations: 287.2 kB / 476.2 MB, free: 9.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05471, allocations: 0 / 476.2 MB, free: 9.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006931/0.05541, allocations: 299.5 kB / 476.4 MB, free: 9.637 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.0001417/0.05555, allocations: 141.7 kB / 476.6 MB, free: 9.492 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.05723, allocations: 2 MB / 478.6 MB, free: 7.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.05724, allocations: 4 kB / 478.6 MB, free: 7.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008556/0.05809, allocations: 1.549 MB / 480.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.05854, allocations: 169.9 kB / 480.3 MB, free: 5.516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.06157, allocations: 2.637 MB / 482.9 MB, free: 2.848 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.06187, allocations: 408.6 kB / 483.3 MB, free: 2.426 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.06213, allocations: 168.5 kB / 483.5 MB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.06224, allocations: 40.5 kB / 483.5 MB, free: 2.223 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.06224, allocations: 0 / 483.5 MB, free: 2.223 MB / 378.7 MB Notification: Performance of Templates: time 0.01387/0.07612, allocations: 13.58 MB / 497.1 MB, free: 4.848 MB / 394.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=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.299131748266518] Failed to read output from testmodel.py, exit status != 0: 0.0833686888217926 0.093150229 0.07679253800000001 Calling exit ...