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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin181
RA = 212.529, Dec = 2.0354
tmin = 286243201, tmax = 286502401
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='232308', job_status='RUN', time_executed='2021-09-09 03:38:25.502430', time_epoch_executed='1631183905.5' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232308/ft1_4FGL_J1410.1+0202_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232308/ft2_4FGL_J1410.1+0202_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232308/ft1_4FGL_J1410.1+0202_daily_bin181.fits outfile=/scratch/kocevski/232308/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin181.fits ra=212.529 dec=2.0354 rad=12.0 tmin=286243201.0 tmax=286502401.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.47
user 3.22
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232308/ft1_filtered_4FGL_J1410.1+0202_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/232308/ft2_4FGL_J1410.1+0202_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/232308/ltcube_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.fits outfile=/scratch/kocevski/232308/expmap_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.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/232308/ltcube_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.fits
.....................!
real 190.86
user 185.20
sys 5.20

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/232308/ft1_filtered_4FGL_J1410.1+0202_daily_bin181.fits scfile=/scratch/kocevski/232308/ft2_4FGL_J1410.1+0202_daily_bin181.fits outfile=/scratch/kocevski/232308/cmap_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.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.71
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232308/ft1_filtered_4FGL_J1410.1+0202_daily_bin181.fits scfile=/scratch/kocevski/232308/ft2_4FGL_J1410.1+0202_daily_bin181.fits outfile=/scratch/kocevski/232308/cmap_HighResolution_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.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.76
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2994       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30486E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.1254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.591       1.0000         .10000E-03   10000.    
    10 'norm      '    12.950       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.228       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4741       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2069       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0608       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=   5804.143     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1742 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2993        3.1201       -.12897E-09   -.42546E-05
   2  norm          .10000E-03    13.020       -.68172E-06** at limit **
   3  Prefactor     .10000E-03    3.8808        .59882E-07** at limit **
   4  Prefactor     13.111        27.522       -.46386E-05   -.15075E-03
   5  Prefactor     .10000E-03    2.5975        .37614E-07** at limit **
   6  Prefactor     .10000E-03    5.4825        .39581E-07** at limit **
   7  norm          6.1255        3.6461       -.41900E-07   -.76535E-04
   8  Prefactor     1.8941        34.222        .26641E-05   -.14363E-05
   9  Prefactor     39.588        34.447       -.12690E-05   -.76980E-04
  10  norm          12.950        13.117       -.31856E-07   -.19929E-05
  11  norm          .10000E-03    6.8171        .20916E-06** at limit **
  12  Prefactor     36.225        28.095       -.95616E-06   -.73998E-04
  13  norm          .10000E-03    7.7126       -.29274E-06** at limit **
  14  Prefactor     .10000E-03    104.07       -.31966E-06** at limit **
  15  Prefactor     .10000E-03    11.529        .39774E-06** at limit **
  16  norm          4.4749        7.5658        .12212E-05   -.61432E-03
  17  Normalizat    1.2070        .24169        .88305E-06   -.62735E-04
  18  Prefactor     1.0607        .15726       -.21106E-06    .15583E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.29926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1106
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.12548
  Prefactor  = 1.89406
  Prefactor  = 39.5885
  norm       = 12.9504
  norm       = 0.0001
  Prefactor  = 36.2255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47491
  Normalizat = 1.20698
  Prefactor  = 1.0607
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.143     FROM HESSE     STATUS=OK           246 CALLS     1988 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2993        3.1227        .79862E-04   -1.5132    
   2  norm          .10000E-03    13.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9856        .29276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.111        28.400        .11057E-03   -1.4984    
   5  Prefactor     .10000E-03    31.633        .23800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4979        .17422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.1255        3.6482        .10774E-03   -1.5213    
   8  Prefactor     1.8941        34.443        .30198E-03   -1.5433    
   9  Prefactor     39.588        34.606        .63703E-04   -1.4449    
  10  norm          12.950        13.123        .11131E-03   -1.4988    
  11  norm          .10000E-03    6.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.225        28.227        .66583E-04   -1.4503    
  13  norm          .10000E-03    7.7161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    104.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4749        11.332        .95179E-03   -1.5285    
  17  Normalizat    1.2070        .28720        .29949E-03   -.86387    
  18  Prefactor     1.0607        .18819        .21322E-03   -.90733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34034e-09
Minuit parameter uncertainties:
  1  3.12278
  2  4.64086e-05
  3  7.64644e-07
  4  28.4293
  5  0.000494814
  6  1.17182e-05
  7  3.64829
  8  16.1642
  9  34.6232
  10  13.1256
  11  7.09827e-06
  12  28.2378
  13  1.47864e-05
  14  0.00010557
  15  2.56708e-05
  16  11.3376
  17  0.287574
  18  0.188303
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.894e+00  1.616e+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.061e+00  1.883e-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.207e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/232308/likelihoodResults_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.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) = 5804.02671738
delta logL = 0.116463964689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.02643996
delta logL = 0.116741381714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9504       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5669       1.0000          .0000       10.000    
     3 'Normalizat'    1.2138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   5804.026     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8514        16.599        .38044E-02    .66201E-03
   2  Index         1.5663        1.0697        .29088E-01   -.47098E-03
   3  Normalizat    1.2137        .23132        .67530E-01    .11349E-04
   4  Prefactor     1.0546        .15648        .39654E-01    .78560E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85136
  Index      = 1.56628
  Normalizat = 1.21369
  Prefactor  = 1.05463
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.026     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8514        16.949        .76087E-03   -1.5184    
   2  Index         1.5663        1.0949        .58176E-02   -.75700    
   3  Normalizat    1.2137        .27586        .29877E-03   -.86181    
   4  Prefactor     1.0546        .18685        .21371E-03   -.90930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59917e-11
Minuit parameter uncertainties:
  1  16.9609
  2  1.11216
  3  0.276195
  4  0.186962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232308': 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) = 5804.02642224
delta logL = 0.116759105496

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  6.851e+00  1.696e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.566e+00  1.112e+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.055e+00  1.870e-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.214e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 212.529 2.035

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/232308/cmap_HighResolution_286243201_286502401_4FGL_J1410.1+0202_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-09 03:49:22.126015', job_id='232308', GAL2='1.05', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631184562.13', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.17e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='181' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 232308: <4FGL_J1410.1+0202_daily_bin181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin181 212.529 2.0354 286243201 286502401 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 :                                   507.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            850 sec.

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

