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.006395/0.006395, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.001227/0.001227, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09443/0.09443, allocations: 22.32 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 55.91 kB / 436.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1375, allocations: 54.97 MB / 491.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004683/0.1423, allocations: 3.331 MB / 494.8 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1442, allocations: 0.9313 MB / 495.8 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003207/0.1445, allocations: 11.94 kB / 495.8 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.1449, allocations: 95.16 kB / 495.9 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006022/0.1455, allocations: 278.4 kB / 496.2 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.1461, allocations: 183.7 kB / 496.3 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.1473, allocations: 1.229 MB / 497.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.1484, allocations: 0.8902 MB / 498.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006536/0.1491, allocations: 482.8 kB / 498.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008015/0.1499, allocations: 0.5686 MB / 499.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002142/0.1501, allocations: 132 kB / 499.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002758/0.1504, allocations: 132 kB / 499.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003405/0.1507, allocations: 399 kB / 0.4884 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007014/0.1515, allocations: 0.5253 MB / 0.4889 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001333/0.1528, allocations: 1.468 MB / 0.4904 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1528, allocations: 0 / 0.4904 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1528, allocations: 4 kB / 0.4904 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.1529, allocations: 0 / 0.4904 GB, free: 10.66 MB / 382.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.00311/0.156, allocations: 1.309 MB / 0.4916 GB, free: 9.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.156, allocations: 8.031 kB / 0.4917 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.1562, allocations: 122.7 kB / 0.4918 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.1565, allocations: 92.38 kB / 0.4919 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.1576, allocations: 0.5663 MB / 0.4924 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.523e-05/0.1577, allocations: 80.27 kB / 0.4925 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.1579, allocations: 88.31 kB / 0.4926 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.1597, allocations: 0.9247 MB / 0.4935 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.1597, allocations: 7.922 kB / 0.4935 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.423e-05/0.1598, allocations: 36 kB / 0.4935 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1598, allocations: 16 kB / 0.4935 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1612, allocations: 0.8043 MB / 0.4943 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006598/0.1678, allocations: 3.955 MB / 0.4982 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.1707, allocations: 1.029 MB / 0.4992 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006326/0.1713, allocations: 410.4 kB / 0.4996 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.1715, allocations: 12.53 kB / 0.4996 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.1715, allocations: 39.12 kB / 0.4996 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 4.408e-06/0.1715, allocations: 0 / 0.4996 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.2375/0.409, allocations: 2.367 MB / 0.5019 GB, free: 21.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.4091, allocations: 56.91 kB / 0.502 GB, free: 20.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.4096, allocations: 414 kB / 0.5024 GB, free: 20.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.4097, allocations: 36.89 kB / 0.5024 GB, free: 20.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.4098, allocations: 335.3 kB / 0.5027 GB, free: 20.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.4101, allocations: 239.7 kB / 0.503 GB, free: 20.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.4103, allocations: 124.5 kB / 0.5031 GB, free: 20.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.4104, allocations: 364.1 kB / 0.5034 GB, free: 20.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006429/0.411, allocations: 459.5 kB / 0.5039 GB, free: 20.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.4116, allocations: 0.4955 MB / 0.5044 GB, free: 20.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006918/0.4185, allocations: 2.352 MB / 0.5067 GB, free: 20.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4185, allocations: 0.875 kB / 0.5067 GB, free: 20.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002627/0.4212, allocations: 1.339 MB / 0.508 GB, free: 19.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.4212, allocations: 5.438 kB / 0.508 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.4212, allocations: 3.5 kB / 0.508 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.4224, allocations: 350.7 kB / 0.5083 GB, free: 19.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009597/0.4234, allocations: 183.4 kB / 0.5085 GB, free: 19.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/0.4326, allocations: 15.16 MB / 0.5233 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000949/0.4336, allocations: 70.34 kB / 0.5234 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.4337, allocations: 25.89 kB / 0.5234 GB, free: 6.164 MB / 382.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.0006615/0.4344, allocations: 283 kB / 0.5236 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.4346, allocations: 60.84 kB / 0.5237 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.4369, allocations: 1.135 MB / 0.5248 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.4369, allocations: 5.844 kB / 0.5248 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4369, allocations: 7.594 kB / 0.5248 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4369, allocations: 2.438 kB / 0.5248 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003501/0.4404, allocations: 2.121 MB / 0.5269 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4404, allocations: 2.953 kB / 0.5269 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.4414, allocations: 171.2 kB / 0.5271 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009045/0.4424, allocations: 306.9 kB / 0.5274 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.829e-05/0.4424, allocations: 36.61 kB / 0.5274 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.4528, allocations: 14.71 MB / 0.5418 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4529, allocations: 1.281 kB / 0.5418 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003139/0.456, allocations: 1.602 MB / 0.5433 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.4563, allocations: 141.6 kB / 0.5435 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.4565, allocations: 30.58 kB / 0.5435 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.4569, allocations: 32.27 kB / 0.5435 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.4572, allocations: 61.56 kB / 0.5436 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.062e-05/0.4573, allocations: 18.84 kB / 0.5436 GB, free: 5.516 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005043/0.4578, allocations: 294.9 kB / 0.5439 GB, free: 5.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4578, allocations: 0 / 0.5439 GB, free: 5.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001741/0.4596, allocations: 302.3 kB / 0.5442 GB, free: 5.305 MB / 398.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.003221/0.4628, allocations: 2.188 MB / 0.5463 GB, free: 3.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003057/0.4659, allocations: 2.047 MB / 0.5483 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.4659, allocations: 0 / 0.5483 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/0.4678, allocations: 1.558 MB / 0.5498 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008977/0.4687, allocations: 166 kB / 0.55 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.4829, allocations: 8.855 MB / 0.5586 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.4836, allocations: 1.009 MB / 0.5596 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.4841, allocations: 166.1 kB / 0.5598 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004251/0.4845, allocations: 258.6 kB / 0.56 GB, free: 10.47 MB / 414.1 MB Notification: Performance of SimCode: time 3.085e-06/0.4846, allocations: 0 / 0.56 GB, free: 10.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06733/0.5519, allocations: 19.66 MB / 0.5792 GB, free: 7.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.52, allocations: 7.75 kB / 0.5792 GB, free: 7.152 MB / 430.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)