Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000681/0.0006811, allocations: 83.38 kB / 16.01 MB, free: 92 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.0007129/0.0007129, allocations: 188 kB / 16.92 MB, free: 6.293 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.161/1.161, 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.1664/0.1664, allocations: 22.36 MB / 314.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.0002368, allocations: 8 kB / 383.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.1999, allocations: 55.98 MB / 439.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.002664/0.2026, allocations: 4.153 MB / 443.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2038, allocations: 1.276 MB / 444.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.204, allocations: 15.81 kB / 444.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2042, allocations: 130.5 kB / 444.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004451/0.2047, allocations: 415.9 kB / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004305/0.2051, allocations: 274.9 kB / 445.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.2064, allocations: 2.634 MB / 448.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008771/0.2073, allocations: 1.275 MB / 449.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/0.2077, allocations: 0.6161 MB / 450 MB, free: 33.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006978/0.2084, allocations: 0.9037 MB / 450.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2085, allocations: 92.97 kB / 451 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.2087, allocations: 96.62 kB / 451.1 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.209, allocations: 0.5433 MB / 451.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004581/0.2095, allocations: 0.7798 MB / 452.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009032/0.2104, allocations: 2.056 MB / 454.5 MB, free: 31.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.2104, allocations: 0 / 454.5 MB, free: 31.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2104, allocations: 0 / 454.5 MB, free: 31.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.2104, allocations: 0 / 454.5 MB, free: 31.96 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.00301/0.2134, allocations: 1.78 MB / 456.3 MB, free: 31.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.685e-05/0.2134, allocations: 13.28 kB / 456.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.2137, allocations: 149.2 kB / 456.4 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009897/0.2147, allocations: 0.8608 MB / 457.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.502e-05/0.2147, allocations: 126.4 kB / 457.4 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/0.215, allocations: 138.4 kB / 457.5 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.2173, allocations: 1.59 MB / 459.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.2173, allocations: 1.281 kB / 459.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.2174, allocations: 48.97 kB / 459.2 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.2175, allocations: 28.91 kB / 459.2 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.2194, allocations: 1.419 MB / 460.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007864/0.2273, allocations: 7.191 MB / 467.8 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004196/0.2315, allocations: 1.899 MB / 469.7 MB, free: 23.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000917/0.2324, allocations: 0.7253 MB / 470.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.2325, allocations: 15.64 kB / 470.5 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.2325, allocations: 44.56 kB / 470.5 MB, free: 23.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.044e-06/0.2325, allocations: 0 / 470.5 MB, free: 23.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.00592/0.2385, allocations: 3.991 MB / 474.5 MB, free: 20.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.2385, allocations: 65.84 kB / 474.5 MB, free: 20.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007136/0.2392, allocations: 0.6883 MB / 475.2 MB, free: 20.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.2393, allocations: 46.3 kB / 475.3 MB, free: 20.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.2395, allocations: 0.5098 MB / 475.8 MB, free: 20.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.2398, allocations: 406.4 kB / 476.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.2399, allocations: 114.8 kB / 476.3 MB, free: 19.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2401, allocations: 414.8 kB / 476.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.2412, allocations: 0.8406 MB / 477.5 MB, free: 19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.2424, allocations: 1.009 MB / 478.6 MB, free: 18.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/0.2539, allocations: 4.605 MB / 483.2 MB, free: 16.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.254, allocations: 8.938 kB / 483.2 MB, free: 16.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00341/0.2574, allocations: 2.484 MB / 485.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2574, allocations: 8 kB / 485.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2574, allocations: 7.938 kB / 485.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.2588, allocations: 0.5551 MB / 486.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.2603, allocations: 391.5 kB / 486.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.2714, allocations: 21.46 MB / 0.4962 GB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008884/0.2723, allocations: 150.9 kB / 0.4963 GB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.2724, allocations: 51.98 kB / 0.4964 GB, free: 4.785 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.000567/0.273, allocations: 430.2 kB / 0.4968 GB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.2732, allocations: 94.86 kB / 0.4969 GB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003258/0.2764, allocations: 1.975 MB / 0.4988 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.2765, allocations: 12 kB / 0.4988 GB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.2765, allocations: 4 kB / 0.4988 GB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.2765, allocations: 7.922 kB / 0.4988 GB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004759/0.2813, allocations: 3.554 MB / 0.5023 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2813, allocations: 3.938 kB / 0.5023 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/0.283, allocations: 335.6 kB / 0.5026 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001136/0.2842, allocations: 476.8 kB / 0.5031 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.2843, allocations: 63.97 kB / 0.5031 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/0.2961, allocations: 20.6 MB / 0.5232 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2961, allocations: 0 / 0.5232 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003936/0.3001, allocations: 2.738 MB / 0.5259 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.3003, allocations: 191.8 kB / 0.5261 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.3004, allocations: 55.98 kB / 0.5261 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007169/0.3012, allocations: 79.77 kB / 0.5262 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3014, allocations: 92.75 kB / 0.5263 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.556e-05/0.3014, allocations: 35.98 kB / 0.5263 GB, free: 3.719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000488/0.3019, allocations: 479 kB / 0.5268 GB, free: 3.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3019, allocations: 0 / 0.5268 GB, free: 3.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001135/0.3031, allocations: 0.5068 MB / 0.5273 GB, free: 2.746 MB / 398.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.0002166/0.3033, allocations: 185.8 kB / 0.5275 GB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003571/0.3069, allocations: 3.418 MB / 0.5308 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3069, allocations: 0 / 0.5308 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/0.3092, allocations: 2.475 MB / 0.5332 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.3104, allocations: 304.6 kB / 0.5335 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008263/0.3186, allocations: 6.687 MB / 0.54 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007783/0.3194, allocations: 1.266 MB / 0.5413 GB, free: 3.938 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004106/0.3198, allocations: 87.42 kB / 0.5414 GB, free: 3.852 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3199, allocations: 0 / 0.5414 GB, free: 3.852 MB / 414.1 MB Notification: Performance of Templates: time 0.2015/0.5214, allocations: 80.91 MB / 0.6204 GB, free: 125.6 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)