Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001388/0.001388, allocations: 108.3 kB / 16.4 MB, free: 6.504 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.001362/0.001363, allocations: 191.7 kB / 19.35 MB, free: 3.734 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.446/1.446, allocations: 222.9 MB / 245.1 MB, free: 15 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.13/0.13, allocations: 22.32 MB / 319.6 MB, free: 6.77 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 67.89 kB / 445.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 54.95 MB / 0.4885 GB, free: 1.617 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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_003): time 0.4323/0.5395, allocations: 23.26 MB / 0.5112 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.5406, allocations: 421.5 kB / 0.5116 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.5408, allocations: 11.62 kB / 0.5116 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.046e-05/0.5409, allocations: 45.64 kB / 0.5117 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.5412, allocations: 139.5 kB / 0.5118 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.5414, allocations: 84.8 kB / 0.5119 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.5418, allocations: 425.8 kB / 0.5123 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000377/0.5422, allocations: 252.9 kB / 0.5125 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.5424, allocations: 174.1 kB / 0.5127 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.5426, allocations: 184.8 kB / 0.5129 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.145e-05/0.5427, allocations: 28.97 kB / 0.5129 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.5428, allocations: 56.59 kB / 0.5129 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.5429, allocations: 72.28 kB / 0.513 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.5431, allocations: 182.5 kB / 0.5132 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004459/0.5435, allocations: 397.9 kB / 0.5136 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5435, allocations: 5.125 kB / 0.5136 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5435, allocations: 0.8438 kB / 0.5136 GB, free: 4.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.5435, allocations: 0 / 0.5136 GB, free: 4.438 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008996/0.5445, allocations: 0.6453 MB / 0.5142 GB, free: 3.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.5445, allocations: 9.625 kB / 0.5142 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.054e-05/0.5446, allocations: 59.61 kB / 0.5143 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.5446, allocations: 37.2 kB / 0.5143 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.545, allocations: 321.5 kB / 0.5146 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.545, allocations: 17.31 kB / 0.5146 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.545, allocations: 30.64 kB / 0.5147 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.5455, allocations: 276.2 kB / 0.5149 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.5455, allocations: 3.938 kB / 0.5149 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.5455, allocations: 7.094 kB / 0.5149 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.5455, allocations: 5.5 kB / 0.5149 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003374/0.5459, allocations: 196.5 kB / 0.5151 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.5471, allocations: 0.9023 MB / 0.516 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.5474, allocations: 172.2 kB / 0.5162 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.5476, allocations: 100.3 kB / 0.5163 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.5477, allocations: 3.844 kB / 0.5163 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.5477, allocations: 36.31 kB / 0.5163 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002048/0.5479, allocations: 37.97 kB / 0.5163 GB, free: 2.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.813e-06/0.5479, allocations: 4 kB / 0.5163 GB, free: 2.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001325/0.5493, allocations: 436.8 kB / 0.5168 GB, free: 2.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/0.5493, allocations: 58.31 kB / 0.5168 GB, free: 2.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.5496, allocations: 300.2 kB / 0.5171 GB, free: 2.629 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.5496, allocations: 29.64 kB / 0.5171 GB, free: 2.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.364e-05/0.5497, allocations: 185.7 kB / 0.5173 GB, free: 2.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.5498, allocations: 67.83 kB / 0.5174 GB, free: 2.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.5499, allocations: 51.17 kB / 0.5174 GB, free: 2.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/0.5499, allocations: 345.4 kB / 0.5178 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.5501, allocations: 63.55 kB / 0.5178 GB, free: 2.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.5502, allocations: 88.14 kB / 0.5179 GB, free: 2.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/0.5542, allocations: 0.6982 MB / 0.5186 GB, free: 2.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5542, allocations: 1.281 kB / 0.5186 GB, free: 2.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008062/0.555, allocations: 313.1 kB / 0.5189 GB, free: 1.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.5551, allocations: 9.688 kB / 0.5189 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.5551, allocations: 4.5 kB / 0.5189 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000775/0.5558, allocations: 111 kB / 0.519 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.5561, allocations: 43.19 kB / 0.519 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003112/0.5564, allocations: 0.5765 MB / 0.5196 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.5567, allocations: 9.5 kB / 0.5196 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.5567, allocations: 8.172 kB / 0.5196 GB, free: 1.414 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: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000273/0.557, allocations: 146 kB / 0.5198 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/0.5571, allocations: 30.27 kB / 0.5198 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009169/0.558, allocations: 359.6 kB / 0.5201 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.558, allocations: 3.062 kB / 0.5201 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.558, allocations: 0.7031 kB / 0.5201 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.558, allocations: 1.266 kB / 0.5201 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.5593, allocations: 0.7387 MB / 0.5209 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5593, allocations: 1.094 kB / 0.5209 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.5595, allocations: 42.33 kB / 0.5209 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005477/0.5601, allocations: 99.34 kB / 0.521 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.5601, allocations: 6.875 kB / 0.521 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000255/0.5604, allocations: 0.5935 MB / 0.5216 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5604, allocations: 1.938 kB / 0.5216 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/0.5612, allocations: 0.501 MB / 0.5221 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.199e-05/0.5613, allocations: 110.2 kB / 0.5222 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.5614, allocations: 7.109 kB / 0.5222 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.5615, allocations: 8.594 kB / 0.5222 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/0.5616, allocations: 23.64 kB / 0.5222 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.5616, allocations: 10.78 kB / 0.5222 GB, free: 4 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.5619, allocations: 213.5 kB / 0.5224 GB, free: 15.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5619, allocations: 0 / 0.5224 GB, free: 15.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.5623, allocations: 80.09 kB / 0.5225 GB, free: 15.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001049/0.5633, allocations: 1.024 MB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004969/0.5639, allocations: 196.9 kB / 0.5237 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.5639, allocations: 5.219 kB / 0.5237 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002594/0.5641, allocations: 122.7 kB / 0.5238 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.5646, allocations: 64.17 kB / 0.5239 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004302/0.5689, allocations: 2.984 MB / 0.5268 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.5693, allocations: 0.7793 MB / 0.5275 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.5695, allocations: 46.59 kB / 0.5276 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.5697, allocations: 120.1 kB / 0.5277 GB, free: 12.86 MB / 398.1 MB Notification: Performance of SimCode: time 9.41e-07/0.5697, allocations: 4 kB / 0.5277 GB, free: 12.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03603/0.6058, allocations: 7.227 MB / 0.5348 GB, free: 10.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.64, allocations: 21.02 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.44555946602486] Failed to read output from testmodel.py, exit status != 0: 12.73848399403505 12.761626093 12.214615308 Calling exit ...