Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 105.5 kB / 16.41 MB, free: 6.465 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.00186/0.00186, allocations: 187 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.35/1.35, 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.09101/0.09101, allocations: 22.33 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 55.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 54.96 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005913/0.1146, allocations: 4.39 MB / 497.1 MB, free: 344 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.1174, allocations: 1.274 MB / 498.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005867/0.1181, allocations: 15.88 kB / 498.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005183/0.1186, allocations: 174.6 kB / 498.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001128/0.1198, allocations: 445.5 kB / 499 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008941/0.1207, allocations: 303.6 kB / 499.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.123, allocations: 2.158 MB / 0.4897 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001817/0.1248, allocations: 1.598 MB / 0.4912 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.1259, allocations: 0.8223 MB / 0.492 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.1273, allocations: 0.9777 MB / 0.493 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003784/0.1277, allocations: 236 kB / 0.4932 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.1281, allocations: 236 kB / 0.4934 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005969/0.1287, allocations: 0.6976 MB / 0.4941 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009896/0.1297, allocations: 0.9222 MB / 0.495 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0023/0.1321, allocations: 2.59 MB / 0.4975 GB, free: 3.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1321, allocations: 4 kB / 0.4975 GB, free: 3.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1321, allocations: 0 / 0.4975 GB, free: 3.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.1321, allocations: 0 / 0.4975 GB, free: 3.836 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004811/0.1369, allocations: 2.019 MB / 0.4995 GB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.137, allocations: 12.03 kB / 0.4995 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.1373, allocations: 143.2 kB / 0.4997 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1389, allocations: 0.8641 MB / 0.5005 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.139, allocations: 116.6 kB / 0.5006 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.1393, allocations: 144.2 kB / 0.5008 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.207/0.3463, allocations: 1.589 MB / 0.5023 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.3464, allocations: 0 / 0.5023 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000204/0.3466, allocations: 46.22 kB / 0.5024 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/0.3466, allocations: 28.69 kB / 0.5024 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003816/0.3505, allocations: 1.415 MB / 0.5038 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01566/0.3661, allocations: 7.108 MB / 0.5107 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007443/0.3736, allocations: 1.895 MB / 0.5126 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002077/0.3758, allocations: 0.7209 MB / 0.5133 GB, free: 18.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/0.3759, allocations: 18.27 kB / 0.5133 GB, free: 18.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.376, allocations: 42.41 kB / 0.5133 GB, free: 18.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 4.298e-06/0.376, allocations: 1.125 kB / 0.5133 GB, free: 18.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=102): time 0.01063/0.3866, allocations: 3.937 MB / 0.5172 GB, free: 16.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.3867, allocations: 66.72 kB / 0.5172 GB, free: 16.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.3882, allocations: 0.6851 MB / 0.5179 GB, free: 15.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.3884, allocations: 44.33 kB / 0.5179 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.3888, allocations: 0.5012 MB / 0.5184 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005745/0.3894, allocations: 413 kB / 0.5188 GB, free: 15.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007103/0.3901, allocations: 242 kB / 0.5191 GB, free: 15.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.3903, allocations: 410.1 kB / 0.5194 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.3924, allocations: 0.8442 MB / 0.5203 GB, free: 14.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.3942, allocations: 1.007 MB / 0.5213 GB, free: 13.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01569/0.4099, allocations: 4.444 MB / 0.5256 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/0.41, allocations: 1.969 kB / 0.5256 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004494/0.4145, allocations: 2.467 MB / 0.528 GB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.4145, allocations: 8.406 kB / 0.528 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4146, allocations: 4.25 kB / 0.528 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/0.4163, allocations: 0.5402 MB / 0.5285 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.4181, allocations: 394.8 kB / 0.5289 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/0.4331, allocations: 23.05 MB / 0.5514 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.4346, allocations: 142.1 kB / 0.5516 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.4348, allocations: 51.02 kB / 0.5516 GB, free: 3.062 MB / 398.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: 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 (157): * Single equations (assignments): 142 * 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.0008755/0.4356, allocations: 419.5 kB / 0.552 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/0.4359, allocations: 94.42 kB / 0.5521 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.4396, allocations: 1.977 MB / 0.554 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.4396, allocations: 12 kB / 0.554 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4396, allocations: 4 kB / 0.5541 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.4396, allocations: 3.984 kB / 0.5541 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005987/0.4456, allocations: 3.552 MB / 0.5575 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4457, allocations: 5.781 kB / 0.5575 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001983/0.4477, allocations: 335.7 kB / 0.5579 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.4491, allocations: 482.7 kB / 0.5583 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001959/0.4493, allocations: 63.97 kB / 0.5584 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01571/0.465, allocations: 22.16 MB / 0.58 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.4651, allocations: 11.88 kB / 0.58 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004838/0.4699, allocations: 2.728 MB / 0.5827 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.4703, allocations: 199.7 kB / 0.5829 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.4705, allocations: 59.97 kB / 0.5829 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007621/0.4713, allocations: 55.94 kB / 0.583 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/0.4716, allocations: 96.75 kB / 0.5831 GB, free: 1.074 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.674e-05/0.4717, allocations: 31.98 kB / 0.5831 GB, free: 1.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006079/0.4723, allocations: 483 kB / 0.5836 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4723, allocations: 0 / 0.5836 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001572/0.4739, allocations: 0.4952 MB / 0.5841 GB, free: 80 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (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],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 (89): * Single equations (assignments): 74 * 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.0002958/0.4742, allocations: 184.3 kB / 0.5842 GB, free: 15.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004412/0.4786, allocations: 3.429 MB / 0.5876 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.4786, allocations: 8.188 kB / 0.5876 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002957/0.4816, allocations: 2.452 MB / 0.59 GB, free: 9.617 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001566/0.4832, allocations: 307.4 kB / 0.5903 GB, free: 9.328 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/0.4927, allocations: 5.627 MB / 0.5958 GB, free: 3.703 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009443/0.4937, allocations: 1.259 MB / 0.597 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007032/0.4944, allocations: 83.42 kB / 0.5971 GB, free: 2.336 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4944, allocations: 0 / 0.5971 GB, free: 2.336 MB / 446.1 MB Notification: Performance of Templates: time 0.07816/0.5726, allocations: 81.19 MB / 0.6764 GB, free: 1.078 MB / 0.5137 GB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)