Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008308/0.008308, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001942/0.001942, allocations: 197.3 kB / 16.79 MB, free: 6.254 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.357/1.357, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2067/0.2067, allocations: 22.36 MB / 313 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 59.91 kB / 380.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.264, allocations: 54.94 MB / 435.7 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004651/0.2687, allocations: 4.607 MB / 440.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.271, allocations: 1.288 MB / 441.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005994/0.2716, allocations: 20.09 kB / 441.6 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003574/0.272, allocations: 128.1 kB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007965/0.2728, allocations: 414.5 kB / 442.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008919/0.2737, allocations: 279.9 kB / 442.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.2761, allocations: 2.659 MB / 445.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.2779, allocations: 1.344 MB / 446.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008892/0.2788, allocations: 0.6955 MB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.2801, allocations: 0.979 MB / 448.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002767/0.2804, allocations: 113.5 kB / 448.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.2808, allocations: 114 kB / 448.3 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000514/0.2813, allocations: 0.5808 MB / 448.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008943/0.2822, allocations: 0.7976 MB / 449.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001696/0.2839, allocations: 2.093 MB / 451.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2839, allocations: 0 / 451.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.2839, allocations: 0 / 451.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.429e-05/0.284, allocations: 0 / 451.8 MB, free: 31.64 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.005811/0.2898, allocations: 2.015 MB / 453.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2898, allocations: 8.75 kB / 453.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003943/0.2902, allocations: 148.2 kB / 454 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.2919, allocations: 0.8673 MB / 454.8 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.2921, allocations: 114 kB / 454.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003583/0.2924, allocations: 139.6 kB / 455.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003941/0.2964, allocations: 1.587 MB / 456.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.2964, allocations: 3.938 kB / 456.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002013/0.2967, allocations: 50.58 kB / 456.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.204e-05/0.2967, allocations: 29.12 kB / 456.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003441/0.3001, allocations: 1.405 MB / 458.2 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0141/0.3143, allocations: 7.121 MB / 465.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007424/0.3217, allocations: 1.871 MB / 467.2 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.3235, allocations: 0.7375 MB / 467.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.3236, allocations: 14.45 kB / 467.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.3237, allocations: 45.2 kB / 467.9 MB, free: 22.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 5.781e-06/0.3237, allocations: 1.531 kB / 467.9 MB, free: 22.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.009847/0.3335, allocations: 3.923 MB / 471.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.3336, allocations: 71.22 kB / 471.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.3349, allocations: 0.6818 MB / 472.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.3351, allocations: 41.36 kB / 472.7 MB, free: 20.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003796/0.3355, allocations: 0.5083 MB / 473.2 MB, free: 19.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004402/0.3359, allocations: 415.3 kB / 473.6 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006195/0.3366, allocations: 239.7 kB / 473.8 MB, free: 19.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3367, allocations: 410.2 kB / 474.2 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.3384, allocations: 0.8525 MB / 475.1 MB, free: 18.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/0.3401, allocations: 0.9988 MB / 476.1 MB, free: 17.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/0.3539, allocations: 4.47 MB / 480.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.354, allocations: 1.125 kB / 480.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00422/0.3582, allocations: 2.467 MB / 483 MB, free: 13.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3582, allocations: 9.406 kB / 483 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.3583, allocations: 8 kB / 483 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.3599, allocations: 0.5434 MB / 483.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.3615, allocations: 399.5 kB / 484 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/0.3747, allocations: 21.42 MB / 0.4935 GB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.3763, allocations: 166.7 kB / 0.4937 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003662/0.3766, allocations: 55.97 kB / 0.4937 GB, free: 5.02 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.001194/0.3779, allocations: 429.3 kB / 0.4941 GB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004163/0.3783, allocations: 86.97 kB / 0.4942 GB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/0.3823, allocations: 1.983 MB / 0.4962 GB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.3823, allocations: 12 kB / 0.4962 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/0.3823, allocations: 7.938 kB / 0.4962 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.3823, allocations: 7.969 kB / 0.4962 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006611/0.3889, allocations: 3.711 MB / 0.4998 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.389, allocations: 0 / 0.4998 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/0.391, allocations: 347.6 kB / 0.5001 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.3924, allocations: 484.7 kB / 0.5006 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001761/0.3926, allocations: 63.97 kB / 0.5007 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01458/0.4071, allocations: 20.57 MB / 0.5208 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4072, allocations: 4.281 kB / 0.5208 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005296/0.4125, allocations: 2.726 MB / 0.5234 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/0.4129, allocations: 199.7 kB / 0.5236 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.4133, allocations: 63.97 kB / 0.5237 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009612/0.4142, allocations: 63.83 kB / 0.5237 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/0.4146, allocations: 104.8 kB / 0.5238 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.4147, allocations: 27.98 kB / 0.5239 GB, free: 3.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006868/0.4154, allocations: 479 kB / 0.5243 GB, free: 3.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4154, allocations: 3.938 kB / 0.5243 GB, free: 3.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001895/0.4173, allocations: 0.5029 MB / 0.5248 GB, free: 2.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.0002816/0.4176, allocations: 184.3 kB / 0.525 GB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.4221, allocations: 3.414 MB / 0.5283 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.4221, allocations: 4.375 kB / 0.5283 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002594/0.4247, allocations: 2.455 MB / 0.5307 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.4261, allocations: 306.7 kB / 0.531 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.4363, allocations: 6.187 MB / 0.5371 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.4376, allocations: 1.27 MB / 0.5383 GB, free: 4.555 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/0.4383, allocations: 83.42 kB / 0.5384 GB, free: 4.473 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4383, allocations: 0 / 0.5384 GB, free: 4.473 MB / 414.1 MB Notification: Performance of Templates: time 0.2559/0.6943, allocations: 81.68 MB / 0.6181 GB, free: 126 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)