Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.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.001801/0.001801, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002186/0.002186, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1545/0.1545, allocations: 26.81 MB / 340.7 MB, free: 8.18 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/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(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump") translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump") [Timeout 660] "Notification: ThermoPower 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.002046/0.002046, allocations: 63.89 kB / 477.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3356, allocations: 60.48 MB / 0.5252 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.03782/0.3734, allocations: 35.26 MB / 0.5596 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.3856, allocations: 8.659 MB / 0.5681 GB, free: 8.406 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004988/0.3861, allocations: 19.22 kB / 0.5681 GB, free: 8.395 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005281/0.3866, allocations: 134.3 kB / 0.5682 GB, free: 8.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008153/0.3874, allocations: 278 kB / 0.5685 GB, free: 8.062 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01397/0.4014, allocations: 4.51 MB / 0.5729 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.4025, allocations: 0.6036 MB / 0.5735 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003691/0.4029, allocations: 189.4 kB / 0.5737 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008935/0.4037, allocations: 462.8 kB / 0.5741 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.4042, allocations: 274.9 kB / 0.5744 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.4042, allocations: 24 kB / 0.5744 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01305/0.4173, allocations: 6.263 MB / 0.5805 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.4174, allocations: 75.67 kB / 0.5806 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.4177, allocations: 175.1 kB / 0.5808 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008289/0.426, allocations: 3.667 MB / 0.5843 GB, free: 8.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.426, allocations: 4 kB / 0.5843 GB, free: 8.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.426, allocations: 0 / 0.5843 GB, free: 8.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.426, allocations: 0 / 0.5843 GB, free: 8.34 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002774/0.4288, allocations: 0.9937 MB / 0.5853 GB, free: 7.312 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.4288, allocations: 12.02 kB / 0.5853 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.429, allocations: 48.66 kB / 0.5854 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.4295, allocations: 265.2 kB / 0.5856 GB, free: 6.969 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.4296, allocations: 76.47 kB / 0.5857 GB, free: 6.883 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.4296, allocations: 28.12 kB / 0.5857 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.4304, allocations: 328.4 kB / 0.586 GB, free: 6.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.4304, allocations: 3.938 kB / 0.586 GB, free: 6.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.4304, allocations: 4 kB / 0.586 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.4304, allocations: 12 kB / 0.5861 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007624/0.4312, allocations: 265.8 kB / 0.5863 GB, free: 6.238 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.433, allocations: 1.381 MB / 0.5877 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.4336, allocations: 198.7 kB / 0.5878 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.434, allocations: 100.8 kB / 0.5879 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05973/0.4937, allocations: 17.52 MB / 0.605 GB, free: 2.863 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.4937, allocations: 34.5 kB / 0.6051 GB, free: 2.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 2.064e-06/0.4937, allocations: 4 kB / 0.6051 GB, free: 2.816 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.002793/0.4965, allocations: 0.5875 MB / 0.6057 GB, free: 2.219 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.4966, allocations: 55.41 kB / 0.6057 GB, free: 2.152 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.4969, allocations: 280.5 kB / 0.606 GB, free: 1.871 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.497, allocations: 29.7 kB / 0.606 GB, free: 1.836 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.4971, allocations: 176.4 kB / 0.6062 GB, free: 1.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.638e-05/0.4972, allocations: 71.38 kB / 0.6062 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.4973, allocations: 49.7 kB / 0.6063 GB, free: 1.535 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.4975, allocations: 342.8 kB / 0.6066 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.4978, allocations: 92.78 kB / 0.6067 GB, free: 1.098 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.4982, allocations: 133 kB / 0.6068 GB, free: 0.957 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005877/0.4987, allocations: 227.2 kB / 0.607 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4988, allocations: 0 / 0.607 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009802/0.4997, allocations: 356.8 kB / 0.6074 GB, free: 376 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4998, allocations: 8 kB / 0.6074 GB, free: 368 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4998, allocations: 7.984 kB / 0.6074 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005644/0.5003, allocations: 100.9 kB / 0.6075 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.5006, allocations: 51.89 kB / 0.6075 GB, free: 204 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007087/0.5013, allocations: 0.6381 MB / 0.6082 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.5016, allocations: 43.69 kB / 0.6082 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.5016, allocations: 16.06 kB / 0.6082 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003722/0.502, allocations: 191.9 kB / 0.6084 GB, free: 15.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003058/0.5023, allocations: 122.2 kB / 0.6085 GB, free: 15.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000552/0.5028, allocations: 203.3 kB / 0.6087 GB, free: 14.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.686e-06/0.5028, allocations: 4 kB / 0.6087 GB, free: 14.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0009146/0.5037, allocations: 340.2 kB / 0.6091 GB, free: 14.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.868e-06/0.5038, allocations: 11.94 kB / 0.6091 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.5038, allocations: 3.984 kB / 0.6091 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.504, allocations: 60.8 kB / 0.6091 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.5042, allocations: 59.98 kB / 0.6092 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.5064, allocations: 1.708 MB / 0.6108 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.5066, allocations: 31.94 kB / 0.6109 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.5067, allocations: 19.92 kB / 0.6109 GB, free: 12.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (Pump.int_Np,Pump.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.5068, allocations: 196.2 kB / 0.6111 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.867e-05/0.5069, allocations: 35.77 kB / 0.6111 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.5082, allocations: 0.6054 MB / 0.6117 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.5082, allocations: 11.97 kB / 0.6117 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.5082, allocations: 7.938 kB / 0.6117 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.5082, allocations: 0 / 0.6117 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.5088, allocations: 380.8 kB / 0.6121 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5088, allocations: 0 / 0.6121 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.509, allocations: 39.95 kB / 0.6121 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005056/0.5095, allocations: 245.5 kB / 0.6124 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.5095, allocations: 4 kB / 0.6124 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008933/0.5104, allocations: 0.8611 MB / 0.6132 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5104, allocations: 0 / 0.6132 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.512, allocations: 0.8308 MB / 0.614 GB, free: 9.277 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.5121, allocations: 59.64 kB / 0.6141 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.5122, allocations: 0 / 0.6141 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.5124, allocations: 27.91 kB / 0.6141 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.5125, allocations: 19.97 kB / 0.6141 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.5125, allocations: 4 kB / 0.6141 GB, free: 9.168 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.5127, allocations: 207.1 kB / 0.6143 GB, free: 8.969 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5127, allocations: 160 / 0.6143 GB, free: 8.969 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002714/0.5154, allocations: 0.9317 MB / 0.6152 GB, free: 8.035 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (Pump.h) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004276/0.5197, allocations: 1.013 MB / 0.6162 GB, free: 7.008 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.5213, allocations: 0.529 MB / 0.6167 GB, free: 6.469 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5213, allocations: 0 / 0.6167 GB, free: 6.469 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005281/0.5218, allocations: 174 kB / 0.6169 GB, free: 6.301 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008426/0.5227, allocations: 135.7 kB / 0.617 GB, free: 6.168 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.5241, allocations: 0.7468 MB / 0.6178 GB, free: 5.395 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.5246, allocations: 0.7916 MB / 0.6185 GB, free: 4.574 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002345/0.5248, allocations: 82.77 kB / 0.6186 GB, free: 4.496 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.497e-05/0.5249, allocations: 31.44 kB / 0.6186 GB, free: 4.465 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5249, allocations: 0 / 0.6186 GB, free: 4.465 MB / 462.1 MB Notification: Performance of Templates: time 0.05424/0.5791, allocations: 34.4 MB / 0.6522 GB, free: 2.078 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.makefile [Timeout 660] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.sim & ./ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.394158313050866] Failed to read output from testmodel.py, exit status != 0: 0.5883776154369116 0.603497706 0.17415328000000002 Calling exit ...