Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.001095/0.001095, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08901/0.08901, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 67.89 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 54.95 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004935/0.1183, allocations: 3.339 MB / 496 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1211, allocations: 0.9274 MB / 496.9 MB, free: 484 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006026/0.1217, allocations: 15.88 kB / 497 MB, free: 468 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004409/0.1222, allocations: 95.14 kB / 497 MB, free: 372 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007026/0.1229, allocations: 262.4 kB / 497.3 MB, free: 108 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000717/0.1237, allocations: 191.7 kB / 497.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.1251, allocations: 1.233 MB / 498.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.1263, allocations: 0.8785 MB / 499.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007891/0.1271, allocations: 498.8 kB / 0.4884 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.1281, allocations: 0.5569 MB / 0.4889 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.1285, allocations: 132 kB / 0.489 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003726/0.1289, allocations: 132 kB / 0.4892 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004377/0.1293, allocations: 407 kB / 0.4895 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008593/0.1302, allocations: 0.5292 MB / 0.4901 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.1316, allocations: 1.457 MB / 0.4915 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1316, allocations: 0 / 0.4915 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1316, allocations: 4 kB / 0.4915 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.615e-05/0.1317, allocations: 0 / 0.4915 GB, free: 10.09 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002935/0.1346, allocations: 1.289 MB / 0.4928 GB, free: 8.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1346, allocations: 8.031 kB / 0.4928 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1348, allocations: 91.91 kB / 0.4928 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007936/0.1356, allocations: 0.5699 MB / 0.4934 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.978e-05/0.1357, allocations: 76.27 kB / 0.4935 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.1359, allocations: 84.28 kB / 0.4936 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.1374, allocations: 0.9249 MB / 0.4945 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1374, allocations: 0 / 0.4945 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.237e-05/0.1375, allocations: 32 kB / 0.4945 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1375, allocations: 20 kB / 0.4945 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.1387, allocations: 0.812 MB / 0.4953 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005339/0.1441, allocations: 3.935 MB / 0.4991 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.1466, allocations: 1.029 MB / 0.5001 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005714/0.1472, allocations: 414.4 kB / 0.5005 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.1473, allocations: 8.562 kB / 0.5006 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.1473, allocations: 35.12 kB / 0.5006 GB, free: 392 kB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.846e-06/0.1473, allocations: 0 / 0.5006 GB, free: 392 kB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.2596/0.4069, allocations: 2.363 MB / 0.5029 GB, free: 21.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.407, allocations: 56.53 kB / 0.5029 GB, free: 21.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.4075, allocations: 421.8 kB / 0.5034 GB, free: 21.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.965e-05/0.4076, allocations: 34.42 kB / 0.5034 GB, free: 21.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.4078, allocations: 327.3 kB / 0.5037 GB, free: 20.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.408, allocations: 233.3 kB / 0.5039 GB, free: 20.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.4082, allocations: 127.7 kB / 0.504 GB, free: 20.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.689e-05/0.4083, allocations: 367.7 kB / 0.5044 GB, free: 20.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005973/0.4089, allocations: 457.5 kB / 0.5048 GB, free: 20.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006309/0.4096, allocations: 0.4933 MB / 0.5053 GB, free: 20.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006924/0.4165, allocations: 2.35 MB / 0.5076 GB, free: 20.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.4166, allocations: 1.906 kB / 0.5076 GB, free: 20.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002492/0.4191, allocations: 1.342 MB / 0.5089 GB, free: 20.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.4191, allocations: 6.562 kB / 0.5089 GB, free: 20.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.4191, allocations: 1.844 kB / 0.5089 GB, free: 20.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.4202, allocations: 346.4 kB / 0.5093 GB, free: 20.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/0.4211, allocations: 186.2 kB / 0.5094 GB, free: 20.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008696/0.4298, allocations: 15.15 MB / 0.5242 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007999/0.4307, allocations: 72.5 kB / 0.5243 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.474e-05/0.4308, allocations: 21.53 kB / 0.5243 GB, free: 6.375 MB / 382.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005972/0.4314, allocations: 291.8 kB / 0.5246 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4315, allocations: 55.47 kB / 0.5246 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.4337, allocations: 1.14 MB / 0.5258 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.4338, allocations: 7.25 kB / 0.5258 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4338, allocations: 3.969 kB / 0.5258 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4338, allocations: 2.812 kB / 0.5258 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.4373, allocations: 2.119 MB / 0.5278 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.4373, allocations: 2.906 kB / 0.5278 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.4384, allocations: 166.2 kB / 0.528 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009693/0.4394, allocations: 306.7 kB / 0.5283 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.976e-05/0.4395, allocations: 31.58 kB / 0.5283 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009975/0.4495, allocations: 14.71 MB / 0.5427 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.4495, allocations: 1.219 kB / 0.5427 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003022/0.4526, allocations: 1.605 MB / 0.5443 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.4528, allocations: 144.6 kB / 0.5444 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.4529, allocations: 30.27 kB / 0.5444 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.4534, allocations: 32.2 kB / 0.5445 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.4536, allocations: 54.16 kB / 0.5445 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.306e-05/0.4537, allocations: 22.33 kB / 0.5445 GB, free: 5.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003975/0.4541, allocations: 298.8 kB / 0.5448 GB, free: 5.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4541, allocations: 0 / 0.5448 GB, free: 5.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001094/0.4552, allocations: 297.9 kB / 0.5451 GB, free: 5.422 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002167/0.4554, allocations: 140.2 kB / 0.5452 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002713/0.4581, allocations: 2.04 MB / 0.5472 GB, free: 3.828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4581, allocations: 320 / 0.5472 GB, free: 3.828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.4599, allocations: 1.563 MB / 0.5488 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008/0.4608, allocations: 168.1 kB / 0.5489 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005366/0.4661, allocations: 3.105 MB / 0.5519 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.4669, allocations: 1.008 MB / 0.5529 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.4673, allocations: 46.33 kB / 0.553 GB, free: 15.88 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4673, allocations: 0 / 0.553 GB, free: 15.88 MB / 414.1 MB Notification: Performance of Templates: time 0.03996/0.5072, allocations: 35.85 MB / 0.588 GB, free: 14.92 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)