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.001118/0.001118, allocations: 104.3 kB / 16.41 MB, free: 6.457 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.001101/0.001101, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08988/0.08988, allocations: 22.33 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1122, allocations: 54.95 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005654/0.1179, allocations: 4.417 MB / 497.1 MB, free: 304 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.1207, allocations: 1.278 MB / 498.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006779/0.1214, allocations: 19.88 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005253/0.1219, allocations: 162.6 kB / 498.5 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1231, allocations: 437.5 kB / 499 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009696/0.1241, allocations: 311.5 kB / 499.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002623/0.1268, allocations: 2.173 MB / 0.4897 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.1289, allocations: 1.598 MB / 0.4913 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.1304, allocations: 0.8573 MB / 0.4921 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00187/0.1323, allocations: 0.966 MB / 0.493 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006697/0.133, allocations: 228 kB / 0.4933 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007468/0.1338, allocations: 232 kB / 0.4935 GB, free: 8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009836/0.1348, allocations: 0.6937 MB / 0.4942 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.1367, allocations: 0.9183 MB / 0.495 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002972/0.1397, allocations: 2.571 MB / 0.4976 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.1397, allocations: 0 / 0.4976 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1397, allocations: 0 / 0.4976 GB, free: 3.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.882e-05/0.1398, allocations: 4 kB / 0.4976 GB, free: 3.801 MB / 382.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.005051/0.1449, allocations: 2 MB / 0.4995 GB, free: 1.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.145, allocations: 12.03 kB / 0.4995 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.1452, allocations: 151.2 kB / 0.4997 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1465, allocations: 0.868 MB / 0.5005 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.1466, allocations: 120.6 kB / 0.5006 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/0.1469, allocations: 140.2 kB / 0.5008 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2411/0.3879, allocations: 1.589 MB / 0.5023 GB, free: 22.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.388, allocations: 0.625 kB / 0.5023 GB, free: 22.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.3882, allocations: 46.03 kB / 0.5024 GB, free: 22.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.503e-05/0.3882, allocations: 29.53 kB / 0.5024 GB, free: 22.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.3906, allocations: 1.405 MB / 0.5038 GB, free: 22.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.4014, allocations: 7.082 MB / 0.5107 GB, free: 19.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005213/0.4067, allocations: 1.87 MB / 0.5125 GB, free: 19.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.4083, allocations: 0.7397 MB / 0.5132 GB, free: 19.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.74e-05/0.4084, allocations: 15.48 kB / 0.5132 GB, free: 19.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.4084, allocations: 44.66 kB / 0.5133 GB, free: 19.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 5.441e-06/0.4084, allocations: 7.188 kB / 0.5133 GB, free: 19.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.007279/0.4157, allocations: 3.93 MB / 0.5171 GB, free: 16.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.4158, allocations: 62.16 kB / 0.5172 GB, free: 16.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.4169, allocations: 0.6784 MB / 0.5179 GB, free: 16.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.417, allocations: 47.77 kB / 0.5179 GB, free: 16.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003261/0.4173, allocations: 0.5104 MB / 0.5184 GB, free: 16.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004099/0.4177, allocations: 416.1 kB / 0.5188 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005376/0.4183, allocations: 242.9 kB / 0.519 GB, free: 15.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.4185, allocations: 414.5 kB / 0.5194 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.4198, allocations: 0.8423 MB / 0.5202 GB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4212, allocations: 1.003 MB / 0.5212 GB, free: 14.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/0.4343, allocations: 4.461 MB / 0.5256 GB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.706e-05/0.4344, allocations: 3.438 kB / 0.5256 GB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004434/0.4388, allocations: 2.474 MB / 0.528 GB, free: 11.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4389, allocations: 14.22 kB / 0.528 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.4389, allocations: 4.406 kB / 0.528 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.4405, allocations: 0.5323 MB / 0.5285 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.4424, allocations: 407.1 kB / 0.5289 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01468/0.4571, allocations: 23.05 MB / 0.5514 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.4585, allocations: 140.9 kB / 0.5516 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4586, allocations: 51.23 kB / 0.5516 GB, free: 3.586 MB / 398.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.0008467/0.4595, allocations: 443.6 kB / 0.552 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.4597, allocations: 92.48 kB / 0.5521 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003584/0.4633, allocations: 1.978 MB / 0.5541 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4633, allocations: 12 kB / 0.5541 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.4633, allocations: 4 kB / 0.5541 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4634, allocations: 7.922 kB / 0.5541 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006083/0.4694, allocations: 3.718 MB / 0.5577 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.4695, allocations: 0 / 0.5577 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/0.4715, allocations: 347.6 kB / 0.558 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.4728, allocations: 480.7 kB / 0.5585 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.473, allocations: 67.91 kB / 0.5586 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01615/0.4892, allocations: 22.16 MB / 0.5802 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.4892, allocations: 4.156 kB / 0.5802 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.4943, allocations: 2.724 MB / 0.5829 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/0.4947, allocations: 199.7 kB / 0.5831 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/0.4949, allocations: 63.97 kB / 0.5831 GB, free: 1.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007375/0.4957, allocations: 47.94 kB / 0.5832 GB, free: 1.477 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/0.496, allocations: 96.75 kB / 0.5833 GB, free: 1.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.219e-05/0.4961, allocations: 35.98 kB / 0.5833 GB, free: 1.344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006069/0.4967, allocations: 475 kB / 0.5838 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4967, allocations: 0 / 0.5838 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001554/0.4983, allocations: 0.5029 MB / 0.5842 GB, free: 384 kB / 430.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.0002621/0.4985, allocations: 180.3 kB / 0.5844 GB, free: 192 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004244/0.5028, allocations: 3.425 MB / 0.5878 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5028, allocations: 0 / 0.5878 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002649/0.5055, allocations: 2.46 MB / 0.5902 GB, free: 9.926 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.5068, allocations: 314.5 kB / 0.5905 GB, free: 9.625 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008931/0.5157, allocations: 5.657 MB / 0.596 GB, free: 3.938 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009178/0.5167, allocations: 1.274 MB / 0.5972 GB, free: 2.633 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005972/0.5173, allocations: 87.42 kB / 0.5973 GB, free: 2.551 MB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5173, allocations: 3.938 kB / 0.5973 GB, free: 2.547 MB / 446.1 MB Notification: Performance of Templates: time 0.0807/0.598, allocations: 81.98 MB / 0.6774 GB, free: 496 kB / 0.5137 GB 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)