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.001576/0.001576, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001915/0.001915, allocations: 219.8 kB / 22.26 MB, free: 5.125 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.984 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.1071/0.1071, allocations: 24.13 MB / 336.6 MB, free: 11.53 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.002215/0.002215, allocations: 71.89 kB / 473.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3579, allocations: 59.59 MB / 0.5204 GB, free: 10.09 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.03636/0.3942, allocations: 23.04 MB / 0.5429 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007851/0.395, allocations: 216.7 kB / 0.5431 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.3952, allocations: 16.06 kB / 0.5431 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.861e-05/0.3953, allocations: 32.62 kB / 0.5432 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.3955, allocations: 105 kB / 0.5433 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001476/0.3956, allocations: 42 kB / 0.5433 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.3959, allocations: 292.7 kB / 0.5436 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.3961, allocations: 128 kB / 0.5437 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.3963, allocations: 144.5 kB / 0.5439 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.3965, allocations: 94.16 kB / 0.5439 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.3965, allocations: 14.88 kB / 0.544 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.638e-05/0.3966, allocations: 14.69 kB / 0.544 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.3966, allocations: 45.48 kB / 0.544 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.814e-05/0.3967, allocations: 110 kB / 0.5441 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.397, allocations: 232.9 kB / 0.5443 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.397, allocations: 1.188 kB / 0.5443 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.397, allocations: 0 / 0.5443 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.397, allocations: 0 / 0.5443 GB, free: 0.9727 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.0006174/0.3976, allocations: 453.2 kB / 0.5448 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3976, allocations: 9.531 kB / 0.5448 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.3977, allocations: 54.22 kB / 0.5448 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.3977, allocations: 25.36 kB / 0.5449 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.398, allocations: 219 kB / 0.5451 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.398, allocations: 12.7 kB / 0.5451 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.3981, allocations: 16.31 kB / 0.5451 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.3984, allocations: 192.3 kB / 0.5453 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3984, allocations: 3.938 kB / 0.5453 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.3984, allocations: 12.61 kB / 0.5453 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3984, allocations: 4.797 kB / 0.5453 GB, free: 0 / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.3988, allocations: 123.2 kB / 0.5454 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.3998, allocations: 0.8092 MB / 0.5462 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.4, allocations: 75.33 kB / 0.5463 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.4002, allocations: 55.77 kB / 0.5463 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.4002, allocations: 4 kB / 0.5463 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.4002, allocations: 39.31 kB / 0.5464 GB, free: 14.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.4002, allocations: 3.938 kB / 0.5464 GB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000537/0.4008, allocations: 182.5 kB / 0.5465 GB, free: 14.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.4008, allocations: 51.41 kB / 0.5466 GB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.401, allocations: 229 kB / 0.5468 GB, free: 14.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4011, allocations: 25.7 kB / 0.5468 GB, free: 14.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.4012, allocations: 160.3 kB / 0.547 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.517e-05/0.4012, allocations: 44.16 kB / 0.547 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.543e-05/0.4013, allocations: 31.59 kB / 0.5471 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.4014, allocations: 341.4 kB / 0.5474 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.4016, allocations: 37.95 kB / 0.5474 GB, free: 13.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.4017, allocations: 64.64 kB / 0.5475 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008432/0.4025, allocations: 233 kB / 0.5477 GB, free: 13.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4025, allocations: 0 / 0.5477 GB, free: 13.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003664/0.4029, allocations: 161.9 kB / 0.5479 GB, free: 13.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4029, allocations: 8.562 kB / 0.5479 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.4029, allocations: 4 kB / 0.5479 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.403, allocations: 0 / 0.5479 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.4032, allocations: 41.16 kB / 0.5479 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.4032, allocations: 0.6562 kB / 0.5479 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.4033, allocations: 22.09 kB / 0.5479 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.4033, allocations: 4 kB / 0.5479 GB, free: 13.38 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.000212/0.4035, allocations: 139.3 kB / 0.5481 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.4036, allocations: 24.66 kB / 0.5481 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.766e-05/0.4036, allocations: 24.73 kB / 0.5481 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-06/0.4036, allocations: 4 kB / 0.5481 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4036, allocations: 0 / 0.5481 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4036, allocations: 0.75 kB / 0.5481 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000328/0.404, allocations: 231.9 kB / 0.5483 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.404, allocations: 0 / 0.5483 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.4042, allocations: 40.91 kB / 0.5484 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.4042, allocations: 0 / 0.5484 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.4042, allocations: 4 kB / 0.5484 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4042, allocations: 0.5625 kB / 0.5484 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4042, allocations: 0 / 0.5484 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.4048, allocations: 294.9 kB / 0.5487 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.247e-05/0.4048, allocations: 21.38 kB / 0.5487 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.4048, allocations: 4.656 kB / 0.5487 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.405, allocations: 9.328 kB / 0.5487 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.918e-05/0.405, allocations: 14.7 kB / 0.5487 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.405, allocations: 3.938 kB / 0.5487 GB, free: 12.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.4052, allocations: 167.9 kB / 0.5489 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4052, allocations: 7.938 kB / 0.5489 GB, free: 12.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.4055, allocations: 43.95 kB / 0.5489 GB, free: 12.38 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.0008859/0.4064, allocations: 0.8344 MB / 0.5497 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.4067, allocations: 104.5 kB / 0.5498 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4067, allocations: 0 / 0.5498 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.4068, allocations: 58.78 kB / 0.5499 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.4072, allocations: 54.73 kB / 0.55 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.4104, allocations: 2.298 MB / 0.5522 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.4108, allocations: 0.7364 MB / 0.5529 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.4109, allocations: 32.95 kB / 0.553 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.411, allocations: 68.88 kB / 0.553 GB, free: 8.277 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.411, allocations: 4 kB / 0.553 GB, free: 8.273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.4448, allocations: 4.822 MB / 0.5577 GB, free: 5.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.67, allocations: 4 kB / 0.5577 GB, free: 5.027 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.377801914000884] Failed to read output from testmodel.py, exit status != 0: 11.776947754900903 11.805560365 11.402632947 Calling exit ...