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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 108.3 kB / 19.73 MB, free: 1.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 210.7 kB / 23.01 MB, free: 4.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1066/0.1066, allocations: 24.04 MB / 337.2 MB, free: 11.34 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 63.91 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.327, allocations: 59.58 MB / 0.5209 GB, free: 10.11 MB / 382.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.07119/0.3982, allocations: 23.07 MB / 0.5434 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007434/0.3989, allocations: 217.3 kB / 0.5437 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.3991, allocations: 19.88 kB / 0.5437 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.386e-05/0.3992, allocations: 32.03 kB / 0.5437 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.3994, allocations: 105.9 kB / 0.5438 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001398/0.3996, allocations: 37.8 kB / 0.5438 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.3998, allocations: 293.3 kB / 0.5441 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.4001, allocations: 131.9 kB / 0.5442 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.4003, allocations: 137.1 kB / 0.5444 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.4004, allocations: 89.08 kB / 0.5445 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.4005, allocations: 16 kB / 0.5445 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.679e-05/0.4005, allocations: 16 kB / 0.5445 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.4005, allocations: 36.98 kB / 0.5445 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.4006, allocations: 93.41 kB / 0.5446 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.4008, allocations: 229.2 kB / 0.5448 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.4008, allocations: 4 kB / 0.5448 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.4008, allocations: 0 / 0.5448 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.4008, allocations: 0 / 0.5448 GB, free: 0.9805 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.0005951/0.4014, allocations: 453.4 kB / 0.5453 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.4015, allocations: 8.922 kB / 0.5453 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.084e-05/0.4015, allocations: 50.73 kB / 0.5453 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.4016, allocations: 25.41 kB / 0.5454 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.4018, allocations: 224.1 kB / 0.5456 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.4019, allocations: 8.703 kB / 0.5456 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.4019, allocations: 16.38 kB / 0.5456 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.4022, allocations: 200.1 kB / 0.5458 GB, free: 0 / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.4022, allocations: 208 / 0.5458 GB, free: 16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.4022, allocations: 15.94 kB / 0.5458 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.4022, allocations: 4 kB / 0.5458 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.4026, allocations: 119.9 kB / 0.5459 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009808/0.4036, allocations: 0.7764 MB / 0.5467 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.4038, allocations: 82.75 kB / 0.5468 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.4039, allocations: 59.98 kB / 0.5468 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.4039, allocations: 4 kB / 0.5468 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.404, allocations: 43.27 kB / 0.5469 GB, free: 14.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.404, allocations: 0 / 0.5469 GB, free: 14.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000547/0.4045, allocations: 174.4 kB / 0.547 GB, free: 14.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.4046, allocations: 60.14 kB / 0.5471 GB, free: 14.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002617/0.4048, allocations: 227.8 kB / 0.5473 GB, free: 14.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.4049, allocations: 33.7 kB / 0.5473 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.405, allocations: 140.7 kB / 0.5475 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.045e-05/0.405, allocations: 55.62 kB / 0.5475 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.4051, allocations: 31.69 kB / 0.5475 GB, free: 14.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4053, allocations: 341.7 kB / 0.5479 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.4054, allocations: 38.56 kB / 0.5479 GB, free: 13.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.4055, allocations: 58.5 kB / 0.548 GB, free: 13.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000917/0.4065, allocations: 228.7 kB / 0.5482 GB, free: 13.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4065, allocations: 0 / 0.5482 GB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003824/0.4068, allocations: 166.1 kB / 0.5483 GB, free: 13.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4069, allocations: 12.06 kB / 0.5484 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4069, allocations: 0 / 0.5484 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.4069, allocations: 0.7969 kB / 0.5484 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.4071, allocations: 33.06 kB / 0.5484 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.4071, allocations: 4 kB / 0.5484 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.4072, allocations: 13.72 kB / 0.5484 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.4073, allocations: 8 kB / 0.5484 GB, free: 13.36 MB / 398.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.0002574/0.4075, allocations: 144.1 kB / 0.5485 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/0.4076, allocations: 19.86 kB / 0.5486 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.039e-05/0.4077, allocations: 24.55 kB / 0.5486 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4077, allocations: 4 kB / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4077, allocations: 0 / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4077, allocations: 1.406 kB / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000353/0.408, allocations: 220.4 kB / 0.5488 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.408, allocations: 0 / 0.5488 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.4082, allocations: 32.31 kB / 0.5488 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.4082, allocations: 8.578 kB / 0.5488 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.4083, allocations: 4 kB / 0.5488 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.4083, allocations: 4 kB / 0.5489 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4083, allocations: 0.7969 kB / 0.5489 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/0.4088, allocations: 298 kB / 0.5491 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.492e-05/0.4089, allocations: 17.95 kB / 0.5492 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.4089, allocations: 4 kB / 0.5492 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.4091, allocations: 9.359 kB / 0.5492 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.4091, allocations: 22.23 kB / 0.5492 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.4092, allocations: 4 kB / 0.5492 GB, free: 12.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.4093, allocations: 164 kB / 0.5493 GB, free: 12.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4093, allocations: 0 / 0.5493 GB, free: 12.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.4096, allocations: 47.88 kB / 0.5494 GB, free: 12.36 MB / 398.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.0008555/0.4105, allocations: 0.8349 MB / 0.5502 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003389/0.4108, allocations: 109 kB / 0.5503 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4108, allocations: 0 / 0.5503 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.411, allocations: 62.58 kB / 0.5504 GB, free: 11.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.4113, allocations: 51.83 kB / 0.5504 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.4147, allocations: 2.287 MB / 0.5527 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.4148, allocations: 130.4 kB / 0.5528 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.415, allocations: 28.58 kB / 0.5528 GB, free: 8.945 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.4151, allocations: 72.97 kB / 0.5529 GB, free: 8.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4151, allocations: 4 kB / 0.5529 GB, free: 8.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.4501, allocations: 5.416 MB / 0.5582 GB, free: 5.129 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 5.531 kB / 0.5582 GB, free: 5.129 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --stepSize=50 --timeout=50 --tolerance=1e-06 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: 14.482164616696537] Failed to read output from testmodel.py, exit status != 0: 11.868465065024793 11.884273895 11.480257758 Calling exit ...