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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin498
RA = 212.529, Dec = 2.0354
tmin = 368409601, tmax = 368668801
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='232759', job_status='RUN', time_executed='2021-09-09 03:39:59.402572', time_epoch_executed='1631183999.4' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232759/ft1_4FGL_J1410.1+0202_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232759/ft2_4FGL_J1410.1+0202_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232759/ft1_4FGL_J1410.1+0202_daily_bin498.fits outfile=/scratch/kocevski/232759/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin498.fits ra=212.529 dec=2.0354 rad=12.0 tmin=368409601.0 tmax=368668801.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.42
user 3.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232759/ft2_4FGL_J1410.1+0202_daily_bin498.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/232759/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/232759/ft1_filtered_4FGL_J1410.1+0202_daily_bin498.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.53
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232759/ft1_filtered_4FGL_J1410.1+0202_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/232759/ft2_4FGL_J1410.1+0202_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/232759/ltcube_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.fits outfile=/scratch/kocevski/232759/expmap_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.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/232759/ltcube_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.fits
.....................!
real 192.65
user 186.32
sys 5.53

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/232759/ft1_filtered_4FGL_J1410.1+0202_daily_bin498.fits scfile=/scratch/kocevski/232759/ft2_4FGL_J1410.1+0202_daily_bin498.fits outfile=/scratch/kocevski/232759/cmap_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.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.80
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232759/ft1_filtered_4FGL_J1410.1+0202_daily_bin498.fits scfile=/scratch/kocevski/232759/ft2_4FGL_J1410.1+0202_daily_bin498.fits outfile=/scratch/kocevski/232759/cmap_HighResolution_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.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.73
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6806       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .59984       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.879       1.0000         .10000E-03   10000.    
    10 'norm      '    23.260       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.249       1.0000         .10000E-03   10000.    
    13 'norm      '    40.981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0600       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=   5632.657     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1739 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6804        2.3768        .25377E-06   -.94421E-05
   2  norm          3.2672        51.710        .66528E-06   -.27557E-05
   3  Prefactor     .10000E-03    2.4824        .31354E-06** at limit **
   4  Prefactor     .10000E-03    21.442        .36948E-06** at limit **
   5  Prefactor     2.9272        3.7567        .13148E-06   -.38831E-05
   6  Prefactor     .10000E-03    7.7330        .62082E-07** at limit **
   7  norm          .59888        3.0252        .20249E-05   -.46222E-04
   8  Prefactor     34.395        26.950        .60511E-07   -.15911E-04
   9  Prefactor     19.877        24.875        .10642E-06   -.32824E-05
  10  norm          23.260        14.946       -.20282E-07   -.88459E-05
  11  norm          .10000E-03    3.9529        .14137E-07** at limit **
  12  Prefactor     32.248        24.034        .94723E-07   -.64245E-05
  13  norm          40.981        27.402        .33667E-07   -.21596E-05
  14  Prefactor     45.735        58.589        .56362E-07   -.30218E-04
  15  Prefactor     .10000E-03    7.3759       -.40798E-07** at limit **
  16  norm          .10000E-03    9.4663        .46152E-07** at limit **
  17  Normalizat    1.0961        .22658       -.13056E-05   -.68622E-04
  18  Prefactor     1.0601        .15306        .97524E-07   -.15477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6804
  norm       = 3.26719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.92716
  Prefactor  = 0.0001
  norm       = 0.598879
  Prefactor  = 34.3951
  Prefactor  = 19.8772
  norm       = 23.2605
  norm       = 0.0001
  Prefactor  = 32.2476
  norm       = 40.9811
  Prefactor  = 45.7349
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09607
  Prefactor  = 1.06007
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.657     FROM HESSE     STATUS=OK           246 CALLS     1985 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6804        2.3622        .13222E-03   -1.5449    
   2  norm          3.2672        51.981        .22375E-03   -1.5346    
   3  Prefactor     .10000E-03    2.5182        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9272        3.7511        .15990E-03   -1.5366    
   6  Prefactor     .10000E-03    7.7535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .59888        3.0429        .24628E-03   -1.5553    
   8  Prefactor     34.395        26.990        .68322E-04   -1.4534    
   9  Prefactor     19.877        24.879        .89831E-04   -1.4816    
  10  norm          23.260        14.950        .83054E-04   -1.4743    
  11  norm          .10000E-03    3.9664        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.248        24.050        .70560E-04   -1.4572    
  13  norm          40.981        27.409        .62617E-04   -1.4427    
  14  Prefactor     45.735        58.615        .29613E-03   -1.4354    
  15  Prefactor     .10000E-03    7.3789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.5674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0961        .26643        .29590E-03   -.89878    
  18  Prefactor     1.0601        .18130        .20534E-03   -.90753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03854e-11
Minuit parameter uncertainties:
  1  2.36229
  2  26.0904
  3  4.48375e-06
  4  1.85252e-05
  5  3.75145
  6  4.10981e-06
  7  2.69987
  8  26.9999
  9  24.8918
  10  14.9529
  11  8.37505e-06
  12  24.0572
  13  27.4171
  14  58.6892
  15  3.15527e-06
  16  4.64797e-06
  17  0.266759
  18  0.181403
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  3.440e+01  2.700e+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.060e+00  1.814e-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.096e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/232759/likelihoodResults_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.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) = 5632.58465933
delta logL = 0.0727461850429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5632.57758519
delta logL = 0.0798203319082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.638       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7625       1.0000          .0000       10.000    
     3 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5632.578     FROM MIGRAD    STATUS=FAILED        99 CALLS      313 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.674        510.62        .86108E-04   -.60733E-05
   2  Index         2.7621        6.2175        .61823E-02    .55922E-03
   3  Normalizat    1.0625        .44377        .29982E-03   -.10996E-05
   4  Prefactor     1.0766        .27682        .20398E-03   -.11927E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5632.578     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      402 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.674        510.62        .41249E-03   -.60733E-05
   2  Index         2.7621        6.2175        .13226E-02    .55922E-03
   3  Normalizat    1.0625        .44377        .23315E-03   -.10996E-05
   4  Prefactor     1.0766        .27682        .15958E-03   -.11927E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5632.578     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      433 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.674        52.685        .34443E-05   -.59413E-05
   2  Index         2.7621        1.5984        .12365E-02    .21285E-04
   3  Normalizat    1.0625        .28274        .11993E-04   -.11376E-05
   4  Prefactor     1.0766        .18888        .81592E-05   -.10590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6742
  Index      = 2.76212
  Normalizat = 1.06253
  Prefactor  = 1.07664
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.578     FROM HESSE     STATUS=OK            25 CALLS      458 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.674        47.899        .68886E-06   -1.4777    
   2  Index         2.7621        1.4566        .24729E-03   -.46405    
   3  Normalizat    1.0625        .27875        .23985E-05   -.90964    
   4  Prefactor     1.0766        .18660        .16318E-05   -.90217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01387e-13
Minuit parameter uncertainties:
  1  47.9846
  2  1.48372
  3  0.279138
  4  0.186712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232759': 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) = 5632.57757225
delta logL = 0.0798332656768

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  2.167e+01  4.798e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.762e+00  1.484e+00  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.077e+00  1.867e-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.063e+00  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 212.529 2.035
Photon Index (Free Index): 2.76 +/- 1.48
Photon Flux (Free Index): 8.21e-08 +/- 7.52e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.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/232759/cmap_HighResolution_368409601_368668801_4FGL_J1410.1+0202_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='1.89e-05', photon_flux_error='4.78e-08', dlogl='7.98e-02', energy_flux='2.25e-05', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-09-09 03:48:40.813604', photon_index_error2='1.48', photon_index2='2.76', ts='2.38', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.66e-05', EG='1.10', time_epoch_completed='1631184520.81', return_code='0', job_id='232759', GAL2='1.08', EG2='1.06', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='7.52e-08', ts2='2.58', photon_index='2.31' WHERE bin_id='498' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:48:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 232759: <4FGL_J1410.1+0202_daily_bin498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin498 212.529 2.0354 368409601 368668801 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 :                                   510.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             231.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

