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.001128/0.001128, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.0009391/0.0009391, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.258/1.258, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1877/0.1877, allocations: 22.36 MB / 313.1 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 55.91 kB / 381 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2147, allocations: 54.94 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003687/0.2184, allocations: 4.571 MB / 440.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.22, allocations: 1.284 MB / 441.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.2202, allocations: 16.31 kB / 441.8 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.2205, allocations: 127.4 kB / 441.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004778/0.221, allocations: 398.3 kB / 442.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.2215, allocations: 284.2 kB / 442.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.2227, allocations: 2.149 MB / 444.7 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.2238, allocations: 1.587 MB / 446.3 MB, free: 33.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006124/0.2244, allocations: 0.8331 MB / 447.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008305/0.2253, allocations: 1.054 MB / 448.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002122/0.2255, allocations: 235.4 kB / 448.4 MB, free: 32.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.2257, allocations: 238.2 kB / 448.6 MB, free: 32.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.2261, allocations: 0.6999 MB / 449.3 MB, free: 32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005739/0.2267, allocations: 0.9253 MB / 450.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.2277, allocations: 2.121 MB / 452.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2277, allocations: 2.656 kB / 452.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2277, allocations: 0 / 452.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.2278, allocations: 0 / 452.4 MB, free: 30.81 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.003527/0.2313, allocations: 2.015 MB / 454.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2313, allocations: 9.938 kB / 454.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.2316, allocations: 147.3 kB / 454.6 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009571/0.2325, allocations: 0.8654 MB / 455.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-05/0.2326, allocations: 117.5 kB / 455.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.2329, allocations: 139.2 kB / 455.7 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.2352, allocations: 1.588 MB / 457.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.2352, allocations: 1.406 kB / 457.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.2353, allocations: 49.12 kB / 457.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.2354, allocations: 28.83 kB / 457.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.2374, allocations: 1.42 MB / 458.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008174/0.2456, allocations: 7.144 MB / 465.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/0.2501, allocations: 1.897 MB / 467.8 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.2512, allocations: 0.7222 MB / 468.5 MB, free: 22.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.133e-05/0.2513, allocations: 15.14 kB / 468.5 MB, free: 22.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2513, allocations: 44.45 kB / 468.6 MB, free: 22.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.706e-06/0.2513, allocations: 4 kB / 468.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006209/0.2575, allocations: 3.93 MB / 472.5 MB, free: 19.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.2576, allocations: 65.44 kB / 472.6 MB, free: 19.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008383/0.2584, allocations: 0.6922 MB / 473.3 MB, free: 19.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.2586, allocations: 41.77 kB / 473.3 MB, free: 19.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.2588, allocations: 0.5069 MB / 473.8 MB, free: 18.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002993/0.2591, allocations: 414.7 kB / 474.2 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003763/0.2595, allocations: 235.9 kB / 474.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.2596, allocations: 413.4 kB / 474.9 MB, free: 17.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.2608, allocations: 0.8412 MB / 475.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.262, allocations: 1.006 MB / 476.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/0.2738, allocations: 4.458 MB / 481.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.2739, allocations: 2.281 kB / 481.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.0037/0.2776, allocations: 2.47 MB / 483.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2776, allocations: 5.562 kB / 483.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2776, allocations: 8 kB / 483.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.2791, allocations: 0.5395 MB / 484.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.2807, allocations: 395.5 kB / 484.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/0.2931, allocations: 23.05 MB / 0.4957 GB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.2944, allocations: 158.8 kB / 0.4959 GB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.2946, allocations: 48 kB / 0.4959 GB, free: 2.664 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.0007552/0.2953, allocations: 425.3 kB / 0.4963 GB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.2956, allocations: 94.88 kB / 0.4964 GB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.2989, allocations: 1.975 MB / 0.4984 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.2989, allocations: 12 kB / 0.4984 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.299, allocations: 8 kB / 0.4984 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.299, allocations: 7.969 kB / 0.4984 GB, free: 84 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005195/0.3042, allocations: 3.554 MB / 0.5019 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.3042, allocations: 4 kB / 0.5019 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/0.3061, allocations: 339.9 kB / 0.5022 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3074, allocations: 472.5 kB / 0.5026 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.3075, allocations: 67.97 kB / 0.5027 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/0.3206, allocations: 22.17 MB / 0.5243 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3206, allocations: 7.938 kB / 0.5244 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.325, allocations: 2.733 MB / 0.527 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003147/0.3253, allocations: 195.7 kB / 0.5272 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.3255, allocations: 59.98 kB / 0.5273 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007891/0.3263, allocations: 75.69 kB / 0.5273 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.3266, allocations: 96.77 kB / 0.5274 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.28e-05/0.3267, allocations: 31.98 kB / 0.5275 GB, free: 15.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005418/0.3272, allocations: 479 kB / 0.5279 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.242e-06/0.3272, allocations: 4 kB / 0.5279 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001396/0.3286, allocations: 0.5068 MB / 0.5284 GB, free: 14.94 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.0002429/0.3289, allocations: 181.1 kB / 0.5286 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004787/0.3337, allocations: 3.976 MB / 0.5325 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3337, allocations: 4.188 kB / 0.5325 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002321/0.336, allocations: 2.455 MB / 0.5349 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.3372, allocations: 319.1 kB / 0.5352 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008612/0.3458, allocations: 6.137 MB / 0.5412 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.3467, allocations: 1.256 MB / 0.5424 GB, free: 148 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005848/0.3473, allocations: 91.41 kB / 0.5425 GB, free: 56 kB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3473, allocations: 0 / 0.5425 GB, free: 56 kB / 414.1 MB Notification: Performance of Templates: time 0.2019/0.5492, allocations: 81.03 MB / 0.6216 GB, free: 123.5 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)