/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 31 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin2
RA = 135.617, Dec = 20.8503
tmin = 239846401, tmax = 240105601
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='936454', job_status='RUN', time_executed='2021-08-30 20:58:55.354161', time_epoch_executed='1630382335.35' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936454/ft1_4FGL_J0902.4+2051_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936454/ft1_4FGL_J0902.4+2051_daily_bin2.fits outfile=/scratch/kocevski/936454/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin2.fits ra=135.617 dec=20.8503 rad=12.0 tmin=239846401.0 tmax=240105601.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 10.49
user 1.27
sys 9.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.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/936454/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.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 10.28
user 0.34
sys 9.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/936454/ltcube_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.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/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits
.....................!
real 23.24
user 12.37
sys 10.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/936454/ltcube_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits outfile=/scratch/kocevski/936454/expmap_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.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/936454/ltcube_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits
.....................!
real 205.29
user 186.68
sys 16.11

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0902.4+2051 @ 135.617 20.8503

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits outfile=/scratch/kocevski/936454/cmap_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.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=135.617 yref=20.8503 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 9.38
user 0.37
sys 8.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits outfile=/scratch/kocevski/936454/cmap_HighResolution_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.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=135.617 yref=20.8503 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 9.38
user 0.39
sys 8.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936454/Model_4FGL_J0902.4+2051_daily_bin2.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 GAL_V02
Working on...
/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits.....................!
real 81.83
user 68.21
sys 12.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits', '/scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits', expMap='/scratch/kocevski/936454/expmap_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits', expCube='/scratch/kocevski/936454/ltcube_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/936454/Model_4FGL_J0902.4+2051_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0902.4+2051'

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  7.653e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/936454/ft1_filtered_4FGL_J0902.4+2051_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/936454/ft2_4FGL_J0902.4+2051_daily_bin2.fits
Exposure map: /scratch/kocevski/936454/expmap_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits
Exposure cube: /scratch/kocevski/936454/ltcube_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/936454/Model_4FGL_J0902.4+2051_daily_bin2.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) = 7848.87809405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .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 'norm      '    1.6635       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2117       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.485       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .62326       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.8558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7848.878     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1694 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9014        .16860E-07** at limit **
   2  norm          .10000E-03    .26343       -.35665E-08** at limit **
   3  Prefactor     .10000E-03    2.6675        .24368E-07** at limit **
   4  Prefactor     .10000E-03    1.5933       -.63306E-08** at limit **
   5  Prefactor     .10000E-03    9.5595        .51133E-07** at limit **
   6  norm          1.6637        .86672        .10711E-06    .57491E-04
   7  Prefactor     4.8018        11.864       -.34681E-05   -.19569E-03
   8  Prefactor     5.2115        9.1115        .14504E-05   -.56435E-03
   9  norm          .10000E-03    3.9899        .14856E-07** at limit **
  10  norm          .10000E-03    67.828        .11311E-05** at limit **
  11  norm          1.4497        1.2518       -.16425E-07   -.22581E-04
  12  Prefactor     .10000E-03    17.648        .47396E-07** at limit **
  13  Prefactor     9.9434        4.1926       -.16511E-08    .18682E-06
  14  Prefactor     16.431        18.190        .19509E-07    .22119E-05
  15  Prefactor     .10000E-03    92.240       -.13297E-05** at limit **
  16  Prefactor     40.482        36.158       -.10813E-05   -.46117E-04
  17  Normalizat    .62324        .18757        .13616E-06   -.51382E-05
  18  Prefactor     1.8557        .17585        .48335E-07    .94756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66372
  Prefactor  = 4.80176
  Prefactor  = 5.21151
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.44968
  Prefactor  = 0.0001
  Prefactor  = 9.94337
  Prefactor  = 16.4315
  Prefactor  = 0.0001
  Prefactor  = 40.4817
  Normalizat = 0.623243
  Prefactor  = 1.85574
 **********
 **   18 **HESSE 
 **********

 FCN=   7848.878     FROM HESSE     STATUS=OK           242 CALLS     1936 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9040        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26856        .44377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6779        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5959        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6637        .85971        .54915E-04   -1.5450    
   7  Prefactor     4.8018        12.315        .18353E-03   -1.5270    
   8  Prefactor     5.2115        13.902        .88041E-03   -1.5251    
   9  norm          .10000E-03    3.9995        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    69.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4497        1.2436        .89484E-04   -1.5467    
  12  Prefactor     .10000E-03    17.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9434        4.1948        .11284E-03   -1.5077    
  14  Prefactor     16.431        18.189        .98805E-04   -1.4897    
  15  Prefactor     .10000E-03    92.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.482        36.300        .62998E-04   -1.4435    
  17  Normalizat    .62324        .21587        .36628E-03   -1.0701    
  18  Prefactor     1.8557        .20267        .21700E-03   -.68008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30369e-09
Minuit parameter uncertainties:
  1  3.01907e-08
  2  1.8197e-07
  3  1.3584e-07
  4  4.60955e-07
  5  9.52248e-07
  6  0.859719
  7  12.3218
  8  13.9108
  9  1.11055e-07
  10  0.000208949
  11  1.24366
  12  3.49688e-06
  13  4.19491
  14  18.1953
  15  0.000177171
  16  36.3195
  17  0.216159
  18  0.202761
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  4.802e+00  1.232e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.856e+00  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  6.232e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 135.617 20.850
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936454/likelihoodResults_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.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) = 7848.79846882
delta logL = 0.0790623839812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7848.78330749
delta logL = 0.0942237146746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8990       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8336       1.0000          .0000       10.000    
     3 'Normalizat'    .60471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   7848.783     FROM MIGRAD    STATUS=FAILED        93 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8975        392.44        .23866E-03   -.90499E-03
   2  Index         2.8340        6.1768        .99743E-02   -.18264E-03
   3  Normalizat    .60472        .26762        .37147E-03    .69766E-03
   4  Prefactor     1.8652        .23432        .21653E-03    .10972E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7848.783     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      354 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8975        392.44        .18381E-03   -.90499E-03
   2  Index         2.8340        6.1768        .15420E-02   -.18264E-03
   3  Normalizat    .60472        .26762        .36204E-03    .69766E-03
   4  Prefactor     1.8652        .23432        .23124E-03    .10972E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7848.783     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      387 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8973        11.221        .95463E-05   -.52400E-04
   2  Index         2.8341        1.9693        .39897E-03   -.10914E-04
   3  Normalizat    .60472        .21770        .14859E-04   -.91813E-05
   4  Prefactor     1.8652        .20522        .43306E-04   -.62374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8973
  Index      = 2.83411
  Normalizat = 0.60472
  Prefactor  = 1.86521
 **********
 **   18 **HESSE 
 **********

 FCN=   7848.783     FROM HESSE     STATUS=OK            23 CALLS      410 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8973        10.969        .19093E-05   -1.5368    
   2  Index         2.8341        1.9279        .15959E-04   -.44802    
   3  Normalizat    .60472        .21756        .29718E-05   -1.0778    
   4  Prefactor     1.8652        .20511        .86613E-05   -.67764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36007e-11
Minuit parameter uncertainties:
  1  10.9762
  2  1.99214
  3  0.217871
  4  0.205209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936454': 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) = 7848.78330742
delta logL = 0.0942237850222

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  2.897e+00  1.098e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.834e+00  1.992e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.865e+00  2.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  6.047e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 135.617 20.850

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/936454/cmap_HighResolution_239846401_240105601_4FGL_J0902.4+2051_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-08-30 21:11:19.436678', job_id='936454', GAL2='1.87', fit_tolerance='1e-08', EG2='0.60', EG='0.62', time_epoch_completed='1630383079.44', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.86', dlogl='9.42e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='2' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 936454: <4FGL_J0902.4+2051_daily_bin2> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin2> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 20:55:37 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 20:55:40 2021
Terminated at Mon Aug 30 21:11:21 2021
Results reported at Mon Aug 30 21:11:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin2 135.617 20.8503 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0902.4+2051 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            944 sec.

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

