Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestST1.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.001686/0.001686, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001581/0.001581, allocations: 210.6 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3202/0.3202, allocations: 49.61 MB / 336.4 MB, free: 3.871 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestST1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestST1") translateModel(ThermoPower.Test.WaterComponents.TestST1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestST1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002303/0.002303, allocations: 71.89 kB / 476.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1267, allocations: 62.42 MB / 0.5266 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestST1): time 0.2738/0.4005, allocations: 40.44 MB / 0.5661 GB, free: 15.87 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02123/0.4217, allocations: 13.65 MB / 0.5795 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006016/0.4223, allocations: 8.5 kB / 0.5795 GB, free: 7.07 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.4231, allocations: 190.2 kB / 0.5797 GB, free: 6.91 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006962/0.4238, allocations: 257.4 kB / 0.5799 GB, free: 6.695 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02054/0.4444, allocations: 6.571 MB / 0.5863 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.4455, allocations: 0.6616 MB / 0.587 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004921/0.446, allocations: 198.4 kB / 0.5872 GB, free: 1.637 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004274/0.4465, allocations: 260.4 kB / 0.5874 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.4468, allocations: 243.2 kB / 0.5876 GB, free: 1.359 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.97e-05/0.4469, allocations: 31.84 kB / 0.5877 GB, free: 1.355 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01838/0.4652, allocations: 8.61 MB / 0.5961 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.4654, allocations: 82.69 kB / 0.5962 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.4658, allocations: 176.3 kB / 0.5963 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01536/0.4811, allocations: 5.249 MB / 0.6014 GB, free: 8.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4812, allocations: 0 / 0.6014 GB, free: 8.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4812, allocations: 0 / 0.6014 GB, free: 8.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.4812, allocations: 0 / 0.6014 GB, free: 8.312 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.004703/0.4859, allocations: 1.253 MB / 0.6027 GB, free: 7.023 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4859, allocations: 12.03 kB / 0.6027 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002691/0.4862, allocations: 64.64 kB / 0.6027 GB, free: 6.949 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005646/0.4868, allocations: 278.3 kB / 0.603 GB, free: 6.652 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.4868, allocations: 21.03 kB / 0.603 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.4868, allocations: 32.38 kB / 0.6031 GB, free: 6.602 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008686/0.4877, allocations: 411.4 kB / 0.6035 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.4877, allocations: 4 kB / 0.6035 GB, free: 6.164 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.4878, allocations: 16 kB / 0.6035 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.741e-05/0.4879, allocations: 8 kB / 0.6035 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006594/0.4885, allocations: 254.3 kB / 0.6037 GB, free: 5.895 MB / 446.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.001849/0.4904, allocations: 1.195 MB / 0.6049 GB, free: 4.641 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000673/0.491, allocations: 206.3 kB / 0.6051 GB, free: 4.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.4912, allocations: 60.83 kB / 0.6051 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1254/0.6166, allocations: 33.64 MB / 0.638 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/0.6166, allocations: 34.55 kB / 0.638 GB, free: 2.645 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 2.495e-06/0.6166, allocations: 4 kB / 0.638 GB, free: 2.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.001398/0.618, allocations: 382.7 kB / 0.6384 GB, free: 2.258 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.6181, allocations: 55.41 kB / 0.6385 GB, free: 2.191 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.6184, allocations: 284.6 kB / 0.6387 GB, free: 1.902 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.6184, allocations: 29.7 kB / 0.6388 GB, free: 1.867 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.6186, allocations: 228.3 kB / 0.639 GB, free: 1.637 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.6187, allocations: 63.47 kB / 0.639 GB, free: 1.574 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.6188, allocations: 57.66 kB / 0.6391 GB, free: 1.512 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.619, allocations: 342.8 kB / 0.6394 GB, free: 1.168 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.6191, allocations: 60.84 kB / 0.6395 GB, free: 1.105 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.6193, allocations: 113.9 kB / 0.6396 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.6196, allocations: 177.7 kB / 0.6397 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.6196, allocations: 4 kB / 0.6398 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006122/0.6202, allocations: 288.4 kB / 0.64 GB, free: 492 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.6203, allocations: 4.156 kB / 0.64 GB, free: 488 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.6203, allocations: 4 kB / 0.64 GB, free: 484 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004105/0.6207, allocations: 77.84 kB / 0.6401 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.6209, allocations: 51.91 kB / 0.6402 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.6226, allocations: 1.876 MB / 0.642 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.6228, allocations: 23.45 kB / 0.642 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.6228, allocations: 12.12 kB / 0.642 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002492/0.623, allocations: 168.1 kB / 0.6422 GB, free: 14.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00016/0.6232, allocations: 106.5 kB / 0.6423 GB, free: 14.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002916/0.6235, allocations: 169.9 kB / 0.6424 GB, free: 13.83 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.6235, allocations: 0 / 0.6424 GB, free: 13.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.000604/0.6241, allocations: 294.8 kB / 0.6427 GB, free: 13.53 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.6241, allocations: 11.91 kB / 0.6427 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-06/0.6241, allocations: 0 / 0.6427 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.6244, allocations: 81.78 kB / 0.6428 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.6246, allocations: 43.97 kB / 0.6429 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.6262, allocations: 1.879 MB / 0.6447 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.6264, allocations: 15.89 kB / 0.6447 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.6264, allocations: 12 kB / 0.6447 GB, free: 11.35 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (ST.fluidState_in.phase,SensT1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.6265, allocations: 200.2 kB / 0.6449 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.6266, allocations: 31.81 kB / 0.6449 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.6277, allocations: 0.8425 MB / 0.6458 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.6278, allocations: 11.98 kB / 0.6458 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.6278, allocations: 3.938 kB / 0.6458 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.6278, allocations: 0 / 0.6458 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005422/0.6283, allocations: 463.1 kB / 0.6462 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.6283, allocations: 3.938 kB / 0.6462 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.6285, allocations: 43.97 kB / 0.6463 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-05/0.6286, allocations: 24.84 kB / 0.6463 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.6287, allocations: 4 kB / 0.6463 GB, free: 9.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.6297, allocations: 1.257 MB / 0.6475 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6297, allocations: 208 / 0.6475 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.6308, allocations: 0.8249 MB / 0.6483 GB, free: 7.488 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.137e-05/0.6309, allocations: 51.62 kB / 0.6484 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/0.6309, allocations: 4 kB / 0.6484 GB, free: 7.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.6311, allocations: 4 kB / 0.6484 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.231e-05/0.6311, allocations: 19.97 kB / 0.6484 GB, free: 7.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.6312, allocations: 4 kB / 0.6484 GB, free: 7.406 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.6314, allocations: 207.1 kB / 0.6486 GB, free: 7.203 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6314, allocations: 0 / 0.6486 GB, free: 7.203 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003765/0.6351, allocations: 1.372 MB / 0.6499 GB, free: 5.828 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (ST.P_HP,ST.P_LP,Inertia1.phi,Inertia1.w) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.005196/0.6403, allocations: 1.432 MB / 0.6513 GB, free: 4.383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.6416, allocations: 0.6035 MB / 0.6519 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.6416, allocations: 0 / 0.6519 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.642, allocations: 271.2 kB / 0.6522 GB, free: 3.477 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007896/0.6428, allocations: 126 kB / 0.6523 GB, free: 3.352 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.6448, allocations: 1.165 MB / 0.6535 GB, free: 2.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.645, allocations: 233.4 kB / 0.6537 GB, free: 1.914 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002602/0.6453, allocations: 146.7 kB / 0.6538 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.6453, allocations: 27.44 kB / 0.6538 GB, free: 1.738 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.6453, allocations: 0 / 0.6538 GB, free: 1.738 MB / 494.1 MB Notification: Performance of Templates: time 0.07056/0.7159, allocations: 50.18 MB / 0.7028 GB, free: 15.45 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestST1.makefile [Timeout 660] (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestST1.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestST1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestST1.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestST1.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestST1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestST1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.24899547547102] Failed to read output from testmodel.py, exit status != 0: 0.7254370786249638 0.741055786 0.256537002 Calling exit ...