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.001317/0.001317, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001894/0.001894, allocations: 205.7 kB / 23.01 MB, free: 4.621 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.577/1.577, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1192/0.1192, allocations: 24.04 MB / 337.2 MB, free: 11.32 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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") [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.003026/0.003026, allocations: 74.22 kB / 474.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4034, allocations: 59.57 MB / 0.5214 GB, free: 10.69 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.0708/0.4743, allocations: 23.07 MB / 0.5439 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008886/0.4751, allocations: 229.4 kB / 0.5441 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.4753, allocations: 15.88 kB / 0.5442 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.487e-05/0.4754, allocations: 37.77 kB / 0.5442 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.4756, allocations: 100.3 kB / 0.5443 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.4758, allocations: 41.62 kB / 0.5443 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000227/0.476, allocations: 286.9 kB / 0.5446 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.4762, allocations: 127 kB / 0.5447 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.4764, allocations: 142.3 kB / 0.5449 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.4765, allocations: 89.47 kB / 0.5449 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.4765, allocations: 16 kB / 0.545 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.719e-05/0.4765, allocations: 16 kB / 0.545 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.4766, allocations: 34.53 kB / 0.545 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.443e-05/0.4767, allocations: 97.2 kB / 0.5451 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.4769, allocations: 233.5 kB / 0.5453 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4769, allocations: 0 / 0.5453 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4769, allocations: 0 / 0.5453 GB, free: 1.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.4769, allocations: 0 / 0.5453 GB, free: 1.16 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.0006363/0.4776, allocations: 457.5 kB / 0.5458 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.4776, allocations: 8.922 kB / 0.5458 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.4776, allocations: 24.8 kB / 0.5458 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.4779, allocations: 219.1 kB / 0.546 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.4779, allocations: 13.36 kB / 0.546 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.478, allocations: 16.38 kB / 0.546 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.4783, allocations: 195.9 kB / 0.5462 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4783, allocations: 192 / 0.5462 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.4783, allocations: 7.938 kB / 0.5462 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.4783, allocations: 4.609 kB / 0.5462 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/0.4786, allocations: 122.8 kB / 0.5463 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.4797, allocations: 0.7314 MB / 0.5471 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.4799, allocations: 82.28 kB / 0.5471 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.4801, allocations: 56.31 kB / 0.5472 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.4801, allocations: 8.25 kB / 0.5472 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4801, allocations: 34.56 kB / 0.5472 GB, free: 15.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.4801, allocations: 3.938 kB / 0.5472 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005776/0.4807, allocations: 183.7 kB / 0.5474 GB, free: 15.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.4807, allocations: 51.41 kB / 0.5475 GB, free: 14.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.481, allocations: 200.4 kB / 0.5477 GB, free: 14.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.481, allocations: 25.7 kB / 0.5477 GB, free: 14.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.4811, allocations: 152.6 kB / 0.5478 GB, free: 14.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.4812, allocations: 60.05 kB / 0.5479 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-05/0.4812, allocations: 27.83 kB / 0.5479 GB, free: 14.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.4814, allocations: 328.7 kB / 0.5482 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.4815, allocations: 38.42 kB / 0.5483 GB, free: 14.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.4817, allocations: 62.45 kB / 0.5483 GB, free: 14.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008744/0.4825, allocations: 232.8 kB / 0.5485 GB, free: 13.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4825, allocations: 3.938 kB / 0.5485 GB, free: 13.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000365/0.4829, allocations: 170 kB / 0.5487 GB, free: 13.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.4829, allocations: 4 kB / 0.5487 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4829, allocations: 4.703 kB / 0.5487 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.4829, allocations: 3.938 kB / 0.5487 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.4832, allocations: 32.78 kB / 0.5487 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.4832, allocations: 0.6094 kB / 0.5487 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.4833, allocations: 13.06 kB / 0.5488 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.4833, allocations: 4.703 kB / 0.5488 GB, free: 13.69 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.0001941/0.4835, allocations: 147.3 kB / 0.5489 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.4836, allocations: 16.56 kB / 0.5489 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-05/0.4836, allocations: 24.05 kB / 0.5489 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.4836, allocations: 7.984 kB / 0.549 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4836, allocations: 0 / 0.549 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4836, allocations: 1.219 kB / 0.549 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.484, allocations: 185.1 kB / 0.5491 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.484, allocations: 0.6562 kB / 0.5491 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.4842, allocations: 40.22 kB / 0.5492 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4842, allocations: 4.5 kB / 0.5492 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4842, allocations: 0 / 0.5492 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4842, allocations: 0.5625 kB / 0.5492 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4842, allocations: 3.938 kB / 0.5492 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.4847, allocations: 290.4 kB / 0.5495 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.481e-05/0.4848, allocations: 21.14 kB / 0.5495 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.4848, allocations: 12.66 kB / 0.5495 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.4849, allocations: 5.328 kB / 0.5495 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.485, allocations: 14.56 kB / 0.5495 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.485, allocations: 4 kB / 0.5495 GB, free: 12.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001358/0.4851, allocations: 148.2 kB / 0.5497 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4851, allocations: 0 / 0.5497 GB, free: 12.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.4854, allocations: 47.89 kB / 0.5497 GB, free: 12.74 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.0001091/0.4855, allocations: 100 kB / 0.5498 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.4859, allocations: 113.1 kB / 0.5499 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4859, allocations: 0 / 0.5499 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.486, allocations: 54.83 kB / 0.55 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.4864, allocations: 50.09 kB / 0.55 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.4875, allocations: 0.5482 MB / 0.5505 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.4876, allocations: 130.4 kB / 0.5507 GB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.4877, allocations: 32.09 kB / 0.5507 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.4878, allocations: 19.44 kB / 0.5507 GB, free: 11.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4878, allocations: 0 / 0.5507 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Templates: time 0.007143/0.4949, allocations: 2.687 MB / 0.5533 GB, free: 10.12 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.3608791790902615] Failed to read output from testmodel.py, exit status != 0: 0.5054556019604206 0.5196507 0.03946406 Calling exit ...