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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin644
RA = 212.529, Dec = 2.0354
tmin = 406252801, tmax = 406512001
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='234031', job_status='RUN', time_executed='2021-09-09 03:40:44.519514', time_epoch_executed='1631184044.52' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234031/ft1_4FGL_J1410.1+0202_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234031/ft1_4FGL_J1410.1+0202_daily_bin644.fits outfile=/scratch/kocevski/234031/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin644.fits ra=212.529 dec=2.0354 rad=12.0 tmin=406252801.0 tmax=406512001.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.85
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234031/ft1_filtered_4FGL_J1410.1+0202_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/234031/ltcube_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.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/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits
.....................!
real 11.62
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234031/ft1_filtered_4FGL_J1410.1+0202_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/234031/ltcube_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.fits outfile=/scratch/kocevski/234031/expmap_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.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/234031/ltcube_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.fits
.....................!
real 190.86
user 185.22
sys 4.67

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/234031/ft1_filtered_4FGL_J1410.1+0202_daily_bin644.fits scfile=/scratch/kocevski/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits outfile=/scratch/kocevski/234031/cmap_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.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.08
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234031/ft1_filtered_4FGL_J1410.1+0202_daily_bin644.fits scfile=/scratch/kocevski/234031/ft2_4FGL_J1410.1+0202_daily_bin644.fits outfile=/scratch/kocevski/234031/cmap_HighResolution_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.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 2.02
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72296       1.0000         .10000E-03   10000.    
     2 'norm      '    .56537E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32764E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7208       1.0000         .10000E-03   10000.    
     7 'norm      '    .34034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.188       1.0000         .10000E-03   10000.    
    11 'norm      '    .20420E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.121       1.0000         .10000E-03   10000.    
    13 'norm      '    13.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    92.865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10361E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .97037       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1377       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=   5583.090     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     2191 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72261        2.3395        .11591E-05   -.48882E-04
   2  norm          .10000E-03    33.232        .15867E-06** at limit **
   3  Prefactor     .10000E-03    5.0041        .47661E-06** at limit **
   4  Prefactor     .10000E-03    10.021        .57270E-07** at limit **
   5  Prefactor     .10000E-03    2.3685        .12605E-06** at limit **
   6  Prefactor     2.7103        8.4586        .75364E-06   -.16605E-04
   7  norm          .34181        2.1649        .17127E-05   -.41949E-04
   8  Prefactor     27.724        25.016        .93704E-08    .32980E-05
   9  Prefactor     .10000E-03    7.6572        .38892E-07** at limit **
  10  norm          10.204        10.991        .47054E-07   -.97125E-05
  11  norm          .10000E-03    6.2416        .68423E-07** at limit **
  12  Prefactor     32.074        35.565        .25236E-06   -.38068E-05
  13  norm          13.715        27.655        .13777E-06   -.22860E-05
  14  Prefactor     92.772        74.594       -.85321E-07   -.66030E-04
  15  Prefactor     .10000E-03    31.309       -.69872E-06** at limit **
  16  norm          .10000E-03    12.342       -.27628E-06** at limit **
  17  Normalizat    .97052        .23118       -.55479E-06   -.11009E-03
  18  Prefactor     1.1378        .15492       -.50428E-06   -.14529E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.722615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7103
  norm       = 0.34181
  Prefactor  = 27.7243
  Prefactor  = 0.0001
  norm       = 10.2035
  norm       = 0.0001
  Prefactor  = 32.0741
  norm       = 13.7149
  Prefactor  = 92.7718
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.970524
  Prefactor  = 1.13775
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.090     FROM HESSE     STATUS=OK           246 CALLS     2437 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72261        2.3536        .19548E-03   -1.5538    
   2  norm          .10000E-03    33.312        .21095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2338        .32656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.043        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3905        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7103        8.4335        .24690E-03   -1.5379    
   7  norm          .34181        2.1682        .21178E-03   -1.5591    
   8  Prefactor     27.724        24.999        .76029E-04   -1.4654    
   9  Prefactor     .10000E-03    7.6589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.204        10.999        .12554E-03   -1.5069    
  11  norm          .10000E-03    6.4027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.074        35.671        .70700E-04   -1.4575    
  13  norm          13.715        27.638        .10773E-03   -1.4967    
  14  Prefactor     92.772        74.568        .20851E-03   -1.3779    
  15  Prefactor     .10000E-03    31.355        .20739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .97052        .27467        .31010E-03   -.94025    
  18  Prefactor     1.1378        .18407        .19563E-03   -.88269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54495e-11
Minuit parameter uncertainties:
  1  2.35394
  2  8.02042e-06
  3  6.7883e-06
  4  7.83982e-06
  5  1.83203e-06
  6  8.43723
  7  1.72159
  8  25.0086
  9  1.79929e-06
  10  11.0014
  11  9.39277e-06
  12  35.6944
  13  27.6642
  14  74.6438
  15  2.29936e-05
  16  1.12515e-05
  17  0.27507
  18  0.184178
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  2.772e+01  2.501e+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.138e+00  1.842e-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:  9.705e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.64e-05

TS (Fixed Index): 2.50
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234031/likelihoodResults_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.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) = 5582.84655969
delta logL = 0.243685732245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5582.83681061
delta logL = 0.253434816799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.082       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8898       1.0000          .0000       10.000    
     3 'Normalizat'    .99054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5582.837     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      300 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.056        31.540        .34321E-03    .36238E-04
   2  Index         1.8893        .57392        .90430E-02    .46604E-05
   3  Normalizat    .99054        .26844        .30734E-03    .10842E-03
   4  Prefactor     1.1294        .18255        .19624E-03    .52904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0555
  Index      = 1.8893
  Normalizat = 0.990541
  Prefactor  = 1.12944
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.837     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.056        31.643        .13728E-04   -1.4540    
   2  Index         1.8893        .57575        .36172E-03   -.67147    
   3  Normalizat    .99054        .26865        .12293E-04   -.93348    
   4  Prefactor     1.1294        .18271        .39248E-04   -.88531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47195e-11
Minuit parameter uncertainties:
  1  31.6582
  2  0.577845
  3  0.269013
  4  0.182811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234031': 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) = 5582.83680983
delta logL = 0.253435591841

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  3.406e+01  3.166e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.889e+00  5.778e-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.129e+00  1.828e-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:  9.905e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 212.529 2.035
Photon Index (Free Index): 1.89 +/- 0.58
Photon Flux (Free Index): 3.27e-08 +/- 4.03e-08
Energy Flux (Free Index): 3.02e-05 +/- 3.66e-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/234031/cmap_HighResolution_406252801_406512001_4FGL_J1410.1+0202_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='3.02e-05', photon_flux_error='4.42e-08', dlogl='2.53e-01', energy_flux='1.82e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-09 03:49:43.862013', photon_index_error2='0.58', photon_index2='1.89', ts='2.50', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='3.66e-05', EG='0.97', time_epoch_completed='1631184583.86', return_code='0', job_id='234031', GAL2='1.13', EG2='0.99', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.03e-08', ts2='3.02', photon_index='2.31' WHERE bin_id='644' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 234031: <4FGL_J1410.1+0202_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin644 212.529 2.0354 406252801 406512001 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 :                                   521.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            558 sec.

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

