aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 10 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7381
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1750
RA = 285.743, Dec = -67.8068
tmin = 692928001, tmax = 693187201
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='22311', job_status='RUN', time_executed='2022-12-20 01:30:43.710516', time_epoch_executed='1671528643.71' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22311/ft1_4FGL_J1902.9-6748_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22311/ft1_4FGL_J1902.9-6748_daily_bin1750.fits outfile=/scratch/kocevski/22311/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1750.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.52
user 3.27
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.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/22311/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 932

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/22311/ltcube_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.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/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits
.....................!
real 11.76
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/22311/ltcube_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits outfile=/scratch/kocevski/22311/expmap_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.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/22311/ltcube_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits
.....................!
real 190.82
user 185.20
sys 5.16

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/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits outfile=/scratch/kocevski/22311/cmap_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits outfile=/scratch/kocevski/22311/cmap_HighResolution_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22311/Model_4FGL_J1902.9-6748_daily_bin1750.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/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits.....................!
real 86.91
user 85.55
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits', '/scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits', expMap='/scratch/kocevski/22311/expmap_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits', expCube='/scratch/kocevski/22311/ltcube_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/22311/Model_4FGL_J1902.9-6748_daily_bin1750.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  0.000e+00  1.000e+06 ( 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 -5.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/22311/ft1_filtered_4FGL_J1902.9-6748_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/22311/ft2_4FGL_J1902.9-6748_daily_bin1750.fits
Exposure map: /scratch/kocevski/22311/expmap_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits
Exposure cube: /scratch/kocevski/22311/ltcube_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/22311/Model_4FGL_J1902.9-6748_daily_bin1750.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) = 9529.63121592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21817E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .43716E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17160E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    12.901       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14756E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .55272E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    145.38       1.0000          .0000       .10000E+07
     8 'norm      '    25.618       1.0000          .0000       .10000E+07
     9 'Prefactor '    67.913       1.0000          .0000       .10000E+07
    10 'norm      '    10.293       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8304       1.0000          .0000       .10000E+07
    12 'Prefactor '    38.589       1.0000          .0000       .10000E+07
    13 'norm      '    .22204E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .83423E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.9334       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.4946       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88820       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9529.036     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1395 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        4.0728       -.12992E-06** at limit **
   2  norm           .0000        85.080        .58015E-06** at limit **
   3  Prefactor     .88818E-09    35.425        .19699E-06** at limit **
   4  Prefactor     13.147        20.555        .10939E-06    .44700E-02
   5  Prefactor     .11102E-09    10.072       -.32046E-06** at limit **
   6  norm          .55511E-10    11.921       -.41470E-06** at limit **
   7  Prefactor     148.43        91.088       -.37138E-06    .12315E-01
   8  norm          25.906        13.893        .20300E-07   -.51488E-01
   9  Prefactor     67.723        11.238        .27355E-08    .13759    
  10  norm          10.340        10.290        .63615E-07    .77080E-03
  11  Prefactor     4.8416        8.1478       -.32783E-07    .25252E-03
  12  Prefactor     38.445        37.185        .14335E-06    .21275E-01
  13  norm           .0000        .66460       -.85894E-07** at limit **
  14  norm          .40326E-05    187.76       -.21772E-06** at limit **
  15  Prefactor     5.9715        10.109       -.16382E-06   -.23777E-03
  16  Normalizat    1.4937        .29075        .96522E-05   -.56598E-06
  17  Prefactor     .88795        .10703       -.39804E-05    .16172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 8.88178e-10
  Prefactor  = 13.1472
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 148.431
  norm       = 25.9065
  Prefactor  = 67.7233
  norm       = 10.3399
  Prefactor  = 4.84164
  Prefactor  = 38.4448
  norm       = 0
  norm       = 4.03261e-06
  Prefactor  = 5.97154
  Normalizat = 1.49371
  Prefactor  = 0.887946
 **********
 **   18 **HESSE 
 **********

 FCN=   9529.036     FROM HESSE     STATUS=OK           269 CALLS     1664 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        4.0670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        83.226        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88818E-09    35.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.147        20.524        .27862E-03   -1.5635    
   5  Prefactor     .11102E-09    10.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    1.0470        .30090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     148.43        102.91        .82942E-04   -1.5464    
   8  norm          25.906        22.493        .19761E-03   -1.5606    
   9  Prefactor     67.723        66.784        .12135E-03   -1.5543    
  10  norm          10.340        10.310        .31207E-03   -1.5644    
  11  Prefactor     4.8416        8.1745        .45748E-03   -1.5664    
  12  Prefactor     38.445        37.760        .16099E-03   -1.5584    
  13  norm           .0000        .65888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .40326E-05    33.024        .19771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9715        10.104        .41201E-03   -1.5659    
  16  Normalizat    1.4937        .23963        .81849E-01   -.77955    
  17  Prefactor     .88795        .87678E-01    .44854E-01   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31895e-06
Minuit parameter uncertainties:
  1  8.5213e-07
  2  7.27148e-05
  3  0.000354434
  4  20.5239
  5  7.44393e-05
  6  1.692e-05
  7  102.907
  8  22.4935
  9  66.7845
  10  10.3097
  11  8.17451
  12  37.7605
  13  6.35e-07
  14  0.0230804
  15  10.1036
  16  0.239811
  17  0.0876917
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.034e+01  1.031e+01  0.000e+00  1.000e+06 ( 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 -5.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.879e-01  8.769e-02  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.494e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.40e-05

TS (Fixed Index): 1.30
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/22311/likelihoodResults_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.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): 0
logL (Free Index) = 9528.96555278
delta logL = 0.0699580236906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9528.96322361
delta logL = 0.0722871973485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.346       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0273       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88500       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.

 FCN=   9528.963     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      309 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.347        10.909        .11887E-04   -.97553E-04
   2  alpha         2.0272        .71011        .23080E-01   -.23919E-05
   3  Normalizat    1.5046        .28815        .36123E-03   -.23479E-04
   4  Prefactor     .88504        .10660        .16779E-03   -.83746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.347
  alpha      = 2.02723
  Normalizat = 1.50457
  Prefactor  = 0.885039
 **********
 **   18 **HESSE 
 **********

 FCN=   9528.963     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.347        10.903        .47548E-06   -1.5641    
   2  alpha         2.0272        .70993        .92322E-03   -.19025    
   3  Normalizat    1.5046        .28845        .14449E-04   -.77650    
   4  Prefactor     .88504        .10669        .67115E-05   -.96666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06378e-12
Minuit parameter uncertainties:
  1  10.9031
  2  0.720216
  3  0.288762
  4  0.106719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22311': 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) = 9528.9632235
delta logL = 0.072287307954

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.135e+01  1.090e+01  0.000e+00  1.000e+06 ( 1.000e-12)
436        alpha:  2.027e+00  7.202e-01  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00 -5.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.850e-01  1.067e-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.505e+00  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.03 +/- 0.72
Photon Flux (Free Index): 3.54e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.70e-05

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/22311/cmap_HighResolution_692928001_693187201_4FGL_J1902.9-6748_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='1.66e-05', photon_flux_error='4.16e-08', dlogl='7.23e-02', energy_flux='1.41e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2022-12-20 01:43:46.681324', photon_index_error2='0.72', photon_index2='2.03', ts='1.30', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.70e-05', EG='1.49', time_epoch_completed='1671529426.68', return_code='0', job_id='22311', GAL2='0.89', EG2='1.50', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.01e-08', ts2='1.44', photon_index='2.31' WHERE bin_id='1750' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:43:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 22311: <4FGL_J1902.9-6748_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1750> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 20 01:30:21 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:30:23 2022
Terminated at Tue Dec 20 01:43:47 2022
Results reported at Tue Dec 20 01:43:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1750 285.743 -67.8068 692928001 693187201 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

