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.007341/0.007341, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001647/0.001647, allocations: 193.3 kB / 16.79 MB, free: 5.809 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.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2184/0.2184, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 59.91 kB / 380.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3133, allocations: 54.95 MB / 435.7 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004659/0.318, allocations: 4.586 MB / 440.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.3203, allocations: 1.292 MB / 441.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003713/0.3207, allocations: 23.66 kB / 441.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.321, allocations: 129 kB / 441.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005958/0.3216, allocations: 416.9 kB / 442.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006426/0.3223, allocations: 280.8 kB / 442.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00167/0.3239, allocations: 2.656 MB / 445.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.3253, allocations: 1.346 MB / 446.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008161/0.3261, allocations: 0.6931 MB / 447.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.3271, allocations: 0.9734 MB / 448.1 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002064/0.3274, allocations: 113 kB / 448.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002782/0.3276, allocations: 113.2 kB / 448.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004086/0.3281, allocations: 0.582 MB / 448.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000707/0.3288, allocations: 0.8036 MB / 449.7 MB, free: 31.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.33, allocations: 2.092 MB / 451.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.33, allocations: 0 / 451.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.33, allocations: 0 / 451.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.234e-05/0.33, allocations: 0 / 451.8 MB, free: 31.33 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.003983/0.334, allocations: 2.011 MB / 453.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3341, allocations: 12.72 kB / 453.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002796/0.3344, allocations: 150.9 kB / 453.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.3356, allocations: 0.8718 MB / 454.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.3357, allocations: 117 kB / 454.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002523/0.336, allocations: 140.7 kB / 455.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002842/0.3388, allocations: 1.586 MB / 456.7 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.3389, allocations: 0 / 456.7 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.339, allocations: 50.09 kB / 456.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-05/0.339, allocations: 28.09 kB / 456.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002479/0.3415, allocations: 1.407 MB / 458.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.3519, allocations: 7.116 MB / 465.3 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004897/0.3569, allocations: 1.875 MB / 467.1 MB, free: 23.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.3581, allocations: 0.7348 MB / 467.9 MB, free: 22.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.3582, allocations: 18.33 kB / 467.9 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3583, allocations: 48.88 kB / 467.9 MB, free: 22.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.066e-06/0.3583, allocations: 0 / 467.9 MB, free: 22.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006729/0.365, allocations: 3.92 MB / 471.8 MB, free: 20.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3651, allocations: 62.78 kB / 471.9 MB, free: 20.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3661, allocations: 0.6856 MB / 472.6 MB, free: 19.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.3662, allocations: 46.58 kB / 472.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.3665, allocations: 0.5076 MB / 473.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.367, allocations: 414.7 kB / 473.6 MB, free: 19.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004122/0.3674, allocations: 241.5 kB / 473.8 MB, free: 18.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3675, allocations: 414.3 kB / 474.2 MB, free: 18.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.3688, allocations: 0.8431 MB / 475 MB, free: 18.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.3703, allocations: 0.9975 MB / 476 MB, free: 17.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/0.3836, allocations: 4.47 MB / 480.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.3836, allocations: 1.188 kB / 480.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004133/0.3877, allocations: 2.473 MB / 483 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3878, allocations: 8 kB / 483 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3878, allocations: 4 kB / 483 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.3893, allocations: 0.5395 MB / 483.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.391, allocations: 399.5 kB / 483.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/0.405, allocations: 21.43 MB / 0.4935 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4066, allocations: 162.7 kB / 0.4937 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.4068, allocations: 48 kB / 0.4937 GB, free: 4.867 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.001001/0.4078, allocations: 425.3 kB / 0.4941 GB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.408, allocations: 90.91 kB / 0.4942 GB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00389/0.4119, allocations: 1.983 MB / 0.4961 GB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4119, allocations: 12 kB / 0.4961 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.412, allocations: 15.92 kB / 0.4962 GB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.412, allocations: 3.984 kB / 0.4962 GB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006317/0.4183, allocations: 3.707 MB / 0.4998 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4183, allocations: 8.25 kB / 0.4998 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002046/0.4204, allocations: 343.6 kB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.4217, allocations: 480.5 kB / 0.5006 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/0.4219, allocations: 67.95 kB / 0.5006 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/0.4372, allocations: 20.57 MB / 0.5207 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4373, allocations: 7.984 kB / 0.5207 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004991/0.4423, allocations: 2.723 MB / 0.5234 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.4427, allocations: 191.8 kB / 0.5236 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/0.443, allocations: 59.98 kB / 0.5236 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008306/0.4438, allocations: 79.75 kB / 0.5237 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000331/0.4441, allocations: 96.75 kB / 0.5238 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.861e-05/0.4443, allocations: 39.92 kB / 0.5238 GB, free: 3.645 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006624/0.4449, allocations: 475 kB / 0.5243 GB, free: 3.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4449, allocations: 0 / 0.5243 GB, free: 3.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4465, allocations: 0.5029 MB / 0.5248 GB, free: 2.68 MB / 398.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.0002523/0.4468, allocations: 182.6 kB / 0.525 GB, free: 2.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.4509, allocations: 3.417 MB / 0.5283 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4509, allocations: 0 / 0.5283 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002569/0.4535, allocations: 2.453 MB / 0.5307 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.4548, allocations: 307.7 kB / 0.531 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009273/0.4641, allocations: 6.192 MB / 0.537 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009143/0.465, allocations: 1.264 MB / 0.5383 GB, free: 4.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005773/0.4656, allocations: 91.42 kB / 0.5384 GB, free: 4.316 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4656, allocations: 0 / 0.5384 GB, free: 4.316 MB / 414.1 MB Notification: Performance of Templates: time 0.2642/0.7299, allocations: 81.68 MB / 0.6181 GB, free: 125.7 MB / 462.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)