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.001555/0.001555, allocations: 108.6 kB / 15.73 MB, free: 72 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.001689/0.001689, allocations: 183.2 kB / 16.66 MB, free: 6.602 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1806/0.1806, allocations: 22.34 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002585/0.002585, allocations: 68.66 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08538/0.08799, allocations: 54.95 MB / 491.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.00479/0.09281, allocations: 4.428 MB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.09517, allocations: 1.259 MB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003325/0.09552, allocations: 19.88 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003374/0.09588, allocations: 166.6 kB / 497.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006769/0.09657, allocations: 433.5 kB / 497.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006943/0.09727, allocations: 327.4 kB / 498.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.0993, allocations: 2.169 MB / 0.4886 GB, free: 8.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.101, allocations: 1.598 MB / 0.4901 GB, free: 7.281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009265/0.102, allocations: 0.8417 MB / 0.491 GB, free: 6.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.1032, allocations: 0.9737 MB / 0.4919 GB, free: 5.461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002889/0.1035, allocations: 228 kB / 0.4921 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.1038, allocations: 236 kB / 0.4923 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.1044, allocations: 0.6937 MB / 0.493 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009185/0.1054, allocations: 0.9222 MB / 0.4939 GB, free: 3.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002362/0.1077, allocations: 2.57 MB / 0.4964 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1077, allocations: 0 / 0.4964 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1077, allocations: 0 / 0.4964 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.1078, allocations: 0 / 0.4964 GB, free: 0.8086 MB / 366.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.004192/0.112, allocations: 2.041 MB / 0.4984 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.112, allocations: 12.03 kB / 0.4984 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002484/0.1123, allocations: 185.7 kB / 0.4986 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002696/0.1125, allocations: 160 kB / 0.4988 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.1138, allocations: 0.8763 MB / 0.4996 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.114, allocations: 116.6 kB / 0.4997 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.1142, allocations: 140.3 kB / 0.4999 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.1169, allocations: 1.585 MB / 0.5014 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1169, allocations: 0 / 0.5014 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.117, allocations: 48 kB / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.601e-05/0.1171, allocations: 28 kB / 0.5015 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.1195, allocations: 1.415 MB / 0.5029 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.1297, allocations: 7.097 MB / 0.5098 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004872/0.1346, allocations: 1.879 MB / 0.5116 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.1358, allocations: 0.7422 MB / 0.5124 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-05/0.1359, allocations: 16.98 kB / 0.5124 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.1359, allocations: 43.56 kB / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 2.194e-06/0.1359, allocations: 4 kB / 0.5124 GB, free: 15.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007301/0.1433, allocations: 3.929 MB / 0.5163 GB, free: 11.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.1433, allocations: 68.34 kB / 0.5163 GB, free: 11.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/0.1442, allocations: 0.6762 MB / 0.517 GB, free: 10.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/0.1443, allocations: 45.64 kB / 0.517 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/0.1447, allocations: 0.5278 MB / 0.5175 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003917/0.1451, allocations: 432.4 kB / 0.518 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000444/0.1455, allocations: 243.5 kB / 0.5182 GB, free: 9.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.1458, allocations: 414.7 kB / 0.5186 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.1471, allocations: 0.8429 MB / 0.5194 GB, free: 8.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.1486, allocations: 1.003 MB / 0.5204 GB, free: 7.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/0.1623, allocations: 4.47 MB / 0.5248 GB, free: 2.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.1623, allocations: 4 kB / 0.5248 GB, free: 2.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004459/0.1667, allocations: 2.465 MB / 0.5272 GB, free: 88 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1668, allocations: 11.12 kB / 0.5272 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1668, allocations: 4 kB / 0.5272 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.1685, allocations: 0.5395 MB / 0.5277 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.1701, allocations: 399.5 kB / 0.5281 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/0.188, allocations: 23.05 MB / 0.5506 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008887/0.1889, allocations: 159.2 kB / 0.5507 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.189, allocations: 48 kB / 0.5508 GB, free: 5.684 MB / 430.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.0006753/0.1897, allocations: 429.8 kB / 0.5512 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.1899, allocations: 99.39 kB / 0.5513 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.1935, allocations: 1.994 MB / 0.5532 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1935, allocations: 12 kB / 0.5533 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1935, allocations: 4 kB / 0.5533 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.1935, allocations: 3.984 kB / 0.5533 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005625/0.1991, allocations: 3.705 MB / 0.5569 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1991, allocations: 0 / 0.5569 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/0.201, allocations: 343.6 kB / 0.5572 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.2023, allocations: 480.5 kB / 0.5577 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.2024, allocations: 67.95 kB / 0.5577 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01635/0.2188, allocations: 22.18 MB / 0.5794 GB, free: 6.055 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2188, allocations: 3.938 kB / 0.5794 GB, free: 6.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.2232, allocations: 2.741 MB / 0.5821 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.2234, allocations: 196.3 kB / 0.5823 GB, free: 3.012 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.2236, allocations: 59.98 kB / 0.5823 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/0.2243, allocations: 51.92 kB / 0.5824 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.2246, allocations: 104.8 kB / 0.5825 GB, free: 2.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.584e-05/0.2247, allocations: 31.98 kB / 0.5825 GB, free: 2.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.2252, allocations: 475 kB / 0.5829 GB, free: 2.305 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.2252, allocations: 0 / 0.5829 GB, free: 2.305 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001248/0.2265, allocations: 0.511 MB / 0.5834 GB, free: 1.793 MB / 462.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.1889/0.4154, allocations: 3.349 MB / 0.5867 GB, free: 96.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003519/0.419, allocations: 3.434 MB / 0.5901 GB, free: 94.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.419, allocations: 0 / 0.5901 GB, free: 94.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001919/0.4209, allocations: 2.466 MB / 0.5925 GB, free: 93.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.4221, allocations: 305.9 kB / 0.5928 GB, free: 93.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/0.4426, allocations: 15.52 MB / 0.6079 GB, free: 86.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.4433, allocations: 1.273 MB / 0.6092 GB, free: 85.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008544/0.4442, allocations: 367.2 kB / 0.6095 GB, free: 85.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005834/0.4447, allocations: 469.4 kB / 0.61 GB, free: 84.99 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4448, allocations: 0 / 0.61 GB, free: 84.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.7239, allocations: 34.61 MB / 0.6438 GB, free: 53.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.77, allocations: 7.734 kB / 0.6438 GB, free: 53.71 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)