Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001115, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001296/0.001296, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.246/0.246, allocations: 22.33 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003908, allocations: 8 kB / 381.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3758, allocations: 55.98 MB / 437.8 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003072/0.3789, allocations: 3.644 MB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.3807, allocations: 1.31 MB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.381, allocations: 21.09 kB / 442.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.3812, allocations: 130.3 kB / 442.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004103/0.3817, allocations: 286 kB / 443.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.3822, allocations: 202 kB / 443.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.3833, allocations: 1.135 MB / 444.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.3844, allocations: 1.108 MB / 445.6 MB, free: 34.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006607/0.3851, allocations: 0.5969 MB / 446.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007142/0.3858, allocations: 0.6549 MB / 446.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.386, allocations: 90 kB / 447 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.3862, allocations: 91.16 kB / 447.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003169/0.3865, allocations: 486.4 kB / 447.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.3868, allocations: 306.7 kB / 447.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001234/0.388, allocations: 2.031 MB / 449.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.388, allocations: 0 / 449.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.388, allocations: 4 kB / 449.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.181e-05/0.3881, allocations: 2.844 kB / 449.9 MB, free: 33.1 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.003556/0.3916, allocations: 1.777 MB / 451.7 MB, free: 32.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3917, allocations: 15.11 kB / 451.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003051/0.392, allocations: 145.6 kB / 451.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.3933, allocations: 0.8436 MB / 452.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-05/0.3934, allocations: 118.7 kB / 452.8 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.3936, allocations: 139 kB / 452.9 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/0.396, allocations: 1.568 MB / 454.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/0.396, allocations: 0 / 454.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.3962, allocations: 44.62 kB / 454.5 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.3962, allocations: 34.62 kB / 454.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.3985, allocations: 1.402 MB / 456 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.4092, allocations: 7.175 MB / 463.1 MB, free: 25.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004814/0.414, allocations: 1.871 MB / 465 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.102e-05/0.4141, allocations: 18.64 kB / 465 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.4141, allocations: 39.75 kB / 465.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.456e-06/0.4141, allocations: 0 / 465.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006594/0.4207, allocations: 3.999 MB / 469.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.4208, allocations: 66.72 kB / 469.1 MB, free: 22.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009178/0.4217, allocations: 0.6688 MB / 469.8 MB, free: 22.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.083e-05/0.4218, allocations: 41.83 kB / 469.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.4221, allocations: 0.5186 MB / 470.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.4225, allocations: 415.5 kB / 470.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.93e-05/0.4226, allocations: 26.38 kB / 470.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4227, allocations: 417.7 kB / 471.2 MB, free: 20.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.424, allocations: 0.8338 MB / 472 MB, free: 20.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.4256, allocations: 0.9913 MB / 473 MB, free: 20 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.4272, allocations: 0.9581 MB / 474 MB, free: 19.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4272, allocations: 6.062 kB / 474 MB, free: 19.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004626/0.4318, allocations: 2.474 MB / 476.5 MB, free: 18.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.4319, allocations: 11.75 kB / 476.5 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.4319, allocations: 5.812 kB / 476.5 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001744/0.4337, allocations: 0.5469 MB / 477 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/0.4356, allocations: 403.8 kB / 477.4 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.4483, allocations: 21.59 MB / 499 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.45, allocations: 161 kB / 499.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.4501, allocations: 52.33 kB / 499.2 MB, free: 12.67 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = 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 (160): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009532/0.4511, allocations: 437.3 kB / 499.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/0.4512, allocations: 90.97 kB / 499.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.4548, allocations: 1.987 MB / 0.49 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4549, allocations: 15.95 kB / 0.49 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4549, allocations: 4 kB / 0.49 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.4549, allocations: 3.984 kB / 0.49 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006098/0.461, allocations: 3.696 MB / 0.4936 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.461, allocations: 0 / 0.4936 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/0.463, allocations: 347.9 kB / 0.4939 GB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001284/0.4643, allocations: 480.5 kB / 0.4944 GB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.4644, allocations: 71.91 kB / 0.4944 GB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01553/0.48, allocations: 20.73 MB / 0.5147 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.48, allocations: 4.031 kB / 0.5147 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004931/0.4849, allocations: 2.822 MB / 0.5174 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.4855, allocations: 187.8 kB / 0.5176 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.4857, allocations: 59.98 kB / 0.5177 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007931/0.4865, allocations: 75.77 kB / 0.5178 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.4868, allocations: 96.8 kB / 0.5178 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.744e-05/0.4869, allocations: 35.98 kB / 0.5179 GB, free: 11.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000664/0.4876, allocations: 467 kB / 0.5183 GB, free: 10.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4876, allocations: 7.938 kB / 0.5183 GB, free: 10.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001932/0.4895, allocations: 0.499 MB / 0.5188 GB, free: 10.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002829/0.4898, allocations: 196.2 kB / 0.519 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004457/0.4943, allocations: 3.418 MB / 0.5223 GB, free: 6.391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4943, allocations: 3.938 kB / 0.5224 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.497, allocations: 2.467 MB / 0.5248 GB, free: 3.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.4981, allocations: 280.7 kB / 0.525 GB, free: 3.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009673/0.5078, allocations: 6.533 MB / 0.5314 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009899/0.5089, allocations: 1.301 MB / 0.5327 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.5104, allocations: 363.8 kB / 0.533 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.5107, allocations: 79.42 kB / 0.5331 GB, free: 11.11 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5107, allocations: 0 / 0.5331 GB, free: 11.11 MB / 414.1 MB Notification: Performance of Templates: time 0.03477/0.5455, allocations: 20.92 MB / 0.5535 GB, free: 6.43 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1) Environment - environmentSimulation: