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.0009887/0.0009889, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001045/0.001045, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.225/0.225, allocations: 22.33 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003367, allocations: 8 kB / 381.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3561, allocations: 55.98 MB / 437.8 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003245/0.3594, allocations: 3.621 MB / 441.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00223/0.3617, allocations: 1.303 MB / 442.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.362, allocations: 12.91 kB / 442.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.3623, allocations: 125.4 kB / 442.9 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004992/0.3628, allocations: 289.7 kB / 443.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.3635, allocations: 193 kB / 443.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.3647, allocations: 1.121 MB / 444.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.3659, allocations: 1.101 MB / 445.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005998/0.3665, allocations: 0.5684 MB / 446.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007081/0.3672, allocations: 0.6582 MB / 446.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.3674, allocations: 90.03 kB / 446.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.3676, allocations: 97.56 kB / 447 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004362/0.368, allocations: 496 kB / 447.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.3683, allocations: 307.3 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.37, allocations: 2.041 MB / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.37, allocations: 0 / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.37, allocations: 0 / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.889e-05/0.3701, allocations: 3.938 kB / 449.8 MB, free: 33.18 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003954/0.374, allocations: 1.799 MB / 451.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3741, allocations: 8.5 kB / 451.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000362/0.3744, allocations: 145.1 kB / 451.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.3759, allocations: 0.8385 MB / 452.6 MB, free: 31.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.376, allocations: 121 kB / 452.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00024/0.3763, allocations: 135.9 kB / 452.8 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.3789, allocations: 1.574 MB / 454.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.3789, allocations: 0 / 454.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.379, allocations: 47.41 kB / 454.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/0.3791, allocations: 33.23 kB / 454.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.3815, allocations: 1.409 MB / 455.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.3939, allocations: 7.202 MB / 463.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005392/0.3994, allocations: 1.88 MB / 465 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-05/0.3995, allocations: 19.81 kB / 465 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.3996, allocations: 51.94 kB / 465.1 MB, free: 24.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.367e-06/0.3996, allocations: 0 / 465.1 MB, free: 24.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007689/0.4073, allocations: 3.995 MB / 469.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.4074, allocations: 66.98 kB / 469.1 MB, free: 22.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.4086, allocations: 0.675 MB / 469.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.4088, allocations: 45.42 kB / 469.8 MB, free: 22.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004025/0.4092, allocations: 0.5023 MB / 470.3 MB, free: 21.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004488/0.4096, allocations: 409.8 kB / 470.7 MB, free: 21.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.4097, allocations: 30.69 kB / 470.8 MB, free: 21.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4099, allocations: 413.2 kB / 471.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.4114, allocations: 0.8439 MB / 472 MB, free: 20.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.4129, allocations: 0.9914 MB / 473 MB, free: 20.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.4144, allocations: 0.9544 MB / 474 MB, free: 19.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.4144, allocations: 1.094 kB / 474 MB, free: 19.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004667/0.4191, allocations: 2.47 MB / 476.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.4192, allocations: 7.281 kB / 476.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.4192, allocations: 9.875 kB / 476.5 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.421, allocations: 0.5508 MB / 477 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.4229, allocations: 396.4 kB / 477.4 MB, free: 18.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/0.4366, allocations: 21.6 MB / 499 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4385, allocations: 156.7 kB / 499.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.4386, allocations: 47.17 kB / 499.2 MB, free: 12.68 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001038/0.4397, allocations: 425.4 kB / 499.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.4399, allocations: 94.83 kB / 499.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.4436, allocations: 1.983 MB / 0.4899 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4436, allocations: 8 kB / 0.4899 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.4436, allocations: 11.95 kB / 0.4899 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.4436, allocations: 3.984 kB / 0.4899 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006199/0.4498, allocations: 3.543 MB / 0.4934 GB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.4499, allocations: 7.984 kB / 0.4934 GB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/0.4518, allocations: 335.9 kB / 0.4937 GB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.4531, allocations: 480.5 kB / 0.4942 GB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/0.4533, allocations: 67.95 kB / 0.4943 GB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/0.4706, allocations: 20.74 MB / 0.5145 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.4707, allocations: 4.031 kB / 0.5145 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005552/0.4763, allocations: 2.82 MB / 0.5173 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006616/0.477, allocations: 199.7 kB / 0.5175 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/0.4772, allocations: 59.97 kB / 0.5175 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.478, allocations: 75.77 kB / 0.5176 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003148/0.4783, allocations: 92.81 kB / 0.5177 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.4784, allocations: 39.98 kB / 0.5177 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006896/0.4791, allocations: 479 kB / 0.5182 GB, free: 10.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4791, allocations: 0 / 0.5182 GB, free: 10.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002095/0.4812, allocations: 0.4991 MB / 0.5187 GB, free: 10.37 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003177/0.4816, allocations: 185 kB / 0.5188 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004564/0.4861, allocations: 3.418 MB / 0.5222 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.4862, allocations: 320 / 0.5222 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002804/0.489, allocations: 2.471 MB / 0.5246 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.4902, allocations: 287.7 kB / 0.5249 GB, free: 3.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00984/0.5001, allocations: 6.484 MB / 0.5312 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.5011, allocations: 1.298 MB / 0.5325 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001295/0.5024, allocations: 355.6 kB / 0.5328 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/0.5028, allocations: 75.42 kB / 0.5329 GB, free: 11.35 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5028, allocations: 0 / 0.5329 GB, free: 11.35 MB / 414.1 MB Notification: Performance of Templates: time 0.03355/0.5363, allocations: 20.88 MB / 0.5533 GB, free: 6.703 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: