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.0008666/0.0008666, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008827/0.0008828, allocations: 168.7 kB / 15.95 MB, free: 204 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.476/1.476, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2139/0.2139, allocations: 22.34 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004701, allocations: 16 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3399, allocations: 55.97 MB / 437.9 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004199/0.3442, allocations: 3.963 MB / 441.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.3465, allocations: 1.254 MB / 443.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003123/0.3468, allocations: 18.88 kB / 443.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.3471, allocations: 116.8 kB / 443.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005138/0.3476, allocations: 416.4 kB / 443.7 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.3482, allocations: 199.9 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.3497, allocations: 2.275 MB / 446.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.3508, allocations: 1.109 MB / 447.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006072/0.3514, allocations: 0.6397 MB / 447.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009837/0.3524, allocations: 0.9064 MB / 448.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.3525, allocations: 90.91 kB / 448.9 MB, free: 33.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.3528, allocations: 88.03 kB / 449 MB, free: 33.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004161/0.3532, allocations: 0.5513 MB / 449.5 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.3535, allocations: 309.5 kB / 449.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.3547, allocations: 2.029 MB / 451.8 MB, free: 32.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3547, allocations: 4 kB / 451.9 MB, free: 32.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3547, allocations: 0 / 451.9 MB, free: 32.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.3548, allocations: 2.625 kB / 451.9 MB, free: 32.42 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.003376/0.3581, allocations: 1.786 MB / 453.6 MB, free: 31.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3582, allocations: 10.88 kB / 453.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.3585, allocations: 147.3 kB / 453.8 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.3596, allocations: 0.8453 MB / 454.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.333e-05/0.3597, allocations: 124.8 kB / 454.8 MB, free: 30.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002069/0.3599, allocations: 136.5 kB / 454.9 MB, free: 30.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.3628, allocations: 1.573 MB / 456.5 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.3628, allocations: 0 / 456.5 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.3629, allocations: 54.56 kB / 456.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.363, allocations: 27.81 kB / 456.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002325/0.3653, allocations: 1.403 MB / 458 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.3754, allocations: 7.182 MB / 465.1 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/0.3801, allocations: 1.861 MB / 467 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.3814, allocations: 0.7357 MB / 467.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.354e-05/0.3815, allocations: 15.64 kB / 467.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3815, allocations: 43.94 kB / 467.8 MB, free: 23.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 4.458e-06/0.3815, allocations: 0 / 467.8 MB, free: 23.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007534/0.3891, allocations: 3.991 MB / 471.8 MB, free: 21.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3891, allocations: 62.55 kB / 471.8 MB, free: 21.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.3906, allocations: 0.6697 MB / 472.5 MB, free: 21.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.3907, allocations: 40.86 kB / 472.6 MB, free: 21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003668/0.3911, allocations: 0.5199 MB / 473.1 MB, free: 20.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004489/0.3916, allocations: 415.8 kB / 473.5 MB, free: 20.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3917, allocations: 25.5 kB / 473.5 MB, free: 20.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3919, allocations: 417.8 kB / 473.9 MB, free: 19.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.3935, allocations: 0.8372 MB / 474.7 MB, free: 19.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.395, allocations: 0.9949 MB / 475.7 MB, free: 19.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.3966, allocations: 0.9564 MB / 476.7 MB, free: 18.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.3967, allocations: 2.188 kB / 476.7 MB, free: 18.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004959/0.4016, allocations: 2.476 MB / 479.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.4017, allocations: 11.7 kB / 479.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.4017, allocations: 5.562 kB / 479.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.4034, allocations: 0.5454 MB / 479.7 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/0.4052, allocations: 400.6 kB / 480.1 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.4181, allocations: 21.44 MB / 0.4898 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.4197, allocations: 158.8 kB / 0.49 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003426/0.4201, allocations: 51.98 kB / 0.49 GB, free: 10.18 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.001268/0.4213, allocations: 430.8 kB / 0.4904 GB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003557/0.4217, allocations: 90.91 kB / 0.4905 GB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003987/0.4257, allocations: 1.99 MB / 0.4925 GB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.4257, allocations: 15.95 kB / 0.4925 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/0.4258, allocations: 4 kB / 0.4925 GB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.4258, allocations: 3.984 kB / 0.4925 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007228/0.433, allocations: 3.7 MB / 0.4961 GB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.4331, allocations: 7.938 kB / 0.4961 GB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.435, allocations: 343.9 kB / 0.4964 GB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.4363, allocations: 476.5 kB / 0.4969 GB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001829/0.4365, allocations: 63.97 kB / 0.4969 GB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01593/0.4525, allocations: 20.59 MB / 0.517 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4525, allocations: 4.031 kB / 0.5171 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005914/0.4584, allocations: 2.719 MB / 0.5197 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000635/0.4591, allocations: 191.8 kB / 0.5199 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004013/0.4595, allocations: 63.97 kB / 0.5199 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.4606, allocations: 79.72 kB / 0.52 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003867/0.461, allocations: 100.8 kB / 0.5201 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.4611, allocations: 28 kB / 0.5201 GB, free: 8.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000797/0.4619, allocations: 475 kB / 0.5206 GB, free: 8.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.4619, allocations: 0 / 0.5206 GB, free: 8.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002104/0.464, allocations: 0.5029 MB / 0.5211 GB, free: 8.004 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.0003676/0.4644, allocations: 180.3 kB / 0.5213 GB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005154/0.4696, allocations: 3.421 MB / 0.5246 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.4696, allocations: 0 / 0.5246 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.4724, allocations: 2.471 MB / 0.527 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.4739, allocations: 309.9 kB / 0.5273 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.4848, allocations: 6.535 MB / 0.5337 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.4862, allocations: 1.276 MB / 0.5349 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.4877, allocations: 371.8 kB / 0.5353 GB, free: 8.984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.4882, allocations: 75.42 kB / 0.5354 GB, free: 8.91 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4882, allocations: 0 / 0.5354 GB, free: 8.91 MB / 414.1 MB Notification: Performance of Templates: time 0.03495/0.5231, allocations: 20.94 MB / 0.5558 GB, free: 4.223 MB / 430.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)