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.001019/0.001019, allocations: 98.88 kB / 16.02 MB, free: 76 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.0009697/0.0009697, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.316/1.316, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1967/0.1967, allocations: 22.34 MB / 314.4 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003306, allocations: 8 kB / 383.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2678, allocations: 55.98 MB / 439.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003253/0.2711, allocations: 4.192 MB / 443.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.2731, allocations: 1.272 MB / 444.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.2734, allocations: 18.06 kB / 444.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.2736, allocations: 127.4 kB / 444.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005479/0.2741, allocations: 420 kB / 445.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006578/0.2748, allocations: 278.5 kB / 445.5 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.2765, allocations: 2.662 MB / 448.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/0.2776, allocations: 1.279 MB / 449.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006878/0.2783, allocations: 0.6324 MB / 450.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008683/0.2792, allocations: 0.9033 MB / 451 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.2794, allocations: 97.31 kB / 451.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.2796, allocations: 87.59 kB / 451.2 MB, free: 32.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003583/0.28, allocations: 0.5345 MB / 451.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005496/0.2805, allocations: 0.7801 MB / 452.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.2817, allocations: 2.036 MB / 454.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2817, allocations: 0 / 454.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2817, allocations: 2.844 kB / 454.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.071e-05/0.2817, allocations: 0 / 454.5 MB, free: 31.76 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.003431/0.2852, allocations: 1.77 MB / 456.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.2852, allocations: 10.22 kB / 456.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.2855, allocations: 147 kB / 456.5 MB, free: 30.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.2866, allocations: 0.8653 MB / 457.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.2867, allocations: 123.2 kB / 457.4 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/0.287, allocations: 135.2 kB / 457.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002815/0.2898, allocations: 1.588 MB / 459.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.2898, allocations: 4.641 kB / 459.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.29, allocations: 50.53 kB / 459.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.29, allocations: 28.81 kB / 459.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002257/0.2922, allocations: 1.406 MB / 460.7 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.3025, allocations: 7.182 MB / 467.8 MB, free: 24.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004819/0.3074, allocations: 1.869 MB / 469.7 MB, free: 23.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.3085, allocations: 0.7345 MB / 470.4 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.647e-05/0.3086, allocations: 19.98 kB / 470.5 MB, free: 23.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3086, allocations: 48.14 kB / 470.5 MB, free: 23.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.865e-06/0.3087, allocations: 0 / 470.5 MB, free: 23.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007008/0.3157, allocations: 3.988 MB / 474.5 MB, free: 20.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.3157, allocations: 62.62 kB / 474.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.3168, allocations: 0.6788 MB / 475.2 MB, free: 20.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.3169, allocations: 45.52 kB / 475.3 MB, free: 20.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/0.3172, allocations: 0.515 MB / 475.8 MB, free: 19.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003549/0.3176, allocations: 414.8 kB / 476.2 MB, free: 19.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.3178, allocations: 117 kB / 476.3 MB, free: 19.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3179, allocations: 414.9 kB / 476.7 MB, free: 19.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.3193, allocations: 0.841 MB / 477.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.3207, allocations: 0.9995 MB / 478.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/0.3343, allocations: 4.673 MB / 483.2 MB, free: 16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.3344, allocations: 1.094 kB / 483.2 MB, free: 16 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004035/0.3384, allocations: 2.495 MB / 485.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.3385, allocations: 4 kB / 485.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.3385, allocations: 8 kB / 485.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.34, allocations: 0.5473 MB / 486.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.3417, allocations: 403.5 kB / 486.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/0.3558, allocations: 21.45 MB / 0.4962 GB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.3575, allocations: 158.7 kB / 0.4964 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.3576, allocations: 47.98 kB / 0.4964 GB, free: 4.746 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.0008822/0.3585, allocations: 433.2 kB / 0.4968 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.3587, allocations: 86.97 kB / 0.4969 GB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/0.3628, allocations: 1.983 MB / 0.4989 GB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3628, allocations: 12 kB / 0.4989 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.3628, allocations: 7.938 kB / 0.4989 GB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3628, allocations: 3.984 kB / 0.4989 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006385/0.3692, allocations: 3.715 MB / 0.5025 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3692, allocations: 0 / 0.5025 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/0.3713, allocations: 347.9 kB / 0.5028 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.3727, allocations: 480.5 kB / 0.5033 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001968/0.3729, allocations: 63.97 kB / 0.5034 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01516/0.3881, allocations: 20.6 MB / 0.5235 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3881, allocations: 12.09 kB / 0.5235 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005277/0.3934, allocations: 2.718 MB / 0.5261 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004277/0.3939, allocations: 199.7 kB / 0.5263 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002208/0.3941, allocations: 63.97 kB / 0.5264 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008522/0.395, allocations: 67.83 kB / 0.5265 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002972/0.3953, allocations: 100.8 kB / 0.5266 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.533e-05/0.3954, allocations: 35.92 kB / 0.5266 GB, free: 3.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006123/0.396, allocations: 475 kB / 0.527 GB, free: 3.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.396, allocations: 4 kB / 0.527 GB, free: 3.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001756/0.3978, allocations: 0.4952 MB / 0.5275 GB, free: 2.535 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.0003156/0.3981, allocations: 185.8 kB / 0.5277 GB, free: 2.348 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004627/0.4027, allocations: 3.432 MB / 0.5311 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4027, allocations: 0 / 0.5311 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002997/0.4057, allocations: 2.464 MB / 0.5335 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/0.4074, allocations: 310.7 kB / 0.5338 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.4179, allocations: 6.75 MB / 0.5404 GB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.4189, allocations: 1.276 MB / 0.5416 GB, free: 3.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000734/0.4197, allocations: 83.42 kB / 0.5417 GB, free: 3.574 MB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4197, allocations: 4 kB / 0.5417 GB, free: 3.57 MB / 414.1 MB Notification: Performance of Templates: time 0.2742/0.6939, allocations: 81.57 MB / 0.6213 GB, free: 125 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)