Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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: "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, 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.001129/0.001129, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.17/1.17, allocations: 222.9 MB / 239.9 MB, free: 4.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1742/0.1742, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1954, allocations: 54.94 MB / 435.3 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003588/0.199, allocations: 4.587 MB / 439.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.2003, allocations: 1.295 MB / 441.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.2005, allocations: 16.28 kB / 441.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.2007, allocations: 129 kB / 441.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004414/0.2012, allocations: 406.4 kB / 441.8 MB, free: 35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.2017, allocations: 278.2 kB / 442 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.2027, allocations: 2.174 MB / 444.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009734/0.2037, allocations: 1.598 MB / 445.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.2042, allocations: 0.8454 MB / 446.7 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007352/0.2049, allocations: 1.054 MB / 447.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.2051, allocations: 228.8 kB / 447.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.2053, allocations: 230.8 kB / 448.2 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003264/0.2057, allocations: 0.6971 MB / 448.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.2062, allocations: 0.9169 MB / 449.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2074, allocations: 2.554 MB / 452.3 MB, free: 30.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2074, allocations: 0 / 452.3 MB, free: 30.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2074, allocations: 0 / 452.3 MB, free: 30.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.2074, allocations: 0 / 452.3 MB, free: 30.41 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.003177/0.2106, allocations: 2.012 MB / 454.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2106, allocations: 13.47 kB / 454.4 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001738/0.2108, allocations: 183.7 kB / 454.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.211, allocations: 150.4 kB / 454.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000948/0.212, allocations: 0.8666 MB / 455.5 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.693e-05/0.212, allocations: 118.2 kB / 455.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.2123, allocations: 140.5 kB / 455.8 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/0.2144, allocations: 1.585 MB / 457.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.2145, allocations: 0 / 457.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.2146, allocations: 50.25 kB / 457.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.2146, allocations: 32.53 kB / 457.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.2165, allocations: 1.406 MB / 458.9 MB, free: 27.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00764/0.2242, allocations: 7.118 MB / 466 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004286/0.2285, allocations: 1.867 MB / 467.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009125/0.2294, allocations: 0.7381 MB / 468.6 MB, free: 21.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.398e-05/0.2295, allocations: 18.27 kB / 468.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.2295, allocations: 49.36 kB / 468.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.054e-06/0.2295, allocations: 3.938 kB / 468.7 MB, free: 21.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.005717/0.2353, allocations: 3.912 MB / 472.6 MB, free: 19.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/0.2353, allocations: 72.8 kB / 472.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00066/0.236, allocations: 0.6801 MB / 473.3 MB, free: 18.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.236, allocations: 46 kB / 473.4 MB, free: 18.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.2363, allocations: 0.5076 MB / 473.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.2365, allocations: 414.5 kB / 474.3 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.2369, allocations: 240.9 kB / 474.5 MB, free: 17.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.237, allocations: 418.4 kB / 474.9 MB, free: 17.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.2381, allocations: 0.8516 MB / 475.8 MB, free: 17.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.2392, allocations: 0.9943 MB / 476.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/0.2506, allocations: 4.485 MB / 481.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.2506, allocations: 1.156 kB / 481.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003336/0.254, allocations: 2.465 MB / 483.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.254, allocations: 4 kB / 483.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.254, allocations: 11.98 kB / 483.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.2554, allocations: 0.5395 MB / 484.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.2569, allocations: 399.5 kB / 484.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.2689, allocations: 23.05 MB / 0.4958 GB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.2698, allocations: 166.6 kB / 0.496 GB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.2699, allocations: 48 kB / 0.496 GB, free: 1.996 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.0006067/0.2705, allocations: 425.2 kB / 0.4964 GB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.2707, allocations: 94.88 kB / 0.4965 GB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/0.2739, allocations: 1.983 MB / 0.4985 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.2739, allocations: 12 kB / 0.4985 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2739, allocations: 4 kB / 0.4985 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.274, allocations: 11.97 kB / 0.4985 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/0.2791, allocations: 3.712 MB / 0.5021 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.2791, allocations: 8.031 kB / 0.5021 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/0.281, allocations: 339.6 kB / 0.5024 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.2821, allocations: 476.5 kB / 0.5029 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.2823, allocations: 67.97 kB / 0.503 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/0.2949, allocations: 22.17 MB / 0.5246 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.2949, allocations: 11.88 kB / 0.5246 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00388/0.2988, allocations: 2.719 MB / 0.5273 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.299, allocations: 195.8 kB / 0.5275 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.2992, allocations: 63.97 kB / 0.5275 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007196/0.2999, allocations: 71.86 kB / 0.5276 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.3001, allocations: 96.75 kB / 0.5277 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.074e-05/0.3002, allocations: 35.92 kB / 0.5277 GB, free: 15.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004788/0.3007, allocations: 475 kB / 0.5282 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3007, allocations: 4 kB / 0.5282 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3019, allocations: 0.5029 MB / 0.5287 GB, free: 14.11 MB / 414.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.004253/0.3062, allocations: 3.358 MB / 0.532 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004518/0.3107, allocations: 3.995 MB / 0.5359 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3107, allocations: 0 / 0.5359 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/0.313, allocations: 2.452 MB / 0.5382 GB, free: 3.816 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.314, allocations: 316.9 kB / 0.5386 GB, free: 3.512 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/0.3357, allocations: 16.49 MB / 0.5546 GB, free: 2.516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007623/0.3364, allocations: 1.268 MB / 0.5559 GB, free: 1.215 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009294/0.3374, allocations: 363.8 kB / 0.5562 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006295/0.338, allocations: 471.3 kB / 0.5567 GB, free: 404 kB / 430.1 MB Notification: Performance of SimCode: time 3.4e-07/0.338, allocations: 0 / 0.5567 GB, free: 404 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.001/3.339, allocations: 34.14 MB / 0.59 GB, free: 133.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001154/3.339, allocations: 222.8 kB / 0.5902 GB, free: 133.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.393/5.732, allocations: 0 / 0.5902 GB, free: 133.1 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)