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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1553
RA = 135.617, Dec = 20.8503
tmin = 641865601, tmax = 642124801
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='946412', job_status='RUN', time_executed='2021-08-30 21:30:09.926250', time_epoch_executed='1630384209.93' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946412/ft1_4FGL_J0902.4+2051_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946412/ft1_4FGL_J0902.4+2051_daily_bin1553.fits outfile=/scratch/kocevski/946412/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1553.fits ra=135.617 dec=20.8503 rad=12.0 tmin=641865601.0 tmax=642124801.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 11.77
user 4.07
sys 7.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.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/946412/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/946412/ft1_filtered_4FGL_J0902.4+2051_daily_bin1553.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 7.98
user 0.35
sys 7.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946412/ft1_filtered_4FGL_J0902.4+2051_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/946412/ltcube_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.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/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits
.....................!
real 20.61
user 11.74
sys 8.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946412/ft1_filtered_4FGL_J0902.4+2051_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/946412/ltcube_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.fits outfile=/scratch/kocevski/946412/expmap_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.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/946412/ltcube_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.fits
.....................!
real 201.43
user 187.36
sys 13.32

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/946412/ft1_filtered_4FGL_J0902.4+2051_daily_bin1553.fits scfile=/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits outfile=/scratch/kocevski/946412/cmap_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.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 8.00
user 0.38
sys 7.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946412/ft1_filtered_4FGL_J0902.4+2051_daily_bin1553.fits scfile=/scratch/kocevski/946412/ft2_4FGL_J0902.4+2051_daily_bin1553.fits outfile=/scratch/kocevski/946412/cmap_HighResolution_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.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 8.10
user 0.39
sys 7.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.951       1.0000         .10000E-03   10000.    
     6 'norm      '    .12686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.906       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.6141       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.037       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .82230       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1780       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=   6138.021     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1736 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.627        19.936       -.59387E-06   -.16014E-05
   2  norm          .10000E-03    .56709       -.31911E-07** at limit **
   3  Prefactor     7.4432        10.827        .10921E-06   -.17500E-04
   4  Prefactor     11.578        7.4951        .95676E-06    .28670E-04
   5  Prefactor     19.948        27.322       -.33265E-05    .34453E-05
   6  norm          .12661        .45350       -.49221E-06   -.13304E-02
   7  Prefactor     30.911        15.621        .16793E-06    .18580E-03
   8  Prefactor     .10000E-03    15.981       -.15703E-06** at limit **
   9  norm          7.6141        5.3158        .12719E-06    .13894E-03
  10  norm          .10000E-03    15.386        .66304E-06** at limit **
  11  norm          .10000E-03    .63920       -.54237E-07** at limit **
  12  Prefactor     23.028        46.816       -.13852E-04    .34841E-05
  13  Prefactor     .10000E-03    2.3649       -.20373E-08** at limit **
  14  Prefactor     58.328        38.004       -.94834E-06    .58662E-05
  15  Prefactor     .10000E-03    35.980        .20628E-06** at limit **
  16  Prefactor     .10000E-03    52.951        .15900E-06** at limit **
  17  Normalizat    .82229        .18628        .61437E-06    .10268E-03
  18  Prefactor     1.1780        .16530        .61226E-06    .11765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6272
  norm       = 0.0001
  Prefactor  = 7.44316
  Prefactor  = 11.5779
  Prefactor  = 19.9478
  norm       = 0.12661
  Prefactor  = 30.9114
  Prefactor  = 0.0001
  norm       = 7.61414
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0284
  Prefactor  = 0.0001
  Prefactor  = 58.3277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822286
  Prefactor  = 1.17802
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.021     FROM HESSE     STATUS=OK           248 CALLS     1984 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.627        19.202        .11748E-03   -1.5026    
   2  norm          .10000E-03    .90502        .10737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4432        10.610        .14701E-03   -1.5162    
   4  Prefactor     11.578        7.4866        .11774E-03   -1.5027    
   5  Prefactor     19.948        27.303        .89670E-04   -1.4814    
   6  norm          .12661        .64591        .93659E-03   -1.5637    
   7  Prefactor     30.911        15.457        .72072E-04   -1.4595    
   8  Prefactor     .10000E-03    16.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6141        5.3217        .14533E-03   -1.5156    
  10  norm          .10000E-03    15.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .64499        .61159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.028        46.255        .83454E-04   -1.4748    
  13  Prefactor     .10000E-03    2.4123        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.328        38.067        .52530E-04   -1.4179    
  15  Prefactor     .10000E-03    36.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .82229        .21887        .28015E-03   -.99247    
  18  Prefactor     1.1780        .19485        .21503E-03   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45298e-10
Minuit parameter uncertainties:
  1  19.2126
  2  2.71434e-06
  3  10.6126
  4  7.48718
  5  27.3197
  6  0.571723
  7  15.4586
  8  1.80028e-06
  9  5.32208
  10  2.25852e-05
  11  3.35465e-07
  12  46.3276
  13  3.71872e-06
  14  38.0827
  15  6.50386e-07
  16  3.49726e-05
  17  0.219104
  18  0.19497
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.091e+01  1.546e+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.178e+00  1.950e-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:  8.223e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.22
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.61e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 1.90e-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) = 6137.31460691
delta logL = 0.706271611808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6137.28794372
delta logL = 0.732934801928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.588       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6439       1.0000          .0000       10.000    
     3 'Normalizat'    .85996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1641       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=   6137.288     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.579        19.715        .35096E-03    .53448E-05
   2  Index         1.6436        .42063        .69076E-02    .62361E-05
   3  Normalizat    .85996        .21450        .27449E-03    .71983E-04
   4  Prefactor     1.1641        .19380        .21632E-03   -.24175E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5791
  Index      = 1.64361
  Normalizat = 0.859959
  Prefactor  = 1.16414
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.288     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.579        19.920        .14039E-04   -1.4566    
   2  Index         1.6436        .42489        .27630E-03   -.73593    
   3  Normalizat    .85996        .21473        .10980E-04   -.97882    
   4  Prefactor     1.1641        .19402        .86529E-05   -.87442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23527e-11
Minuit parameter uncertainties:
  1  19.9239
  2  0.425824
  3  0.214943
  4  0.194143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946412': 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) = 6137.2879434
delta logL = 0.732935119432

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.258e+01  1.992e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.644e+00  4.258e-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.164e+00  1.941e-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:  8.600e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.65
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.64 +/- 0.43
Photon Flux (Free Index): 3.77e-08 +/- 3.50e-08
Energy Flux (Free Index): 7.39e-05 +/- 6.37e-05

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/946412/cmap_HighResolution_641865601_642124801_4FGL_J0902.4+2051_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.61e-08', energy_flux2='7.39e-05', photon_flux_error='3.80e-08', dlogl='7.33e-01', energy_flux='3.80e-05', photon_flux2='3.77e-08', job_status='DONE', time_completed='2021-08-30 21:40:37.471737', photon_index_error2='0.43', photon_index2='1.64', ts='15.22', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='6.37e-05', EG='0.82', time_epoch_completed='1630384837.47', return_code='0', job_id='946412', GAL2='1.16', EG2='0.86', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='3.50e-08', ts2='16.65', photon_index='2.15' WHERE bin_id='1553' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 946412: <4FGL_J0902.4+2051_daily_bin1553> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1553> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 21:25:39 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 21:25:41 2021
Terminated at Mon Aug 30 21:40:39 2021
Results reported at Mon Aug 30 21:40:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1553 135.617 20.8503 641865601 642124801 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

