Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",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.006936/0.006936, allocations: 102 kB / 15.73 MB, free: 6.039 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.001369/0.001369, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.206/0.206, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 79.75 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1011, allocations: 54.96 MB / 491.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004576/0.1057, allocations: 3.337 MB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.1078, allocations: 0.9313 MB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004202/0.1083, allocations: 7.938 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.1087, allocations: 103.1 kB / 495.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007186/0.1094, allocations: 262.4 kB / 496.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000743/0.1101, allocations: 187.7 kB / 496.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.1116, allocations: 1.229 MB / 497.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.1129, allocations: 0.8747 MB / 498.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008962/0.1138, allocations: 494.7 kB / 499 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009866/0.1148, allocations: 0.5647 MB / 499.5 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000299/0.1151, allocations: 132 kB / 499.6 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003509/0.1155, allocations: 135.9 kB / 499.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003651/0.1158, allocations: 395.1 kB / 0.4884 GB, free: 9.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00081/0.1167, allocations: 0.5408 MB / 0.489 GB, free: 8.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001403/0.1181, allocations: 1.462 MB / 0.4904 GB, free: 7.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1181, allocations: 0 / 0.4904 GB, free: 7.008 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1181, allocations: 0 / 0.4904 GB, free: 7.008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.043e-05/0.1181, allocations: 0 / 0.4904 GB, free: 7.008 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.003277/0.1214, allocations: 1.287 MB / 0.4917 GB, free: 5.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.1215, allocations: 8.031 kB / 0.4917 GB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.1217, allocations: 122.7 kB / 0.4918 GB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.1219, allocations: 87.91 kB / 0.4919 GB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008626/0.1228, allocations: 0.566 MB / 0.4924 GB, free: 4.844 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.973e-05/0.1229, allocations: 84.27 kB / 0.4925 GB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.123, allocations: 76.28 kB / 0.4926 GB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.1247, allocations: 0.9365 MB / 0.4935 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.1247, allocations: 3.938 kB / 0.4935 GB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-05/0.1248, allocations: 28 kB / 0.4935 GB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.1248, allocations: 16 kB / 0.4935 GB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1262, allocations: 0.812 MB / 0.4943 GB, free: 2.879 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005697/0.1319, allocations: 3.947 MB / 0.4982 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002657/0.1346, allocations: 1.017 MB / 0.4992 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.1352, allocations: 414.4 kB / 0.4996 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.1352, allocations: 8.547 kB / 0.4996 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.1353, allocations: 43.12 kB / 0.4996 GB, free: 13.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 4.409e-06/0.1353, allocations: 0 / 0.4996 GB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004047/0.1393, allocations: 2.37 MB / 0.5019 GB, free: 10.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.1394, allocations: 55.97 kB / 0.502 GB, free: 10.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004825/0.1399, allocations: 413.7 kB / 0.5024 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.14, allocations: 33.7 kB / 0.5024 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.1402, allocations: 331.9 kB / 0.5027 GB, free: 9.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.1404, allocations: 228.8 kB / 0.5029 GB, free: 9.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.1406, allocations: 122.7 kB / 0.5031 GB, free: 9.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1408, allocations: 366.8 kB / 0.5034 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006557/0.1414, allocations: 452.7 kB / 0.5038 GB, free: 8.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006837/0.1421, allocations: 0.5004 MB / 0.5043 GB, free: 8.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006889/0.149, allocations: 2.36 MB / 0.5066 GB, free: 5.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.149, allocations: 0 / 0.5066 GB, free: 5.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002639/0.1517, allocations: 1.337 MB / 0.5079 GB, free: 4.273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1517, allocations: 4 kB / 0.5079 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1518, allocations: 0 / 0.5079 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.1529, allocations: 348.3 kB / 0.5083 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008591/0.1537, allocations: 191.8 kB / 0.5085 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.1659, allocations: 15.15 MB / 0.5232 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006999/0.1666, allocations: 67.38 kB / 0.5233 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.1668, allocations: 28 kB / 0.5233 GB, free: 3.039 MB / 398.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006859/0.1675, allocations: 299.3 kB / 0.5236 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.1677, allocations: 47.44 kB / 0.5237 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.1698, allocations: 1.139 MB / 0.5248 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1698, allocations: 4 kB / 0.5248 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.1698, allocations: 8 kB / 0.5248 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.1698, allocations: 7.984 kB / 0.5248 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003593/0.1734, allocations: 2.114 MB / 0.5269 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1735, allocations: 0 / 0.5269 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.1745, allocations: 168 kB / 0.527 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008315/0.1753, allocations: 316.3 kB / 0.5273 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.014e-05/0.1754, allocations: 31.98 kB / 0.5274 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009634/0.1851, allocations: 14.71 MB / 0.5417 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.1851, allocations: 0 / 0.5417 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.1877, allocations: 1.592 MB / 0.5433 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.188, allocations: 140.4 kB / 0.5434 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.1881, allocations: 36.11 kB / 0.5434 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000424/0.1886, allocations: 31.97 kB / 0.5435 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.1887, allocations: 52.42 kB / 0.5435 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.1888, allocations: 19.98 kB / 0.5435 GB, free: 12.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003895/0.1892, allocations: 295.2 kB / 0.5438 GB, free: 12.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1892, allocations: 0 / 0.5438 GB, free: 12.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009151/0.1901, allocations: 299.3 kB / 0.5441 GB, free: 12.11 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002802/0.1929, allocations: 2.178 MB / 0.5462 GB, free: 9.859 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.1954, allocations: 2.048 MB / 0.5482 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1954, allocations: 0 / 0.5482 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.197, allocations: 1.545 MB / 0.5497 GB, free: 6.016 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007372/0.1977, allocations: 173.3 kB / 0.5499 GB, free: 5.844 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.2106, allocations: 8.827 MB / 0.5585 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.2113, allocations: 1.009 MB / 0.5595 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.2118, allocations: 160.6 kB / 0.5597 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.2122, allocations: 263.3 kB / 0.5599 GB, free: 11.36 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2122, allocations: 0 / 0.5599 GB, free: 11.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0862/0.2984, allocations: 20 MB / 0.5795 GB, free: 7.598 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.7, allocations: 19.47 kB / 0.5795 GB, free: 7.578 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)