Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",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.004881/0.004881, allocations: 98.38 kB / 15.73 MB, free: 6.012 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.001093/0.001093, allocations: 193.5 kB / 16.67 MB, free: 5.949 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.413/1.413, 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.2168/0.2168, allocations: 22.37 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 62.59 kB / 436.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09504, allocations: 54.97 MB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.004817/0.0999, allocations: 4.401 MB / 496 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002406/0.1023, allocations: 1.267 MB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003289/0.1027, allocations: 19.88 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003315/0.103, allocations: 166.6 kB / 497.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007235/0.1038, allocations: 441.5 kB / 497.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008533/0.1046, allocations: 323.5 kB / 498.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002245/0.1069, allocations: 2.15 MB / 0.4886 GB, free: 8.941 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001979/0.1089, allocations: 1.594 MB / 0.4901 GB, free: 7.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.11, allocations: 0.8261 MB / 0.4909 GB, free: 6.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.1112, allocations: 0.9738 MB / 0.4919 GB, free: 5.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002708/0.1115, allocations: 236 kB / 0.4921 GB, free: 5.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003054/0.1118, allocations: 236 kB / 0.4923 GB, free: 5.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005951/0.1124, allocations: 0.7054 MB / 0.493 GB, free: 4.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000974/0.1134, allocations: 0.9184 MB / 0.4939 GB, free: 3.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.1157, allocations: 2.601 MB / 0.4965 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1157, allocations: 0 / 0.4965 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1157, allocations: 3.938 kB / 0.4965 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.1158, allocations: 0 / 0.4965 GB, free: 0.7969 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.004672/0.1204, allocations: 2.041 MB / 0.4985 GB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1205, allocations: 12.03 kB / 0.4985 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002359/0.1207, allocations: 185.6 kB / 0.4986 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/0.1211, allocations: 160 kB / 0.4988 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.1226, allocations: 0.8647 MB / 0.4996 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.1227, allocations: 116.6 kB / 0.4998 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.123, allocations: 140.3 kB / 0.4999 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002721/0.1258, allocations: 1.585 MB / 0.5014 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.1258, allocations: 0 / 0.5014 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.1259, allocations: 48 kB / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.126, allocations: 32 kB / 0.5015 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.1284, allocations: 1.426 MB / 0.5029 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.1393, allocations: 7.132 MB / 0.5099 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/0.1442, allocations: 1.894 MB / 0.5117 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.1454, allocations: 0.7184 MB / 0.5124 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.751e-05/0.1455, allocations: 16.91 kB / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.1455, allocations: 43.56 kB / 0.5125 GB, free: 15.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.625e-06/0.1455, allocations: 0 / 0.5125 GB, free: 15.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007402/0.1529, allocations: 3.944 MB / 0.5163 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.1531, allocations: 64.41 kB / 0.5164 GB, free: 11.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009881/0.1541, allocations: 0.6878 MB / 0.5171 GB, free: 10.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-05/0.1542, allocations: 41.7 kB / 0.5171 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000352/0.1545, allocations: 0.5084 MB / 0.5176 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004866/0.155, allocations: 444.3 kB / 0.518 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004029/0.1554, allocations: 239.6 kB / 0.5183 GB, free: 9.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1556, allocations: 414.7 kB / 0.5186 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.1569, allocations: 0.8429 MB / 0.5195 GB, free: 8.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.1583, allocations: 1.008 MB / 0.5205 GB, free: 7.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/0.1718, allocations: 4.435 MB / 0.5248 GB, free: 2.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.1719, allocations: 4 kB / 0.5248 GB, free: 2.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004971/0.1768, allocations: 2.473 MB / 0.5272 GB, free: 56 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.1769, allocations: 8 kB / 0.5272 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.1769, allocations: 4 kB / 0.5272 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.1788, allocations: 0.5395 MB / 0.5277 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.1806, allocations: 395.5 kB / 0.5281 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01868/0.1993, allocations: 23.05 MB / 0.5506 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.2009, allocations: 147.1 kB / 0.5508 GB, free: 5.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.2012, allocations: 47.98 kB / 0.5508 GB, free: 5.668 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.00108/0.2023, allocations: 434.5 kB / 0.5512 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.2026, allocations: 95.39 kB / 0.5513 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003982/0.2066, allocations: 1.979 MB / 0.5533 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.2066, allocations: 12 kB / 0.5533 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.2066, allocations: 4 kB / 0.5533 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2066, allocations: 7.922 kB / 0.5533 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006245/0.2129, allocations: 3.555 MB / 0.5567 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.2129, allocations: 4 kB / 0.5568 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/0.215, allocations: 335.6 kB / 0.5571 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/0.2164, allocations: 480.7 kB / 0.5575 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.2165, allocations: 67.97 kB / 0.5576 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/0.2337, allocations: 22.17 MB / 0.5792 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.2337, allocations: 4 kB / 0.5792 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005088/0.2388, allocations: 2.735 MB / 0.5819 GB, free: 3.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.2392, allocations: 208.1 kB / 0.5821 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003281/0.2395, allocations: 55.98 kB / 0.5822 GB, free: 3.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008719/0.2404, allocations: 63.92 kB / 0.5822 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.2407, allocations: 92.77 kB / 0.5823 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.521e-05/0.2408, allocations: 31.98 kB / 0.5823 GB, free: 2.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006925/0.2415, allocations: 483 kB / 0.5828 GB, free: 2.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2415, allocations: 0 / 0.5828 GB, free: 2.461 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001815/0.2433, allocations: 0.5033 MB / 0.5833 GB, free: 1.957 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.2576/0.5009, allocations: 3.357 MB / 0.5866 GB, free: 96.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004144/0.5051, allocations: 3.424 MB / 0.5899 GB, free: 94.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5051, allocations: 0.5625 kB / 0.5899 GB, free: 94.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.5076, allocations: 2.463 MB / 0.5923 GB, free: 93.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.509, allocations: 320.3 kB / 0.5926 GB, free: 93.15 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/0.534, allocations: 15.52 MB / 0.6078 GB, free: 86.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.5347, allocations: 1.26 MB / 0.609 GB, free: 85.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001125/0.5359, allocations: 355.3 kB / 0.6094 GB, free: 85.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006467/0.5365, allocations: 460.2 kB / 0.6098 GB, free: 85 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5365, allocations: 0 / 0.6098 GB, free: 85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/0.6491, allocations: 34.45 MB / 0.6434 GB, free: 54.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.09, allocations: 10.48 kB / 0.6434 GB, free: 54.08 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal_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_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)