/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 74 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 = 7602
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1410.1+0202_daily_bin999
RA = 212.529, Dec = 2.0354
tmin = 498268801, tmax = 498528001
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='235843', job_status='RUN', time_executed='2021-09-09 03:48:16.289457', time_epoch_executed='1631184496.29' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235843

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235843/ft1_4FGL_J1410.1+0202_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235843/ft2_4FGL_J1410.1+0202_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235843/ft1_4FGL_J1410.1+0202_daily_bin999.fits outfile=/scratch/kocevski/235843/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin999.fits ra=212.529 dec=2.0354 rad=12.0 tmin=498268801.0 tmax=498528001.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 5.91
user 4.53
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235843/ft1_filtered_4FGL_J1410.1+0202_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/235843/ft2_4FGL_J1410.1+0202_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/235843/ltcube_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.fits outfile=/scratch/kocevski/235843/expmap_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.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/235843/ltcube_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.fits
.....................!
real 195.61
user 185.31
sys 4.56

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/235843/ft1_filtered_4FGL_J1410.1+0202_daily_bin999.fits scfile=/scratch/kocevski/235843/ft2_4FGL_J1410.1+0202_daily_bin999.fits outfile=/scratch/kocevski/235843/cmap_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.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 0.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235843/ft1_filtered_4FGL_J1410.1+0202_daily_bin999.fits scfile=/scratch/kocevski/235843/ft2_4FGL_J1410.1+0202_daily_bin999.fits outfile=/scratch/kocevski/235843/cmap_HighResolution_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.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 0.61
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8638       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .30219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55139E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .90469       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.192       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7220       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3484       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2606       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=   6711.150     FROM MIGRAD    STATUS=FAILED       617 CALLS     2250 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8641        3.0351        .99157E-04   -.34969E-04
   2  norm          .10000E-03    12.376        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.5811        .15024E-02** at limit **
   4  Prefactor     45.036        35.996        .59750E-04   -.11416E-04
   5  Prefactor     5.4013        4.6664        .15974E-03   -.22775E-04
   6  Prefactor     .10000E-03    12.074        .18142E-02** at limit **
   7  norm          .30223        2.3620        .24201E-03   -.11923E-03
   8  Prefactor     15.808        16.578        .10073E-03   -.11286E-04
   9  Prefactor     .10000E-03    37.281        .14188    ** at limit **
  10  norm          .92822        31.580        .47975E-02    .16909E-02
  11  norm          .10000E-03    6.3889        .18142E-02** at limit **
  12  Prefactor     .10000E-03    16.995        .18142E-02** at limit **
  13  norm          .10000E-03    9.2068        .18142E-02** at limit **
  14  Prefactor     17.427        67.700        .95715E-04   -.60576E-05
  15  Prefactor     49.173        44.642        .28588E-03   -.37859E-04
  16  norm          2.7329        39.492        .24684E-03    .18239E-04
  17  Normalizat    1.3482        .29767        .32799E-03   -.28658E-03
  18  Prefactor     1.2608        .19179        .22269E-03   -.93374E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6711.150     FROM SIMPLEX   STATUS=UNCHANGED    887 CALLS     3137 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8641        3.0351        .11896E-06   -1.5224    
   2  norm          .10000E-03    12.376        .56940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5811        .14101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.036        35.996        .99676E-07   -1.4365    
   5  Prefactor     5.4013        4.6664        .10330E-06   -1.5243    
   6  Prefactor     .10000E-03    12.074        .54047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30223        2.3620        .10497E-06   -1.5598    
   8  Prefactor     15.808        16.578        .10171E-06   -1.4913    
   9  Prefactor     .10000E-03    37.281        .95062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92822        31.580        .15411E-06   -1.5515    
  11  norm          .10000E-03    6.3889        .27139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.995        .60579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2068        .32760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.427        67.700        .10198E-06   -1.4873    
  15  Prefactor     49.173        44.642        .10300E-06   -1.4304    
  16  norm          2.7329        39.492        .14570E-06   -1.5377    
  17  Normalizat    1.3482        .29767        .62755E-07   -.82139    
  18  Prefactor     1.2608        .19179        .56798E-07   -.84482    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6711.150     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     3378 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8641        3.0351        .39663E-05    .22931E-06
   2  norm          .10000E-03    12.376        .36285E-03** at limit **
   3  Prefactor     .10000E-03    3.5824        .30048E-03** at limit **
   4  Prefactor     45.036        36.005        .23900E-05    .19027E-06
   5  Prefactor     5.4013        4.6663        .63894E-05    .39145E-05
   6  Prefactor     .10000E-03    12.076        .36285E-03** at limit **
   7  norm          .30223        2.3614        .96804E-05    .34293E-05
   8  Prefactor     15.808        16.578        .40292E-05    .11286E-06
   9  Prefactor     .10000E-03    36.698        .14355    ** at limit **
  10  norm          .92834        31.721        .95949E-03    .30569E-05
  11  norm          .10000E-03    6.3909        .36285E-03** at limit **
  12  Prefactor     .10000E-03    16.997        .36285E-03** at limit **
  13  norm          .10000E-03    9.2069        .36285E-03** at limit **
  14  Prefactor     17.427        67.651        .38286E-05    .11878E-06
  15  Prefactor     49.173        44.607        .11435E-04    .59652E-06
  16  norm          2.7329        39.431        .98734E-05    .27635E-06
  17  Normalizat    1.3482        .29784        .65599E-04    .14800E-04
  18  Prefactor     1.2608        .19172        .44538E-04    .14141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.86408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0357
  Prefactor  = 5.40126
  Prefactor  = 0.0001
  norm       = 0.302234
  Prefactor  = 15.8082
  Prefactor  = 0.000100001
  norm       = 0.928336
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.427
  Prefactor  = 49.1728
  norm       = 2.73286
  Normalizat = 1.34819
  Prefactor  = 1.26075
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.150     FROM HESSE     STATUS=OK           238 CALLS     3616 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8641        3.0351        .39663E-05   -1.5224    
   2  norm          .10000E-03    12.376        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5825        .60097E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.036        36.005        .23900E-05   -1.4365    
   5  Prefactor     5.4013        4.6659        .12779E-05   -1.5243    
   6  Prefactor     .10000E-03    12.076        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30223        2.3614        .96804E-05   -1.5598    
   8  Prefactor     15.808        16.578        .40292E-05   -1.4913    
   9  Prefactor     .10000E-03    36.841        .14314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92834        31.703        .38380E-04   -1.5515    
  11  norm          .10000E-03    6.3910        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.997        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2069        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.427        67.654        .38286E-05   -1.4873    
  15  Prefactor     49.173        44.627        .22870E-05   -1.4304    
  16  norm          2.7329        39.448        .98734E-05   -1.5377    
  17  Normalizat    1.3482        .29785        .13120E-04   -.82139    
  18  Prefactor     1.2608        .19168        .89075E-05   -.84482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26217e-13
Minuit parameter uncertainties:
  1  3.03517
  2  7.84441e-08
  3  8.6218e-07
  4  36.0226
  5  4.66623
  6  1.05243e-06
  7  1.68941
  8  16.5826
  9  0.000294103
  10  10.8557
  11  5.82684e-07
  12  1.80295e-06
  13  1.82819e-07
  14  67.9544
  15  44.657
  16  20.782
  17  0.298233
  18  0.191785
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.581e+01  1.658e+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.261e+00  1.918e-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.348e+00  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/235843/likelihoodResults_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.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) = 6710.40204568
delta logL = 0.747888234012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6710.3997803
delta logL = 0.750153622915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.281       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4360       1.0000          .0000       10.000    
     3 'Normalizat'    1.3689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2536       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=   6710.400     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.281        15.660        .25614E-02    .70446E-03
   2  Index         1.4359        .45473        .27554       -.52998E-04
   3  Normalizat    1.3687        .23714        .73638E-01    .10732E-04
   4  Prefactor     1.2537        .15702        .50483E-01    .37369E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2815
  Index      = 1.43592
  Normalizat = 1.36871
  Prefactor  = 1.25368
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.400     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.281        17.977        .10246E-03   -1.4926    
   2  Index         1.4359        .61277        .10357E-01   -.79351    
   3  Normalizat    1.3687        .28298        .32586E-03   -.81538    
   4  Prefactor     1.2537        .18772        .22318E-03   -.84695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03385e-09
Minuit parameter uncertainties:
  1  17.9832
  2  0.615931
  3  0.283302
  4  0.187817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235843': 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) = 6710.39977991
delta logL = 0.750154008731

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.528e+01  1.798e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.436e+00  6.159e-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.254e+00  1.878e-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.369e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 212.529 2.035
Photon Index (Free Index): 1.44 +/- 0.62
Photon Flux (Free Index): 9.79e-09 +/- 1.30e-08
Energy Flux (Free Index): 3.84e-05 +/- 6.10e-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/235843/cmap_HighResolution_498268801_498528001_4FGL_J1410.1+0202_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='3.84e-05', photon_flux_error='2.93e-08', dlogl='7.50e-01', energy_flux='1.04e-05', photon_flux2='9.79e-09', job_status='DONE', time_completed='2021-09-09 03:59:22.161585', photon_index_error2='0.62', photon_index2='1.44', ts='3.02', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='6.10e-05', EG='1.35', time_epoch_completed='1631185162.16', return_code='0', job_id='235843', GAL2='1.25', EG2='1.37', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.30e-08', ts2='4.52', photon_index='2.31' WHERE bin_id='999' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 235843: <4FGL_J1410.1+0202_daily_bin999> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin999> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  9 03:46:00 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:46:02 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:46:02 2021
Terminated at Thu Sep  9 03:59:24 2021
Results reported at Thu Sep  9 03:59:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin999 212.529 2.0354 498268801 498528001 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

