/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 2 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1374
RA = 285.743, Dec = -67.8068
tmin = 595468801, tmax = 595728001
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='498004', job_status='RUN', time_executed='2021-09-21 22:22:06.458734', time_epoch_executed='1632288126.46' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498004/ft1_4FGL_J1902.9-6748_daily_bin1374.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498004/ft1_4FGL_J1902.9-6748_daily_bin1374.fits outfile=/scratch/kocevski/498004/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1374.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=595468801.0 tmax=595728001.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 2.72
user 2.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.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/498004/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1374.fits evtable="EVENTS" outfile="/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits" evtable="EVENTS" scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits sctable="SC_DATA" outfile=/scratch/kocevski/498004/ltcube_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.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/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits
.....................!
real 12.51
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits sctable="SC_DATA" expcube=/scratch/kocevski/498004/ltcube_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits outfile=/scratch/kocevski/498004/expmap_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.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/498004/ltcube_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits
.....................!
real 190.69
user 184.98
sys 5.33

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/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits outfile=/scratch/kocevski/498004/cmap_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits outfile=/scratch/kocevski/498004/cmap_HighResolution_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498004/Model_4FGL_J1902.9-6748_daily_bin1374.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/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits.....................!
real 100.79
user 96.01
sys 2.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits', '/scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits', expMap='/scratch/kocevski/498004/expmap_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits', expCube='/scratch/kocevski/498004/ltcube_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498004/Model_4FGL_J1902.9-6748_daily_bin1374.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/498004/ft1_filtered_4FGL_J1902.9-6748_daily_bin1374.fits
Spacecraft file(s): /scratch/kocevski/498004/ft2_4FGL_J1902.9-6748_daily_bin1374.fits
Exposure map: /scratch/kocevski/498004/expmap_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits
Exposure cube: /scratch/kocevski/498004/ltcube_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498004/Model_4FGL_J1902.9-6748_daily_bin1374.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) = 11368.7157895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.54       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7328       1.0000         .10000E-03   10000.    
     3 'norm      '    .35934E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.734       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.798       1.0000         .10000E-03   10000.    
    15 'norm      '    .98804       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2494       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98062       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=   11368.70     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1994 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.53        115.05       -.48678E-05    .60352E-05
   2  norm          8.7321        6.5945       -.76470E-07   -.10491E-03
   3  norm          .10109E-03    26.650       -.40829E-06** at limit **
   4  Prefactor     .10000E-03    6.4197       -.23101E-06** at limit **
   5  Prefactor     .10000E-03    12.828        .20644E-06** at limit **
   6  Prefactor     .10000E-03    24.990        .17661E-06** at limit **
   7  norm          1.0134        1.0126       -.25468E-06   -.21293E-02
   8  Prefactor     .10000E-03    36.062       -.29501E-06** at limit **
   9  Prefactor     .10000E-03    36.116       -.14085E-06** at limit **
  10  norm          19.260        22.114       -.40123E-05   -.78346E-05
  11  Prefactor     .10000E-03    31.101        .13887E-05** at limit **
  12  norm          17.735        9.7866       -.11203E-05   -.99893E-05
  13  Prefactor     12.946        10.256       -.10327E-05   -.26397E-05
  14  Prefactor     18.793        24.468        .11334E-04   -.34702E-05
  15  norm          .98896        1.2831       -.19546E-06   -.19586E-02
  16  norm          .10000E-03    23.094       -.70910E-06** at limit **
  17  Prefactor     12.823        15.311        .14734E-05   -.16564E-04
  18  Normalizat    1.2490        .22821       -.18529E-06    .59368E-04
  19  Prefactor     .98080        .82714E-01    .39619E-06    .48710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.527
  norm       = 8.7321
  norm       = 0.000101095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.26
  Prefactor  = 0.0001
  norm       = 17.7346
  Prefactor  = 12.9463
  Prefactor  = 18.7935
  norm       = 0.988956
  norm       = 0.0001
  Prefactor  = 12.8233
  Normalizat = 1.24898
  Prefactor  = 0.980799
 **********
 **   18 **HESSE 
 **********

 FCN=   11368.70     FROM HESSE     STATUS=OK           280 CALLS     2274 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.53        115.15        .32429E-04   -1.3215    
   2  norm          8.7321        6.5938        .13564E-03   -1.5117    
   3  norm          .10109E-03    25.733        .18394       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0134        .94949        .10410E-02   -1.5507    
   8  Prefactor     .10000E-03    36.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.260        22.154        .91268E-04   -1.4830    
  11  Prefactor     .10000E-03    31.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.735        9.7873        .95108E-04   -1.4865    
  13  Prefactor     12.946        10.256        .11133E-03   -1.4988    
  14  Prefactor     18.793        24.004        .92377E-04   -1.4841    
  15  norm          .98896        1.1598        .13028E-02   -1.5509    
  16  norm          .10000E-03    23.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.823        15.374        .11185E-03   -1.4992    
  18  Normalizat    1.2490        .27358        .39133E-03   -.85102    
  19  Prefactor     .98080        .10067        .16426E-03   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23554e-10
Minuit parameter uncertainties:
  1  115.319
  2  6.59433
  3  0.0106191
  4  8.31306e-07
  5  2.5341e-06
  6  3.80666e-06
  7  0.949504
  8  2.9681e-05
  9  3.94809e-06
  10  22.1638
  11  2.78703e-06
  12  9.78822
  13  10.2577
  14  24.0161
  15  1.15979
  16  2.26547e-05
  17  15.3786
  18  0.273891
  19  0.100691
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.773e+01  9.788e+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

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.808e-01  1.007e-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.249e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.33e-05

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) = 11368.6594259
delta logL = 0.0446237082087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11368.6589322
delta logL = 0.0451174243735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.772       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0904       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97716       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.

 FCN=   11368.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.805        273.88        .23752E-02    .10595E-03
   2  alpha         2.0932        2.7492        .41872       -.14467E-04
   3  Normalizat    1.2661        .28590        .87875E-01    .37012E-04
   4  Prefactor     .97718        .68994E-01    .45981E-01   -.16063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8055
  alpha      = 2.09325
  Normalizat = 1.2661
  Prefactor  = 0.977177
 **********
 **   18 **HESSE 
 **********

 FCN=   11368.66     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.805        10.162        .95007E-04   -1.4864    
   2  alpha         2.0932        .72327        .21854E-01   -.16343    
   3  Normalizat    1.2661        .26695        .38913E-03   -.84584    
   4  Prefactor     .97718        .99648E-01    .16454E-03   -.93494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11938e-11
Minuit parameter uncertainties:
  1  10.1626
  2  0.734058
  3  0.267235
  4  0.099667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498004': 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) = 11368.6589213
delta logL = 0.045128326723

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.781e+01  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.093e+00  7.341e-01  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:  9.772e-01  9.967e-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.266e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.09 +/- 0.73
Photon Flux (Free Index): 5.86e-08 +/- 5.31e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.52e-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/498004/cmap_HighResolution_595468801_595728001_4FGL_J1902.9-6748_daily_bin1374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='2.52e-05', photon_flux_error='3.95e-08', dlogl='4.51e-02', energy_flux='2.41e-05', photon_flux2='5.86e-08', job_status='DONE', time_completed='2021-09-21 22:36:37.008041', photon_index_error2='0.73', photon_index2='2.09', ts='5.87', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.25', time_epoch_completed='1632288997.01', return_code='0', job_id='498004', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.31e-08', ts2='5.96', photon_index='2.31' WHERE bin_id='1374' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:36:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 498004: <4FGL_J1902.9-6748_daily_bin1374> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1374> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:21:54 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:21:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 22:21:56 2021
Terminated at Tue Sep 21 22:36:37 2021
Results reported at Tue Sep 21 22:36:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1374 285.743 -67.8068 595468801 595728001 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 :                                   861.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

