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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin4
RA = 135.617, Dec = 20.8503
tmin = 240364801, tmax = 240624001
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='936457', job_status='RUN', time_executed='2021-08-30 20:56:28.911353', time_epoch_executed='1630382188.91' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936457/ft1_4FGL_J0902.4+2051_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936457/ft1_4FGL_J0902.4+2051_daily_bin4.fits outfile=/scratch/kocevski/936457/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin4.fits ra=135.617 dec=20.8503 rad=12.0 tmin=240364801.0 tmax=240624001.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.74
user 1.24
sys 1.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.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/936457/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.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 2.85
user 0.33
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/936457/ltcube_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.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/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits
.....................!
real 14.25
user 12.34
sys 1.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/936457/ltcube_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits outfile=/scratch/kocevski/936457/expmap_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.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/936457/ltcube_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits
.....................!
real 193.16
user 184.46
sys 6.50

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/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits outfile=/scratch/kocevski/936457/cmap_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.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 1.88
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits outfile=/scratch/kocevski/936457/cmap_HighResolution_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.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 1.84
user 0.39
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936457/Model_4FGL_J0902.4+2051_daily_bin4.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/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits.....................!
real 64.99
user 58.68
sys 3.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits', '/scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits', expMap='/scratch/kocevski/936457/expmap_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits', expCube='/scratch/kocevski/936457/ltcube_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/936457/Model_4FGL_J0902.4+2051_daily_bin4.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/936457/ft1_filtered_4FGL_J0902.4+2051_daily_bin4.fits
Spacecraft file(s): /scratch/kocevski/936457/ft2_4FGL_J0902.4+2051_daily_bin4.fits
Exposure map: /scratch/kocevski/936457/expmap_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits
Exposure cube: /scratch/kocevski/936457/ltcube_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/936457/Model_4FGL_J0902.4+2051_daily_bin4.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) = 6224.84392664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8657       1.0000         .10000E-03   10000.    
     2 'norm      '    .80059E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.162       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.661       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4656       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0690       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=   6224.839     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1782 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8964        19.463       -.17503E-05    .10268E-04
   2  norm          .74194E-01    4.0809        .38392E-05   -.12986E-03
   3  Prefactor     2.9805        7.9976       -.22158E-05   -.59334E-05
   4  Prefactor     .10000E-03    5.3708        .21953E-06** at limit **
   5  Prefactor     .10000E-03    12.581        .76604E-07** at limit **
   6  norm          .11022        .52978        .43301E-06    .87485E-03
   7  Prefactor     .10000E-03    17.009        .13569E-05** at limit **
   8  Prefactor     14.971        18.492       -.35394E-06   -.61037E-05
   9  norm          .10000E-03    6.9317       -.19554E-07** at limit **
  10  norm          16.158        26.559       -.28255E-07   -.12848E-04
  11  norm          1.7039        1.9078       -.86408E-07    .57723E-04
  12  Prefactor     .10000E-03    16.778       -.12739E-05** at limit **
  13  Prefactor     10.805        4.9066        .80931E-08    .17667E-05
  14  Prefactor     .10000E-03    27.823        .28176E-06** at limit **
  15  Prefactor     .10000E-03    176.36        .57583E-05** at limit **
  16  Prefactor     27.658        36.487        .30023E-06   -.63303E-05
  17  Normalizat    1.4656        .20479       -.45104E-06   -.14884E-03
  18  Prefactor     1.0690        .17738       -.35758E-06   -.17165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89636
  norm       = 0.074194
  Prefactor  = 2.98054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.110224
  Prefactor  = 0.0001
  Prefactor  = 14.9707
  norm       = 0.0001
  norm       = 16.1576
  norm       = 1.7039
  Prefactor  = 0.0001
  Prefactor  = 10.8054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6581
  Normalizat = 1.46563
  Prefactor  = 1.06898
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.839     FROM HESSE     STATUS=OK           250 CALLS     2032 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8964        19.818        .16582E-03   -1.5222    
   2  norm          .74194E-01    4.3466        .11360E-02   -1.5654    
   3  Prefactor     2.9805        7.9928        .23536E-03   -1.5363    
   4  Prefactor     .10000E-03    5.5607        .35724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11022        .98708        .10672E-02   -1.5642    
   7  Prefactor     .10000E-03    17.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.971        18.541        .10351E-03   -1.4934    
   9  norm          .10000E-03    7.1648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.158        26.556        .99626E-04   -1.4904    
  11  norm          1.7039        1.8867        .11149E-03   -1.5447    
  12  Prefactor     .10000E-03    16.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.805        4.9161        .11260E-03   -1.5050    
  14  Prefactor     .10000E-03    27.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    177.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.658        36.513        .76173E-04   -1.4656    
  17  Normalizat    1.4656        .24662        .25112E-03   -.78749    
  18  Prefactor     1.0690        .21377        .25715E-03   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87546e-08
Minuit parameter uncertainties:
  1  19.8396
  2  1.13509
  3  7.99564
  4  2.83825e-05
  5  9.30619e-06
  6  0.659411
  7  1.42515e-05
  8  18.5482
  9  7.37145e-06
  10  26.5754
  11  1.88674
  12  1.75737e-06
  13  4.91627
  14  2.6324e-05
  15  0.000218326
  16  36.5421
  17  0.246823
  18  0.213936
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.425e-05  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.069e+00  2.139e-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:  1.466e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936457/likelihoodResults_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6224.83974804
delta logL = -0.000275341636552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6224.83947314
delta logL = -4.3633281166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1525       1.0000          .0000       10.000    
     3 'Normalizat'    1.4657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0690       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.

 FCN=   6224.839     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1273.9        .18142E-02** at limit **
   2  Index         2.1877        5.6621        .50000       -.18455E-04
   3  Normalizat    1.4656        .47806E-01    .25112E-03   -.18591E-03
   4  Prefactor     1.0690        .42896E-01    .25715E-03   -.66582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.18774
  Normalizat = 1.46563
  Prefactor  = 1.06898
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.839     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6786.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1877        6.0321        .50000       -.59735    
   3  Normalizat    1.4656        .14548        .50224E-04   -.78749    
   4  Prefactor     1.0690        .13054        .10286E-04   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1556e-10
Minuit parameter uncertainties:
  1  0.0102581
  2  61.8486
  3  0.145525
  4  0.130576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936457': 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): 102
logL (Free Index) = 6224.83947252
delta logL = 1.78974005394e-07

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.026e-02  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.188e+00  6.185e+01  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.069e+00  1.306e-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:  1.466e+00  1.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 135.617 20.850

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936457/cmap_HighResolution_240364801_240624001_4FGL_J0902.4+2051_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-08-30 21:06:10.610521', job_id='936457', GAL2='1.07', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630382770.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='4' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 936457: <4FGL_J0902.4+2051_daily_bin4> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin4> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 20:55:38 2021
Job was executed on host(s) <bullet0207>, 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:06:11 2021
Results reported at Mon Aug 30 21:06:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin4 135.617 20.8503 240364801 240624001 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 :                                   592.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

