Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 86.95 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.00122/0.001221, 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.536/1.536, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2677/0.2677, allocations: 22.34 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003834, allocations: 8 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3967/0.3971, allocations: 55.97 MB / 437.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003519/0.4007, allocations: 3.953 MB / 441.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.4026, allocations: 1.247 MB / 443.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.4029, allocations: 14.5 kB / 443.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.4032, allocations: 116.4 kB / 443.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006018/0.4038, allocations: 411.3 kB / 443.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005908/0.4044, allocations: 196.3 kB / 443.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.4061, allocations: 2.248 MB / 446.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.4072, allocations: 1.116 MB / 447.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000614/0.4078, allocations: 0.6194 MB / 447.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009681/0.4088, allocations: 0.9052 MB / 448.7 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001654/0.409, allocations: 91.56 kB / 448.8 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002171/0.4092, allocations: 90.94 kB / 448.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00042/0.4096, allocations: 0.5591 MB / 449.5 MB, free: 33.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.4099, allocations: 308.4 kB / 449.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.4112, allocations: 2.053 MB / 451.8 MB, free: 32.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4112, allocations: 2.969 kB / 451.8 MB, free: 32.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4112, allocations: 0 / 451.8 MB, free: 32.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.4113, allocations: 0 / 451.8 MB, free: 32.52 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.00328/0.4146, allocations: 1.806 MB / 453.6 MB, free: 31.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4146, allocations: 11 kB / 453.6 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000288/0.4149, allocations: 146.2 kB / 453.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.4161, allocations: 0.838 MB / 454.6 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.51e-05/0.4162, allocations: 116.5 kB / 454.7 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.4164, allocations: 139.9 kB / 454.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.4195, allocations: 1.582 MB / 456.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.4196, allocations: 1.594 kB / 456.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.4197, allocations: 44.91 kB / 456.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.4197, allocations: 28.53 kB / 456.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.4223, allocations: 1.415 MB / 457.9 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.4327, allocations: 7.194 MB / 465.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004883/0.4377, allocations: 1.881 MB / 467 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.4388, allocations: 0.72 MB / 467.7 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.122e-05/0.4389, allocations: 22.89 kB / 467.8 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.4389, allocations: 44.59 kB / 467.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 4.959e-06/0.4389, allocations: 7.984 kB / 467.8 MB, free: 24.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.00676/0.4457, allocations: 3.996 MB / 471.8 MB, free: 21.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4458, allocations: 62.5 kB / 471.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.4471, allocations: 0.6751 MB / 472.5 MB, free: 21.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.4472, allocations: 41.48 kB / 472.6 MB, free: 21.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.4476, allocations: 0.5054 MB / 473.1 MB, free: 20.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000513/0.4482, allocations: 415 kB / 473.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.995e-05/0.4483, allocations: 25.53 kB / 473.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4485, allocations: 417.6 kB / 473.9 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.45, allocations: 0.844 MB / 474.8 MB, free: 19.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.4516, allocations: 0.9968 MB / 475.8 MB, free: 19.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.4534, allocations: 0.9536 MB / 476.7 MB, free: 18.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4534, allocations: 5.594 kB / 476.7 MB, free: 18.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005222/0.4586, allocations: 2.47 MB / 479.2 MB, free: 17.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.4587, allocations: 8 kB / 479.2 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.4587, allocations: 4.625 kB / 479.2 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/0.4605, allocations: 0.55 MB / 479.8 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/0.4624, allocations: 399.1 kB / 480.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.4766, allocations: 21.43 MB / 0.4898 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.4786, allocations: 154.8 kB / 0.49 GB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4787, allocations: 47.98 kB / 0.49 GB, free: 10.21 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 (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.001077/0.4798, allocations: 428 kB / 0.4904 GB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.48, allocations: 90.88 kB / 0.4905 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003719/0.4838, allocations: 1.979 MB / 0.4924 GB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4838, allocations: 8 kB / 0.4924 GB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4838, allocations: 12 kB / 0.4925 GB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4838, allocations: 3.984 kB / 0.4925 GB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/0.4898, allocations: 3.554 MB / 0.4959 GB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.4899, allocations: 4 kB / 0.4959 GB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.4917, allocations: 339.9 kB / 0.4963 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.493, allocations: 480.5 kB / 0.4967 GB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.4931, allocations: 63.97 kB / 0.4968 GB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/0.5082, allocations: 20.57 MB / 0.5169 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5082, allocations: 224 / 0.5169 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/0.5132, allocations: 2.725 MB / 0.5195 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000452/0.5137, allocations: 203.7 kB / 0.5197 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/0.5139, allocations: 63.97 kB / 0.5198 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/0.5146, allocations: 71.72 kB / 0.5199 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/0.5149, allocations: 100.8 kB / 0.52 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.402e-05/0.515, allocations: 35.98 kB / 0.52 GB, free: 9.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006655/0.5157, allocations: 475 kB / 0.5204 GB, free: 8.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5157, allocations: 0 / 0.5204 GB, free: 8.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001647/0.5173, allocations: 0.503 MB / 0.5209 GB, free: 8.203 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 (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.0002573/0.5176, allocations: 181 kB / 0.5211 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.522, allocations: 3.425 MB / 0.5244 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.522, allocations: 0 / 0.5244 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.5247, allocations: 2.46 MB / 0.5268 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.5261, allocations: 308.7 kB / 0.5271 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5375, allocations: 6.48 MB / 0.5335 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.5387, allocations: 1.27 MB / 0.5347 GB, free: 9.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001684/0.5404, allocations: 355.6 kB / 0.5351 GB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.5407, allocations: 75.42 kB / 0.5351 GB, free: 9.195 MB / 414.1 MB Notification: Performance of SimCode: time 3.266e-06/0.5407, allocations: 0 / 0.5351 GB, free: 9.195 MB / 414.1 MB Notification: Performance of Templates: time 0.03531/0.576, allocations: 20.92 MB / 0.5556 GB, free: 4.52 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)