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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1023
RA = 285.743, Dec = -67.8068
tmin = 504489601, tmax = 504748801
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='496039', job_status='RUN', time_executed='2021-09-21 22:18:19.207557', time_epoch_executed='1632287899.21' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496039

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496039/ft1_4FGL_J1902.9-6748_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496039/ft1_4FGL_J1902.9-6748_daily_bin1023.fits outfile=/scratch/kocevski/496039/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1023.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=504489601.0 tmax=504748801.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.44
user 4.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.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/496039/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.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/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/496039/ltcube_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.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/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits
.....................!
real 12.34
user 11.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/496039/ltcube_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.fits outfile=/scratch/kocevski/496039/expmap_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.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/496039/ltcube_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.fits
.....................!
real 189.97
user 185.16
sys 4.36

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/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits outfile=/scratch/kocevski/496039/cmap_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits outfile=/scratch/kocevski/496039/cmap_HighResolution_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/496039/ft2_4FGL_J1902.9-6748_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496039/Model_4FGL_J1902.9-6748_daily_bin1023.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/496039/ft1_filtered_4FGL_J1902.9-6748_daily_bin1023.fits.....................!
real 85.04
user 83.65
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39471E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .58466E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    67.138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1576       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15186E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    24.612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.391       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4520       1.0000         .10000E-03   10000.    
    16 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1662       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90654       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=   9213.899     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1656 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    713.28        .14524E-04** at limit **
   2  norm          .10000E-03    56.100        .26729E-04** at limit **
   3  norm          67.086        52.789        .11668E-05    .61010E-04
   4  Prefactor     .10000E-03    5.7678       -.24963E-06** at limit **
   5  Prefactor     .10000E-03    19.080       -.38459E-06** at limit **
   6  Prefactor     8.1571        13.781       -.56808E-06    .33629E-04
   7  norm          3.6662        1.3035       -.10336E-06    .23120E-03
   8  Prefactor     .10000E-03    127.43       -.14381E-05** at limit **
   9  Prefactor     .10000E-03    67.962        .22990E-06** at limit **
  10  norm          .10000E-03    6.5122       -.24026E-06** at limit **
  11  Prefactor     .10000E-03    393.26        .27096E-05** at limit **
  12  norm          24.611        11.946       -.12583E-06    .13232E-03
  13  Prefactor     .10000E-03    2.8470       -.11856E-06** at limit **
  14  Prefactor     32.415        27.028       -.15889E-06    .41460E-04
  15  norm          1.4518        1.5087       -.43234E-06   -.66932E-03
  16  norm          .10000E-03    13.924       -.82541E-07** at limit **
  17  Prefactor     .10000E-03    6.5124       -.30430E-06** at limit **
  18  Normalizat    1.1663        .23829       -.66600E-06    .11576E-03
  19  Prefactor     .90654        .85076E-01    .13403E-05    .11407E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100146
  norm       = 0.000100004
  norm       = 67.0859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.15707
  norm       = 3.66615
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 24.6105
  Prefactor  = 0.0001
  Prefactor  = 32.4155
  norm       = 1.45177
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16628
  Prefactor  = 0.906543
 **********
 **   18 **HESSE 
 **********

 FCN=   9213.899     FROM HESSE     STATUS=OK           270 CALLS     1926 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    705.88        .19511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.7895        .66127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          67.086        52.818        .24492E-03   -1.4068    
   4  Prefactor     .10000E-03    5.8020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1571        13.769        .14037E-03   -1.5137    
   7  norm          3.6662        1.3025        .62580E-04   -1.5325    
   8  Prefactor     .10000E-03    128.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    68.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    398.28        .20461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.611        11.951        .80745E-04   -1.4715    
  13  Prefactor     .10000E-03    2.8497        .15819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.415        27.037        .70405E-04   -1.4569    
  15  norm          1.4518        1.5050        .11484E-03   -1.5467    
  16  norm          .10000E-03    13.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1663        .28656        .38510E-03   -.87651    
  19  Prefactor     .90654        .10476        .15808E-03   -.95913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44689e-09
Minuit parameter uncertainties:
  1  0.0205319
  2  0.000270121
  3  52.8553
  4  3.97415e-05
  5  0.000131845
  6  13.7739
  7  1.3025
  8  0.00088295
  9  0.000112189
  10  4.9173e-05
  11  0.00120564
  12  11.9521
  13  1.3951e-05
  14  27.0475
  15  1.50509
  16  2.25716e-05
  17  5.56968e-05
  18  0.286948
  19  0.104788
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.461e+01  1.195e+01  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.065e-01  1.048e-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.166e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.94e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 1.63e-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) = 9213.70092762
delta logL = 0.197612506347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9213.70063557
delta logL = 0.197904557404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.869       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9599       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89661       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=   9213.701     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      297 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.870        13.477        .75888E-04   -.65454E-03
   2  alpha         1.9598        .50854        .14659E-01   -.94881E-04
   3  Normalizat    1.2012        .28607        .38022E-03   -.15931E-03
   4  Prefactor     .89659        .10480        .15882E-03   -.41617E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.8697
  alpha      = 1.95985
  Normalizat = 1.20124
  Prefactor  = 0.896591
 **********
 **   18 **HESSE 
 **********

 FCN=   9213.701     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.870        13.436        .15178E-04   -1.4652    
   2  alpha         1.9598        .50678        .58634E-03   -.21778    
   3  Normalizat    1.2012        .28624        .15209E-04   -.86565    
   4  Prefactor     .89659        .10486        .31765E-04   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9869e-10
Minuit parameter uncertainties:
  1  13.4372
  2  0.510497
  3  0.286618
  4  0.104886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496039': 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) = 9213.70063555
delta logL = 0.197904571742

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.787e+01  1.344e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.960e+00  5.105e-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:  8.966e-01  1.049e-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.201e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.96 +/- 0.51
Photon Flux (Free Index): 8.24e-08 +/- 4.91e-08
Energy Flux (Free Index): 4.24e-05 +/- 2.61e-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/496039/cmap_HighResolution_504489601_504748801_4FGL_J1902.9-6748_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-08', energy_flux2='4.24e-05', photon_flux_error='4.83e-08', dlogl='1.98e-01', energy_flux='3.35e-05', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-09-21 22:30:43.468540', photon_index_error2='0.51', photon_index2='1.96', ts='7.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.17', time_epoch_completed='1632288643.47', return_code='0', job_id='496039', GAL2='0.90', EG2='1.20', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.91e-08', ts2='7.53', photon_index='2.31' WHERE bin_id='1023' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 496039: <4FGL_J1902.9-6748_daily_bin1023> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1023> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:16:04 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:16:05 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:16:05 2021
Terminated at Tue Sep 21 22:30:43 2021
Results reported at Tue Sep 21 22:30:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1023 285.743 -67.8068 504489601 504748801 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 :                                   728.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

