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.001142/0.001142, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001103/0.001103, allocations: 194.9 kB / 16.25 MB, free: 6.637 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.295/1.295, allocations: 222.9 MB / 239.9 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2095/0.2095, allocations: 22.35 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 63.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2501, allocations: 54.94 MB / 435.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004063/0.2542, allocations: 4.577 MB / 439.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.2562, allocations: 1.28 MB / 441.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003399/0.2565, allocations: 16.31 kB / 441.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.2569, allocations: 130.8 kB / 441.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006116/0.2575, allocations: 399.8 kB / 441.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.2582, allocations: 277.9 kB / 441.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.2595, allocations: 2.148 MB / 444 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.2607, allocations: 1.58 MB / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005988/0.2613, allocations: 0.8336 MB / 446.5 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009862/0.2623, allocations: 1.06 MB / 447.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002455/0.2626, allocations: 235.9 kB / 447.8 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003014/0.2629, allocations: 235.8 kB / 448 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004411/0.2633, allocations: 0.7055 MB / 448.7 MB, free: 31.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006558/0.264, allocations: 0.9185 MB / 449.6 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001666/0.2657, allocations: 2.573 MB / 452.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2657, allocations: 0 / 452.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2657, allocations: 0 / 452.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.09e-05/0.2657, allocations: 0 / 452.2 MB, free: 30.34 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.00396/0.2697, allocations: 2.021 MB / 454.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2698, allocations: 9.375 kB / 454.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.27, allocations: 145.2 kB / 454.4 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.2711, allocations: 0.8658 MB / 455.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.2712, allocations: 112.5 kB / 455.3 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.2714, allocations: 136.4 kB / 455.5 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.2741, allocations: 1.595 MB / 457.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.2741, allocations: 0.75 kB / 457.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.2743, allocations: 50.34 kB / 457.1 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.2743, allocations: 28.19 kB / 457.1 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002245/0.2765, allocations: 1.419 MB / 458.6 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009/0.2855, allocations: 7.152 MB / 465.7 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004774/0.2904, allocations: 1.885 MB / 467.6 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009958/0.2914, allocations: 0.7217 MB / 468.3 MB, free: 21.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.032e-05/0.2915, allocations: 16 kB / 468.3 MB, free: 21.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.2915, allocations: 44.73 kB / 468.4 MB, free: 21.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.956e-06/0.2915, allocations: 3.938 kB / 468.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006476/0.298, allocations: 3.939 MB / 472.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.298, allocations: 62.06 kB / 472.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008809/0.2989, allocations: 0.6865 MB / 473.1 MB, free: 18.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-05/0.299, allocations: 41.64 kB / 473.1 MB, free: 18.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.2993, allocations: 0.5109 MB / 473.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/0.2996, allocations: 414.1 kB / 474 MB, free: 17.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/0.3, allocations: 233.8 kB / 474.2 MB, free: 17.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3001, allocations: 417.8 kB / 474.7 MB, free: 17.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3013, allocations: 0.8438 MB / 475.5 MB, free: 17.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.3026, allocations: 1.002 MB / 476.5 MB, free: 16.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.3153, allocations: 4.457 MB / 481 MB, free: 14.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.3154, allocations: 1.219 kB / 481 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003895/0.3193, allocations: 2.468 MB / 483.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.3193, allocations: 8 kB / 483.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.3194, allocations: 4 kB / 483.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.321, allocations: 0.5512 MB / 484 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.3226, allocations: 395.5 kB / 484.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/0.3367, allocations: 23.05 MB / 0.4955 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.3383, allocations: 150.9 kB / 0.4957 GB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3384, allocations: 51.98 kB / 0.4957 GB, free: 2.234 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.0007792/0.3392, allocations: 427.1 kB / 0.4961 GB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/0.3394, allocations: 94.86 kB / 0.4962 GB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/0.3429, allocations: 1.979 MB / 0.4981 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.343, allocations: 12 kB / 0.4982 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.343, allocations: 4 kB / 0.4982 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.343, allocations: 3.984 kB / 0.4982 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005311/0.3483, allocations: 3.558 MB / 0.5016 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3483, allocations: 0 / 0.5016 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/0.3504, allocations: 331.7 kB / 0.502 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.3517, allocations: 484.8 kB / 0.5024 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.3518, allocations: 59.97 kB / 0.5025 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/0.3658, allocations: 22.18 MB / 0.5241 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3658, allocations: 0 / 0.5241 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004743/0.3706, allocations: 2.733 MB / 0.5268 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.3709, allocations: 191.7 kB / 0.527 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/0.3711, allocations: 63.97 kB / 0.5271 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/0.3719, allocations: 75.77 kB / 0.5271 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.3722, allocations: 104.7 kB / 0.5272 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.673e-05/0.3723, allocations: 31.98 kB / 0.5273 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.3729, allocations: 479 kB / 0.5277 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3729, allocations: 0 / 0.5277 GB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001438/0.3743, allocations: 0.4991 MB / 0.5282 GB, free: 14.52 MB / 414.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.00025/0.3746, allocations: 178.7 kB / 0.5284 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005147/0.3797, allocations: 3.983 MB / 0.5323 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3798, allocations: 0 / 0.5323 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002545/0.3823, allocations: 2.457 MB / 0.5347 GB, free: 7.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.3835, allocations: 310.7 kB / 0.535 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008957/0.3925, allocations: 6.044 MB / 0.5409 GB, free: 1.117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008597/0.3934, allocations: 1.264 MB / 0.5421 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001061/0.3945, allocations: 351.6 kB / 0.5424 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.3948, allocations: 79.42 kB / 0.5425 GB, free: 15.39 MB / 430.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3948, allocations: 0 / 0.5425 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Templates: time 0.03303/0.4278, allocations: 22.89 MB / 0.5649 GB, free: 8.746 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)