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.0008478/0.0008478, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006709/0.006709, allocations: 169.3 kB / 16.26 MB, free: 6.328 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2017/0.2017, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 8 kB / 382.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3162, allocations: 55.98 MB / 438.6 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003888/0.3201, allocations: 4.197 MB / 442.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.3223, allocations: 1.271 MB / 444 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.3227, allocations: 19.44 kB / 444.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.323, allocations: 128.7 kB / 444.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006039/0.3236, allocations: 417 kB / 444.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006854/0.3243, allocations: 283.5 kB / 444.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001959/0.3262, allocations: 2.662 MB / 447.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.3275, allocations: 1.276 MB / 448.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000785/0.3283, allocations: 0.6341 MB / 449.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001264/0.3296, allocations: 0.9011 MB / 450.3 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002222/0.3298, allocations: 89.78 kB / 450.4 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.3301, allocations: 94.84 kB / 450.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.3305, allocations: 0.5429 MB / 451.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006746/0.3311, allocations: 0.7727 MB / 451.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001646/0.3328, allocations: 2.403 MB / 454.2 MB, free: 31.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3328, allocations: 4 kB / 454.2 MB, free: 31.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3328, allocations: 0 / 454.2 MB, free: 31.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.454e-05/0.3329, allocations: 0 / 454.2 MB, free: 31.51 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.004928/0.3378, allocations: 1.772 MB / 456 MB, free: 30.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.523e-05/0.3379, allocations: 9.891 kB / 456 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007198/0.3386, allocations: 148.8 kB / 456.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/0.3406, allocations: 0.8664 MB / 457 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.3408, allocations: 118.2 kB / 457.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004296/0.3413, allocations: 130.9 kB / 457.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004152/0.3454, allocations: 1.592 MB / 458.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.258e-05/0.3455, allocations: 5.984 kB / 458.9 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000191/0.3457, allocations: 49.62 kB / 458.9 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.491e-05/0.3458, allocations: 28.56 kB / 459 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003633/0.3494, allocations: 1.406 MB / 460.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01427/0.3637, allocations: 7.179 MB / 467.5 MB, free: 24.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006947/0.3707, allocations: 1.869 MB / 469.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001968/0.3727, allocations: 0.734 MB / 470.1 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.3728, allocations: 14.61 kB / 470.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.3729, allocations: 48.25 kB / 470.2 MB, free: 23.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 7.183e-06/0.3729, allocations: 0 / 470.2 MB, free: 23.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.01033/0.3833, allocations: 3.996 MB / 474.2 MB, free: 20.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.3833, allocations: 63.06 kB / 474.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.3847, allocations: 0.6786 MB / 474.9 MB, free: 20.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002417/0.385, allocations: 41.64 kB / 475 MB, free: 20.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004235/0.3854, allocations: 0.5198 MB / 475.5 MB, free: 19.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005528/0.386, allocations: 415.1 kB / 475.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.3862, allocations: 116.2 kB / 476 MB, free: 19.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3864, allocations: 418.6 kB / 476.4 MB, free: 18.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.3878, allocations: 0.8416 MB / 477.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.3893, allocations: 0.9989 MB / 478.3 MB, free: 18.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/0.4037, allocations: 4.664 MB / 482.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/0.4038, allocations: 4 kB / 482.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004622/0.4084, allocations: 2.492 MB / 485.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.4085, allocations: 8 kB / 485.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.4085, allocations: 4 kB / 485.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001652/0.4101, allocations: 0.555 MB / 486 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/0.412, allocations: 395.5 kB / 486.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01401/0.426, allocations: 21.45 MB / 0.4959 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.4278, allocations: 162.8 kB / 0.4961 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/0.4282, allocations: 47.98 kB / 0.4961 GB, free: 4.359 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.001327/0.4295, allocations: 440.4 kB / 0.4965 GB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004552/0.43, allocations: 86.97 kB / 0.4966 GB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/0.4344, allocations: 1.979 MB / 0.4986 GB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.4344, allocations: 12 kB / 0.4986 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.185e-05/0.4344, allocations: 11.94 kB / 0.4986 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/0.4345, allocations: 7.969 kB / 0.4986 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007515/0.442, allocations: 3.711 MB / 0.5022 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.442, allocations: 4 kB / 0.5022 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002101/0.4442, allocations: 347.8 kB / 0.5026 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.4456, allocations: 480.5 kB / 0.503 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/0.4459, allocations: 67.97 kB / 0.5031 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/0.4611, allocations: 20.59 MB / 0.5232 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4611, allocations: 4 kB / 0.5232 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005334/0.4665, allocations: 2.726 MB / 0.5259 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.4669, allocations: 191.7 kB / 0.526 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.4671, allocations: 63.98 kB / 0.5261 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009111/0.4681, allocations: 67.83 kB / 0.5262 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.4684, allocations: 100.8 kB / 0.5263 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4685, allocations: 35.98 kB / 0.5263 GB, free: 3.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006511/0.4691, allocations: 479 kB / 0.5267 GB, free: 2.652 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4691, allocations: 3.938 kB / 0.5268 GB, free: 2.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001698/0.4708, allocations: 0.4991 MB / 0.5272 GB, free: 2.148 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.0003124/0.4712, allocations: 181.8 kB / 0.5274 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004584/0.4757, allocations: 3.437 MB / 0.5308 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4758, allocations: 0 / 0.5308 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002819/0.4786, allocations: 2.464 MB / 0.5332 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.4801, allocations: 307.2 kB / 0.5335 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.4905, allocations: 6.649 MB / 0.54 GB, free: 4.684 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.4917, allocations: 1.274 MB / 0.5412 GB, free: 3.383 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.4931, allocations: 367.8 kB / 0.5416 GB, free: 3.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.4934, allocations: 75.42 kB / 0.5416 GB, free: 2.945 MB / 414.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4935, allocations: 0 / 0.5416 GB, free: 2.945 MB / 414.1 MB Notification: Performance of Templates: time 0.03745/0.5309, allocations: 21.53 MB / 0.5626 GB, free: 13.66 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.makefile (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)