/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 179 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1410.1+0202_daily_bin294
RA = 212.529, Dec = 2.0354
tmin = 315532801, tmax = 315792001
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='232473', job_status='RUN', time_executed='2021-09-09 03:38:45.255548', time_epoch_executed='1631183925.26' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232473/ft1_4FGL_J1410.1+0202_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232473/ft1_4FGL_J1410.1+0202_daily_bin294.fits outfile=/scratch/kocevski/232473/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin294.fits ra=212.529 dec=2.0354 rad=12.0 tmin=315532801.0 tmax=315792001.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.84
user 3.57
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.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/232473/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin294.fits evtable="EVENTS" outfile="/scratch/kocevski/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/232473/ltcube_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.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/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits
.....................!
real 14.40
user 13.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/232473/ltcube_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits outfile=/scratch/kocevski/232473/expmap_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.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/232473/ltcube_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits
.....................!
real 191.76
user 187.06
sys 3.92

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/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits scfile=/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits outfile=/scratch/kocevski/232473/cmap_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.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 1.68
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits scfile=/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits outfile=/scratch/kocevski/232473/cmap_HighResolution_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.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.78
user 0.38
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits', '/scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits', expMap='/scratch/kocevski/232473/expmap_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits', expCube='/scratch/kocevski/232473/ltcube_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232473/Model_4FGL_J1410.1+0202_daily_bin294.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/232473/ft1_filtered_4FGL_J1410.1+0202_daily_bin294.fits
Spacecraft file(s): /scratch/kocevski/232473/ft2_4FGL_J1410.1+0202_daily_bin294.fits
Exposure map: /scratch/kocevski/232473/expmap_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits
Exposure cube: /scratch/kocevski/232473/ltcube_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232473/Model_4FGL_J1410.1+0202_daily_bin294.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) = 9873.17181087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3159       1.0000         .10000E-03   10000.    
     2 'norm      '    12.806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33232E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.746       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.023       1.0000         .10000E-03   10000.    
    10 'norm      '    15.078       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0146       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=   9873.163     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1753 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3163        1.6146        .95988E-02    .13937E-02
   2  norm          12.806        23.042        .27983E-02   -.61430E-03
   3  Prefactor     .67196E-01    1.5679        .72541E-01    .35252E-03
   4  Prefactor     12.686        13.154        .28118E-02   -.74216E-04
   5  Prefactor     .10000E-03    .88370        .90712E-02** at limit **
   6  Prefactor     .10000E-03    3.4599        .90712E-02** at limit **
   7  norm          3.9524        1.6303        .50728E-02    .15497E-03
   8  Prefactor     10.749        11.664        .30555E-02    .76200E-04
   9  Prefactor     22.020        25.455        .21338E-02   -.67648E-03
  10  norm          15.079        8.5160        .25787E-02   -.51445E-03
  11  norm          .10000E-03    1.5611        .90712E-02** at limit **
  12  Prefactor     .10000E-03    17.562        .90712E-02** at limit **
  13  norm          .10000E-03    8.6248        .90712E-02** at limit **
  14  Prefactor     .10000E-03    39.267        .90712E-02** at limit **
  15  Prefactor     .10000E-03    6.8721        .90712E-02** at limit **
  16  norm          .10000E-03    6.4304        .90712E-02** at limit **
  17  Normalizat    1.1018        .16014        .63726E-01   -.13877E-04
  18  Prefactor     1.0147        .10559        .42728E-01   -.12145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31633
  norm       = 12.8061
  Prefactor  = 0.0671961
  Prefactor  = 12.6861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95241
  Prefactor  = 10.7492
  Prefactor  = 22.0203
  norm       = 15.0788
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10182
  Prefactor  = 1.0147
 **********
 **   18 **HESSE 
 **********

 FCN=   9873.163     FROM HESSE     STATUS=OK           244 CALLS     1997 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3163        1.6015        .13362E-03   -1.5479    
   2  norm          12.806        23.051        .11193E-03   -1.4992    
   3  Prefactor     .67196E-01    43.955        .23541E-02   -1.5656    
   4  Prefactor     12.686        13.165        .11247E-03   -1.4995    
   5  Prefactor     .10000E-03    .88479        .91218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4743        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9524        1.6299        .78864E-04   -1.5310    
   8  Prefactor     10.749        11.671        .12222E-03   -1.5052    
   9  Prefactor     22.020        25.469        .85353E-04   -1.4769    
  10  norm          15.079        8.5192        .51573E-03   -1.4931    
  11  norm          .10000E-03    1.5742        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.4829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1018        .19025        .28189E-03   -.89694    
  18  Prefactor     1.0147        .12528        .19748E-03   -.92241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14544e-09
Minuit parameter uncertainties:
  1  1.60154
  2  23.067
  3  3.43719
  4  13.1683
  5  5.94026e-07
  6  3.1753e-06
  7  1.62989
  8  11.6731
  9  25.4817
  10  8.51993
  11  1.3654e-06
  12  6.54641e-05
  13  2.09412e-06
  14  5.10577e-05
  15  3.7797e-06
  16  2.28579e-05
  17  0.190366
  18  0.125314
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.075e+01  1.167e+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:  1.015e+00  1.253e-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.102e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 7.04e-06 +/- 7.64e-06

TS (Fixed Index): 1.83
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232473/likelihoodResults_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.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) = 9873.16210745
delta logL = 0.00103127040711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9873.16187968
delta logL = 0.00125903609478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.514       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3658       1.0000          .0000       10.000    
     3 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       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=   9873.162     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.504        316.60        .30892E-02    .26975E-04
   2  Index         2.3626        6.1142        .24038        .63518E-04
   3  Normalizat    1.1005        .65459E-01    .63758E-01    .12931E-03
   4  Prefactor     1.0151        .34762E-01    .42671E-01    .46879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5038
  Index      = 2.3626
  Normalizat = 1.10055
  Prefactor  = 1.01515
 **********
 **   18 **HESSE 
 **********

 FCN=   9873.162     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.504        12.924        .12357E-03   -1.5060    
   2  Index         2.3626        .97724        .11623E-01   -.55563    
   3  Normalizat    1.1005        .18586        .28203E-03   -.89734    
   4  Prefactor     1.0151        .12491        .19744E-03   -.92226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79614e-11
Minuit parameter uncertainties:
  1  12.927
  2  0.986073
  3  0.185969
  4  0.124946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232473': 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) = 9873.16186962
delta logL = 0.00126909258324

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.050e+01  1.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.363e+00  9.861e-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:  1.015e+00  1.249e-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.101e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 212.529 2.035
Photon Index (Free Index): 2.36 +/- 0.99
Photon Flux (Free Index): 2.01e-08 +/- 2.95e-08
Energy Flux (Free Index): 6.92e-06 +/- 7.92e-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/232473/cmap_HighResolution_315532801_315792001_4FGL_J1410.1+0202_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='6.92e-06', photon_flux_error='2.06e-08', dlogl='1.27e-03', energy_flux='7.04e-06', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-09 03:50:26.522814', photon_index_error2='0.99', photon_index2='2.36', ts='1.83', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.38e-08', energy_flux_error2='7.92e-06', EG='1.10', time_epoch_completed='1631184626.52', return_code='0', job_id='232473', GAL2='1.02', EG2='1.10', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='2.95e-08', ts2='1.83', photon_index='2.31' WHERE bin_id='294' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 232473: <4FGL_J1410.1+0202_daily_bin294> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin294> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 03:35:33 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:35:35 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:35:35 2021
Terminated at Thu Sep  9 03:50:28 2021
Results reported at Thu Sep  9 03:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin294 212.529 2.0354 315532801 315792001 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 :                                   650.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

