Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.001794/0.001794, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.002454/0.002454, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.511/1.511, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1894/0.1894, allocations: 38.53 MB / 353.2 MB, free: 12.53 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") [Timeout 660] "Notification: PowerSystems 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.002001/0.002001, allocations: 68.17 kB / 493.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3773, allocations: 62.48 MB / 0.5432 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.008187/0.3855, allocations: 5.772 MB / 0.5489 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005192/0.3907, allocations: 2.677 MB / 0.5515 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005177/0.3912, allocations: 28.72 kB / 0.5515 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.3926, allocations: 386.7 kB / 0.5519 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.3938, allocations: 469.8 kB / 0.5523 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.395, allocations: 476.8 kB / 0.5528 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.3965, allocations: 1.083 MB / 0.5538 GB, free: 8.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008252/0.3973, allocations: 0.489 MB / 0.5543 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007228/0.398, allocations: 436.4 kB / 0.5547 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006895/0.3987, allocations: 443.2 kB / 0.5552 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.3988, allocations: 78.38 kB / 0.5552 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.3999, allocations: 0.5101 MB / 0.5557 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002788/0.4001, allocations: 240.1 kB / 0.556 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.4005, allocations: 381 kB / 0.5563 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.4022, allocations: 1.078 MB / 0.5574 GB, free: 5.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.4022, allocations: 1 kB / 0.5574 GB, free: 5.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4022, allocations: 0 / 0.5574 GB, free: 5.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.4022, allocations: 0 / 0.5574 GB, free: 5.801 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002469/0.4047, allocations: 1.062 MB / 0.5584 GB, free: 4.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000118/0.4048, allocations: 11.98 kB / 0.5584 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.4061, allocations: 188.3 kB / 0.5586 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.4071, allocations: 0.4947 MB / 0.5591 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.4072, allocations: 45.69 kB / 0.5591 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.4073, allocations: 56.33 kB / 0.5592 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.4088, allocations: 0.7991 MB / 0.56 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.4088, allocations: 11.92 kB / 0.56 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.4089, allocations: 24 kB / 0.56 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-05/0.409, allocations: 33.3 kB / 0.56 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.4106, allocations: 0.7311 MB / 0.5607 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.4153, allocations: 2.825 MB / 0.5635 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.4167, allocations: 0.5416 MB / 0.564 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007104/0.4174, allocations: 330.8 kB / 0.5643 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.161e-05/0.4174, allocations: 8.438 kB / 0.5644 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009134/0.4183, allocations: 425.3 kB / 0.5648 GB, free: 14.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=56): time 1.884e-06/0.4183, allocations: 0 / 0.5648 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=58): time 0.004556/0.4229, allocations: 1.987 MB / 0.5667 GB, free: 12.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.423, allocations: 137 kB / 0.5668 GB, free: 11.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007888/0.4238, allocations: 482 kB / 0.5673 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.01e-05/0.4238, allocations: 41.62 kB / 0.5673 GB, free: 11.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.4241, allocations: 313.1 kB / 0.5676 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.4243, allocations: 210.2 kB / 0.5678 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.4245, allocations: 114.4 kB / 0.5679 GB, free: 10.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.4247, allocations: 362.8 kB / 0.5683 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006394/0.4254, allocations: 295.2 kB / 0.5686 GB, free: 10.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.4261, allocations: 407.7 kB / 0.569 GB, free: 9.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.4275, allocations: 0.7211 MB / 0.5697 GB, free: 8.871 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.4275, allocations: 7.938 kB / 0.5697 GB, free: 8.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002331/0.4298, allocations: 1.004 MB / 0.5706 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.932e-05/0.4299, allocations: 40.45 kB / 0.5707 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4299, allocations: 7.984 kB / 0.5707 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006863/0.4306, allocations: 189.5 kB / 0.5709 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/0.4311, allocations: 115.7 kB / 0.571 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005313/0.4364, allocations: 3.928 MB / 0.5748 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005961/0.437, allocations: 55.94 kB / 0.5749 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.758e-05/0.4371, allocations: 27.98 kB / 0.5749 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008798/0.4379, allocations: 441.2 kB / 0.5753 GB, free: 2.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006968/0.4386, allocations: 406.7 kB / 0.5757 GB, free: 2.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001351/0.44, allocations: 0.69 MB / 0.5764 GB, free: 1.641 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.465e-06/0.44, allocations: 4 kB / 0.5764 GB, free: 1.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001996/0.442, allocations: 0.9336 MB / 0.5773 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.442, allocations: 33.69 kB / 0.5773 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.442, allocations: 4 kB / 0.5773 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006082/0.4427, allocations: 173.7 kB / 0.5775 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.4432, allocations: 115.9 kB / 0.5776 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004666/0.4478, allocations: 3.729 MB / 0.5813 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.4485, allocations: 60 kB / 0.5813 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/0.4486, allocations: 31.98 kB / 0.5813 GB, free: 12.31 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002857/0.4489, allocations: 208.1 kB / 0.5815 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.449, allocations: 63.56 kB / 0.5816 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.4509, allocations: 0.8288 MB / 0.5824 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4509, allocations: 8 kB / 0.5824 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4509, allocations: 0 / 0.5824 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4509, allocations: 7.922 kB / 0.5824 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.454, allocations: 1.634 MB / 0.584 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.454, allocations: 0 / 0.584 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006412/0.4546, allocations: 135.8 kB / 0.5841 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002418/0.4549, allocations: 61.67 kB / 0.5842 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.4549, allocations: 16.19 kB / 0.5842 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002544/0.4575, allocations: 2.7 MB / 0.5869 GB, free: 6.316 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4575, allocations: 7.875 kB / 0.5869 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.46, allocations: 1.306 MB / 0.5881 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/0.4603, allocations: 119.6 kB / 0.5883 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.194e-05/0.4604, allocations: 12 kB / 0.5883 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.4609, allocations: 59.92 kB / 0.5883 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.461, allocations: 56.34 kB / 0.5884 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.4611, allocations: 20 kB / 0.5884 GB, free: 4.699 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006338/0.4617, allocations: 342.8 kB / 0.5887 GB, free: 4.367 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4617, allocations: 0 / 0.5887 GB, free: 4.367 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001184/0.4629, allocations: 263.9 kB / 0.589 GB, free: 4.109 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.4631, allocations: 115.1 kB / 0.5891 GB, free: 3.988 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003271/0.4664, allocations: 1.683 MB / 0.5907 GB, free: 2.234 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4664, allocations: 1 kB / 0.5907 GB, free: 2.234 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.4674, allocations: 0.582 MB / 0.5913 GB, free: 1.629 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/0.4682, allocations: 128.2 kB / 0.5914 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.4712, allocations: 1.576 MB / 0.593 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007358/0.4719, allocations: 0.9507 MB / 0.5939 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.4721, allocations: 47.42 kB / 0.5939 GB, free: 14.85 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4721, allocations: 0 / 0.5939 GB, free: 14.85 MB / 446.1 MB Notification: Performance of Templates: time 0.01994/0.4921, allocations: 14.13 MB / 0.6077 GB, free: 0.7148 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.276052016066387] Failed to read output from testmodel.py, exit status != 0: 0.5017710130196065 0.51796656 0.11234200300000001 Calling exit ...