Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009394/0.000939, allocations: 99.62 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.001252/0.001252, 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.405/1.405, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2201/0.2201, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 8 kB / 381.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3502, allocations: 55.97 MB / 437.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.00369/0.3539, allocations: 3.611 MB / 441.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.3562, allocations: 1.298 MB / 442.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000316/0.3565, allocations: 16.5 kB / 442.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.3568, allocations: 126.9 kB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000454/0.3573, allocations: 290.5 kB / 443.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.3579, allocations: 197.3 kB / 443.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001064/0.359, allocations: 1.126 MB / 444.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.3601, allocations: 1.107 MB / 445.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005815/0.3607, allocations: 0.5571 MB / 446.1 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006811/0.3614, allocations: 0.6602 MB / 446.8 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.3616, allocations: 91.91 kB / 446.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.3618, allocations: 91.09 kB / 447 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/0.3621, allocations: 0.4922 MB / 447.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.3623, allocations: 308.2 kB / 447.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.3637, allocations: 2.042 MB / 449.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3637, allocations: 3.938 kB / 449.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3637, allocations: 0 / 449.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.894e-05/0.3637, allocations: 0 / 449.8 MB, free: 33.2 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.003786/0.3675, allocations: 1.795 MB / 451.6 MB, free: 32.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3676, allocations: 9.844 kB / 451.6 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.3679, allocations: 145.3 kB / 451.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.3693, allocations: 0.8384 MB / 452.6 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3694, allocations: 122.6 kB / 452.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.3697, allocations: 134.3 kB / 452.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.3722, allocations: 1.566 MB / 454.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.3722, allocations: 3.938 kB / 454.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.3723, allocations: 46.62 kB / 454.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.3724, allocations: 35.44 kB / 454.5 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00235/0.3747, allocations: 1.409 MB / 455.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.3866, allocations: 7.201 MB / 463.1 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004981/0.3917, allocations: 1.887 MB / 465 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.431e-05/0.3918, allocations: 14.75 kB / 465 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.3918, allocations: 44.41 kB / 465 MB, free: 25.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.446e-06/0.3918, allocations: 0 / 465 MB, free: 25.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007276/0.3991, allocations: 4 MB / 469 MB, free: 22.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3992, allocations: 67.5 kB / 469.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.4003, allocations: 0.6746 MB / 469.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.183e-05/0.4004, allocations: 41.52 kB / 469.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.4007, allocations: 0.5057 MB / 470.3 MB, free: 21.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.4011, allocations: 416.7 kB / 470.7 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.375e-05/0.4012, allocations: 25.41 kB / 470.8 MB, free: 21.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4013, allocations: 421.7 kB / 471.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.4026, allocations: 0.835 MB / 472 MB, free: 20.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.404, allocations: 0.9917 MB / 473 MB, free: 20.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.4055, allocations: 0.9566 MB / 473.9 MB, free: 19.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4055, allocations: 1.531 kB / 473.9 MB, free: 19.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004639/0.4102, allocations: 2.467 MB / 476.4 MB, free: 18.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.4102, allocations: 7.25 kB / 476.4 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.4103, allocations: 10.22 kB / 476.4 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001869/0.4121, allocations: 0.5502 MB / 477 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/0.414, allocations: 396.6 kB / 477.4 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01491/0.429, allocations: 21.59 MB / 499 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/0.4311, allocations: 164.5 kB / 499.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.4313, allocations: 47.94 kB / 499.2 MB, free: 12.69 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.001331/0.4326, allocations: 428.8 kB / 499.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/0.4329, allocations: 98.81 kB / 499.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003711/0.4366, allocations: 1.975 MB / 0.4899 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4366, allocations: 15.94 kB / 0.4899 GB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4367, allocations: 7.953 kB / 0.4899 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4367, allocations: 7.969 kB / 0.4899 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005978/0.4427, allocations: 3.547 MB / 0.4934 GB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.4427, allocations: 4.25 kB / 0.4934 GB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/0.4446, allocations: 339.6 kB / 0.4937 GB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.4458, allocations: 476.5 kB / 0.4942 GB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/0.446, allocations: 63.97 kB / 0.4942 GB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01639/0.4624, allocations: 20.74 MB / 0.5145 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.4624, allocations: 7.938 kB / 0.5145 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.4674, allocations: 2.816 MB / 0.5172 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004561/0.4679, allocations: 203.6 kB / 0.5174 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.4681, allocations: 59.92 kB / 0.5175 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007491/0.4688, allocations: 75.77 kB / 0.5176 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.4691, allocations: 96.8 kB / 0.5177 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.262e-05/0.4692, allocations: 31.98 kB / 0.5177 GB, free: 11.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006287/0.4699, allocations: 475 kB / 0.5181 GB, free: 10.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4699, allocations: 0 / 0.5181 GB, free: 10.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001774/0.4717, allocations: 0.4991 MB / 0.5186 GB, free: 10.39 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.0003006/0.472, allocations: 177 kB / 0.5188 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004376/0.4763, allocations: 3.429 MB / 0.5222 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4764, allocations: 4 kB / 0.5222 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002741/0.4791, allocations: 2.463 MB / 0.5246 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.4804, allocations: 290.5 kB / 0.5248 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.4905, allocations: 6.492 MB / 0.5312 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.4915, allocations: 1.287 MB / 0.5324 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001369/0.4929, allocations: 355.5 kB / 0.5328 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.4932, allocations: 79.42 kB / 0.5329 GB, free: 11.37 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4932, allocations: 0 / 0.5329 GB, free: 11.37 MB / 414.1 MB Notification: Performance of Templates: time 0.03305/0.5262, allocations: 20.88 MB / 0.5532 GB, free: 6.719 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1) Environment - environmentSimulation: