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.001333/0.001333, 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.00132/0.00132, allocations: 194.8 kB / 16.25 MB, free: 6.625 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.317/1.317, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1991/0.1991, allocations: 22.36 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.91 kB / 380.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2537, allocations: 54.95 MB / 435.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.004586/0.2583, allocations: 4.575 MB / 439.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.2606, allocations: 1.279 MB / 441.1 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003115/0.2609, allocations: 16.41 kB / 441.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002921/0.2612, allocations: 129.6 kB / 441.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005367/0.2618, allocations: 398.8 kB / 441.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.2623, allocations: 284.8 kB / 441.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.2637, allocations: 2.147 MB / 444.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.2652, allocations: 1.594 MB / 445.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007298/0.2659, allocations: 0.8266 MB / 446.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008986/0.2668, allocations: 1.051 MB / 447.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002212/0.2671, allocations: 236.4 kB / 447.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.2673, allocations: 235.6 kB / 448 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003768/0.2677, allocations: 0.7106 MB / 448.7 MB, free: 31.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006434/0.2684, allocations: 0.9204 MB / 449.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.2698, allocations: 2.575 MB / 452.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2698, allocations: 0 / 452.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2698, allocations: 3.625 kB / 452.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.123e-05/0.2699, allocations: 0 / 452.2 MB, free: 30.39 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.003937/0.2738, allocations: 2.009 MB / 454.2 MB, free: 29.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2739, allocations: 12.59 kB / 454.2 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002604/0.2741, allocations: 148 kB / 454.4 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.2752, allocations: 0.86 MB / 455.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.2753, allocations: 116.7 kB / 455.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002273/0.2755, allocations: 141.1 kB / 455.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.2781, allocations: 1.591 MB / 457.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.2781, allocations: 0 / 457.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.2782, allocations: 46.98 kB / 457.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.2783, allocations: 28.25 kB / 457.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00241/0.2807, allocations: 1.423 MB / 458.6 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009753/0.2904, allocations: 7.152 MB / 465.7 MB, free: 22.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/0.2953, allocations: 1.886 MB / 467.6 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.2964, allocations: 0.7285 MB / 468.3 MB, free: 21.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.337e-05/0.2965, allocations: 20.39 kB / 468.3 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.2966, allocations: 48 kB / 468.4 MB, free: 21.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.436e-06/0.2966, allocations: 0 / 468.4 MB, free: 21.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006651/0.3032, allocations: 3.929 MB / 472.3 MB, free: 19.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.3033, allocations: 63.11 kB / 472.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009041/0.3042, allocations: 0.6928 MB / 473.1 MB, free: 18.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.983e-05/0.3043, allocations: 45.8 kB / 473.1 MB, free: 18.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002834/0.3046, allocations: 0.5023 MB / 473.6 MB, free: 18.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003535/0.305, allocations: 410.6 kB / 474 MB, free: 18.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003914/0.3054, allocations: 239.2 kB / 474.3 MB, free: 17.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3055, allocations: 408.1 kB / 474.7 MB, free: 17.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.3068, allocations: 0.843 MB / 475.5 MB, free: 17.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.308, allocations: 1.002 MB / 476.5 MB, free: 16.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/0.3213, allocations: 4.463 MB / 481 MB, free: 14.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/0.3214, allocations: 9.781 kB / 481 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004158/0.3256, allocations: 2.471 MB / 483.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3256, allocations: 4 kB / 483.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3256, allocations: 8 kB / 483.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.3272, allocations: 0.5356 MB / 484 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.3289, allocations: 395.5 kB / 484.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/0.3448, allocations: 23.04 MB / 0.4955 GB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.3467, allocations: 162.8 kB / 0.4957 GB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.3469, allocations: 43.98 kB / 0.4957 GB, free: 2.188 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.001089/0.348, allocations: 421.3 kB / 0.4961 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.3482, allocations: 94.88 kB / 0.4962 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003861/0.3521, allocations: 1.979 MB / 0.4982 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3521, allocations: 12 kB / 0.4982 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3521, allocations: 4 kB / 0.4982 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3522, allocations: 7.969 kB / 0.4982 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005727/0.3579, allocations: 3.547 MB / 0.5016 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.3579, allocations: 12.25 kB / 0.5016 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.36, allocations: 335.6 kB / 0.502 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.3614, allocations: 480.5 kB / 0.5024 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.3616, allocations: 67.97 kB / 0.5025 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01579/0.3774, allocations: 22.17 MB / 0.5241 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3774, allocations: 4 kB / 0.5242 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004945/0.3824, allocations: 2.733 MB / 0.5268 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003959/0.3828, allocations: 199.7 kB / 0.527 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.383, allocations: 51.98 kB / 0.5271 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008075/0.3839, allocations: 83.75 kB / 0.5271 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/0.3842, allocations: 88.77 kB / 0.5272 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.311e-05/0.3843, allocations: 31.98 kB / 0.5273 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006252/0.3849, allocations: 483 kB / 0.5277 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3849, allocations: 0 / 0.5277 GB, free: 14.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001575/0.3865, allocations: 0.503 MB / 0.5282 GB, free: 14.47 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.0002694/0.3868, allocations: 182.8 kB / 0.5284 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005725/0.3925, allocations: 3.979 MB / 0.5323 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3925, allocations: 0 / 0.5323 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00283/0.3954, allocations: 2.456 MB / 0.5347 GB, free: 7.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.3969, allocations: 310.3 kB / 0.535 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.4073, allocations: 6.033 MB / 0.5409 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.4084, allocations: 1.266 MB / 0.5421 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.4097, allocations: 359.6 kB / 0.5424 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003932/0.4101, allocations: 75.42 kB / 0.5425 GB, free: 15.35 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4101, allocations: 0 / 0.5425 GB, free: 15.35 MB / 430.1 MB Notification: Performance of Templates: time 0.03654/0.4467, allocations: 22.92 MB / 0.5649 GB, free: 8.691 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)