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.00109/0.00109, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001331/0.001331, allocations: 197.3 kB / 16.26 MB, free: 6.629 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.328/1.328, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2006/0.2006, allocations: 22.34 MB / 312.4 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 64.09 kB / 380.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2473, allocations: 54.94 MB / 435.2 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005003/0.2524, allocations: 4.603 MB / 439.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.2541, allocations: 1.29 MB / 441.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000266/0.2544, allocations: 16.25 kB / 441.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.2547, allocations: 132.4 kB / 441.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005157/0.2552, allocations: 407.3 kB / 441.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005481/0.2558, allocations: 278.6 kB / 441.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.2572, allocations: 2.177 MB / 444.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.2585, allocations: 1.593 MB / 445.7 MB, free: 33.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000705/0.2592, allocations: 0.855 MB / 446.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008814/0.2601, allocations: 1.045 MB / 447.6 MB, free: 32.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.2603, allocations: 229 kB / 447.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002538/0.2606, allocations: 230.6 kB / 448.1 MB, free: 32.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003811/0.261, allocations: 0.6977 MB / 448.8 MB, free: 31.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006302/0.2616, allocations: 0.9175 MB / 449.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001464/0.2631, allocations: 2.557 MB / 452.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2631, allocations: 0 / 452.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2631, allocations: 0 / 452.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.232e-05/0.2632, allocations: 4 kB / 452.2 MB, free: 30.45 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.003876/0.267, allocations: 2.002 MB / 454.2 MB, free: 29.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2671, allocations: 9.188 kB / 454.2 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002772/0.2674, allocations: 150.4 kB / 454.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.2684, allocations: 0.8685 MB / 455.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.2686, allocations: 118.7 kB / 455.4 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.2688, allocations: 140.7 kB / 455.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.2714, allocations: 1.589 MB / 457.1 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.2714, allocations: 1.281 kB / 457.1 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.2715, allocations: 49.03 kB / 457.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.2716, allocations: 29.66 kB / 457.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002244/0.2738, allocations: 1.406 MB / 458.6 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00912/0.2829, allocations: 7.116 MB / 465.7 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004737/0.2877, allocations: 1.875 MB / 467.6 MB, free: 22.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.2888, allocations: 0.7386 MB / 468.3 MB, free: 21.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.557e-05/0.2889, allocations: 14.31 kB / 468.3 MB, free: 21.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.2889, allocations: 43.81 kB / 468.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.695e-06/0.2889, allocations: 1.344 kB / 468.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006655/0.2956, allocations: 3.925 MB / 472.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2956, allocations: 63.06 kB / 472.4 MB, free: 19.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009705/0.2966, allocations: 0.6807 MB / 473 MB, free: 18.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.2967, allocations: 46.2 kB / 473.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/0.297, allocations: 0.5066 MB / 473.6 MB, free: 18.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.2974, allocations: 416 kB / 474 MB, free: 18.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.2978, allocations: 247.6 kB / 474.2 MB, free: 18.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2979, allocations: 419.1 kB / 474.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.2992, allocations: 0.8396 MB / 475.5 MB, free: 17.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.3005, allocations: 0.9987 MB / 476.5 MB, free: 16.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01309/0.3136, allocations: 4.488 MB / 481 MB, free: 14.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.806e-05/0.3137, allocations: 2.094 kB / 481 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003948/0.3176, allocations: 2.469 MB / 483.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.3177, allocations: 8 kB / 483.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3177, allocations: 7.984 kB / 483.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.3193, allocations: 0.5356 MB / 484 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.321, allocations: 403.5 kB / 484.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.3346, allocations: 23.05 MB / 0.4956 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.3361, allocations: 166.7 kB / 0.4957 GB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.3362, allocations: 48 kB / 0.4958 GB, free: 2.188 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.000838/0.3371, allocations: 432.3 kB / 0.4962 GB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.3373, allocations: 90.88 kB / 0.4963 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/0.3408, allocations: 1.983 MB / 0.4982 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3409, allocations: 8 kB / 0.4982 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.3409, allocations: 4 kB / 0.4982 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.3409, allocations: 11.97 kB / 0.4982 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005965/0.3469, allocations: 3.708 MB / 0.5018 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.036e-06/0.3469, allocations: 7.938 kB / 0.5018 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/0.349, allocations: 343.6 kB / 0.5022 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.3504, allocations: 472.8 kB / 0.5026 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.3505, allocations: 67.97 kB / 0.5027 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/0.3651, allocations: 22.17 MB / 0.5243 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.3652, allocations: 11.92 kB / 0.5244 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004814/0.37, allocations: 2.726 MB / 0.527 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004519/0.3705, allocations: 191.8 kB / 0.5272 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.3707, allocations: 63.92 kB / 0.5273 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008094/0.3715, allocations: 71.83 kB / 0.5273 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003233/0.3718, allocations: 96.75 kB / 0.5274 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.56e-05/0.3719, allocations: 35.98 kB / 0.5275 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006036/0.3726, allocations: 479 kB / 0.5279 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3726, allocations: 0 / 0.5279 GB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001618/0.3742, allocations: 0.5029 MB / 0.5284 GB, free: 14.3 MB / 414.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.000275/0.3745, allocations: 184.2 kB / 0.5286 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005396/0.3799, allocations: 3.991 MB / 0.5325 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3799, allocations: 0 / 0.5325 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.3826, allocations: 2.464 MB / 0.5349 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.384, allocations: 312.4 kB / 0.5352 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009895/0.3939, allocations: 6.079 MB / 0.5411 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009674/0.3949, allocations: 1.274 MB / 0.5424 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.3963, allocations: 363.8 kB / 0.5427 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003193/0.3966, allocations: 75.42 kB / 0.5428 GB, free: 15.11 MB / 430.1 MB Notification: Performance of SimCode: time 3.105e-06/0.3967, allocations: 0 / 0.5428 GB, free: 15.11 MB / 430.1 MB Notification: Performance of Templates: time 0.03864/0.4353, allocations: 22.94 MB / 0.5652 GB, free: 8.418 MB / 446.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)