Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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.00132/0.00132, allocations: 101.9 kB / 19.73 MB, free: 1.992 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.00158/0.00158, allocations: 208.4 kB / 23.02 MB, free: 4.43 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1036/0.1036, allocations: 22.94 MB / 336.2 MB, free: 12.51 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="cs",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.002006/0.002006, allocations: 65.31 kB / 472.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3863, allocations: 59.29 MB / 0.519 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003758/0.3901, allocations: 2.411 MB / 0.5214 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007835/0.3908, allocations: 355.2 kB / 0.5217 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.391, allocations: 16.53 kB / 0.5217 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.45e-05/0.3911, allocations: 42.81 kB / 0.5218 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002885/0.3914, allocations: 120 kB / 0.5219 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.3916, allocations: 77 kB / 0.522 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003453/0.392, allocations: 360.9 kB / 0.5223 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.3922, allocations: 149.9 kB / 0.5224 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.3924, allocations: 157.9 kB / 0.5226 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.3926, allocations: 125.8 kB / 0.5227 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.3926, allocations: 19.31 kB / 0.5227 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.3927, allocations: 50.19 kB / 0.5228 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.934e-05/0.3928, allocations: 50.33 kB / 0.5228 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3929, allocations: 115.5 kB / 0.5229 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.3933, allocations: 310.5 kB / 0.5232 GB, free: 8.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3933, allocations: 4.641 kB / 0.5232 GB, free: 8.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3933, allocations: 1.094 kB / 0.5232 GB, free: 8.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3933, allocations: 0 / 0.5232 GB, free: 8.012 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007487/0.3941, allocations: 0.5023 MB / 0.5237 GB, free: 7.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3941, allocations: 11.23 kB / 0.5237 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.597e-05/0.3941, allocations: 9.094 kB / 0.5237 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.099e-05/0.3942, allocations: 53.14 kB / 0.5238 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.528e-05/0.3942, allocations: 31.06 kB / 0.5238 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.3946, allocations: 225.8 kB / 0.524 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.3946, allocations: 15.88 kB / 0.5241 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.3947, allocations: 17.25 kB / 0.5241 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.395, allocations: 208.6 kB / 0.5243 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.395, allocations: 5.375 kB / 0.5243 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.395, allocations: 9.672 kB / 0.5243 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.3951, allocations: 5.281 kB / 0.5243 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.3953, allocations: 120.5 kB / 0.5244 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008181/0.3961, allocations: 0.7555 MB / 0.5251 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.3963, allocations: 90.97 kB / 0.5252 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.181e-05/0.3964, allocations: 41.75 kB / 0.5253 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.3964, allocations: 5.531 kB / 0.5253 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.3964, allocations: 37.3 kB / 0.5253 GB, free: 6.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3965, allocations: 1.438 kB / 0.5253 GB, free: 6.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003097/0.3968, allocations: 147.4 kB / 0.5255 GB, free: 6.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.3968, allocations: 53.09 kB / 0.5255 GB, free: 6.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.397, allocations: 288 kB / 0.5258 GB, free: 6.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.397, allocations: 30.67 kB / 0.5258 GB, free: 6.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.3971, allocations: 177.3 kB / 0.526 GB, free: 5.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.3971, allocations: 45.33 kB / 0.526 GB, free: 5.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.3972, allocations: 29.41 kB / 0.526 GB, free: 5.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.114e-05/0.3972, allocations: 340.9 kB / 0.5264 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/0.3973, allocations: 37.41 kB / 0.5264 GB, free: 5.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.996e-05/0.3974, allocations: 59.25 kB / 0.5265 GB, free: 5.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.3986, allocations: 257.8 kB / 0.5267 GB, free: 5.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3986, allocations: 0 / 0.5267 GB, free: 5.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002803/0.3989, allocations: 168.8 kB / 0.5269 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3989, allocations: 4.906 kB / 0.5269 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3989, allocations: 9.219 kB / 0.5269 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3989, allocations: 5.141 kB / 0.5269 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.3992, allocations: 37.06 kB / 0.5269 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3992, allocations: 1.562 kB / 0.5269 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.3993, allocations: 24.12 kB / 0.5269 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.3993, allocations: 4.375 kB / 0.527 GB, free: 5.262 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.0001418/0.3995, allocations: 145.3 kB / 0.5271 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.3995, allocations: 23.92 kB / 0.5271 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002751/0.3998, allocations: 163.1 kB / 0.5273 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3998, allocations: 3.078 kB / 0.5273 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3998, allocations: 0 / 0.5273 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3998, allocations: 4 kB / 0.5273 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.4, allocations: 229 kB / 0.5275 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4, allocations: 0 / 0.5275 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.4002, allocations: 30.38 kB / 0.5275 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.4002, allocations: 1.969 kB / 0.5275 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.4002, allocations: 8.938 kB / 0.5275 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4002, allocations: 0 / 0.5275 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4002, allocations: 2.797 kB / 0.5275 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.4005, allocations: 279 kB / 0.5278 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.126e-05/0.4006, allocations: 30.19 kB / 0.5278 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.4006, allocations: 10.03 kB / 0.5278 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.4007, allocations: 6.062 kB / 0.5278 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.371e-05/0.4008, allocations: 7.266 kB / 0.5279 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.4008, allocations: 3.469 kB / 0.5279 GB, free: 4.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000163/0.4009, allocations: 216.8 kB / 0.5281 GB, free: 4.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4009, allocations: 0 / 0.5281 GB, free: 4.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.4012, allocations: 54.48 kB / 0.5281 GB, free: 4.461 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 (13): * Single equations (assignments): 13 * 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.0004428/0.4017, allocations: 0.8181 MB / 0.5289 GB, free: 3.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002241/0.4019, allocations: 99.22 kB / 0.529 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4019, allocations: 4.188 kB / 0.529 GB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.247e-05/0.402, allocations: 44.72 kB / 0.5291 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.4024, allocations: 55.42 kB / 0.5291 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.4053, allocations: 2.504 MB / 0.5316 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.4054, allocations: 145.3 kB / 0.5317 GB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.4056, allocations: 40.53 kB / 0.5317 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.4058, allocations: 90.61 kB / 0.5318 GB, free: 1.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4058, allocations: 0 / 0.5318 GB, free: 1.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03146/0.4372, allocations: 6.025 MB / 0.5377 GB, free: 0.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.99, allocations: 8.094 kB / 0.5377 GB, free: 0.8711 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --stepSize=3 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.853760838974267] Failed to read output from testmodel.py, exit status != 0: 12.152002376969904 12.175444863 11.777507365 Calling exit ...