Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 106.9 kB / 16.4 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00207/0.00207, allocations: 191.7 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1001/0.1001, allocations: 22.33 MB / 319.6 MB, free: 6.758 MB / 254.1 MB " [Timeout remaining time 180] 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.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.89 kB / 445.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1126, allocations: 54.95 MB / 0.4885 GB, free: 1.594 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001): time 0.4299/0.5426, allocations: 22.82 MB / 0.5108 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007923/0.5434, allocations: 214.2 kB / 0.511 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.5435, allocations: 13.41 kB / 0.511 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.583e-05/0.5436, allocations: 35.08 kB / 0.511 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.5439, allocations: 96.92 kB / 0.5111 GB, free: 5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001382/0.544, allocations: 43.12 kB / 0.5112 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.5443, allocations: 290.5 kB / 0.5114 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.5445, allocations: 160.3 kB / 0.5116 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.5447, allocations: 110.7 kB / 0.5117 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.5449, allocations: 102.7 kB / 0.5118 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.424e-05/0.5449, allocations: 15.31 kB / 0.5118 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.45e-05/0.545, allocations: 14.34 kB / 0.5118 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.515e-05/0.545, allocations: 41.55 kB / 0.5119 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.5452, allocations: 113 kB / 0.512 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.5455, allocations: 222.5 kB / 0.5122 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.5455, allocations: 0 / 0.5122 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5455, allocations: 0.9062 kB / 0.5122 GB, free: 4.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.5455, allocations: 0.6562 kB / 0.5122 GB, free: 4.754 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007782/0.5463, allocations: 0.5218 MB / 0.5127 GB, free: 4.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.5464, allocations: 9.656 kB / 0.5127 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.855e-05/0.5464, allocations: 46.41 kB / 0.5127 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.5465, allocations: 26.44 kB / 0.5128 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.5468, allocations: 279.9 kB / 0.513 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.5468, allocations: 15.55 kB / 0.513 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.5469, allocations: 21.45 kB / 0.5131 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.5472, allocations: 189.5 kB / 0.5132 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.5472, allocations: 3.938 kB / 0.5133 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.5473, allocations: 9.094 kB / 0.5133 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.5473, allocations: 3.812 kB / 0.5133 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.5476, allocations: 118.9 kB / 0.5134 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008171/0.5484, allocations: 0.8495 MB / 0.5142 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.5486, allocations: 86.91 kB / 0.5143 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.5488, allocations: 63.44 kB / 0.5144 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.5488, allocations: 1.719 kB / 0.5144 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.5488, allocations: 37.31 kB / 0.5144 GB, free: 3.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.5488, allocations: 0 / 0.5144 GB, free: 3.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004862/0.5493, allocations: 176.4 kB / 0.5146 GB, free: 3.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.5494, allocations: 53.48 kB / 0.5146 GB, free: 3.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.5496, allocations: 230.8 kB / 0.5148 GB, free: 2.984 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.5496, allocations: 26.77 kB / 0.5149 GB, free: 2.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.5497, allocations: 145.2 kB / 0.515 GB, free: 2.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.5497, allocations: 56.31 kB / 0.515 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.5498, allocations: 31.52 kB / 0.5151 GB, free: 2.797 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.5498, allocations: 337.9 kB / 0.5154 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.55, allocations: 39.84 kB / 0.5154 GB, free: 2.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.5501, allocations: 60.41 kB / 0.5155 GB, free: 2.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000783/0.5509, allocations: 232.3 kB / 0.5157 GB, free: 2.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5509, allocations: 0 / 0.5157 GB, free: 2.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003058/0.5512, allocations: 162.2 kB / 0.5159 GB, free: 2.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.5512, allocations: 5.5 kB / 0.5159 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.5512, allocations: 1.375 kB / 0.5159 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.5513, allocations: 2.172 kB / 0.5159 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.5515, allocations: 34.92 kB / 0.5159 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.5515, allocations: 9.375 kB / 0.5159 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.5516, allocations: 19.03 kB / 0.5159 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.5516, allocations: 8.062 kB / 0.5159 GB, free: 2.348 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.5518, allocations: 141.4 kB / 0.5161 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.5518, allocations: 21.48 kB / 0.5161 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.5519, allocations: 31.92 kB / 0.5161 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.5519, allocations: 1.375 kB / 0.5161 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5519, allocations: 1.375 kB / 0.5161 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5519, allocations: 4.734 kB / 0.5161 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.5521, allocations: 258.2 kB / 0.5164 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5521, allocations: 1.375 kB / 0.5164 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.5523, allocations: 33.84 kB / 0.5164 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.5523, allocations: 0 / 0.5164 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.5523, allocations: 1.375 kB / 0.5164 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.5524, allocations: 2.359 kB / 0.5164 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.5524, allocations: 4 kB / 0.5164 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004745/0.5528, allocations: 297.6 kB / 0.5167 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.5529, allocations: 99.97 kB / 0.5168 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.5529, allocations: 5.094 kB / 0.5168 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.5531, allocations: 12.09 kB / 0.5168 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.5531, allocations: 17.66 kB / 0.5168 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.5531, allocations: 3.344 kB / 0.5168 GB, free: 1.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.5533, allocations: 167.2 kB / 0.517 GB, free: 1.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.183e-06/0.5533, allocations: 0 / 0.517 GB, free: 1.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.5535, allocations: 48.8 kB / 0.517 GB, free: 1.645 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006377/0.5542, allocations: 0.8295 MB / 0.5179 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.5545, allocations: 113.1 kB / 0.518 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.5545, allocations: 0 / 0.518 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.5547, allocations: 58.3 kB / 0.518 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.555, allocations: 57.12 kB / 0.5181 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.5578, allocations: 2.289 MB / 0.5203 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.5582, allocations: 0.7382 MB / 0.521 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.5583, allocations: 33.3 kB / 0.5211 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.5584, allocations: 67 kB / 0.5211 GB, free: 14.79 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5584, allocations: 0 / 0.5211 GB, free: 14.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.588, allocations: 4.613 MB / 0.5256 GB, free: 14.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.504, allocations: 11.78 kB / 0.5256 GB, free: 14.19 MB / 398.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.254596696002409] Failed to read output from testmodel.py, exit status != 0: 8.575241063954309 8.596193663 8.046970239 Calling exit ...