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.001329/0.001329, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.319/1.319, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1937/0.1937, allocations: 22.34 MB / 313 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.91 kB / 380.8 MB, free: 11.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2334, allocations: 54.94 MB / 435.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.0043/0.2378, allocations: 4.58 MB / 440.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.2394, allocations: 1.278 MB / 441.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.2397, allocations: 13.62 kB / 441.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.24, allocations: 137.8 kB / 441.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005015/0.2405, allocations: 406.2 kB / 442.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005555/0.2411, allocations: 276.2 kB / 442.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.2426, allocations: 2.64 MB / 445 MB, free: 34.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.2438, allocations: 1.342 MB / 446.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.2444, allocations: 0.6757 MB / 447 MB, free: 33.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008675/0.2452, allocations: 0.9786 MB / 448 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.2454, allocations: 118 kB / 448.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000247/0.2457, allocations: 116.2 kB / 448.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004055/0.2461, allocations: 0.5857 MB / 448.8 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007181/0.2468, allocations: 0.7921 MB / 449.6 MB, free: 32.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.2481, allocations: 2.116 MB / 451.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2481, allocations: 0 / 451.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2481, allocations: 0 / 451.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.2481, allocations: 0 / 451.7 MB, free: 31.59 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.003727/0.2519, allocations: 2.024 MB / 453.7 MB, free: 30.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2519, allocations: 9.438 kB / 453.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.2522, allocations: 146.1 kB / 453.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.2533, allocations: 0.8603 MB / 454.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-05/0.2534, allocations: 113.2 kB / 454.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/0.2536, allocations: 138.3 kB / 455 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.2563, allocations: 1.597 MB / 456.6 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.2563, allocations: 0.6562 kB / 456.6 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.2565, allocations: 50.34 kB / 456.7 MB, free: 29.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.2565, allocations: 28.34 kB / 456.7 MB, free: 29.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002191/0.2587, allocations: 1.422 MB / 458.1 MB, free: 28.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009345/0.2681, allocations: 7.146 MB / 465.2 MB, free: 23.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/0.2727, allocations: 1.884 MB / 467.1 MB, free: 23.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.2738, allocations: 0.7266 MB / 467.9 MB, free: 22.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.093e-05/0.2739, allocations: 19.92 kB / 467.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.2739, allocations: 48.17 kB / 467.9 MB, free: 22.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.2739, allocations: 0 / 467.9 MB, free: 22.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.00657/0.2805, allocations: 3.934 MB / 471.9 MB, free: 20.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.2806, allocations: 63.17 kB / 471.9 MB, free: 20.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009398/0.2815, allocations: 0.6878 MB / 472.6 MB, free: 19.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.745e-05/0.2816, allocations: 41.61 kB / 472.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.2819, allocations: 0.503 MB / 473.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.2823, allocations: 410.1 kB / 473.6 MB, free: 19.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004155/0.2827, allocations: 237.3 kB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2829, allocations: 414.5 kB / 474.2 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.2841, allocations: 0.8465 MB / 475 MB, free: 18.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.2854, allocations: 1.003 MB / 476 MB, free: 17.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/0.298, allocations: 4.439 MB / 480.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.298, allocations: 1.125 kB / 480.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003958/0.302, allocations: 2.472 MB / 483 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.302, allocations: 13.75 kB / 483 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.302, allocations: 4 kB / 483 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.3037, allocations: 0.5394 MB / 483.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.3053, allocations: 395.5 kB / 483.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/0.3185, allocations: 21.42 MB / 0.4935 GB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.32, allocations: 158.8 kB / 0.4936 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.3202, allocations: 48 kB / 0.4937 GB, free: 5.027 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 (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.00087/0.3211, allocations: 417.4 kB / 0.4941 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/0.3214, allocations: 94.81 kB / 0.4942 GB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.3251, allocations: 1.975 MB / 0.4961 GB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.3252, allocations: 15.94 kB / 0.4961 GB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.3252, allocations: 8 kB / 0.4961 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.3252, allocations: 11.91 kB / 0.4961 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005837/0.331, allocations: 3.554 MB / 0.4996 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.3311, allocations: 3.938 kB / 0.4996 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002074/0.3332, allocations: 339.9 kB / 0.4999 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.3345, allocations: 476.5 kB / 0.5004 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/0.3347, allocations: 59.97 kB / 0.5004 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/0.349, allocations: 20.59 MB / 0.5205 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.349, allocations: 0 / 0.5205 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/0.3538, allocations: 2.737 MB / 0.5232 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.3541, allocations: 191.8 kB / 0.5234 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.3543, allocations: 63.97 kB / 0.5235 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007907/0.3551, allocations: 75.77 kB / 0.5235 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.3554, allocations: 96.75 kB / 0.5236 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.674e-05/0.3555, allocations: 27.98 kB / 0.5236 GB, free: 3.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006455/0.3562, allocations: 483 kB / 0.5241 GB, free: 3.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.3562, allocations: 4 kB / 0.5241 GB, free: 3.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00158/0.3578, allocations: 0.5067 MB / 0.5246 GB, free: 2.992 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 (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.0002634/0.3581, allocations: 185.9 kB / 0.5248 GB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004059/0.3621, allocations: 3.405 MB / 0.5281 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3621, allocations: 0 / 0.5281 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.3648, allocations: 2.464 MB / 0.5305 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.366, allocations: 301.2 kB / 0.5308 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009741/0.3758, allocations: 6.119 MB / 0.5368 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009883/0.3768, allocations: 1.268 MB / 0.538 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006212/0.3774, allocations: 87.36 kB / 0.5381 GB, free: 4.695 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3774, allocations: 0 / 0.5381 GB, free: 4.695 MB / 414.1 MB Notification: Performance of Templates: time 0.2328/0.6102, allocations: 81.03 MB / 0.6172 GB, free: 126.1 MB / 462.1 MB 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)