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.0007574/0.0007574, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.0008272/0.000827, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.293/1.293, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1928/0.1928, allocations: 22.34 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.233, allocations: 55.98 MB / 438.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.002911/0.2359, allocations: 4.179 MB / 442.9 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.2373, allocations: 1.28 MB / 444.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.2375, allocations: 20.53 kB / 444.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002119/0.2378, allocations: 128.1 kB / 444.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000513/0.2383, allocations: 417 kB / 444.7 MB, free: 35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004822/0.2388, allocations: 278.1 kB / 445 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.2403, allocations: 2.665 MB / 447.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.2413, allocations: 1.278 MB / 448.9 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004899/0.2418, allocations: 0.6387 MB / 449.5 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008086/0.2426, allocations: 0.9 MB / 450.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.2427, allocations: 89.5 kB / 450.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001867/0.2429, allocations: 88.81 kB / 450.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003129/0.2433, allocations: 0.5442 MB / 451.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005342/0.2438, allocations: 0.7757 MB / 451.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.245, allocations: 2.397 MB / 454.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.245, allocations: 6.625 kB / 454.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.245, allocations: 0 / 454.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.2451, allocations: 0 / 454.3 MB, free: 31.59 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.003449/0.2485, allocations: 1.771 MB / 456.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2486, allocations: 13.72 kB / 456.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002284/0.2488, allocations: 183.8 kB / 456.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.249, allocations: 148.1 kB / 456.5 MB, free: 30.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.2501, allocations: 0.868 MB / 457.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.2502, allocations: 117.7 kB / 457.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002314/0.2505, allocations: 135.7 kB / 457.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.253, allocations: 1.591 MB / 459.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.253, allocations: 8.594 kB / 459.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.2532, allocations: 46.19 kB / 459.2 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.2532, allocations: 28 kB / 459.2 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.2554, allocations: 1.406 MB / 460.6 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008878/0.2643, allocations: 7.177 MB / 467.8 MB, free: 23.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004687/0.269, allocations: 1.873 MB / 469.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.2701, allocations: 0.7344 MB / 470.4 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.398e-05/0.2701, allocations: 18.48 kB / 470.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.2702, allocations: 47.62 kB / 470.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.765e-06/0.2702, allocations: 4 kB / 470.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006632/0.2768, allocations: 3.981 MB / 474.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.2768, allocations: 67.17 kB / 474.5 MB, free: 20.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007889/0.2776, allocations: 0.6776 MB / 475.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.848e-05/0.2777, allocations: 45.27 kB / 475.3 MB, free: 20.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.278, allocations: 0.5105 MB / 475.8 MB, free: 19.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.2783, allocations: 418 kB / 476.2 MB, free: 19.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.2785, allocations: 120.5 kB / 476.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.2786, allocations: 414.5 kB / 476.7 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.2798, allocations: 0.8423 MB / 477.6 MB, free: 18.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.2811, allocations: 1.002 MB / 478.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/0.2944, allocations: 4.661 MB / 483.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2944, allocations: 0 / 483.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003759/0.2981, allocations: 2.488 MB / 485.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2982, allocations: 9.906 kB / 485.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2982, allocations: 8 kB / 485.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.2998, allocations: 0.5472 MB / 486.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.3015, allocations: 407.5 kB / 486.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/0.3142, allocations: 21.45 MB / 0.4962 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.3153, allocations: 162.8 kB / 0.4964 GB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.3154, allocations: 48 kB / 0.4964 GB, free: 4.109 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.0007367/0.3162, allocations: 433.2 kB / 0.4968 GB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.3164, allocations: 86.97 kB / 0.4969 GB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.32, allocations: 1.979 MB / 0.4988 GB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.3201, allocations: 12 kB / 0.4989 GB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3201, allocations: 11.92 kB / 0.4989 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.3201, allocations: 3.984 kB / 0.4989 GB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005764/0.3259, allocations: 3.727 MB / 0.5025 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3259, allocations: 0 / 0.5025 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/0.3279, allocations: 343.6 kB / 0.5028 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.3293, allocations: 484.7 kB / 0.5033 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.3294, allocations: 67.95 kB / 0.5034 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/0.3431, allocations: 20.59 MB / 0.5235 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3432, allocations: 3.984 kB / 0.5235 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/0.3476, allocations: 2.726 MB / 0.5261 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.3479, allocations: 187.8 kB / 0.5263 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.3481, allocations: 59.98 kB / 0.5264 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008191/0.3489, allocations: 83.75 kB / 0.5264 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.3491, allocations: 96.69 kB / 0.5265 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.949e-05/0.3492, allocations: 35.98 kB / 0.5266 GB, free: 2.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005599/0.3498, allocations: 471 kB / 0.527 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3498, allocations: 4 kB / 0.527 GB, free: 2.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001329/0.3511, allocations: 0.4952 MB / 0.5275 GB, free: 1.902 MB / 398.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.004864/0.356, allocations: 3.358 MB / 0.5308 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004109/0.3601, allocations: 3.418 MB / 0.5341 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3601, allocations: 4.375 kB / 0.5341 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.3627, allocations: 2.479 MB / 0.5366 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3641, allocations: 304.5 kB / 0.5368 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02545/0.3896, allocations: 17.08 MB / 0.5535 GB, free: 6.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009208/0.3905, allocations: 1.272 MB / 0.5548 GB, free: 4.961 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001056/0.3916, allocations: 367.8 kB / 0.5551 GB, free: 4.598 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007355/0.3923, allocations: 467.3 kB / 0.5556 GB, free: 4.141 MB / 430.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3923, allocations: 4 kB / 0.5556 GB, free: 4.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7595/1.152, allocations: 32.6 MB / 0.5874 GB, free: 3.91 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/1.152, allocations: 226.8 kB / 0.5876 GB, free: 3.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.664, allocations: 0 / 0.5876 GB, free: 3.652 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)