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.007925/0.007925, allocations: 98.55 kB / 15.73 MB, free: 6.035 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.001967/0.001968, allocations: 193.3 kB / 16.67 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1947/0.1947, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002449/0.002449, allocations: 66.86 kB / 436.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1193, allocations: 54.97 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004791/0.1241, allocations: 4.383 MB / 495.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.1266, allocations: 1.263 MB / 497.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004349/0.1271, allocations: 15.88 kB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.1275, allocations: 166.6 kB / 497.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007289/0.1282, allocations: 445.5 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000745/0.129, allocations: 311.6 kB / 498.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.1308, allocations: 2.158 MB / 0.4885 GB, free: 8.961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001547/0.1324, allocations: 1.594 MB / 0.4901 GB, free: 7.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008218/0.1332, allocations: 0.8261 MB / 0.4909 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.1343, allocations: 0.9777 MB / 0.4919 GB, free: 5.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.1346, allocations: 236 kB / 0.4921 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002767/0.1349, allocations: 240 kB / 0.4923 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005196/0.1354, allocations: 0.6976 MB / 0.493 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008487/0.1362, allocations: 0.9223 MB / 0.4939 GB, free: 3.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002058/0.1383, allocations: 2.593 MB / 0.4964 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1383, allocations: 8 kB / 0.4964 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1383, allocations: 0 / 0.4964 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.1384, allocations: 0 / 0.4964 GB, free: 0.8164 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.004294/0.1427, allocations: 2.049 MB / 0.4984 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1427, allocations: 8.031 kB / 0.4984 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.143, allocations: 185.7 kB / 0.4986 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002793/0.1433, allocations: 148 kB / 0.4988 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.1446, allocations: 0.8725 MB / 0.4996 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.1447, allocations: 120.6 kB / 0.4997 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/0.1449, allocations: 136.2 kB / 0.4999 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.1475, allocations: 1.589 MB / 0.5014 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.1476, allocations: 0 / 0.5014 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.1477, allocations: 44 kB / 0.5015 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.1478, allocations: 28 kB / 0.5015 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00216/0.1499, allocations: 1.423 MB / 0.5029 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00963/0.1596, allocations: 7.14 MB / 0.5098 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.1644, allocations: 1.894 MB / 0.5117 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/0.1662, allocations: 0.7261 MB / 0.5124 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.362e-05/0.1663, allocations: 16.98 kB / 0.5124 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.1664, allocations: 43.56 kB / 0.5125 GB, free: 15.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 4.147e-06/0.1664, allocations: 0 / 0.5125 GB, free: 15.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.01139/0.1778, allocations: 3.944 MB / 0.5163 GB, free: 11.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.154e-05/0.1779, allocations: 60.41 kB / 0.5164 GB, free: 11.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.1796, allocations: 0.6839 MB / 0.517 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001532/0.1798, allocations: 45.7 kB / 0.5171 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005025/0.1803, allocations: 0.5123 MB / 0.5176 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006069/0.1809, allocations: 424.4 kB / 0.518 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007434/0.1817, allocations: 247.6 kB / 0.5182 GB, free: 9.453 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002729/0.182, allocations: 418.7 kB / 0.5186 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.1842, allocations: 0.8428 MB / 0.5194 GB, free: 8.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002317/0.1865, allocations: 1.004 MB / 0.5204 GB, free: 7.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01675/0.2033, allocations: 4.447 MB / 0.5248 GB, free: 2.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.2034, allocations: 0 / 0.5248 GB, free: 2.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004677/0.208, allocations: 2.473 MB / 0.5272 GB, free: 72 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2081, allocations: 12.03 kB / 0.5272 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.2081, allocations: 4 kB / 0.5272 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.21, allocations: 0.5317 MB / 0.5277 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.2118, allocations: 395.5 kB / 0.5281 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/0.2284, allocations: 23.05 MB / 0.5506 GB, free: 5.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/0.23, allocations: 150.9 kB / 0.5507 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003057/0.2303, allocations: 48 kB / 0.5508 GB, free: 5.68 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.001236/0.2316, allocations: 426.1 kB / 0.5512 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/0.232, allocations: 95.39 kB / 0.5513 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/0.2358, allocations: 1.979 MB / 0.5532 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.2358, allocations: 19.92 kB / 0.5532 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.2358, allocations: 4 kB / 0.5532 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.2358, allocations: 3.984 kB / 0.5532 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005692/0.2415, allocations: 3.555 MB / 0.5567 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.2416, allocations: 0 / 0.5567 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.2435, allocations: 339.6 kB / 0.557 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001296/0.2448, allocations: 480.6 kB / 0.5575 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.245, allocations: 67.95 kB / 0.5576 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/0.2597, allocations: 22.17 MB / 0.5792 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2597, allocations: 0 / 0.5792 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/0.2645, allocations: 2.742 MB / 0.5819 GB, free: 3.402 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.2649, allocations: 192.3 kB / 0.5821 GB, free: 3.195 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.2651, allocations: 67.91 kB / 0.5821 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008117/0.2659, allocations: 55.94 kB / 0.5822 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.2662, allocations: 100.8 kB / 0.5823 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-05/0.2663, allocations: 27.98 kB / 0.5823 GB, free: 2.949 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000618/0.2669, allocations: 483 kB / 0.5828 GB, free: 2.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2669, allocations: 0 / 0.5828 GB, free: 2.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001516/0.2685, allocations: 0.5071 MB / 0.5833 GB, free: 1.973 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.2406/0.5091, allocations: 3.351 MB / 0.5865 GB, free: 96.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004845/0.514, allocations: 3.435 MB / 0.5899 GB, free: 94.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.514, allocations: 0 / 0.5899 GB, free: 94.85 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003149/0.5172, allocations: 2.46 MB / 0.5923 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.5191, allocations: 315.7 kB / 0.5926 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/0.5451, allocations: 15.51 MB / 0.6077 GB, free: 86.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006763/0.5458, allocations: 1.273 MB / 0.609 GB, free: 85.37 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008459/0.5467, allocations: 359.8 kB / 0.6093 GB, free: 85.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/0.5472, allocations: 449.6 kB / 0.6098 GB, free: 84.99 MB / 462.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5472, allocations: 0 / 0.6098 GB, free: 84.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/0.6494, allocations: 34.42 MB / 0.6434 GB, free: 54.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.75, allocations: 16.77 kB / 0.6434 GB, free: 54.1 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 20 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)