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.001313/0.001313, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.223/0.223, allocations: 22.36 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 59.91 kB / 380.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3665, allocations: 54.95 MB / 435.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005097/0.3716, allocations: 4.42 MB / 440.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003201/0.3749, allocations: 1.283 MB / 441.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006131/0.3755, allocations: 19.53 kB / 441.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004761/0.376, allocations: 164.3 kB / 441.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008539/0.3769, allocations: 434.7 kB / 442.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.3779, allocations: 312.3 kB / 442.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.3799, allocations: 2.169 MB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.3816, allocations: 1.595 MB / 446.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008779/0.3825, allocations: 0.8379 MB / 447 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009958/0.3835, allocations: 0.9695 MB / 448 MB, free: 32.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002624/0.3838, allocations: 231.4 kB / 448.2 MB, free: 32.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003319/0.3841, allocations: 233.2 kB / 448.4 MB, free: 32.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004858/0.3846, allocations: 0.6979 MB / 449.1 MB, free: 32.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007575/0.3854, allocations: 0.9202 MB / 450 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.3871, allocations: 2.552 MB / 452.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.3871, allocations: 0 / 452.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3871, allocations: 0 / 452.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.3871, allocations: 0 / 452.6 MB, free: 30.57 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.004042/0.3912, allocations: 2.011 MB / 454.6 MB, free: 29.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.3913, allocations: 9.406 kB / 454.6 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003385/0.3916, allocations: 148.3 kB / 454.7 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.3929, allocations: 0.8673 MB / 455.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.3931, allocations: 118.7 kB / 455.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000282/0.3934, allocations: 140.2 kB / 455.9 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002964/0.3964, allocations: 1.59 MB / 457.5 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.3964, allocations: 0 / 457.5 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.3965, allocations: 54.14 kB / 457.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-05/0.3966, allocations: 28.22 kB / 457.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002552/0.3991, allocations: 1.407 MB / 458.9 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.4093, allocations: 7.138 MB / 466.1 MB, free: 22.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004654/0.414, allocations: 1.875 MB / 468 MB, free: 22.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4151, allocations: 0.7386 MB / 468.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.449e-05/0.4152, allocations: 10.66 kB / 468.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.4152, allocations: 48.44 kB / 468.8 MB, free: 21.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.136e-06/0.4152, allocations: 0 / 468.8 MB, free: 21.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006918/0.4222, allocations: 3.921 MB / 472.7 MB, free: 19.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4222, allocations: 63.41 kB / 472.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.4234, allocations: 0.682 MB / 473.4 MB, free: 19.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.4235, allocations: 41.61 kB / 473.5 MB, free: 18.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.4239, allocations: 0.5069 MB / 474 MB, free: 18.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004381/0.4243, allocations: 422.9 kB / 474.4 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000455/0.4248, allocations: 236.6 kB / 474.6 MB, free: 18.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4249, allocations: 415.3 kB / 475 MB, free: 17.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.4265, allocations: 0.8475 MB / 475.9 MB, free: 17.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.428, allocations: 0.9983 MB / 476.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/0.4429, allocations: 4.483 MB / 481.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.319e-05/0.443, allocations: 1.062 kB / 481.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004391/0.4474, allocations: 2.468 MB / 483.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.4474, allocations: 8 kB / 483.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.4475, allocations: 4 kB / 483.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/0.4491, allocations: 0.5394 MB / 484.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.4508, allocations: 411.5 kB / 484.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.4663, allocations: 23.05 MB / 0.4959 GB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.4684, allocations: 150.7 kB / 0.4961 GB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.4685, allocations: 51.98 kB / 0.4961 GB, free: 2.156 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.001122/0.4696, allocations: 429.1 kB / 0.4965 GB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.4698, allocations: 90.88 kB / 0.4966 GB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.4735, allocations: 1.987 MB / 0.4985 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.4735, allocations: 16 kB / 0.4986 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4735, allocations: 4 kB / 0.4986 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4735, allocations: 3.984 kB / 0.4986 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006143/0.4797, allocations: 3.712 MB / 0.5022 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.4797, allocations: 4.062 kB / 0.5022 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.4816, allocations: 343.6 kB / 0.5025 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001291/0.4829, allocations: 480.5 kB / 0.503 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.483, allocations: 59.97 kB / 0.503 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/0.4992, allocations: 22.17 MB / 0.5247 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.4993, allocations: 7.969 kB / 0.5247 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005672/0.505, allocations: 2.726 MB / 0.5274 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.5055, allocations: 191.8 kB / 0.5275 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003687/0.5059, allocations: 63.97 kB / 0.5276 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009478/0.5068, allocations: 47.94 kB / 0.5277 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003619/0.5072, allocations: 100.8 kB / 0.5277 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.5073, allocations: 39.92 kB / 0.5278 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007488/0.5081, allocations: 475 kB / 0.5282 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5081, allocations: 0 / 0.5282 GB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002041/0.5101, allocations: 0.5029 MB / 0.5287 GB, free: 14.29 MB / 414.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.0003389/0.5105, allocations: 185.8 kB / 0.5289 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006478/0.517, allocations: 3.996 MB / 0.5328 GB, free: 9.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.517, allocations: 0 / 0.5328 GB, free: 9.914 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002886/0.5199, allocations: 2.463 MB / 0.5352 GB, free: 7.254 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.5215, allocations: 312.9 kB / 0.5355 GB, free: 6.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.5317, allocations: 5.576 MB / 0.541 GB, free: 1.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.5328, allocations: 1.274 MB / 0.5422 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001411/0.5342, allocations: 367.8 kB / 0.5426 GB, free: 15.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/0.5345, allocations: 83.42 kB / 0.5426 GB, free: 15.59 MB / 430.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5346, allocations: 4 kB / 0.5426 GB, free: 15.59 MB / 430.1 MB Notification: Performance of Templates: time 0.04041/0.575, allocations: 22.75 MB / 0.5648 GB, free: 9.086 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)