Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03061/0.03061, allocations: 5.394 MB / 22.36 MB, free: 0.7227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 115.6 kB / 26.38 MB, free: 4.539 MB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 190.7 kB / 30.51 MB, free: 460 kB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 257.4 MB, free: 14.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009144/0.009144, allocations: 2.322 MB / 313.1 MB, free: 3.332 MB / 238.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=97920,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=97920,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 107.8 kB / 431.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2192, allocations: 51.2 MB / 482.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.007002/0.2262, allocations: 6.898 MB / 489.2 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005716/0.232, allocations: 4.018 MB / 493.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.2332, allocations: 26.06 kB / 493.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.2359, allocations: 1.168 MB / 494.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.238, allocations: 0.8811 MB / 495.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.2396, allocations: 0.6192 MB / 495.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.241, allocations: 1.413 MB / 497.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.2421, allocations: 1.011 MB / 498.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005782/0.2427, allocations: 0.5653 MB / 498.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006876/0.2434, allocations: 0.6764 MB / 499.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001782/0.2436, allocations: 139.5 kB / 499.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007774/0.2444, allocations: 445.6 kB / 0.4884 GB, free: 10.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.2446, allocations: 296.5 kB / 0.4887 GB, free: 9.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004111/0.245, allocations: 0.6298 MB / 0.4893 GB, free: 9.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001682/0.2467, allocations: 1.779 MB / 0.491 GB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2467, allocations: 1.688 kB / 0.491 GB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2467, allocations: 0 / 0.491 GB, free: 8.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.2467, allocations: 0 / 0.491 GB, free: 8.082 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.00343/0.2502, allocations: 1.83 MB / 0.4928 GB, free: 6.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.2502, allocations: 11.97 kB / 0.4928 GB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/0.2521, allocations: 387.8 kB / 0.4932 GB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.2536, allocations: 0.821 MB / 0.494 GB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.001e-05/0.2536, allocations: 74 kB / 0.4941 GB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.2537, allocations: 108 kB / 0.4942 GB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.2553, allocations: 1.126 MB / 0.4953 GB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.2553, allocations: 4 kB / 0.4953 GB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.43e-05/0.2554, allocations: 40 kB / 0.4953 GB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2555, allocations: 28 kB / 0.4953 GB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.257, allocations: 0.9485 MB / 0.4963 GB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004949/0.262, allocations: 4.307 MB / 0.5005 GB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.2647, allocations: 1.68 MB / 0.5021 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006653/0.2654, allocations: 313.5 kB / 0.5024 GB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.2655, allocations: 101.5 kB / 0.5025 GB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008379/0.2663, allocations: 450.6 kB / 0.5029 GB, free: 11.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.2664, allocations: 0 / 0.5029 GB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005562/0.2719, allocations: 1.564 MB / 0.5045 GB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.2721, allocations: 277.6 kB / 0.5047 GB, free: 9.766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008832/0.273, allocations: 0.6566 MB / 0.5054 GB, free: 9.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.449e-05/0.2731, allocations: 45.7 kB / 0.5054 GB, free: 9.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/0.2735, allocations: 0.5233 MB / 0.5059 GB, free: 8.516 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.2737, allocations: 230.1 kB / 0.5061 GB, free: 8.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.274, allocations: 182.5 kB / 0.5063 GB, free: 8.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.2742, allocations: 394.8 kB / 0.5067 GB, free: 7.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.2748, allocations: 281.8 kB / 0.507 GB, free: 7.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008444/0.2757, allocations: 0.5441 MB / 0.5075 GB, free: 6.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2772, allocations: 0.9137 MB / 0.5084 GB, free: 5.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.2772, allocations: 7.875 kB / 0.5084 GB, free: 5.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002175/0.2794, allocations: 1.071 MB / 0.5094 GB, free: 4.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.2795, allocations: 67.67 kB / 0.5095 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2795, allocations: 12 kB / 0.5095 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004446/0.2799, allocations: 80.78 kB / 0.5096 GB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/0.2808, allocations: 219.6 kB / 0.5098 GB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.2824, allocations: 1.582 MB / 0.5113 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007292/0.2831, allocations: 111.3 kB / 0.5114 GB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.2832, allocations: 43.97 kB / 0.5115 GB, free: 2.375 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000473/0.2837, allocations: 339.9 kB / 0.5118 GB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.2838, allocations: 91.38 kB / 0.5119 GB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.2858, allocations: 0.909 MB / 0.5128 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.2858, allocations: 8 kB / 0.5128 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2858, allocations: 4 kB / 0.5128 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.2858, allocations: 7.969 kB / 0.5128 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005763/0.2916, allocations: 2.211 MB / 0.515 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2916, allocations: 0 / 0.515 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/0.292, allocations: 87.89 kB / 0.515 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008123/0.2928, allocations: 326.2 kB / 0.5154 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/0.2929, allocations: 27.97 kB / 0.5154 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.2942, allocations: 0.8819 MB / 0.5162 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2942, allocations: 3.938 kB / 0.5163 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005047/0.2993, allocations: 1.639 MB / 0.5179 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/0.2996, allocations: 220.4 kB / 0.5181 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.2998, allocations: 31.95 kB / 0.5181 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000534/0.3003, allocations: 47.95 kB / 0.5181 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.668e-05/0.3004, allocations: 36.33 kB / 0.5182 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.705e-05/0.3005, allocations: 31.97 kB / 0.5182 GB, free: 11.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006109/0.3011, allocations: 467 kB / 0.5186 GB, free: 10.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.043e-06/0.3011, allocations: 0 / 0.5186 GB, free: 10.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009126/0.302, allocations: 323.1 kB / 0.519 GB, free: 10.49 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001998/0.304, allocations: 0.6583 MB / 0.5196 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.3059, allocations: 0.9706 MB / 0.5205 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.306, allocations: 1.438 kB / 0.5205 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008819/0.3069, allocations: 489.2 kB / 0.521 GB, free: 8.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008546/0.3077, allocations: 173.9 kB / 0.5212 GB, free: 8.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.3108, allocations: 1.768 MB / 0.5229 GB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006463/0.3115, allocations: 1.018 MB / 0.5239 GB, free: 5.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.3117, allocations: 79.41 kB / 0.524 GB, free: 5.469 MB / 382.1 MB Notification: Performance of SimCode: time 2.334e-06/0.3118, allocations: 4 kB / 0.524 GB, free: 5.465 MB / 382.1 MB Notification: Performance of Templates: time 0.02299/0.3347, allocations: 17.37 MB / 0.5409 GB, free: 4.129 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.makefile [Timeout 660] (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.230835029156879] Failed to read output from testmodel.py, exit status != 0: 0.3416260159574449 0.353964697 0.10473930000000001 Calling exit ...