/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 193 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7443
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1044
RA = 135.617, Dec = 20.8503
tmin = 509932801, tmax = 510192001
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='943234', job_status='RUN', time_executed='2021-08-30 21:19:58.413287', time_epoch_executed='1630383598.41' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943234/ft1_4FGL_J0902.4+2051_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943234/ft1_4FGL_J0902.4+2051_daily_bin1044.fits outfile=/scratch/kocevski/943234/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1044.fits ra=135.617 dec=20.8503 rad=12.0 tmin=509932801.0 tmax=510192001.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.02
user 3.26
sys 2.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943234/ft1_filtered_4FGL_J0902.4+2051_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/943234/ltcube_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.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/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits
.....................!
real 14.69
user 11.56
sys 3.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943234/ft1_filtered_4FGL_J0902.4+2051_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/943234/ltcube_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.fits outfile=/scratch/kocevski/943234/expmap_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.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/943234/ltcube_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.fits
.....................!
real 192.94
user 184.36
sys 8.00

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/943234/ft1_filtered_4FGL_J0902.4+2051_daily_bin1044.fits scfile=/scratch/kocevski/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits outfile=/scratch/kocevski/943234/cmap_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.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 2.89
user 0.36
sys 2.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943234/ft1_filtered_4FGL_J0902.4+2051_daily_bin1044.fits scfile=/scratch/kocevski/943234/ft2_4FGL_J0902.4+2051_daily_bin1044.fits outfile=/scratch/kocevski/943234/cmap_HighResolution_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.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 2.90
user 0.40
sys 2.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7271       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4457       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42721E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4470       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.725       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    106.53       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.068       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .81236       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=   6400.901     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1746 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7223        21.801       -.13291E-05   -.63033E-05
   2  norm          1.8915        1.3545        .10350E-06   -.82064E-05
   3  Prefactor     1.2613        .96348        .13918E-07   -.26086E-03
   4  Prefactor     10.511        6.5487        .10201E-05   -.22239E-04
   5  Prefactor     .10000E-03    8.9451        .45710E-07** at limit **
   6  norm          1.4448        .75663        .20737E-07   -.42736E-03
   7  Prefactor     .10000E-03    7.2978        .48070E-06** at limit **
   8  Prefactor     9.4475        9.9179        .14690E-05   -.12113E-04
   9  norm          .10000E-03    2.3030       -.17421E-07** at limit **
  10  norm          26.716        26.508       -.38458E-05   -.21017E-04
  11  norm          3.7979        2.0364        .10883E-07   -.23157E-04
  12  Prefactor     106.53        58.240       -.66833E-06   -.11387E-04
  13  Prefactor     4.8968        4.7531        .33546E-07   -.42307E-04
  14  Prefactor     32.551        29.560        .26178E-05   -.73365E-05
  15  Prefactor     .10000E-03    79.478        .12993E-06** at limit **
  16  Prefactor     66.077        56.746        .84451E-05   -.81374E-05
  17  Normalizat    1.0905        .18098       -.16147E-05    .20728E-04
  18  Prefactor     .81238        .14701        .37703E-06   -.12768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72232
  norm       = 1.89146
  Prefactor  = 1.26131
  Prefactor  = 10.511
  Prefactor  = 0.0001
  norm       = 1.44478
  Prefactor  = 0.0001
  Prefactor  = 9.44752
  norm       = 0.0001
  norm       = 26.7165
  norm       = 3.79794
  Prefactor  = 106.528
  Prefactor  = 4.89675
  Prefactor  = 32.5512
  Prefactor  = 0.0001
  Prefactor  = 66.0766
  Normalizat = 1.09048
  Prefactor  = 0.81238
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.901     FROM HESSE     STATUS=OK           248 CALLS     1994 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7223        21.684        .15471E-03   -1.5189    
   2  norm          1.8915        1.3734        .68866E-04   -1.5433    
   3  Prefactor     1.2613        22.423        .20277E-02   -1.5483    
   4  Prefactor     10.511        6.5787        .12358E-03   -1.5059    
   5  Prefactor     .10000E-03    8.9518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4448        .72796        .46843E-04   -1.5468    
   7  Prefactor     .10000E-03    41.573        .40429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4475        9.9239        .13039E-03   -1.5093    
   9  norm          .10000E-03    2.3072        .11857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.716        26.522        .77492E-04   -1.4674    
  11  norm          3.7979        2.0339        .79518E-04   -1.5318    
  12  Prefactor     106.53        58.305        .38963E-04   -1.3640    
  13  Prefactor     4.8968        4.7685        .15871E-03   -1.5265    
  14  Prefactor     32.551        29.601        .70236E-04   -1.4566    
  15  Prefactor     .10000E-03    79.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.077        56.946        .49376E-04   -1.4080    
  17  Normalizat    1.0905        .21855        .24812E-03   -.90058    
  18  Prefactor     .81238        .17398        .24109E-03   -.99274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85707e-10
Minuit parameter uncertainties:
  1  21.7091
  2  1.3734
  3  10.6405
  4  6.57914
  5  2.36768e-06
  6  0.727962
  7  0.000234723
  8  9.92559
  9  6.15929e-07
  10  26.5335
  11  2.03392
  12  58.3367
  13  4.76886
  14  29.614
  15  0.000104396
  16  56.9926
  17  0.218734
  18  0.174102
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.347e-04  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.124e-01  1.741e-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.090e+00  2.187e-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: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943234/likelihoodResults_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.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) = 6400.90075788
delta logL = -0.000113452125333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6400.90075786
delta logL = -0.00011343341248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1451       1.0000          .0000       10.000    
     3 'Normalizat'    1.0905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81238       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=   6400.880     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      324 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88589        26.470        .18074E-02    .13920E-02
   2  Index         2.8109        3.3647        .14891E-01    .18534E-03
   3  Normalizat    1.0845        .20229        .24868E-03    .21670E-04
   4  Prefactor     .81357        .17142        .24087E-03    .42809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.885888
  Index      = 2.8109
  Normalizat = 1.08453
  Prefactor  = 0.813573
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.880     FROM HESSE     STATUS=OK            27 CALLS      351 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88589        9.1937        .36149E-03   -1.5520    
   2  Index         2.8109        2.1539        .29781E-02   -.45317    
   3  Normalizat    1.0845        .20254        .99471E-05   -.90250    
   4  Prefactor     .81357        .17147        .96348E-05   -.99230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14007e-12
Minuit parameter uncertainties:
  1  5.70855
  2  2.24616
  3  0.202683
  4  0.171581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943234': 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) = 6400.88036744
delta logL = 0.0202769826865

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  8.859e-01  5.709e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.811e+00  2.246e+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:  8.136e-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.085e+00  2.027e-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/943234/cmap_HighResolution_509932801_510192001_4FGL_J0902.4+2051_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-08-30 21:29:52.506930', job_id='943234', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630384192.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.03e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1044' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 943234: <4FGL_J0902.4+2051_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1044 135.617 20.8503 509932801 510192001 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 :                                   629.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             207.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

