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.001141/0.001141, allocations: 101.9 kB / 16.4 MB, free: 6.461 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.001198/0.001198, allocations: 192.2 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09334/0.09334, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 68.03 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1085, 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.005252/0.1137, allocations: 4.419 MB / 497.1 MB, free: 304 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.1162, allocations: 1.278 MB / 498.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004813/0.1167, allocations: 19.88 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004428/0.1171, allocations: 166.5 kB / 498.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009516/0.1181, allocations: 453.5 kB / 499 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008334/0.1189, allocations: 303.6 kB / 499.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002192/0.1211, allocations: 2.177 MB / 0.4897 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/0.1231, allocations: 1.602 MB / 0.4913 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.1242, allocations: 0.8534 MB / 0.4921 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.1254, allocations: 0.966 MB / 0.4931 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002724/0.1256, allocations: 232 kB / 0.4933 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003009/0.1259, allocations: 228 kB / 0.4935 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000539/0.1265, allocations: 0.6976 MB / 0.4942 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009445/0.1274, allocations: 0.9106 MB / 0.4951 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.1296, allocations: 2.579 MB / 0.4976 GB, free: 3.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1296, allocations: 0 / 0.4976 GB, free: 3.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1297, allocations: 0 / 0.4976 GB, free: 3.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.376e-05/0.1297, allocations: 0 / 0.4976 GB, free: 3.785 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.004507/0.1342, allocations: 2.004 MB / 0.4995 GB, free: 1.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1343, allocations: 8.031 kB / 0.4995 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.1346, allocations: 151.2 kB / 0.4997 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.1358, allocations: 0.8719 MB / 0.5005 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.1359, allocations: 116.6 kB / 0.5007 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002457/0.1362, allocations: 140.2 kB / 0.5008 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2243/0.3605, allocations: 1.586 MB / 0.5023 GB, free: 21.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.3605, allocations: 0.625 kB / 0.5023 GB, free: 21.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.3607, allocations: 46.42 kB / 0.5024 GB, free: 21.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.3607, allocations: 30.97 kB / 0.5024 GB, free: 21.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002255/0.363, allocations: 1.41 MB / 0.5038 GB, free: 21.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.3732, allocations: 7.085 MB / 0.5107 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004773/0.378, allocations: 1.876 MB / 0.5125 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.3792, allocations: 0.7384 MB / 0.5133 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.928e-05/0.3793, allocations: 13.48 kB / 0.5133 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.3794, allocations: 50.17 kB / 0.5133 GB, free: 18.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 2.735e-06/0.3794, allocations: 1.125 kB / 0.5133 GB, free: 18.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.006862/0.3862, allocations: 3.927 MB / 0.5172 GB, free: 16.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.3863, allocations: 70.53 kB / 0.5172 GB, free: 16.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.3874, allocations: 0.6748 MB / 0.5179 GB, free: 16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.3875, allocations: 41.52 kB / 0.5179 GB, free: 15.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.3879, allocations: 0.5136 MB / 0.5184 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.3883, allocations: 416.9 kB / 0.5188 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004549/0.3888, allocations: 241.1 kB / 0.5191 GB, free: 15.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3889, allocations: 410 kB / 0.5194 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.3902, allocations: 0.8481 MB / 0.5203 GB, free: 14.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3916, allocations: 1.005 MB / 0.5213 GB, free: 13.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01355/0.4052, allocations: 4.463 MB / 0.5256 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.4052, allocations: 2.438 kB / 0.5256 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004388/0.4096, allocations: 2.466 MB / 0.528 GB, free: 10.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.4097, allocations: 14.14 kB / 0.528 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4097, allocations: 4.406 kB / 0.528 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.4114, allocations: 0.5356 MB / 0.5286 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/0.4133, allocations: 403.5 kB / 0.5289 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/0.4276, allocations: 23.05 MB / 0.5515 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.429, allocations: 142.2 kB / 0.5516 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.4292, allocations: 51.86 kB / 0.5516 GB, free: 3.047 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.0008498/0.43, allocations: 437.4 kB / 0.5521 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.4302, allocations: 89.27 kB / 0.5521 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003576/0.4338, allocations: 1.98 MB / 0.5541 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4339, allocations: 14.08 kB / 0.5541 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.4339, allocations: 6.156 kB / 0.5541 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.4339, allocations: 3.984 kB / 0.5541 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005794/0.4397, allocations: 3.717 MB / 0.5577 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.4397, allocations: 0 / 0.5577 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.4417, allocations: 347.6 kB / 0.5581 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.443, allocations: 488.4 kB / 0.5585 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/0.4432, allocations: 67.91 kB / 0.5586 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/0.4575, allocations: 22.16 MB / 0.5802 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4576, allocations: 4.031 kB / 0.5802 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.4623, allocations: 2.724 MB / 0.5829 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003798/0.4627, allocations: 195.7 kB / 0.5831 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/0.4629, allocations: 63.97 kB / 0.5831 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007451/0.4637, allocations: 47.94 kB / 0.5832 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.464, allocations: 100.8 kB / 0.5833 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.4641, allocations: 35.98 kB / 0.5833 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005924/0.4647, allocations: 475 kB / 0.5838 GB, free: 316 kB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4647, allocations: 0 / 0.5838 GB, free: 316 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001571/0.4662, allocations: 0.5029 MB / 0.5843 GB, free: 15.8 MB / 446.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.000299/0.4666, allocations: 180.2 kB / 0.5844 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004371/0.4709, allocations: 3.421 MB / 0.5878 GB, free: 12.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.471, allocations: 1.312 kB / 0.5878 GB, free: 12.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.4736, allocations: 2.459 MB / 0.5902 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.4749, allocations: 319.6 kB / 0.5905 GB, free: 9.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008956/0.4838, allocations: 5.662 MB / 0.596 GB, free: 3.398 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008905/0.4848, allocations: 1.272 MB / 0.5972 GB, free: 2.094 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/0.4854, allocations: 91.36 kB / 0.5973 GB, free: 2.008 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4854, allocations: 0 / 0.5973 GB, free: 2.008 MB / 446.1 MB Notification: Performance of Templates: time 0.07282/0.5582, allocations: 81.82 MB / 0.6772 GB, free: 112 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)