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.001355/0.001355, allocations: 108 kB / 15.61 MB, free: 152 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.001598/0.001598, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2484/0.2484, allocations: 22.36 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 67.89 kB / 380.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3686, allocations: 54.94 MB / 435.8 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005054/0.3737, allocations: 4.384 MB / 440.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.3769, allocations: 1.275 MB / 441.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.3775, allocations: 16.12 kB / 441.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004108/0.3779, allocations: 161.7 kB / 441.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008273/0.3788, allocations: 434.3 kB / 442 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.3799, allocations: 305 kB / 442.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.3819, allocations: 2.152 MB / 444.5 MB, free: 34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.3835, allocations: 1.601 MB / 446.1 MB, free: 33.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008141/0.3843, allocations: 0.8161 MB / 446.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.3855, allocations: 0.9809 MB / 447.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003363/0.3859, allocations: 236.3 kB / 448.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004106/0.3863, allocations: 241.8 kB / 448.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005981/0.3869, allocations: 0.7016 MB / 449.1 MB, free: 32.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008635/0.3878, allocations: 0.9179 MB / 450 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001852/0.3897, allocations: 2.575 MB / 452.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3897, allocations: 3.281 kB / 452.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3897, allocations: 0 / 452.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.3897, allocations: 0 / 452.5 MB, free: 30.66 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.004393/0.3941, allocations: 2.02 MB / 454.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3942, allocations: 9.281 kB / 454.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.3945, allocations: 154.9 kB / 454.7 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.3958, allocations: 0.8574 MB / 455.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.3959, allocations: 117.4 kB / 455.7 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002732/0.3962, allocations: 138.9 kB / 455.8 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002898/0.3991, allocations: 1.589 MB / 457.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.3991, allocations: 0 / 457.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.3993, allocations: 46.12 kB / 457.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.843e-05/0.3993, allocations: 29.28 kB / 457.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002563/0.4019, allocations: 1.419 MB / 458.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.4123, allocations: 7.166 MB / 466.1 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004905/0.4173, allocations: 1.885 MB / 468 MB, free: 22.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.4184, allocations: 0.7283 MB / 468.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.519e-05/0.4185, allocations: 22.52 kB / 468.7 MB, free: 22.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.4185, allocations: 41.45 kB / 468.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.945e-06/0.4185, allocations: 0 / 468.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007256/0.4258, allocations: 3.934 MB / 472.7 MB, free: 19.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.4258, allocations: 61.31 kB / 472.8 MB, free: 19.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.4271, allocations: 0.692 MB / 473.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.4272, allocations: 42.14 kB / 473.5 MB, free: 19.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004017/0.4276, allocations: 0.5029 MB / 474 MB, free: 18.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004467/0.4281, allocations: 409.8 kB / 474.4 MB, free: 18.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004604/0.4286, allocations: 237.6 kB / 474.6 MB, free: 18.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.4288, allocations: 410.8 kB / 475 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.4303, allocations: 0.8464 MB / 475.9 MB, free: 17.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.4318, allocations: 1.003 MB / 476.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0145/0.4463, allocations: 4.461 MB / 481.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/0.4464, allocations: 2.344 kB / 481.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004141/0.4505, allocations: 2.469 MB / 483.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.4506, allocations: 10.19 kB / 483.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4506, allocations: 4 kB / 483.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.4522, allocations: 0.5395 MB / 484.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.4538, allocations: 399.5 kB / 484.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01661/0.4704, allocations: 23.05 MB / 0.4959 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.4722, allocations: 142.8 kB / 0.496 GB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.4724, allocations: 55.98 kB / 0.4961 GB, free: 2.18 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.001034/0.4734, allocations: 418.6 kB / 0.4965 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.4736, allocations: 90.88 kB / 0.4966 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.4774, allocations: 1.983 MB / 0.4985 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.4774, allocations: 16 kB / 0.4985 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.4774, allocations: 4 kB / 0.4985 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.4774, allocations: 3.984 kB / 0.4985 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005702/0.4831, allocations: 3.554 MB / 0.502 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.4832, allocations: 256 / 0.502 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.4851, allocations: 335.7 kB / 0.5023 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/0.4865, allocations: 480.5 kB / 0.5028 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/0.4867, allocations: 67.95 kB / 0.5028 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01692/0.5036, allocations: 22.17 MB / 0.5245 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.5037, allocations: 0 / 0.5245 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005737/0.5094, allocations: 2.736 MB / 0.5272 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006443/0.5101, allocations: 203.6 kB / 0.5274 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002329/0.5104, allocations: 59.97 kB / 0.5274 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000792/0.5112, allocations: 59.92 kB / 0.5275 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003822/0.5116, allocations: 96.75 kB / 0.5276 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.5117, allocations: 31.98 kB / 0.5276 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007467/0.5124, allocations: 479 kB / 0.5281 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5124, allocations: 0 / 0.5281 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001906/0.5143, allocations: 0.4991 MB / 0.5285 GB, free: 14.49 MB / 414.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.0003357/0.5147, allocations: 176.9 kB / 0.5287 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005887/0.5206, allocations: 3.983 MB / 0.5326 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.5206, allocations: 9.25 kB / 0.5326 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.5236, allocations: 2.451 MB / 0.535 GB, free: 7.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.5251, allocations: 314.3 kB / 0.5353 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009668/0.5348, allocations: 5.527 MB / 0.5407 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.5359, allocations: 1.266 MB / 0.5419 GB, free: 316 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.5371, allocations: 355.7 kB / 0.5423 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.5374, allocations: 79.36 kB / 0.5424 GB, free: 15.88 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.5374, allocations: 0 / 0.5424 GB, free: 15.88 MB / 430.1 MB Notification: Performance of Templates: time 0.03631/0.5737, allocations: 22.72 MB / 0.5645 GB, free: 9.398 MB / 446.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)