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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1502
RA = 135.617, Dec = 20.8503
tmin = 628646401, tmax = 628905601
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='946308', job_status='RUN', time_executed='2021-08-30 21:29:18.675500', time_epoch_executed='1630384158.68' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946308/ft1_4FGL_J0902.4+2051_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946308/ft1_4FGL_J0902.4+2051_daily_bin1502.fits outfile=/scratch/kocevski/946308/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1502.fits ra=135.617 dec=20.8503 rad=12.0 tmin=628646401.0 tmax=628905601.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 7.25
user 3.28
sys 3.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946308/ft1_filtered_4FGL_J0902.4+2051_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/946308/ltcube_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.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/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits
.....................!
real 16.36
user 11.66
sys 4.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946308/ft1_filtered_4FGL_J0902.4+2051_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/946308/ltcube_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.fits outfile=/scratch/kocevski/946308/expmap_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.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/946308/ltcube_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.fits
.....................!
real 196.87
user 185.39
sys 9.39

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/946308/ft1_filtered_4FGL_J0902.4+2051_daily_bin1502.fits scfile=/scratch/kocevski/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits outfile=/scratch/kocevski/946308/cmap_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.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 4.20
user 0.38
sys 3.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946308/ft1_filtered_4FGL_J0902.4+2051_daily_bin1502.fits scfile=/scratch/kocevski/946308/ft2_4FGL_J0902.4+2051_daily_bin1502.fits outfile=/scratch/kocevski/946308/cmap_HighResolution_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.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.15
user 0.38
sys 3.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.169       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.070       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.714       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.496       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4953       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83353       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=   7676.066     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1734 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.424        .22706E-04** at limit **
   2  norm          1.0841        1.5260       -.86531E-06   -.26197E-02
   3  Prefactor     20.178        13.196        .36226E-06    .11254E-03
   4  Prefactor     .10000E-03    7.6857       -.40418E-05** at limit **
   5  Prefactor     .10000E-03    8.6104        .79347E-05** at limit **
   6  norm          .10000E-03    .23737       -.32612E-07** at limit **
   7  Prefactor     .10000E-03    28.386       -.22198E-04** at limit **
   8  Prefactor     36.176        18.715        .39691E-05    .77005E-04
   9  norm          .10000E-03    1.8382       -.21143E-07** at limit **
  10  norm          18.082        38.220        .24481E-04    .13740E-03
  11  norm          .10000E-03    .60728       -.47190E-07** at limit **
  12  Prefactor     25.654        46.996       -.10326E-03    .27490E-04
  13  Prefactor     5.0469        3.9077        .21460E-06   -.19520E-03
  14  Prefactor     .10000E-03    11.583       -.10229E-04** at limit **
  15  Prefactor     .10000E-03    13.710        .47972E-05** at limit **
  16  Prefactor     13.499        27.060        .39548E-05    .11973E-05
  17  Normalizat    1.4949        .18318        .85529E-06    .39079E-03
  18  Prefactor     .83388        .14935        .29694E-05    .23820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.08407
  Prefactor  = 20.1779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1757
  norm       = 0.0001
  norm       = 18.0816
  norm       = 0.0001
  Prefactor  = 25.6539
  Prefactor  = 5.04687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4986
  Normalizat = 1.4949
  Prefactor  = 0.833882
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.066     FROM HESSE     STATUS=OK           240 CALLS     1974 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0841        1.4761        .11231E-03   -1.5500    
   3  Prefactor     20.178        13.026        .89172E-04   -1.4809    
   4  Prefactor     .10000E-03    7.8386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .24595        .83163E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.176        18.806        .66638E-04   -1.4504    
   9  norm          .10000E-03    1.8400        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.082        38.247        .94218E-04   -1.4857    
  11  norm          .10000E-03    .62323        .13327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.654        46.982        .78998E-04   -1.4695    
  13  Prefactor     5.0469        3.9119        .14546E-03   -1.5259    
  14  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.499        27.067        .10903E-03   -1.4973    
  17  Normalizat    1.4949        .21752        .24177E-03   -.77922    
  18  Prefactor     .83388        .17585        .26592E-03   -.98491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90497e-09
Minuit parameter uncertainties:
  1  7.99684e-06
  2  1.47614
  3  13.0274
  4  4.12673e-05
  5  1.35428e-05
  6  1.3718e-06
  7  0.000130052
  8  18.8093
  9  2.2138e-06
  10  38.2984
  11  3.00998e-06
  12  47.0494
  13  3.91207
  14  2.43329e-05
  15  8.67834e-06
  16  27.0914
  17  0.21766
  18  0.175964
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.301e-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.339e-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.495e+00  2.177e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946308/likelihoodResults_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.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) = 7676.06645952
delta logL = -0.000164277686054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7676.06627257
delta logL = 2.26668471441e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19730E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2867       1.0000          .0000       10.000    
     3 'Normalizat'    1.4951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7673.821     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      262 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27543        .93838       -.15263E-05   -.12049E-03
   2  Index         4.5863        1.4076        .26292E-04   -.62639E-05
   3  Normalizat    1.3386        .21457       -.37062E-05    .51971E-04
   4  Prefactor     .91397        .17805        .37725E-05    .45363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.275434
  Index      = 4.58628
  Normalizat = 1.33855
  Prefactor  = 0.913967
 **********
 **   18 **HESSE 
 **********

 FCN=   7673.821     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      299 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27543        1.7918        .51914E-02   -1.5603    
   2  Index         4.5863        1.8039        .82329E-01   -.82840E-01
   3  Normalizat    1.3386        .50453E-01    .57099E-01   -.82423    
   4  Prefactor     .91397        .43147E-01    .44154E-01   -.95655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03545e-09
Minuit parameter uncertainties:
  1  1.40483
  2  1.84584
  3  0.0504551
  4  0.0431481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946308': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7673.82118466
delta logL = 2.24511057952

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  2.754e-01  1.405e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  4.586e+00  1.846e+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.140e-01  4.315e-02  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.339e+00  5.046e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 135.617 20.850
Photon Index (Free Index): 4.59 +/- 1.85
Photon Flux (Free Index): 1.34e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.85e-05 +/- 1.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/946308/cmap_HighResolution_628646401_628905601_4FGL_J0902.4+2051_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='2.25e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-08-30 21:41:57.162516', photon_index_error2='1.85', photon_index2='4.59', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='1.82e-05', EG='1.49', time_epoch_completed='1630384917.16', return_code='0', job_id='946308', GAL2='0.91', EG2='1.34', return_code2='102', photon_flux_error2='1.06e-07', ts2='4.87', photon_index='2.15' WHERE bin_id='1502' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 946308: <4FGL_J0902.4+2051_daily_bin1502> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1502> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 21:25:34 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:25:35 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:35 2021
Terminated at Mon Aug 30 21:41:58 2021
Results reported at Mon Aug 30 21:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1502 135.617 20.8503 628646401 628905601 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 :                                   730.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

