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.0009656/0.0009654, allocations: 92.16 kB / 16.02 MB, free: 80 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.001137/0.001137, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.334/1.334, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1919/0.1919, allocations: 22.34 MB / 314.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002935, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2644, allocations: 55.98 MB / 439.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003145/0.2675, allocations: 4.166 MB / 443.4 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2693, allocations: 1.273 MB / 444.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002273/0.2695, allocations: 12.31 kB / 444.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.2698, allocations: 125.8 kB / 444.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005263/0.2703, allocations: 413.1 kB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.2709, allocations: 285.1 kB / 445.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001685/0.2726, allocations: 2.634 MB / 448.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.2738, allocations: 1.282 MB / 449.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006305/0.2745, allocations: 0.6066 MB / 450 MB, free: 33.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008883/0.2754, allocations: 0.9106 MB / 450.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.2756, allocations: 95.69 kB / 451 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.2758, allocations: 89.56 kB / 451.1 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003349/0.2761, allocations: 0.5455 MB / 451.7 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000579/0.2767, allocations: 0.7702 MB / 452.4 MB, free: 32.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.2779, allocations: 2.06 MB / 454.5 MB, free: 31.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2779, allocations: 7.469 kB / 454.5 MB, free: 31.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2779, allocations: 0 / 454.5 MB, free: 31.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.2779, allocations: 0 / 454.5 MB, free: 31.82 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.003567/0.2815, allocations: 1.778 MB / 456.3 MB, free: 30.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2815, allocations: 8.844 kB / 456.3 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.2818, allocations: 148.6 kB / 456.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.2829, allocations: 0.8601 MB / 457.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-05/0.283, allocations: 116.8 kB / 457.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.2833, allocations: 138.8 kB / 457.5 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002706/0.286, allocations: 1.589 MB / 459.1 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/0.286, allocations: 5.469 kB / 459.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.2862, allocations: 49.77 kB / 459.2 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.2862, allocations: 28.25 kB / 459.2 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00228/0.2885, allocations: 1.419 MB / 460.6 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009624/0.2981, allocations: 7.209 MB / 467.8 MB, free: 24.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0048/0.3029, allocations: 1.896 MB / 469.7 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.3041, allocations: 0.7215 MB / 470.5 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.151e-05/0.3042, allocations: 11.38 kB / 470.5 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3042, allocations: 45.72 kB / 470.5 MB, free: 23.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.376e-06/0.3043, allocations: 0 / 470.5 MB, free: 23.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007158/0.3114, allocations: 3.998 MB / 474.5 MB, free: 20.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.3115, allocations: 66.91 kB / 474.6 MB, free: 20.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009743/0.3125, allocations: 0.6881 MB / 475.3 MB, free: 20.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.3126, allocations: 41.55 kB / 475.3 MB, free: 20.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.3129, allocations: 0.5059 MB / 475.8 MB, free: 19.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003725/0.3133, allocations: 410.9 kB / 476.2 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.3135, allocations: 116.8 kB / 476.3 MB, free: 19.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3136, allocations: 412 kB / 476.7 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.315, allocations: 0.8462 MB / 477.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.3163, allocations: 1.002 MB / 478.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01504/0.3314, allocations: 4.606 MB / 483.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.517e-05/0.3314, allocations: 0.9688 kB / 483.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006632/0.3381, allocations: 2.486 MB / 485.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.3381, allocations: 10.03 kB / 485.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.3382, allocations: 8 kB / 485.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.3406, allocations: 0.5512 MB / 486.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.3434, allocations: 395.5 kB / 486.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/0.3627, allocations: 21.46 MB / 0.4962 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.3648, allocations: 162.8 kB / 0.4963 GB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003842/0.3652, allocations: 51.98 kB / 0.4964 GB, free: 4.75 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.001454/0.3667, allocations: 413.4 kB / 0.4968 GB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004477/0.3671, allocations: 94.88 kB / 0.4969 GB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005949/0.3731, allocations: 1.983 MB / 0.4988 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.3731, allocations: 8 kB / 0.4988 GB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.3732, allocations: 4 kB / 0.4988 GB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.3732, allocations: 11.92 kB / 0.4988 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006622/0.3798, allocations: 3.547 MB / 0.5023 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.3799, allocations: 7.938 kB / 0.5023 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001964/0.3818, allocations: 339.9 kB / 0.5026 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.3832, allocations: 472.5 kB / 0.5031 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.3834, allocations: 63.97 kB / 0.5031 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/0.399, allocations: 20.6 MB / 0.5232 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3991, allocations: 4.031 kB / 0.5232 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005534/0.4046, allocations: 2.726 MB / 0.5259 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.405, allocations: 195.8 kB / 0.5261 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/0.4053, allocations: 63.98 kB / 0.5262 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/0.4062, allocations: 67.77 kB / 0.5262 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003043/0.4065, allocations: 96.75 kB / 0.5263 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.075e-05/0.4066, allocations: 35.98 kB / 0.5263 GB, free: 3.695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006459/0.4073, allocations: 487 kB / 0.5268 GB, free: 3.223 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.4073, allocations: 0 / 0.5268 GB, free: 3.223 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001632/0.4089, allocations: 0.5028 MB / 0.5273 GB, free: 2.719 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.0002878/0.4092, allocations: 188.2 kB / 0.5275 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00442/0.4136, allocations: 3.418 MB / 0.5308 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4137, allocations: 0 / 0.5308 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002759/0.4164, allocations: 2.471 MB / 0.5332 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.4179, allocations: 298.6 kB / 0.5335 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.428, allocations: 6.7 MB / 0.5401 GB, free: 5.207 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009985/0.4291, allocations: 1.27 MB / 0.5413 GB, free: 3.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006279/0.4297, allocations: 83.42 kB / 0.5414 GB, free: 3.82 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4297, allocations: 0 / 0.5414 GB, free: 3.82 MB / 414.1 MB Notification: Performance of Templates: time 0.2627/0.6924, allocations: 80.91 MB / 0.6204 GB, free: 125.5 MB / 462.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)