Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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.001401/0.001401, allocations: 83.03 kB / 19.96 MB, free: 1.754 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.001493/0.001493, allocations: 165.5 kB / 23.23 MB, free: 4.883 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.534/1.534, allocations: 177.1 MB / 203.5 MB, free: 9.176 MB / 190.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.1062/0.1062, allocations: 18.14 MB / 278.1 MB, free: 15.06 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_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 416.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.808e-05/3.984e-05, allocations: 6.219 kB / 416.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.00579/0.00583, allocations: 3.964 MB / 420.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002855/0.008685, allocations: 1.271 MB / 421.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.00907, allocations: 23.75 kB / 421.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004075/0.009478, allocations: 178.5 kB / 421.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008052/0.01028, allocations: 472.8 kB / 422.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000832/0.01111, allocations: 323.4 kB / 422.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002416/0.01353, allocations: 2.239 MB / 424.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.01506, allocations: 1.157 MB / 426 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.0162, allocations: 0.8382 MB / 426.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.01752, allocations: 0.8651 MB / 427.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003284/0.01785, allocations: 228 kB / 427.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.01824, allocations: 236 kB / 428.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000714/0.01896, allocations: 0.725 MB / 428.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008882/0.01984, allocations: 0.6862 MB / 429.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00272/0.02256, allocations: 2.684 MB / 432.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.02257, allocations: 0 / 432.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.02257, allocations: 0 / 432.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.467e-05/0.02261, allocations: 0 / 432.2 MB, free: 1.832 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004796/0.0274, allocations: 1.954 MB / 434.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.02744, allocations: 12.92 kB / 434.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/0.02777, allocations: 156 kB / 434.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.02925, allocations: 0.8061 MB / 435.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.0294, allocations: 116.6 kB / 435.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.02968, allocations: 136.3 kB / 435.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/0.03257, allocations: 1.615 MB / 437 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.03261, allocations: 4.141 kB / 437 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.03276, allocations: 52.12 kB / 437.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.03279, allocations: 28 kB / 437.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.03535, allocations: 1.403 MB / 438.5 MB, free: 11.45 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(delivery.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009948/0.0453, allocations: 4.711 MB / 443.2 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005198/0.05049, allocations: 1.852 MB / 445.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.05177, allocations: 0.7378 MB / 445.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.866e-05/0.05184, allocations: 17 kB / 445.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.05188, allocations: 39.56 kB / 445.8 MB, free: 4.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.056e-06/0.05188, allocations: 4 kB / 445.8 MB, free: 4.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.189/0.2409, allocations: 4.635 MB / 450.5 MB, free: 45.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.241, allocations: 66.91 kB / 450.6 MB, free: 45.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.2421, allocations: 0.6599 MB / 451.2 MB, free: 45.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000303/0.2424, allocations: 44.98 kB / 451.3 MB, free: 45.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003779/0.2428, allocations: 0.523 MB / 451.8 MB, free: 45.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000481/0.2432, allocations: 446 kB / 452.2 MB, free: 45.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004922/0.2437, allocations: 241 kB / 452.4 MB, free: 44.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.2439, allocations: 414 kB / 452.9 MB, free: 44.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.2454, allocations: 0.8515 MB / 453.7 MB, free: 44.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.2469, allocations: 1.018 MB / 454.7 MB, free: 43.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.015/0.2619, allocations: 4.496 MB / 459.2 MB, free: 42.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/0.2619, allocations: 2.75 kB / 459.2 MB, free: 42.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004876/0.2667, allocations: 2.486 MB / 461.7 MB, free: 41.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.2668, allocations: 6.938 kB / 461.7 MB, free: 41.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.2668, allocations: 5.906 kB / 461.7 MB, free: 41.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/0.2687, allocations: 0.5398 MB / 462.3 MB, free: 40.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.2707, allocations: 406.4 kB / 462.7 MB, free: 40.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.2828, allocations: 21.08 MB / 483.7 MB, free: 20.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.284, allocations: 76.05 kB / 483.8 MB, free: 20.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.2843, allocations: 52.03 kB / 483.9 MB, free: 20.93 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.pipeline.fluidStream.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (162): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0009524/0.2853, allocations: 418.2 kB / 484.3 MB, free: 20.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/0.2855, allocations: 101.2 kB / 484.4 MB, free: 20.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.2891, allocations: 2.015 MB / 486.4 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.2891, allocations: 13.31 kB / 486.4 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.2891, allocations: 3.844 kB / 486.4 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.2892, allocations: 7.969 kB / 486.4 MB, free: 19.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005713/0.2949, allocations: 3.513 MB / 489.9 MB, free: 17.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.2949, allocations: 4 kB / 489.9 MB, free: 17.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/0.297, allocations: 356 kB / 490.3 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.2982, allocations: 472.5 kB / 490.7 MB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/0.2983, allocations: 63.97 kB / 490.8 MB, free: 16.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.31, allocations: 20.2 MB / 0.499 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.31, allocations: 8 kB / 0.499 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005838/0.3159, allocations: 2.787 MB / 0.5018 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.3162, allocations: 107.3 kB / 0.5019 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/0.3165, allocations: 59.98 kB / 0.5019 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009229/0.3174, allocations: 59.86 kB / 0.502 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003399/0.3178, allocations: 100.8 kB / 0.5021 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.3179, allocations: 31.98 kB / 0.5021 GB, free: 7.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000698/0.3186, allocations: 459 kB / 0.5025 GB, free: 6.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3186, allocations: 8 kB / 0.5025 GB, free: 6.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001718/0.3203, allocations: 448 kB / 0.503 GB, free: 6.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (95): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.00033/0.3206, allocations: 185.4 kB / 0.5031 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005013/0.3256, allocations: 3.371 MB / 0.5064 GB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3256, allocations: 4.062 kB / 0.5064 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003124/0.3288, allocations: 2.451 MB / 0.5088 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.3302, allocations: 324.9 kB / 0.5091 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009544/0.3397, allocations: 4.803 MB / 0.5138 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.3408, allocations: 0.6791 MB / 0.5145 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001263/0.342, allocations: 363.8 kB / 0.5148 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004753/0.3425, allocations: 84.48 kB / 0.5149 GB, free: 9.797 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3425, allocations: 3.938 kB / 0.5149 GB, free: 9.793 MB / 398.1 MB Notification: Performance of Templates: time 0.04365/0.3862, allocations: 24.68 MB / 0.539 GB, free: 1.5 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004 -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.940423894673586] Failed to read output from testmodel.py, exit status != 0: 0.39605696871876717 0.410636337 0.38484938 Calling exit ...