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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1125
RA = 135.617, Dec = 20.8503
tmin = 530928001, tmax = 531187201
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='944444', job_status='RUN', time_executed='2021-08-30 21:21:16.145058', time_epoch_executed='1630383676.15' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944444/ft1_4FGL_J0902.4+2051_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944444/ft1_4FGL_J0902.4+2051_daily_bin1125.fits outfile=/scratch/kocevski/944444/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1125.fits ra=135.617 dec=20.8503 rad=12.0 tmin=530928001.0 tmax=531187201.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.81
user 3.42
sys 1.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944444/ft1_filtered_4FGL_J0902.4+2051_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/944444/ltcube_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.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/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits
.....................!
real 13.46
user 11.67
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944444/ft1_filtered_4FGL_J0902.4+2051_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/944444/ltcube_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.fits outfile=/scratch/kocevski/944444/expmap_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.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/944444/ltcube_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.fits
.....................!
real 192.19
user 185.21
sys 6.15

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/944444/ft1_filtered_4FGL_J0902.4+2051_daily_bin1125.fits scfile=/scratch/kocevski/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits outfile=/scratch/kocevski/944444/cmap_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.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.66
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944444/ft1_filtered_4FGL_J0902.4+2051_daily_bin1125.fits scfile=/scratch/kocevski/944444/ft2_4FGL_J0902.4+2051_daily_bin1125.fits outfile=/scratch/kocevski/944444/cmap_HighResolution_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.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 4.01
user 0.38
sys 1.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.951       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .94002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.987       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8795       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.080       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83342       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.

 FCN=   6130.787     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1721 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.951        18.621        .19659E-02    .14573E-03
   2  norm          .10000E-03    .30882        .90712E-02** at limit **
   3  Prefactor     8.5322        8.0751        .34308E-02   -.16395E-02
   4  Prefactor     .10000E-03    2.3910        .90712E-02** at limit **
   5  Prefactor     .10003E-03    87.391        .90712E-02** at limit **
   6  norm          .94001        .68695        .11850E-01    .71916E-04
   7  Prefactor     23.988        14.068        .20447E-02    .13626E-02
   8  Prefactor     .10000E-03    6.6597        .90712E-02** at limit **
   9  norm          .10000E-03    2.1106        .90712E-02** at limit **
  10  norm          1.8160        66.037        .75918E-02    .45718E-03
  11  norm          .10000E-03    .68772        .35199E-01** at limit **
  12  Prefactor     .10001E-03    46.701        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.4517        .90712E-02** at limit **
  14  Prefactor     14.567        26.168        .26234E-02    .51495E-03
  15  Prefactor     60.080        64.250        .12941E-02   -.94467E-04
  16  Prefactor     .10000E-03    10.728        .90712E-02** at limit **
  17  Normalizat    1.1985        .16825        .51296E-01    .44560E-04
  18  Prefactor     .83349        .14682        .44151E-01    .23991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9507
  norm       = 0.0001
  Prefactor  = 8.53217
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 0.940014
  Prefactor  = 23.9879
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.81596
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 14.567
  Prefactor  = 60.0804
  Prefactor  = 0.0001
  Normalizat = 1.19848
  Prefactor  = 0.833488
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.787     FROM HESSE     STATUS=OK           238 CALLS     1959 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.951        18.603        .78638E-04   -1.4689    
   2  norm          .10000E-03    .31326        .42374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5322        8.0649        .13723E-03   -1.5124    
   4  Prefactor     .10000E-03    2.4022        .11822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    88.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .94001        .68990        .51851E-04   -1.5514    
   7  Prefactor     23.988        14.041        .81788E-04   -1.4728    
   8  Prefactor     .10000E-03    6.6933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1113        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8160        66.344        .30367E-03   -1.5438    
  11  norm          .10000E-03    1.0927        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    47.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4847        .92069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.567        26.202        .10494E-03   -1.4944    
  15  Prefactor     60.080        64.364        .51763E-04   -1.4156    
  16  Prefactor     .10000E-03    10.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1985        .19717        .22679E-03   -.86650    
  18  Prefactor     .83349        .17147        .23728E-03   -.98505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36736e-09
Minuit parameter uncertainties:
  1  18.6073
  2  1.06986e-06
  3  8.06588
  4  1.55452e-05
  5  0.00321373
  6  0.68991
  7  14.0431
  8  5.44055e-06
  9  4.50127e-06
  10  21.9783
  11  5.57698e-06
  12  0.00107958
  13  6.02993e-06
  14  26.2225
  15  64.4386
  16  9.56341e-05
  17  0.197289
  18  0.17158
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  2.399e+01  1.404e+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:  8.335e-01  1.716e-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.198e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.73e-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) = 6130.33906617
delta logL = 0.447976171856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6130.32729809
delta logL = 0.459744252543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9854       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9077       1.0000          .0000       10.000    
     3 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86454       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6130.327     FROM MIGRAD    STATUS=FAILED       100 CALLS      297 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9507        109.16        .56257E-03   -.15021E-03
   2  Index         2.9094        3.3997        .38294E-02    .61641E-03
   3  Normalizat    1.1471        .26210        .23091E-03   -.44163E-04
   4  Prefactor     .86456        .21249        .23343E-03   -.22257E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6130.327     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      384 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9507        109.16        .18849E-03   -.15021E-03
   2  Index         2.9094        3.3997        .70154E-03    .61641E-03
   3  Normalizat    1.1471        .26210        .18488E-03   -.44163E-04
   4  Prefactor     .86456        .21249        .16501E-03   -.22257E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6130.327     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      422 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9507        16.624        .22503E-04   -.13257E-03
   2  Index         2.9094        1.0115        .76588E-03   -.35106E-04
   3  Normalizat    1.1471        .20304        .92364E-05   -.40618E-04
   4  Prefactor     .86456        .17659        .93373E-05   -.19968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95069
  Index      = 2.90942
  Normalizat = 1.14708
  Prefactor  = 0.864559
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.327     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9507        15.134        .45006E-05   -1.5110    
   2  Index         2.9094        .92183        .30635E-04   -.43137    
   3  Normalizat    1.1471        .20192        .18473E-05   -.88254    
   4  Prefactor     .86456        .17592        .18675E-05   -.97391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35034e-12
Minuit parameter uncertainties:
  1  15.1402
  2  0.928283
  3  0.202054
  4  0.176038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944444': 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) = 6130.32729498
delta logL = 0.459747363298

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  8.951e+00  1.514e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.909e+00  9.283e-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:  8.646e-01  1.760e-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.147e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 135.617 20.850
Photon Index (Free Index): 2.91 +/- 0.93
Photon Flux (Free Index): 9.87e-08 +/- 6.05e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.12e-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/944444/cmap_HighResolution_530928001_531187201_4FGL_J0902.4+2051_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='2.07e-05', photon_flux_error='3.45e-08', dlogl='4.60e-01', energy_flux='2.95e-05', photon_flux2='9.87e-08', job_status='DONE', time_completed='2021-08-30 21:30:24.215435', photon_index_error2='0.93', photon_index2='2.91', ts='5.64', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.20', time_epoch_completed='1630384224.22', return_code='0', job_id='944444', GAL2='0.86', EG2='1.15', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.05e-08', ts2='6.66', photon_index='2.15' WHERE bin_id='1125' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 944444: <4FGL_J0902.4+2051_daily_bin1125> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1125> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 30 21:20:20 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:20:22 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:20:22 2021
Terminated at Mon Aug 30 21:30:25 2021
Results reported at Mon Aug 30 21:30:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1125 135.617 20.8503 530928001 531187201 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 :                                   555.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            605 sec.

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

