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.004727/0.004727, allocations: 97.11 kB / 15.73 MB, free: 5.988 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.001055/0.001055, allocations: 187 kB / 16.67 MB, free: 5.918 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.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1776/0.1776, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 66.77 kB / 436.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06901/0.07068, allocations: 54.96 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004344/0.07505, allocations: 4.406 MB / 495.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.07687, allocations: 1.255 MB / 497.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.07706, allocations: 15.94 kB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.07737, allocations: 166.6 kB / 497.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006103/0.07799, allocations: 425.5 kB / 497.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005934/0.07859, allocations: 323.5 kB / 498.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001835/0.08043, allocations: 2.142 MB / 0.4885 GB, free: 8.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.08195, allocations: 1.594 MB / 0.4901 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007553/0.08271, allocations: 0.8222 MB / 0.4909 GB, free: 6.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.08383, allocations: 0.9854 MB / 0.4918 GB, free: 5.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.08413, allocations: 236 kB / 0.4921 GB, free: 5.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003395/0.08447, allocations: 236 kB / 0.4923 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005692/0.08505, allocations: 0.6976 MB / 0.493 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008483/0.0859, allocations: 0.9223 MB / 0.4939 GB, free: 3.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002147/0.08805, allocations: 2.601 MB / 0.4964 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.08806, allocations: 0 / 0.4964 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.08807, allocations: 0 / 0.4964 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.08809, allocations: 3.938 kB / 0.4964 GB, free: 0.832 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003902/0.092, allocations: 2.045 MB / 0.4984 GB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.09203, allocations: 12.03 kB / 0.4984 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002277/0.09227, allocations: 181.7 kB / 0.4986 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/0.09251, allocations: 156 kB / 0.4988 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.09368, allocations: 0.8686 MB / 0.4996 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.09379, allocations: 120.6 kB / 0.4997 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.09401, allocations: 140.3 kB / 0.4998 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.09647, allocations: 1.593 MB / 0.5014 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.0965, allocations: 0 / 0.5014 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.09663, allocations: 52 kB / 0.5015 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.09666, allocations: 28 kB / 0.5015 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.09889, allocations: 1.423 MB / 0.5029 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00912/0.108, allocations: 7.132 MB / 0.5098 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004557/0.1126, allocations: 1.886 MB / 0.5117 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.1137, allocations: 0.7245 MB / 0.5124 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.807e-05/0.1138, allocations: 12.91 kB / 0.5124 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.1138, allocations: 44.22 kB / 0.5124 GB, free: 15.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 1.944e-06/0.1138, allocations: 0 / 0.5124 GB, free: 15.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.006776/0.1206, allocations: 3.944 MB / 0.5163 GB, free: 11.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.1206, allocations: 64.41 kB / 0.5164 GB, free: 11.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007923/0.1214, allocations: 0.6878 MB / 0.517 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.1215, allocations: 41.7 kB / 0.5171 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.1219, allocations: 0.5162 MB / 0.5176 GB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.1223, allocations: 432.4 kB / 0.518 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004142/0.1227, allocations: 239.6 kB / 0.5182 GB, free: 9.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.1229, allocations: 414.7 kB / 0.5186 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.1242, allocations: 0.8545 MB / 0.5194 GB, free: 8.195 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.1255, allocations: 1.001 MB / 0.5204 GB, free: 7.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.1378, allocations: 4.435 MB / 0.5247 GB, free: 2.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.1378, allocations: 8 kB / 0.5248 GB, free: 2.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004245/0.1421, allocations: 2.477 MB / 0.5272 GB, free: 84 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1421, allocations: 4 kB / 0.5272 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1421, allocations: 8 kB / 0.5272 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.1438, allocations: 0.5395 MB / 0.5277 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.1455, allocations: 395.5 kB / 0.5281 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01726/0.1628, allocations: 23.04 MB / 0.5506 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008029/0.1636, allocations: 147 kB / 0.5507 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.1637, allocations: 51.98 kB / 0.5508 GB, free: 5.695 MB / 430.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.0005952/0.1643, allocations: 426.1 kB / 0.5512 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.1645, allocations: 99.33 kB / 0.5513 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.168, allocations: 1.979 MB / 0.5532 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.168, allocations: 11.94 kB / 0.5532 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.168, allocations: 4 kB / 0.5532 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.168, allocations: 3.984 kB / 0.5532 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005193/0.1732, allocations: 3.559 MB / 0.5567 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1732, allocations: 4 kB / 0.5567 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/0.1751, allocations: 335.6 kB / 0.557 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.1764, allocations: 484.7 kB / 0.5575 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.1765, allocations: 63.97 kB / 0.5576 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01587/0.1924, allocations: 22.16 MB / 0.5792 GB, free: 6.246 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1924, allocations: 4 kB / 0.5792 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.1968, allocations: 2.738 MB / 0.5819 GB, free: 3.422 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.197, allocations: 196.3 kB / 0.5821 GB, free: 3.211 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.1972, allocations: 67.91 kB / 0.5821 GB, free: 3.145 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006644/0.1979, allocations: 55.94 kB / 0.5822 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.1981, allocations: 96.75 kB / 0.5823 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/0.1982, allocations: 39.92 kB / 0.5823 GB, free: 2.957 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005617/0.1988, allocations: 483 kB / 0.5828 GB, free: 2.488 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1988, allocations: 0 / 0.5828 GB, free: 2.488 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001229/0.2, allocations: 0.4993 MB / 0.5833 GB, free: 1.988 MB / 462.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.1714/0.3714, allocations: 3.352 MB / 0.5865 GB, free: 96.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.3749, allocations: 3.433 MB / 0.5899 GB, free: 94.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.375, allocations: 0 / 0.5899 GB, free: 94.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.3768, allocations: 2.465 MB / 0.5923 GB, free: 93.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.3779, allocations: 310.8 kB / 0.5926 GB, free: 93.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01898/0.3969, allocations: 15.51 MB / 0.6077 GB, free: 86.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.3975, allocations: 1.26 MB / 0.609 GB, free: 85.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007373/0.3983, allocations: 358.8 kB / 0.6093 GB, free: 85.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000526/0.3988, allocations: 457.6 kB / 0.6098 GB, free: 85.04 MB / 462.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3988, allocations: 4 kB / 0.6098 GB, free: 85.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.08/1.479, allocations: 34.42 MB / 0.6434 GB, free: 54.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/15.39, allocations: 9.547 kB / 0.6434 GB, free: 54.11 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)