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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1000
RA = 135.617, Dec = 20.8503
tmin = 498528001, tmax = 498787201
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='943165', job_status='RUN', time_executed='2021-08-30 21:19:27.594642', time_epoch_executed='1630383567.59' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943165

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943165/ft1_4FGL_J0902.4+2051_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943165/ft2_4FGL_J0902.4+2051_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943165/ft1_4FGL_J0902.4+2051_daily_bin1000.fits outfile=/scratch/kocevski/943165/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1000.fits ra=135.617 dec=20.8503 rad=12.0 tmin=498528001.0 tmax=498787201.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 6.08
user 4.68
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943165/ft2_4FGL_J0902.4+2051_daily_bin1000.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/943165/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/943165/ft1_filtered_4FGL_J0902.4+2051_daily_bin1000.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 1.63
user 0.32
sys 1.30

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943165/ft1_filtered_4FGL_J0902.4+2051_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/943165/ft2_4FGL_J0902.4+2051_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/943165/ltcube_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.fits outfile=/scratch/kocevski/943165/expmap_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.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/943165/ltcube_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.fits
.....................!
real 191.74
user 185.79
sys 5.56

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/943165/ft1_filtered_4FGL_J0902.4+2051_daily_bin1000.fits scfile=/scratch/kocevski/943165/ft2_4FGL_J0902.4+2051_daily_bin1000.fits outfile=/scratch/kocevski/943165/cmap_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.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.77
user 0.39
sys 1.26

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2411       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1587       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47808E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.709       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7232       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1874       1.0000         .10000E-03   10000.    
     9 'norm      '    12.623       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4452       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.978       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98121       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=   6438.033     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1719 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2425        13.177        .17727E-05   -.57751E-03
   2  norm          .10000E-03    .30777       -.47786E-07** at limit **
   3  Prefactor     8.1698        8.7580        .10712E-05    .20172E-03
   4  Prefactor     .10000E-03    4.8141       -.16791E-06** at limit **
   5  Prefactor     35.734        37.091        .99590E-05    .53022E-03
   6  norm          1.1305        .62597       -.46969E-07   -.19870E-03
   7  Prefactor     3.7234        7.6062        .26552E-05   -.12837E-02
   8  Prefactor     1.1874        23.518        .11579E-05   -.12731E-03
   9  norm          12.623        9.0957       -.62006E-07   -.53858E-04
  10  norm          .10000E-03    18.763       -.28939E-07** at limit **
  11  norm          1.4452        1.4321        .65731E-07   -.64127E-04
  12  Prefactor     .10000E-03    31.969        .28389E-07** at limit **
  13  Prefactor     .10000E-03    1.1614       -.13386E-07** at limit **
  14  Prefactor     24.967        28.987       -.13113E-05   -.12354E-03
  15  Prefactor     .10000E-03    129.65        .22334E-05** at limit **
  16  Prefactor     .10000E-03    16.001        .29882E-06** at limit **
  17  Normalizat    1.1166        .17779       -.17590E-05    .10158E-03
  18  Prefactor     .98126        .14980       -.29763E-06   -.83307E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24245
  norm       = 0.0001
  Prefactor  = 8.16979
  Prefactor  = 0.000100002
  Prefactor  = 35.7338
  norm       = 1.13047
  Prefactor  = 3.7234
  Prefactor  = 1.1874
  norm       = 12.6231
  norm       = 0.0001
  norm       = 1.44523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.967
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.11655
  Prefactor  = 0.981264
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.033     FROM HESSE     STATUS=OK           246 CALLS     1965 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2425        14.073        .87789E-03   -1.5250    
   2  norm          .10000E-03    .31554        .86607E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1698        8.7380        .14036E-03   -1.5136    
   4  Prefactor     .10000E-03    10.910        .33636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.734        37.995        .67065E-04   -1.4512    
   6  norm          1.1305        .62633        .45090E-04   -1.5495    
   7  Prefactor     3.7234        9.9163        .10464E-02   -1.5322    
   8  Prefactor     1.1874        24.260        .41848E-03   -1.5490    
   9  norm          12.623        9.1003        .11274E-03   -1.4997    
  10  norm          .10000E-03    18.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4452        1.4174        .92832E-04   -1.5468    
  12  Prefactor     .10000E-03    32.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1668        .84419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.967        29.147        .80151E-04   -1.4708    
  15  Prefactor     .10000E-03    129.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1166        .20862        .24730E-03   -.89222    
  18  Prefactor     .98126        .17714        .22982E-03   -.93357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08497e-09
Minuit parameter uncertainties:
  1  14.0822
  2  5.75078e-07
  3  8.73935
  4  0.000293987
  5  38.0205
  6  0.626338
  7  9.92064
  8  10.7387
  9  9.10126
  10  1.14701e-05
  11  1.41741
  12  2.93737e-05
  13  2.18213e-06
  14  29.1633
  15  0.000709798
  16  3.25535e-05
  17  0.208775
  18  0.177242
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.723e+00  9.921e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.813e-01  1.772e-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.117e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/943165/likelihoodResults_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.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) = 6438.02294083
delta logL = 0.00996201245744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6438.02226764
delta logL = 0.0106351994364

Fit tolerance = 1e-08

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

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

 FCN=   6438.022     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4564        10.196        .10866E-02    .22247E-03
   2  Index         2.3479        1.4859        .12121E-01    .15815E-03
   3  Normalizat    1.1134        .20148        .24759E-03   -.17081E-04
   4  Prefactor     .98245        .17660        .22969E-03   -.60386E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45637
  Index      = 2.34788
  Normalizat = 1.1134
  Prefactor  = 0.982451
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.022     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4564        9.4968        .21732E-03   -1.5336    
   2  Index         2.3479        1.3884        .24243E-02   -.55910    
   3  Normalizat    1.1134        .20153        .99038E-05   -.89323    
   4  Prefactor     .98245        .17664        .91875E-05   -.93317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4595e-13
Minuit parameter uncertainties:
  1  9.50089
  2  1.41456
  3  0.201673
  4  0.176744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943165': 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) = 6438.02226284
delta logL = 0.0106400045297

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.456e+00  9.501e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.348e+00  1.415e+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:  9.825e-01  1.767e-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.113e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/943165/cmap_HighResolution_498528001_498787201_4FGL_J0902.4+2051_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-08-30 21:29:16.647017', job_id='943165', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1630384156.65', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.06e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1000' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:29:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 943165: <4FGL_J0902.4+2051_daily_bin1000> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1000> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Aug 30 21:15:47 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:15:48 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:15:48 2021
Terminated at Mon Aug 30 21:29:17 2021
Results reported at Mon Aug 30 21:29:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1000 135.617 20.8503 498528001 498787201 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 :                                   599.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

