Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001901/0.001901, allocations: 190.1 kB / 16.14 MB, free: 6.719 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1955/0.1955, allocations: 22.34 MB / 312.3 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.91 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.262, allocations: 54.95 MB / 435 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.00404/0.2661, allocations: 4.567 MB / 439.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.2679, allocations: 1.282 MB / 440.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.2683, allocations: 12 kB / 440.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.2686, allocations: 132.7 kB / 441 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005401/0.2692, allocations: 417 kB / 441.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005866/0.2697, allocations: 280.9 kB / 441.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.2714, allocations: 2.635 MB / 444.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.2725, allocations: 1.341 MB / 445.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005962/0.2731, allocations: 0.674 MB / 446.4 MB, free: 33.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008646/0.274, allocations: 0.9762 MB / 447.3 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.2742, allocations: 122.6 kB / 447.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.2745, allocations: 118.8 kB / 447.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.2748, allocations: 0.5899 MB / 448.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006129/0.2754, allocations: 0.7967 MB / 449 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.2767, allocations: 2.491 MB / 451.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2768, allocations: 0 / 451.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2768, allocations: 0 / 451.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.2768, allocations: 0 / 451.4 MB, free: 31.13 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003742/0.2805, allocations: 2.009 MB / 453.5 MB, free: 30.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2806, allocations: 18.34 kB / 453.5 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003073/0.2809, allocations: 148.5 kB / 453.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.2821, allocations: 0.8584 MB / 454.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.2822, allocations: 117.2 kB / 454.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.2825, allocations: 138.2 kB / 454.7 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.2852, allocations: 1.586 MB / 456.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.2852, allocations: 0.8906 kB / 456.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.2854, allocations: 54.12 kB / 456.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.2854, allocations: 28.75 kB / 456.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/0.2876, allocations: 1.426 MB / 457.8 MB, free: 28.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009488/0.2971, allocations: 7.146 MB / 465 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004788/0.3019, allocations: 1.888 MB / 466.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.3031, allocations: 0.7224 MB / 467.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.553e-05/0.3031, allocations: 15.25 kB / 467.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.3032, allocations: 44.19 kB / 467.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 4.288e-06/0.3032, allocations: 0 / 467.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006517/0.3097, allocations: 3.938 MB / 471.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.3098, allocations: 63.36 kB / 471.6 MB, free: 19.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009802/0.3108, allocations: 0.6922 MB / 472.3 MB, free: 19.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.718e-05/0.3109, allocations: 41.39 kB / 472.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.3111, allocations: 0.5068 MB / 472.9 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.3115, allocations: 412.6 kB / 473.3 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003875/0.3119, allocations: 231 kB / 473.5 MB, free: 18.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.312, allocations: 414 kB / 473.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3132, allocations: 0.8438 MB / 474.7 MB, free: 17.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.3146, allocations: 1.009 MB / 475.8 MB, free: 17.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/0.327, allocations: 4.438 MB / 480.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.3271, allocations: 1.375 kB / 480.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003969/0.3311, allocations: 2.471 MB / 482.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3311, allocations: 4 kB / 482.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.3311, allocations: 8 kB / 482.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/0.3327, allocations: 0.5473 MB / 483.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.3343, allocations: 395.4 kB / 483.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.3474, allocations: 21.43 MB / 0.4932 GB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.349, allocations: 154.8 kB / 0.4933 GB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.3492, allocations: 51.98 kB / 0.4934 GB, free: 4.613 MB / 366.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: 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 (157): * Single equations (assignments): 142 * 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.001007/0.3502, allocations: 417.4 kB / 0.4938 GB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000282/0.3505, allocations: 94.86 kB / 0.4939 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003737/0.3542, allocations: 1.979 MB / 0.4958 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.3542, allocations: 8 kB / 0.4958 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3542, allocations: 4 kB / 0.4958 GB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3543, allocations: 7.922 kB / 0.4958 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005601/0.3599, allocations: 3.558 MB / 0.4993 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.3599, allocations: 7.938 kB / 0.4993 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/0.3619, allocations: 331.7 kB / 0.4996 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.3632, allocations: 480.8 kB / 0.5001 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.3633, allocations: 63.97 kB / 0.5002 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/0.3772, allocations: 20.58 MB / 0.5202 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.3772, allocations: 8.188 kB / 0.5203 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005041/0.3823, allocations: 2.733 MB / 0.5229 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00041/0.3827, allocations: 199.8 kB / 0.5231 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.383, allocations: 55.98 kB / 0.5232 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008517/0.3839, allocations: 71.77 kB / 0.5232 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/0.3841, allocations: 96.75 kB / 0.5233 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-05/0.3842, allocations: 31.98 kB / 0.5234 GB, free: 3.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000648/0.3849, allocations: 479 kB / 0.5238 GB, free: 3.105 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3849, allocations: 7.938 kB / 0.5238 GB, free: 3.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001621/0.3865, allocations: 0.5029 MB / 0.5243 GB, free: 2.594 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (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],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 (89): * Single equations (assignments): 74 * 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.0002487/0.3868, allocations: 179.2 kB / 0.5245 GB, free: 2.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004358/0.3912, allocations: 3.418 MB / 0.5278 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3912, allocations: 384 / 0.5278 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002716/0.3939, allocations: 2.463 MB / 0.5302 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.3953, allocations: 312.4 kB / 0.5305 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.4056, allocations: 6.01 MB / 0.5364 GB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.4067, allocations: 1.268 MB / 0.5376 GB, free: 4.488 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001276/0.408, allocations: 355.6 kB / 0.538 GB, free: 4.137 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.4084, allocations: 79.42 kB / 0.5381 GB, free: 4.059 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4084, allocations: 0 / 0.5381 GB, free: 4.059 MB / 414.1 MB Notification: Performance of Templates: time 0.03482/0.4432, allocations: 21.9 MB / 0.5594 GB, free: 14.41 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)