/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 210 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin86
RA = 135.617, Dec = 20.8503
tmin = 261619201, tmax = 261878401
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='936581', job_status='RUN', time_executed='2021-08-30 20:59:36.098584', time_epoch_executed='1630382376.1' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936581/ft1_4FGL_J0902.4+2051_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936581/ft2_4FGL_J0902.4+2051_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936581/ft1_4FGL_J0902.4+2051_daily_bin86.fits outfile=/scratch/kocevski/936581/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin86.fits ra=135.617 dec=20.8503 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.83
user 1.24
sys 0.54

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936581/ft1_filtered_4FGL_J0902.4+2051_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/936581/ft2_4FGL_J0902.4+2051_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/936581/ltcube_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.fits outfile=/scratch/kocevski/936581/expmap_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.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/936581/ltcube_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.fits
.....................!
real 191.66
user 185.38
sys 5.90

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/936581/ft1_filtered_4FGL_J0902.4+2051_daily_bin86.fits scfile=/scratch/kocevski/936581/ft2_4FGL_J0902.4+2051_daily_bin86.fits outfile=/scratch/kocevski/936581/cmap_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.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 0.92
user 0.37
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936581/ft1_filtered_4FGL_J0902.4+2051_daily_bin86.fits scfile=/scratch/kocevski/936581/ft2_4FGL_J0902.4+2051_daily_bin86.fits outfile=/scratch/kocevski/936581/cmap_HighResolution_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.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 0.92
user 0.36
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.142       1.0000         .10000E-03   10000.    
     2 'norm      '    .51953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8931       1.0000         .10000E-03   10000.    
     6 'norm      '    .48760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8515       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23299E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2673       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95151       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=   9552.067     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1521 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.139        14.185        .47235E-05    .14963E-03
   2  norm          .51969        .89341       -.41163E-06   -.23793E-02
   3  Prefactor     2.8435        3.4772        .14990E-05   -.28456E-02
   4  Prefactor     .10000E-03    1.3927       -.25393E-07** at limit **
   5  Prefactor     6.8914        15.133        .36927E-05    .50282E-04
   6  norm          .48730        .48979       -.24823E-06   -.19415E-02
   7  Prefactor     14.757        10.282        .52371E-05    .44589E-03
   8  Prefactor     3.8501        14.556        .43750E-05    .20644E-04
   9  norm          .10000E-03    2.2825        .20068E-07** at limit **
  10  norm          .10000E-03    6.5925       -.96742E-08** at limit **
  11  norm          3.4918        1.6071        .81189E-09   -.47395E-04
  12  Prefactor     .10000E-03    9.7003       -.25414E-07** at limit **
  13  Prefactor     .17579        1.2590        .14000E-08   -.16221E-03
  14  Prefactor     .10000E-03    12.697        .16817E-06** at limit **
  15  Prefactor     .10095E-03    32.229       -.84777E-06** at limit **
  16  Prefactor     .10000E-03    31.364        .37632E-06** at limit **
  17  Normalizat    1.2673        .15111       -.15728E-05    .10214E-03
  18  Prefactor     .95153        .12904       -.38338E-06   -.76418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1386
  norm       = 0.519692
  Prefactor  = 2.84346
  Prefactor  = 0.0001
  Prefactor  = 6.89142
  norm       = 0.487297
  Prefactor  = 14.7565
  Prefactor  = 3.85013
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.4918
  Prefactor  = 0.0001
  Prefactor  = 0.175787
  Prefactor  = 0.0001
  Prefactor  = 0.000100947
  Prefactor  = 0.0001
  Normalizat = 1.26732
  Prefactor  = 0.951525
 **********
 **   18 **HESSE 
 **********

 FCN=   9552.067     FROM HESSE     STATUS=OK           260 CALLS     1781 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.139        14.272        .12002E-03   -1.5040    
   2  norm          .51969        .89205        .22701E-03   -1.5564    
   3  Prefactor     2.8435        6.6740        .12055E-02   -1.5371    
   4  Prefactor     .10000E-03    1.3978        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8914        15.129        .15281E-03   -1.5183    
   6  norm          .48730        .45759        .64971E-03   -1.5568    
   7  Prefactor     14.757        10.312        .10428E-03   -1.4939    
   8  Prefactor     3.8501        14.579        .20563E-03   -1.5316    
   9  norm          .10000E-03    2.2880        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4918        1.6010        .80914E-04   -1.5334    
  12  Prefactor     .10000E-03    9.7021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17579        5.9231        .20755E-02   -1.5624    
  14  Prefactor     .10000E-03    12.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10095E-03    31.644        .17908       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2673        .18138        .23927E-03   -.84547    
  18  Prefactor     .95153        .15451        .24116E-03   -.94363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.794e-08
Minuit parameter uncertainties:
  1  14.2764
  2  0.892077
  3  6.67578
  4  6.11369e-07
  5  15.1377
  6  0.457594
  7  10.3135
  8  14.5928
  9  2.22549e-06
  10  1.04559e-05
  11  1.60104
  12  1.25975e-06
  13  2.04042
  14  1.78535e-05
  15  0.0109554
  16  6.61643e-05
  17  0.181473
  18  0.154579
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.476e+01  1.031e+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:  9.515e-01  1.546e-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.267e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.27e-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) = 9551.88735516
delta logL = 0.179327158075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9551.87828056
delta logL = 0.188401758791

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9551.878     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.855        12.161        .12160E-03    .83579E-04
   2  Index         2.5783        .79814        .68544E-02    .49486E-04
   3  Normalizat    1.2379        .18222        .24156E-03    .95068E-05
   4  Prefactor     .96610        .15617        .23946E-03    .21858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8549
  Index      = 2.57832
  Normalizat = 1.23793
  Prefactor  = 0.966104
 **********
 **   18 **HESSE 
 **********

 FCN=   9551.878     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.855        10.272        .48642E-05   -1.5049    
   2  Index         2.5783        .67319        .27418E-03   -.50560    
   3  Normalizat    1.2379        .18008        .96625E-05   -.85439    
   4  Prefactor     .96610        .15536        .95783E-05   -.93868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26204e-10
Minuit parameter uncertainties:
  1  10.2734
  2  0.675874
  3  0.180171
  4  0.155436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936581': 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) = 9551.8782804
delta logL = 0.188401922911

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.085e+01  1.027e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.578e+00  6.759e-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:  9.661e-01  1.554e-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.238e+00  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 135.617 20.850
Photon Index (Free Index): 2.58 +/- 0.68
Photon Flux (Free Index): 6.06e-08 +/- 5.13e-08
Energy Flux (Free Index): 1.62e-05 +/- 9.58e-06

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/936581/cmap_HighResolution_261619201_261878401_4FGL_J0902.4+2051_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='1.62e-05', photon_flux_error='2.54e-08', dlogl='1.88e-01', energy_flux='1.81e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-08-30 21:09:35.266114', photon_index_error2='0.68', photon_index2='2.58', ts='6.34', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.58e-06', EG='1.27', time_epoch_completed='1630382975.27', return_code='0', job_id='936581', GAL2='0.97', EG2='1.24', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.13e-08', ts2='6.75', photon_index='2.15' WHERE bin_id='86' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:09:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 936581: <4FGL_J0902.4+2051_daily_bin86> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin86> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 20:55:47 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:55: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 20:55:48 2021
Terminated at Mon Aug 30 21:09:37 2021
Results reported at Mon Aug 30 21:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin86 135.617 20.8503 261619201 261878401 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

