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.007207/0.007207, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001569/0.001569, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1969/0.1969, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 61.03 kB / 436.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09832, allocations: 54.97 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004382/0.1027, allocations: 4.414 MB / 496 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1047, allocations: 1.267 MB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.105, allocations: 19.88 kB / 497.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.1053, allocations: 166.6 kB / 497.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006421/0.106, allocations: 457.4 kB / 497.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.1067, allocations: 311.6 kB / 498.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.1085, allocations: 2.173 MB / 0.4886 GB, free: 8.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.1101, allocations: 1.602 MB / 0.4902 GB, free: 7.246 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008939/0.111, allocations: 0.8457 MB / 0.491 GB, free: 6.398 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.1121, allocations: 0.9698 MB / 0.4919 GB, free: 5.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002645/0.1124, allocations: 232 kB / 0.4922 GB, free: 5.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.1127, allocations: 232 kB / 0.4924 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005353/0.1132, allocations: 0.6937 MB / 0.4931 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008588/0.1141, allocations: 0.9222 MB / 0.494 GB, free: 3.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002075/0.1162, allocations: 2.57 MB / 0.4965 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1162, allocations: 4 kB / 0.4965 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1162, allocations: 3.938 kB / 0.4965 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.245e-05/0.1162, allocations: 0 / 0.4965 GB, free: 0.7656 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.004201/0.1204, allocations: 2.038 MB / 0.4985 GB, free: 14.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1205, allocations: 8.031 kB / 0.4985 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002311/0.1207, allocations: 189.7 kB / 0.4987 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/0.121, allocations: 160 kB / 0.4988 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.1223, allocations: 0.8686 MB / 0.4997 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.1225, allocations: 120.6 kB / 0.4998 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.1227, allocations: 140.3 kB / 0.4999 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002572/0.1253, allocations: 1.585 MB / 0.5015 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.1253, allocations: 0 / 0.5015 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.1255, allocations: 51.98 kB / 0.5015 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.1255, allocations: 28 kB / 0.5015 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.1277, allocations: 1.407 MB / 0.5029 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01074/0.1385, allocations: 7.113 MB / 0.5099 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00464/0.1432, allocations: 1.871 MB / 0.5117 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.1444, allocations: 0.7423 MB / 0.5124 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.451e-05/0.1445, allocations: 16.91 kB / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.1445, allocations: 43.56 kB / 0.5125 GB, free: 15.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 3.045e-06/0.1445, allocations: 0 / 0.5125 GB, free: 15.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007302/0.1518, allocations: 3.937 MB / 0.5163 GB, free: 11.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.1519, allocations: 64.34 kB / 0.5164 GB, free: 11.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009386/0.1529, allocations: 0.6762 MB / 0.517 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.153, allocations: 41.7 kB / 0.5171 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.1533, allocations: 0.5317 MB / 0.5176 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004214/0.1538, allocations: 432.4 kB / 0.518 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004233/0.1542, allocations: 239.5 kB / 0.5182 GB, free: 9.441 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.1544, allocations: 418.7 kB / 0.5186 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.1557, allocations: 0.8429 MB / 0.5195 GB, free: 8.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.1571, allocations: 1.004 MB / 0.5204 GB, free: 7.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/0.1707, allocations: 4.463 MB / 0.5248 GB, free: 2.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.1707, allocations: 0 / 0.5248 GB, free: 2.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004511/0.1753, allocations: 2.469 MB / 0.5272 GB, free: 48 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.1753, allocations: 8 kB / 0.5272 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.1753, allocations: 7.984 kB / 0.5272 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.1772, allocations: 0.5356 MB / 0.5277 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/0.179, allocations: 399.5 kB / 0.5281 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01633/0.1954, allocations: 23.05 MB / 0.5506 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.1967, allocations: 155 kB / 0.5508 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.1968, allocations: 60.02 kB / 0.5508 GB, free: 5.633 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.0007581/0.1976, allocations: 425.9 kB / 0.5512 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.1978, allocations: 95.39 kB / 0.5513 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.2013, allocations: 1.99 MB / 0.5533 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.2013, allocations: 12 kB / 0.5533 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.2013, allocations: 4 kB / 0.5533 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2014, allocations: 7.984 kB / 0.5533 GB, free: 3.043 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006145/0.2075, allocations: 3.705 MB / 0.5569 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.2075, allocations: 0 / 0.5569 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/0.2096, allocations: 351.8 kB / 0.5573 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.2109, allocations: 480.5 kB / 0.5577 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.2111, allocations: 67.95 kB / 0.5578 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/0.2263, allocations: 22.17 MB / 0.5794 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.2264, allocations: 11.97 kB / 0.5794 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004716/0.2311, allocations: 2.737 MB / 0.5821 GB, free: 3.176 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.2314, allocations: 196.3 kB / 0.5823 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.2316, allocations: 59.98 kB / 0.5824 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/0.2324, allocations: 51.92 kB / 0.5824 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.2327, allocations: 104.7 kB / 0.5825 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/0.2328, allocations: 35.98 kB / 0.5825 GB, free: 2.719 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006028/0.2334, allocations: 475 kB / 0.583 GB, free: 2.254 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2334, allocations: 3.938 kB / 0.583 GB, free: 2.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001667/0.2351, allocations: 0.5032 MB / 0.5835 GB, free: 1.746 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.2364/0.4715, allocations: 3.346 MB / 0.5868 GB, free: 96.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003708/0.4752, allocations: 3.427 MB / 0.5901 GB, free: 94.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4752, allocations: 2.781 kB / 0.5901 GB, free: 94.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.4773, allocations: 2.47 MB / 0.5925 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.001276/0.4786, allocations: 307.2 kB / 0.5928 GB, free: 93.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02351/0.5021, allocations: 15.52 MB / 0.608 GB, free: 86.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007648/0.5029, allocations: 1.262 MB / 0.6092 GB, free: 85.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001129/0.504, allocations: 379.3 kB / 0.6096 GB, free: 85.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006383/0.5047, allocations: 469.4 kB / 0.61 GB, free: 84.97 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5047, allocations: 0 / 0.61 GB, free: 84.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.6053, allocations: 34.6 MB / 0.6438 GB, free: 53.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.63, allocations: 19.11 kB / 0.6438 GB, free: 53.62 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004_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_004.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)