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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin574
RA = 212.529, Dec = 2.0354
tmin = 388108801, tmax = 388368001
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='233924', job_status='RUN', time_executed='2021-09-09 03:40:35.319233', time_epoch_executed='1631184035.32' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233924/ft1_4FGL_J1410.1+0202_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233924/ft1_4FGL_J1410.1+0202_daily_bin574.fits outfile=/scratch/kocevski/233924/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin574.fits ra=212.529 dec=2.0354 rad=12.0 tmin=388108801.0 tmax=388368001.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 3.35
user 3.15
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.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/233924/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.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.64
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/233924/ltcube_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.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/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits
.....................!
real 11.79
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/233924/ltcube_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits outfile=/scratch/kocevski/233924/expmap_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.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/233924/ltcube_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits
.....................!
real 190.89
user 185.17
sys 5.21

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1410.1+0202 @ 212.529 2.0354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits outfile=/scratch/kocevski/233924/cmap_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.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=212.529 yref=2.0354 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 3.18
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits outfile=/scratch/kocevski/233924/cmap_HighResolution_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.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=212.529 yref=2.0354 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.60
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233924/Model_4FGL_J1410.1+0202_daily_bin574.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/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits.....................!
real 51.98
user 45.73
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits', '/scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits', expMap='/scratch/kocevski/233924/expmap_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits', expCube='/scratch/kocevski/233924/ltcube_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233924/Model_4FGL_J1410.1+0202_daily_bin574.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1410.1+0202'

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  5.797e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/233924/ft1_filtered_4FGL_J1410.1+0202_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/233924/ft2_4FGL_J1410.1+0202_daily_bin574.fits
Exposure map: /scratch/kocevski/233924/expmap_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits
Exposure cube: /scratch/kocevski/233924/ltcube_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233924/Model_4FGL_J1410.1+0202_daily_bin574.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) = 5700.40669874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.091       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.888       1.0000         .10000E-03   10000.    
    10 'norm      '    15.352       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.589       1.0000         .10000E-03   10000.    
    13 'norm      '    13.712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0160       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5700.402     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1723 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .91109        .90712E-02** at limit **
   2  norm          .10000E-03    12.837        .90712E-02** at limit **
   3  Prefactor     .27559        2.6076        .73824E-01    .43783E-03
   4  Prefactor     .10000E-03    18.668        .90712E-02** at limit **
   5  Prefactor     6.4867        3.9155        .39394E-02   -.10084E-03
   6  Prefactor     25.094        17.825        .19993E-02    .95763E-03
   7  norm          1.2440        2.5994        .10043E-01    .94103E-03
   8  Prefactor     19.625        19.423        .22603E-02    .22613E-03
   9  Prefactor     91.889        45.028        .10480E-02   -.72716E-03
  10  norm          15.352        12.406        .25555E-02   -.41026E-04
  11  norm          .10000E-03    2.8892        .90712E-02** at limit **
  12  Prefactor     23.589        21.650        .20619E-02    .61407E-04
  13  norm          13.712        15.730        .27042E-02   -.38762E-04
  14  Prefactor     .10000E-03    128.70        .90712E-02** at limit **
  15  Prefactor     .10000E-03    30.642        .90712E-02** at limit **
  16  norm          .10000E-03    13.991        .90712E-02** at limit **
  17  Normalizat    1.0159        .21963        .66166E-01    .10636E-03
  18  Prefactor     .94631        .13986        .45592E-01    .12099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.275589
  Prefactor  = 0.0001
  Prefactor  = 6.48669
  Prefactor  = 25.0942
  norm       = 1.24397
  Prefactor  = 19.6252
  Prefactor  = 91.8895
  norm       = 15.3523
  norm       = 0.0001
  Prefactor  = 23.5891
  norm       = 13.7116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01591
  Prefactor  = 0.946312
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.402     FROM HESSE     STATUS=OK           240 CALLS     1963 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91976        .70345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27559        21.157        .22786E-02   -1.5603    
   4  Prefactor     .10000E-03    18.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4867        3.9161        .11307E-03   -1.5199    
   6  Prefactor     25.094        17.881        .79971E-04   -1.4706    
   7  norm          1.2440        2.5784        .16777E-03   -1.5485    
   8  Prefactor     19.625        19.426        .90412E-04   -1.4822    
   9  Prefactor     91.889        45.133        .41922E-04   -1.3788    
  10  norm          15.352        12.410        .10222E-03   -1.4924    
  11  norm          .10000E-03    2.8978        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.589        21.672        .82474E-04   -1.4736    
  13  norm          13.712        15.733        .10817E-03   -1.4967    
  14  Prefactor     .10000E-03    129.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0159        .26674        .29268E-03   -.92499    
  18  Prefactor     .94631        .17034        .19860E-03   -.94541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43322e-09
Minuit parameter uncertainties:
  1  2.95533e-06
  2  1.98018e-05
  3  4.83022
  4  4.59772e-05
  5  3.91626
  6  17.8844
  7  2.57859
  8  19.4319
  9  45.1503
  10  12.4125
  11  3.25911e-06
  12  21.679
  13  15.7374
  14  1.07609e-05
  15  5.07673e-05
  16  7.42192e-06
  17  0.267095
  18  0.170435
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.963e+01  1.943e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.463e-01  1.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.016e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.27e-05

TS (Fixed Index): 3.42
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233924/likelihoodResults_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.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) = 5699.90176774
delta logL = 0.499821886818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.87992826
delta logL = 0.521661369977

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5699.880     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.432        19.986       -.85255E-05   -.16192E-03
   2  Index         1.5019        .72598       -.54076E-04    .40460E-04
   3  Normalizat    1.0401        .21038        .16904E-05    .51919E-03
   4  Prefactor     .93941        .13905       -.13148E-06    .60468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4323
  Index      = 1.50187
  Normalizat = 1.04011
  Prefactor  = 0.939412
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.880     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.432        19.445        .10193E-03   -1.4922    
   2  Index         1.5019        .70658        .10098E-01   -.77487    
   3  Normalizat    1.0401        .25544        .28969E-03   -.91699    
   4  Prefactor     .93941        .16895        .19928E-03   -.94777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82278e-10
Minuit parameter uncertainties:
  1  19.4535
  2  0.711273
  3  0.255744
  4  0.169044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233924': 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) = 5699.87992814
delta logL = 0.521661485383

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.543e+01  1.945e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.502e+00  7.113e-01  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.394e-01  1.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.040e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 212.529 2.035
Photon Index (Free Index): 1.50 +/- 0.71
Photon Flux (Free Index): 1.02e-08 +/- 1.57e-08
Energy Flux (Free Index): 3.21e-05 +/- 5.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/233924/cmap_HighResolution_388108801_388368001_4FGL_J1410.1+0202_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='3.21e-05', photon_flux_error='3.44e-08', dlogl='5.22e-01', energy_flux='1.29e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-09 03:49:06.108527', photon_index_error2='0.71', photon_index2='1.50', ts='3.42', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='5.17e-05', EG='1.02', time_epoch_completed='1631184546.11', return_code='0', job_id='233924', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='1.57e-08', ts2='4.47', photon_index='2.31' WHERE bin_id='574' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:49:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 233924: <4FGL_J1410.1+0202_daily_bin574> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin574> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 03:40:19 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:40:21 2021
Terminated at Thu Sep  9 03:49:07 2021
Results reported at Thu Sep  9 03:49:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin574 212.529 2.0354 388108801 388368001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1410.1+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   496.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            528 sec.

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

