/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 140 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7409
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1631
RA = 285.743, Dec = -67.8068
tmin = 662083201, tmax = 662342401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='559854', job_status='RUN', time_executed='2021-12-28 00:32:53.741295', time_epoch_executed='1640680373.74' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559854

Creating custom pfile directory:
/scratch/kocevski/559854/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=662083201.0 && nMetStart<662342401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=662083201.0 && nMetStart<662342401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559854/ft1_4FGL_J1902.9-6748_daily_bin1631.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=662083201.0 && nMetStart<662342401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559854/ft1_4FGL_J1902.9-6748_daily_bin1631.fits outfile=/scratch/kocevski/559854/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1631.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=662083201.0 tmax=662342401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.71
user 3.66
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/559854/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/559854/ltcube_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits
.....................!
real 12.49
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/559854/ltcube_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits outfile=/scratch/kocevski/559854/expmap_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/559854/ltcube_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits
.....................!
real 191.72
user 186.61
sys 4.56

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 217 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1902.9-6748 @ 285.743 -67.8068

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits outfile=/scratch/kocevski/559854/cmap_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits outfile=/scratch/kocevski/559854/cmap_HighResolution_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559854/Model_4FGL_J1902.9-6748_daily_bin1631.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J1642.1-5428
adding source GAL_V02
Working on...
/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits.....................!
real 73.33
user 71.73
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits', '/scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits', expMap='/scratch/kocevski/559854/expmap_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits', expCube='/scratch/kocevski/559854/ltcube_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559854/Model_4FGL_J1902.9-6748_daily_bin1631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1902.9-6748'

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.756e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/559854/ft1_filtered_4FGL_J1902.9-6748_daily_bin1631.fits
Spacecraft file(s): /scratch/kocevski/559854/ft2_4FGL_J1902.9-6748_daily_bin1631.fits
Exposure map: /scratch/kocevski/559854/expmap_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits
Exposure cube: /scratch/kocevski/559854/ltcube_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559854/Model_4FGL_J1902.9-6748_daily_bin1631.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7316.62233243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7316.55392653

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.937       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13787E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1700       1.0000         .10000E-03   10000.    
    15 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    71.661       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5530       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7316.554     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1580 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.351       -.33733E-04** at limit **
   2  norm          12.937        6.8280        .16997E-06    .69122E-04
   3  norm          .10000E-03    30.120       -.16038E-04** at limit **
   4  Prefactor     .10000E-03    9.9059       -.25550E-05** at limit **
   5  Prefactor     .10000E-03    16.676        .58749E-05** at limit **
   6  Prefactor     .10000E-03    10.173        .40321E-05** at limit **
   7  norm          .10000E-03    .35113       -.60702E-07** at limit **
   8  Prefactor     .10000E-03    34.522        .20741E-05** at limit **
   9  Prefactor     .10000E-03    46.971        .20451E-04** at limit **
  10  norm          .10000E-03    18.180       -.90365E-06** at limit **
  11  Prefactor     .10000E-03    45.373        .21917E-04** at limit **
  12  norm          .10000E-03    13.772       -.36740E-05** at limit **
  13  Prefactor     10.866        12.184       -.11479E-06    .24816E-04
  14  Prefactor     1.1509        90.042       -.11289E-04   -.91892E-04
  15  norm          .10000E-03    .69908        .25208E-07** at limit **
  16  norm          71.657        54.638       -.32286E-05    .66307E-05
  17  Prefactor     .10000E-03    10.766       -.13613E-05** at limit **
  18  Normalizat    1.5535        .26423       -.93763E-07    .79637E-04
  19  Prefactor     .85329        .95256E-01    .36642E-06    .98108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.9373
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8659
  Prefactor  = 1.15088
  norm       = 0.0001
  norm       = 71.6572
  Prefactor  = 0.0001
  Normalizat = 1.55354
  Prefactor  = 0.853293
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.554     FROM HESSE     STATUS=OK           262 CALLS     1842 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.937        6.8289        .11136E-03   -1.4988    
   3  norm          .10000E-03    30.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .65818        .98644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    18.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.866        12.182        .12152E-03   -1.5049    
  14  Prefactor     1.1509        95.192        .42437E-03   -1.5493    
  15  norm          .10000E-03    1.6149        .13909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          71.657        54.633        .23712E-03   -1.4013    
  17  Prefactor     .10000E-03    10.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5535        .32459        .35051E-03   -.76285    
  19  Prefactor     .85329        .11728        .16355E-03   -.97793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60412e-10
Minuit parameter uncertainties:
  1  1.07957e-05
  2  6.82936
  3  4.31574e-06
  4  2.1064e-06
  5  1.94727e-05
  6  1.3417e-05
  7  4.52327e-07
  8  5.67002e-06
  9  6.30677e-06
  10  2.34762e-06
  11  4.31685e-06
  12  2.14288e-05
  13  12.1851
  14  20.9673
  15  9.81102e-06
  16  54.6713
  17  1.35555e-06
  18  0.325028
  19  0.117317
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7316.55392285

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  2.143e-05  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.533e-01  1.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.554e+00  3.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/559854/likelihoodResults_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.55426251
delta logL = -0.000339664742569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.55392246
delta logL = 3.81928657589e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5911       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7316.554     FROM MIGRAD    STATUS=FAILED        95 CALLS      277 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10546E-03    6626.9        .34926E-02** at limit **
   2  alpha         3.0461        2.6168        .16474       -.12425E-05
   3  Normalizat    1.5535        .98213E-01    .35051E-03    .35289E-04
   4  Prefactor     .85329        .35067E-01    .16355E-03    .25580E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7316.554     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      429 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10546E-03    6626.9        .88736E-03** at limit **
   2  alpha         3.0461        2.6168        .66838E-05   -.12425E-05
   3  Normalizat    1.5535        .98213E-01    .12290E-05    .35289E-04
   4  Prefactor     .85329        .35067E-01    .19505E-06    .25580E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7316.554     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      467 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.147        .13971E-03** at limit **
   2  alpha         3.1396        3.5085        .32949       -.30018E-08
   3  Normalizat    1.5535        .32365        .14020E-04   -.33245E-04
   4  Prefactor     .85329        .11709        .65422E-05   -.98010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.13961
  Normalizat = 1.55354
  Prefactor  = 0.853294
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.554     FROM HESSE     STATUS=OK            23 CALLS      490 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.633        .27941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1396        3.2570        .13180E-01    .25872    
   3  Normalizat    1.5535        .32363        .28041E-05   -.76285    
   4  Prefactor     .85329        .11708        .13084E-05   -.97793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55551e-12
Minuit parameter uncertainties:
  1  6.43323e-05
  2  438.486
  3  0.324063
  4  0.117116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559854': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7316.55392103
delta logL = 1.81383165909e-06

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  6.433e-05  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  3.140e+00  4.385e+02  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.533e-01  1.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.554e+00  3.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 285.743 -67.807

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/559854/cmap_HighResolution_662083201_662342401_4FGL_J1902.9-6748_daily_bin1631.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/559854

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-12-28 00:44:58.547210', job_id='559854', GAL2='0.85', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1640681098.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1631' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:44:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 559854: <4FGL_J1902.9-6748_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1631> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 28 00:30:21 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:30:23 2021
Terminated at Tue Dec 28 00:44:58 2021
Results reported at Tue Dec 28 00:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1631 285.743 -67.8068 662083201 662342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1902.9-6748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             254.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

The output (if any) is above this job summary.

