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: "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",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.001149/0.001149, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.001121/0.001121, allocations: 198.6 kB / 16.26 MB, free: 6.633 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.16/1.16, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1661/0.1661, allocations: 22.35 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1964, allocations: 54.94 MB / 435.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003471/0.1999, allocations: 4.574 MB / 439.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2011, allocations: 1.278 MB / 441.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.2013, allocations: 13.91 kB / 441.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.2016, allocations: 131.7 kB / 441.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000434/0.202, allocations: 402.7 kB / 441.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004425/0.2025, allocations: 276.9 kB / 442 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.2035, allocations: 2.154 MB / 444.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009533/0.2045, allocations: 1.583 MB / 445.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004605/0.2049, allocations: 0.8339 MB / 446.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007269/0.2057, allocations: 1.056 MB / 447.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001962/0.2059, allocations: 234.5 kB / 447.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.2061, allocations: 238.2 kB / 448.1 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003091/0.2064, allocations: 0.6996 MB / 448.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000504/0.2069, allocations: 0.9219 MB / 449.7 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.208, allocations: 2.576 MB / 452.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.208, allocations: 0 / 452.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2081, allocations: 3.234 kB / 452.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.2081, allocations: 0 / 452.3 MB, free: 30.34 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.003174/0.2113, allocations: 2.012 MB / 454.3 MB, free: 29.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.2113, allocations: 9.844 kB / 454.3 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.2115, allocations: 185.2 kB / 454.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.2117, allocations: 145.8 kB / 454.6 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008606/0.2125, allocations: 0.8617 MB / 455.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-05/0.2126, allocations: 117.1 kB / 455.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.2128, allocations: 146.8 kB / 455.8 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.215, allocations: 1.587 MB / 457.3 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.2151, allocations: 2.047 kB / 457.3 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.2152, allocations: 45.03 kB / 457.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.2152, allocations: 28.38 kB / 457.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.2171, allocations: 1.419 MB / 458.8 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007441/0.2246, allocations: 7.155 MB / 466 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/0.2289, allocations: 1.884 MB / 467.9 MB, free: 21.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009061/0.2298, allocations: 0.7286 MB / 468.6 MB, free: 21.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.482e-05/0.2299, allocations: 23.02 kB / 468.6 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.2299, allocations: 44.73 kB / 468.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.254e-06/0.2299, allocations: 0 / 468.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.0057/0.2356, allocations: 3.93 MB / 472.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.157e-05/0.2356, allocations: 62.27 kB / 472.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006699/0.2363, allocations: 0.6883 MB / 473.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.69e-05/0.2364, allocations: 45.39 kB / 473.4 MB, free: 18.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.2366, allocations: 0.5063 MB / 473.9 MB, free: 18.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.2368, allocations: 411.3 kB / 474.3 MB, free: 17.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003736/0.2372, allocations: 238.3 kB / 474.5 MB, free: 17.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2373, allocations: 412.9 kB / 474.9 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.2384, allocations: 0.8476 MB / 475.8 MB, free: 17.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.2396, allocations: 0.9988 MB / 476.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01112/0.2507, allocations: 4.466 MB / 481.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.2507, allocations: 2.406 kB / 481.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003361/0.2541, allocations: 2.471 MB / 483.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2541, allocations: 8.031 kB / 483.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2541, allocations: 8 kB / 483.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.2555, allocations: 0.5355 MB / 484.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.257, allocations: 395.5 kB / 484.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/0.2687, allocations: 23.05 MB / 0.4958 GB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/0.2697, allocations: 154.7 kB / 0.496 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.2698, allocations: 43.98 kB / 0.496 GB, free: 2.008 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.0006026/0.2704, allocations: 429.3 kB / 0.4964 GB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.2705, allocations: 90.88 kB / 0.4965 GB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.2737, allocations: 1.979 MB / 0.4984 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.2737, allocations: 12 kB / 0.4984 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2737, allocations: 4 kB / 0.4985 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.2738, allocations: 7.969 kB / 0.4985 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004623/0.2784, allocations: 3.554 MB / 0.5019 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.2784, allocations: 4 kB / 0.5019 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/0.2802, allocations: 331.9 kB / 0.5023 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.2813, allocations: 476.5 kB / 0.5027 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.2815, allocations: 67.97 kB / 0.5028 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01216/0.2936, allocations: 22.17 MB / 0.5244 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2936, allocations: 4 kB / 0.5244 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003837/0.2975, allocations: 2.733 MB / 0.5271 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.2977, allocations: 195.7 kB / 0.5273 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/0.2979, allocations: 63.92 kB / 0.5273 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007054/0.2986, allocations: 71.77 kB / 0.5274 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.2988, allocations: 100.8 kB / 0.5275 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.2989, allocations: 27.98 kB / 0.5275 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004792/0.2994, allocations: 483 kB / 0.528 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2994, allocations: 0 / 0.528 GB, free: 14.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3005, allocations: 0.503 MB / 0.5285 GB, free: 14.29 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.004138/0.3047, allocations: 3.354 MB / 0.5318 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004398/0.3091, allocations: 3.984 MB / 0.5357 GB, free: 6.656 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3091, allocations: 0 / 0.5357 GB, free: 6.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/0.3113, allocations: 2.455 MB / 0.538 GB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3123, allocations: 322.2 kB / 0.5384 GB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/0.3335, allocations: 16.45 MB / 0.5544 GB, free: 2.742 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000727/0.3342, allocations: 1.264 MB / 0.5557 GB, free: 1.449 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008653/0.3351, allocations: 359.5 kB / 0.556 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006056/0.3357, allocations: 463.3 kB / 0.5564 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3357, allocations: 0 / 0.5564 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.905/2.241, allocations: 33.93 MB / 0.5896 GB, free: 132.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001124/2.241, allocations: 223.5 kB / 0.5898 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/4.642, allocations: 0 / 0.5898 GB, free: 132.7 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)