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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 195.5 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2031/0.2031, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2779, allocations: 54.94 MB / 435.2 MB, free: 39.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004473/0.2824, allocations: 4.593 MB / 439.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.2844, allocations: 1.293 MB / 441.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.2848, allocations: 15.81 kB / 441.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000315/0.2851, allocations: 130.8 kB / 441.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005801/0.2857, allocations: 406.4 kB / 441.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.2864, allocations: 285.2 kB / 441.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.2877, allocations: 2.169 MB / 444.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.2891, allocations: 1.592 MB / 445.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000768/0.2899, allocations: 0.8471 MB / 446.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009241/0.2908, allocations: 1.056 MB / 447.6 MB, free: 32.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002613/0.2911, allocations: 229.1 kB / 447.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002801/0.2913, allocations: 231.4 kB / 448.1 MB, free: 32.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003838/0.2917, allocations: 0.6934 MB / 448.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006746/0.2924, allocations: 0.9224 MB / 449.7 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.2939, allocations: 2.556 MB / 452.2 MB, free: 30.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.2939, allocations: 0 / 452.2 MB, free: 30.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2939, allocations: 0 / 452.2 MB, free: 30.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.2939, allocations: 0 / 452.2 MB, free: 30.76 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.003826/0.2978, allocations: 2.007 MB / 454.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2978, allocations: 9.094 kB / 454.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.2981, allocations: 149.2 kB / 454.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.2992, allocations: 0.8687 MB / 455.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.2993, allocations: 113.6 kB / 455.4 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.2996, allocations: 144.4 kB / 455.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/0.3023, allocations: 1.586 MB / 457.1 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.3023, allocations: 5.797 kB / 457.1 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.3024, allocations: 45 kB / 457.1 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.3025, allocations: 33.62 kB / 457.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/0.3048, allocations: 1.408 MB / 458.6 MB, free: 27.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.315, allocations: 7.118 MB / 465.7 MB, free: 23.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005068/0.3201, allocations: 1.863 MB / 467.6 MB, free: 22.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00115/0.3213, allocations: 0.7456 MB / 468.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.431e-05/0.3214, allocations: 15.55 kB / 468.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3214, allocations: 48.36 kB / 468.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.916e-06/0.3214, allocations: 0 / 468.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007134/0.3286, allocations: 3.92 MB / 472.3 MB, free: 19.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.3287, allocations: 70.41 kB / 472.4 MB, free: 19.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.3299, allocations: 0.6834 MB / 473 MB, free: 19.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.33, allocations: 42.05 kB / 473.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.3304, allocations: 0.5076 MB / 473.6 MB, free: 18.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.3308, allocations: 414.4 kB / 474 MB, free: 18.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005065/0.3313, allocations: 243.8 kB / 474.2 MB, free: 18.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3315, allocations: 415 kB / 474.6 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.333, allocations: 0.8439 MB / 475.5 MB, free: 17.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3345, allocations: 1.003 MB / 476.5 MB, free: 17.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0137/0.3482, allocations: 4.489 MB / 481 MB, free: 15.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.3482, allocations: 5.906 kB / 481 MB, free: 15.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004298/0.3525, allocations: 2.46 MB / 483.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.3526, allocations: 8 kB / 483.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.3526, allocations: 4 kB / 483.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.3541, allocations: 0.5434 MB / 484 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/0.3559, allocations: 399.5 kB / 484.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/0.3702, allocations: 23.05 MB / 0.4955 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.372, allocations: 162.6 kB / 0.4957 GB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.3722, allocations: 51.98 kB / 0.4957 GB, free: 2.363 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (160): * Single equations (assignments): 145 * 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.0009923/0.3732, allocations: 431.6 kB / 0.4962 GB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.3734, allocations: 90.88 kB / 0.4962 GB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.377, allocations: 1.987 MB / 0.4982 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.3771, allocations: 12 kB / 0.4982 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.3771, allocations: 8 kB / 0.4982 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.3771, allocations: 3.984 kB / 0.4982 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006208/0.3833, allocations: 3.708 MB / 0.5018 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.3833, allocations: 8.188 kB / 0.5018 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/0.3854, allocations: 347.6 kB / 0.5022 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.3867, allocations: 484.5 kB / 0.5026 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.3869, allocations: 59.97 kB / 0.5027 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/0.4018, allocations: 22.17 MB / 0.5243 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.4019, allocations: 4 kB / 0.5243 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/0.4068, allocations: 2.726 MB / 0.527 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.4072, allocations: 187.9 kB / 0.5272 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.4075, allocations: 59.97 kB / 0.5272 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008438/0.4083, allocations: 79.77 kB / 0.5273 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/0.4087, allocations: 96.75 kB / 0.5274 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.948e-05/0.4087, allocations: 35.98 kB / 0.5274 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006005/0.4094, allocations: 471 kB / 0.5279 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4094, allocations: 0 / 0.5279 GB, free: 14.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001688/0.4111, allocations: 0.5068 MB / 0.5284 GB, free: 14.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (92): * Single equations (assignments): 77 * 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.0003389/0.4114, allocations: 190.5 kB / 0.5286 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.4169, allocations: 3.987 MB / 0.5325 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4169, allocations: 0 / 0.5325 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002877/0.4198, allocations: 2.464 MB / 0.5349 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.4212, allocations: 305.4 kB / 0.5352 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009706/0.4309, allocations: 6.089 MB / 0.5411 GB, free: 1.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.432, allocations: 1.268 MB / 0.5423 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.4334, allocations: 371.8 kB / 0.5427 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/0.4337, allocations: 79.42 kB / 0.5428 GB, free: 15.27 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4337, allocations: 0 / 0.5428 GB, free: 15.27 MB / 430.1 MB Notification: Performance of Templates: time 0.03759/0.4713, allocations: 22.92 MB / 0.5652 GB, free: 8.594 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile (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_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)