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.001649/0.001649, 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.002094/0.002094, allocations: 212.3 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.623/1.623, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.11/0.11, 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: translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") [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.002397/0.002397, allocations: 67.89 kB / 474.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3888, allocations: 59.57 MB / 0.5214 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003119/0.3919, allocations: 2.416 MB / 0.5237 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006717/0.3926, allocations: 358 kB / 0.5241 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.3927, allocations: 15.97 kB / 0.5241 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.342e-05/0.3928, allocations: 39.03 kB / 0.5241 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.393, allocations: 123.9 kB / 0.5243 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.3932, allocations: 76.27 kB / 0.5243 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.3935, allocations: 365.6 kB / 0.5247 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.3938, allocations: 142.1 kB / 0.5248 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.394, allocations: 160.6 kB / 0.525 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.3941, allocations: 112.4 kB / 0.5251 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.3942, allocations: 19.25 kB / 0.5251 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.3943, allocations: 46.75 kB / 0.5251 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.732e-05/0.3943, allocations: 53.28 kB / 0.5252 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.3944, allocations: 110.4 kB / 0.5253 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.3948, allocations: 311.8 kB / 0.5256 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3948, allocations: 0.75 kB / 0.5256 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3948, allocations: 1 kB / 0.5256 GB, free: 8.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3948, allocations: 0 / 0.5256 GB, free: 8.059 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.0007329/0.3955, allocations: 0.5031 MB / 0.5261 GB, free: 7.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.3955, allocations: 10.05 kB / 0.5261 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.99e-05/0.3956, allocations: 31.69 kB / 0.5261 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.3959, allocations: 232.3 kB / 0.5263 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.396, allocations: 12.72 kB / 0.5264 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.396, allocations: 20.44 kB / 0.5264 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.3963, allocations: 206.3 kB / 0.5266 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.3963, allocations: 192 / 0.5266 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.3964, allocations: 10.31 kB / 0.5266 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.3964, allocations: 4.5 kB / 0.5266 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.3966, allocations: 123.9 kB / 0.5267 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000772/0.3974, allocations: 0.7036 MB / 0.5274 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.3976, allocations: 88.27 kB / 0.5275 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.934e-05/0.3977, allocations: 40.98 kB / 0.5275 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.3977, allocations: 3.016 kB / 0.5275 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3977, allocations: 36.66 kB / 0.5276 GB, free: 6.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.3977, allocations: 0 / 0.5276 GB, free: 6.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002965/0.398, allocations: 147.6 kB / 0.5277 GB, free: 6.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.398, allocations: 60.95 kB / 0.5278 GB, free: 6.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.3982, allocations: 246.7 kB / 0.528 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.3983, allocations: 31.31 kB / 0.528 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.869e-05/0.3983, allocations: 178.9 kB / 0.5282 GB, free: 6.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.3984, allocations: 39.33 kB / 0.5282 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.009e-05/0.3984, allocations: 45.02 kB / 0.5283 GB, free: 6.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.3985, allocations: 331.3 kB / 0.5286 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.784e-05/0.3986, allocations: 34.38 kB / 0.5286 GB, free: 5.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.168e-05/0.3986, allocations: 60.25 kB / 0.5287 GB, free: 5.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.3998, allocations: 260.5 kB / 0.5289 GB, free: 5.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3998, allocations: 1.031 kB / 0.5289 GB, free: 5.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002704/0.4001, allocations: 159.2 kB / 0.5291 GB, free: 5.453 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4001, allocations: 9.906 kB / 0.5291 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.4001, allocations: 0 / 0.5291 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.4001, allocations: 4.609 kB / 0.5291 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.4003, allocations: 37.47 kB / 0.5291 GB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4003, allocations: 6.094 kB / 0.5291 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.4004, allocations: 15.05 kB / 0.5291 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.4004, allocations: 5.719 kB / 0.5292 GB, free: 5.43 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.0001638/0.4006, allocations: 145 kB / 0.5293 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.4007, allocations: 21.77 kB / 0.5293 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003243/0.401, allocations: 159.8 kB / 0.5295 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.401, allocations: 1.969 kB / 0.5295 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.401, allocations: 7.938 kB / 0.5295 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.401, allocations: 6.781 kB / 0.5295 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.4012, allocations: 193.9 kB / 0.5297 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4012, allocations: 0 / 0.5297 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.4014, allocations: 25.84 kB / 0.5297 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.4014, allocations: 2.297 kB / 0.5297 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.4014, allocations: 5.25 kB / 0.5297 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.4014, allocations: 1.125 kB / 0.5297 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4014, allocations: 0 / 0.5297 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.4018, allocations: 278.2 kB / 0.53 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.4018, allocations: 31.47 kB / 0.53 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.4018, allocations: 5.844 kB / 0.53 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.4019, allocations: 3.484 kB / 0.53 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.402, allocations: 14.3 kB / 0.53 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.402, allocations: 8.609 kB / 0.53 GB, free: 4.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.4021, allocations: 177.8 kB / 0.5302 GB, free: 4.676 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4021, allocations: 0 / 0.5302 GB, free: 4.676 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.4024, allocations: 57.86 kB / 0.5302 GB, free: 4.664 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.0001167/0.4025, allocations: 106.1 kB / 0.5303 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002136/0.4027, allocations: 91.53 kB / 0.5304 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.4027, allocations: 0 / 0.5304 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.351e-05/0.4028, allocations: 46.91 kB / 0.5305 GB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.4032, allocations: 55.12 kB / 0.5305 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009356/0.4041, allocations: 0.5879 MB / 0.5311 GB, free: 4.109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.4043, allocations: 149.3 kB / 0.5312 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.4044, allocations: 36.81 kB / 0.5313 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.4044, allocations: 20.53 kB / 0.5313 GB, free: 4.004 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4044, allocations: 0 / 0.5313 GB, free: 4.004 MB / 382.1 MB Notification: Performance of Templates: time 0.007398/0.4118, allocations: 3.151 MB / 0.5344 GB, free: 3.613 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.426902847364545] Failed to read output from testmodel.py, exit status != 0: 0.42116393707692623 0.43514775099999997 0.037164607 Calling exit ...