Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.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.001547/0.001547, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001496/0.001496, allocations: 160 kB / 23.01 MB, free: 4.605 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.447/1.447, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo): time 0.04054/0.04054, allocations: 6.479 MB / 266.3 MB, free: 10.27 MB / 254.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.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(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4") translateModel(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4") [Timeout 660] "Notification: EHPTlib 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.002187/0.002187, allocations: 67.91 kB / 392.6 MB, free: 11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1042, allocations: 55.4 MB / 448 MB, free: 3.496 MB / 414.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4): time 0.007296/0.1115, allocations: 4.8 MB / 452.8 MB, free: 14.67 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.1155, allocations: 2.275 MB / 455.1 MB, free: 12.39 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.1159, allocations: 19.94 kB / 455.1 MB, free: 12.37 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005689/0.1165, allocations: 226.4 kB / 455.3 MB, free: 12.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008303/0.1173, allocations: 334 kB / 455.7 MB, free: 11.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1184, allocations: 0.4988 MB / 456.2 MB, free: 11.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.1196, allocations: 1.056 MB / 457.2 MB, free: 10.26 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005368/0.1201, allocations: 324.6 kB / 457.5 MB, free: 9.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005971/0.1207, allocations: 426.5 kB / 458 MB, free: 9.504 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005438/0.1213, allocations: 406 kB / 458.3 MB, free: 9.105 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.1214, allocations: 116 kB / 458.5 MB, free: 8.992 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004096/0.1218, allocations: 247.9 kB / 458.7 MB, free: 8.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002866/0.1221, allocations: 267.2 kB / 459 MB, free: 8.488 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004087/0.1225, allocations: 390 kB / 459.3 MB, free: 8.105 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001594/0.1241, allocations: 1.401 MB / 460.7 MB, free: 6.699 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1241, allocations: 4 kB / 460.7 MB, free: 6.695 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1241, allocations: 0 / 460.7 MB, free: 6.695 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.1242, allocations: 0 / 460.7 MB, free: 6.695 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002374/0.1265, allocations: 1.306 MB / 462.1 MB, free: 5.336 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1266, allocations: 8.031 kB / 462.1 MB, free: 5.328 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.1268, allocations: 116.2 kB / 462.2 MB, free: 5.215 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.1281, allocations: 0.5799 MB / 462.8 MB, free: 4.605 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.1283, allocations: 113.7 kB / 462.9 MB, free: 4.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1284, allocations: 76 kB / 462.9 MB, free: 4.406 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.13, allocations: 0.8878 MB / 463.8 MB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.13, allocations: 0 / 463.8 MB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.488e-05/0.1301, allocations: 31.98 kB / 463.9 MB, free: 3.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.1301, allocations: 20 kB / 463.9 MB, free: 3.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.1315, allocations: 0.5823 MB / 464.5 MB, free: 2.816 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003853/0.1354, allocations: 2.312 MB / 466.8 MB, free: 412 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1365, allocations: 421.7 kB / 467.2 MB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.137, allocations: 232.4 kB / 467.4 MB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.137, allocations: 8.281 kB / 467.4 MB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007445/0.1378, allocations: 389.7 kB / 467.8 MB, free: 15.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=36): time 1.984e-06/0.1378, allocations: 0 / 467.8 MB, free: 15.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=36): time 0.001931/0.1397, allocations: 0.7964 MB / 468.6 MB, free: 14.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.1399, allocations: 191.9 kB / 468.8 MB, free: 14.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.141, allocations: 0.8008 MB / 469.6 MB, free: 13.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.141, allocations: 37.7 kB / 469.6 MB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003553/0.1414, allocations: 420.4 kB / 470 MB, free: 12.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1415, allocations: 130.9 kB / 470.2 MB, free: 12.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.1417, allocations: 106.3 kB / 470.3 MB, free: 12.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.1419, allocations: 378.8 kB / 470.6 MB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.1425, allocations: 280.5 kB / 470.9 MB, free: 12.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007228/0.1432, allocations: 496.5 kB / 471.4 MB, free: 11.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.1443, allocations: 0.6182 MB / 472 MB, free: 10.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1443, allocations: 0 / 472 MB, free: 10.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001548/0.1459, allocations: 0.8045 MB / 472.8 MB, free: 9.914 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.23e-05/0.146, allocations: 89.11 kB / 472.9 MB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.146, allocations: 4 kB / 472.9 MB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.1461, allocations: 28.84 kB / 472.9 MB, free: 9.773 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.1466, allocations: 112.1 kB / 473 MB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.1477, allocations: 1.252 MB / 474.3 MB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.1482, allocations: 83.55 kB / 474.4 MB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.1483, allocations: 24 kB / 474.4 MB, free: 8.203 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007867/0.149, allocations: 486.6 kB / 474.9 MB, free: 7.707 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006364/0.1497, allocations: 484.5 kB / 475.4 MB, free: 7.141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001009/0.1507, allocations: 0.5831 MB / 475.9 MB, free: 6.477 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.464e-06/0.1507, allocations: 4.094 kB / 475.9 MB, free: 6.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001429/0.1521, allocations: 0.7852 MB / 476.7 MB, free: 5.645 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.69e-05/0.1522, allocations: 93.09 kB / 476.8 MB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1522, allocations: 4 kB / 476.8 MB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.3e-05/0.1523, allocations: 24.8 kB / 476.8 MB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.1527, allocations: 107.8 kB / 476.9 MB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.1537, allocations: 1.264 MB / 478.2 MB, free: 4.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004615/0.1542, allocations: 71.69 kB / 478.3 MB, free: 3.961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.1542, allocations: 23.98 kB / 478.3 MB, free: 3.938 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 8 (oneFlange.limTau.state,oneFlange.limitingTorque,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 3 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002684/0.1545, allocations: 283.4 kB / 478.6 MB, free: 3.641 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.1546, allocations: 71.67 kB / 478.7 MB, free: 3.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/0.156, allocations: 0.5978 MB / 479.2 MB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.156, allocations: 7.984 kB / 479.3 MB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.156, allocations: 0 / 479.3 MB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.156, allocations: 0 / 479.3 MB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.1582, allocations: 1.205 MB / 480.5 MB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1582, allocations: 0 / 480.5 MB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.1586, allocations: 71.88 kB / 480.5 MB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.947e-05/0.1587, allocations: 28.84 kB / 480.6 MB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.1587, allocations: 8 kB / 480.6 MB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.1599, allocations: 1.252 MB / 481.8 MB, free: 196 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1599, allocations: 32 / 481.8 MB, free: 196 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2073/0.3672, allocations: 0.9583 MB / 482.8 MB, free: 71.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.3674, allocations: 113.7 kB / 482.9 MB, free: 71.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.76e-05/0.3675, allocations: 17.31 kB / 482.9 MB, free: 71.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004031/0.3679, allocations: 46.56 kB / 483 MB, free: 71.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.368, allocations: 44.42 kB / 483 MB, free: 71.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.368, allocations: 13.53 kB / 483 MB, free: 71.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005772/0.3686, allocations: 0.559 MB / 483.6 MB, free: 71.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3686, allocations: 0 / 483.6 MB, free: 71.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.3695, allocations: 363.4 kB / 483.9 MB, free: 71.22 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (inertia.w,loadTorque.phi,oneFlange.pDC.integrator1.y) * Number of discrete variables: 5 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limitingTorque,oneFlange.limTau.state) * Number of discrete states: 2 (tauRef.count,oneFlange.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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): 1 system {(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.002695/0.3722, allocations: 0.7703 MB / 484.7 MB, free: 71.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.3741, allocations: 1.473 MB / 486.2 MB, free: 70.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3741, allocations: 0 / 486.2 MB, free: 70.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.3746, allocations: 482.3 kB / 486.6 MB, free: 69.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.3752, allocations: 105 kB / 486.7 MB, free: 69.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.3772, allocations: 1.564 MB / 488.3 MB, free: 69.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3775, allocations: 379.3 kB / 488.7 MB, free: 69.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.3778, allocations: 74.23 kB / 488.7 MB, free: 69.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.3779, allocations: 50.59 kB / 488.8 MB, free: 69.11 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3779, allocations: 0 / 488.8 MB, free: 69.11 MB / 446.1 MB Notification: Performance of Templates: time 0.01433/0.3922, allocations: 9.469 MB / 498.3 MB, free: 67.95 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.makefile [Timeout 660] (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4 -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange4.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.983368169050664] Failed to read output from testmodel.py, exit status != 0: 0.4006530239712447 0.41021619299999995 0.28345010699999995 Calling exit ...