Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.001717/0.001717, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2023/0.2023, allocations: 22.34 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 61.3 kB / 436.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1139, allocations: 54.97 MB / 491.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005108/0.1191, allocations: 4.42 MB / 496 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.1215, allocations: 1.275 MB / 497.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.1218, allocations: 15.88 kB / 497.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.1222, allocations: 170.6 kB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007221/0.123, allocations: 449.4 kB / 497.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.1236, allocations: 315.5 kB / 498.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002013/0.1257, allocations: 2.169 MB / 0.4886 GB, free: 8.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.1274, allocations: 1.602 MB / 0.4902 GB, free: 7.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009777/0.1284, allocations: 0.8418 MB / 0.491 GB, free: 6.371 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.1297, allocations: 0.9815 MB / 0.4919 GB, free: 5.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002658/0.13, allocations: 228 kB / 0.4922 GB, free: 5.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.1303, allocations: 232 kB / 0.4924 GB, free: 4.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006008/0.1309, allocations: 0.6937 MB / 0.4931 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000958/0.1319, allocations: 0.9183 MB / 0.494 GB, free: 3.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002323/0.1342, allocations: 2.574 MB / 0.4965 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1342, allocations: 3.938 kB / 0.4965 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1342, allocations: 3.938 kB / 0.4965 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.038e-05/0.1343, allocations: 0 / 0.4965 GB, free: 0.7305 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.004596/0.1389, allocations: 2.041 MB / 0.4985 GB, free: 14.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1389, allocations: 12.03 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002353/0.1392, allocations: 181.7 kB / 0.4987 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.1394, allocations: 156 kB / 0.4988 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.1409, allocations: 0.8725 MB / 0.4997 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1411, allocations: 116.6 kB / 0.4998 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.1413, allocations: 140.3 kB / 0.4999 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002687/0.144, allocations: 1.585 MB / 0.5015 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.1441, allocations: 0 / 0.5015 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.1443, allocations: 52 kB / 0.5015 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.1443, allocations: 31.94 kB / 0.5015 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.1466, allocations: 1.407 MB / 0.5029 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.1579, allocations: 7.105 MB / 0.5098 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004985/0.1629, allocations: 1.874 MB / 0.5117 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.1642, allocations: 0.7422 MB / 0.5124 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.069e-05/0.1643, allocations: 20.98 kB / 0.5124 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.1643, allocations: 40.03 kB / 0.5125 GB, free: 15.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 3.376e-06/0.1643, allocations: 0 / 0.5125 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007436/0.1718, allocations: 3.928 MB / 0.5163 GB, free: 11.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.1718, allocations: 76.34 kB / 0.5164 GB, free: 11.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.1729, allocations: 0.6723 MB / 0.517 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.33e-05/0.173, allocations: 45.7 kB / 0.5171 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.1734, allocations: 0.5278 MB / 0.5176 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005118/0.1739, allocations: 428.4 kB / 0.518 GB, free: 9.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004205/0.1743, allocations: 247.5 kB / 0.5182 GB, free: 9.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.1745, allocations: 414.7 kB / 0.5186 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.1759, allocations: 0.839 MB / 0.5194 GB, free: 8.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.1774, allocations: 1.008 MB / 0.5204 GB, free: 7.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01386/0.1912, allocations: 4.455 MB / 0.5248 GB, free: 2.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.1913, allocations: 12 kB / 0.5248 GB, free: 2.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004856/0.1961, allocations: 2.469 MB / 0.5272 GB, free: 12 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.1962, allocations: 8 kB / 0.5272 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.1962, allocations: 4 kB / 0.5272 GB, free: 0 / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/0.1981, allocations: 0.5395 MB / 0.5277 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.2001, allocations: 403.5 kB / 0.5281 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01824/0.2183, allocations: 23.05 MB / 0.5506 GB, free: 5.809 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.2197, allocations: 158.9 kB / 0.5508 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/0.22, allocations: 44 kB / 0.5508 GB, free: 5.609 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.0009802/0.221, allocations: 440.3 kB / 0.5512 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003569/0.2213, allocations: 95.39 kB / 0.5513 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.2253, allocations: 1.983 MB / 0.5533 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.2253, allocations: 15.98 kB / 0.5533 GB, free: 3.023 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.2254, allocations: 4 kB / 0.5533 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.2254, allocations: 7.969 kB / 0.5533 GB, free: 3.012 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006705/0.2321, allocations: 3.72 MB / 0.5569 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.657e-06/0.2321, allocations: 4 kB / 0.5569 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/0.2342, allocations: 343.6 kB / 0.5573 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001421/0.2356, allocations: 480.8 kB / 0.5577 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.2358, allocations: 67.95 kB / 0.5578 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01642/0.2522, allocations: 22.16 MB / 0.5794 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.2523, allocations: 3.938 kB / 0.5794 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005091/0.2574, allocations: 2.744 MB / 0.5821 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003787/0.2578, allocations: 200.2 kB / 0.5823 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.2581, allocations: 59.98 kB / 0.5824 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008412/0.2589, allocations: 51.92 kB / 0.5824 GB, free: 2.816 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.2592, allocations: 104.8 kB / 0.5825 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.2593, allocations: 27.98 kB / 0.5825 GB, free: 2.688 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006629/0.26, allocations: 475 kB / 0.583 GB, free: 2.223 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.26, allocations: 3.938 kB / 0.583 GB, free: 2.219 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001672/0.2616, allocations: 0.4994 MB / 0.5835 GB, free: 1.719 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.3003/0.562, allocations: 3.349 MB / 0.5868 GB, free: 96.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00418/0.5662, allocations: 3.431 MB / 0.5901 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.5662, allocations: 2.156 kB / 0.5901 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.5686, allocations: 2.464 MB / 0.5925 GB, free: 93.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5699, allocations: 318.5 kB / 0.5928 GB, free: 93.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/0.5946, allocations: 15.52 MB / 0.608 GB, free: 86.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007377/0.5954, allocations: 1.272 MB / 0.6092 GB, free: 85.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.5964, allocations: 362.2 kB / 0.6096 GB, free: 85.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006006/0.597, allocations: 472.9 kB / 0.61 GB, free: 84.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.363e-06/0.597, allocations: 0 / 0.61 GB, free: 84.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09396/0.691, allocations: 34.63 MB / 0.6438 GB, free: 53.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.59, allocations: 14.7 kB / 0.6438 GB, free: 53.61 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim_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_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)