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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin859
RA = 212.529, Dec = 2.0354
tmin = 461980801, tmax = 462240001
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='235620', job_status='RUN', time_executed='2021-09-09 03:48:14.219966', time_epoch_executed='1631184494.22' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235620

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235620/ft1_4FGL_J1410.1+0202_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235620/ft1_4FGL_J1410.1+0202_daily_bin859.fits outfile=/scratch/kocevski/235620/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin859.fits ra=212.529 dec=2.0354 rad=12.0 tmin=461980801.0 tmax=462240001.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 7.82
user 3.33
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235620/ft1_filtered_4FGL_J1410.1+0202_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/235620/ltcube_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.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/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits
.....................!
real 16.87
user 11.38
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235620/ft1_filtered_4FGL_J1410.1+0202_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/235620/ltcube_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.fits outfile=/scratch/kocevski/235620/expmap_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.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/235620/ltcube_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.fits
.....................!
real 206.89
user 184.37
sys 5.79

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/235620/ft1_filtered_4FGL_J1410.1+0202_daily_bin859.fits scfile=/scratch/kocevski/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits outfile=/scratch/kocevski/235620/cmap_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.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.85
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235620/ft1_filtered_4FGL_J1410.1+0202_daily_bin859.fits scfile=/scratch/kocevski/235620/ft2_4FGL_J1410.1+0202_daily_bin859.fits outfile=/scratch/kocevski/235620/cmap_HighResolution_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.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.90
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56350       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9508       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1786       1.0000         .10000E-03   10000.    
     7 'norm      '    .83195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.543       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.826       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98165       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=   6563.731     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1693 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56376        1.5722        .57177E-06   -.21437E-03
   2  norm          .10000E-03    8.5837       -.27913E-06** at limit **
   3  Prefactor     .10000E-03    2.3775        .67430E-07** at limit **
   4  Prefactor     .10000E-03    8.7762        .31214E-06** at limit **
   5  Prefactor     3.9507        3.6911        .34348E-07   -.16357E-04
   6  Prefactor     8.1779        9.8853        .73438E-06   -.10881E-03
   7  norm          .83327        2.8667        .11798E-05   -.22773E-03
   8  Prefactor     47.218        26.345       -.32982E-06   -.78113E-04
   9  Prefactor     24.534        32.865       -.17667E-05   -.15139E-03
  10  norm          .10000E-03    3.7415        .30202E-08** at limit **
  11  norm          25.831        9.9062       -.24378E-06   -.10678E-03
  12  Prefactor     .10000E-03    26.720        .77681E-07** at limit **
  13  norm          .10000E-03    6.0392       -.83010E-08** at limit **
  14  Prefactor     72.816        67.458       -.14584E-05   -.97210E-04
  15  Prefactor     .10000E-03    18.181        .45570E-07** at limit **
  16  norm          .10000E-03    13.678       -.17857E-07** at limit **
  17  Normalizat    1.0673        .20851        .58855E-07   -.94919E-04
  18  Prefactor     .98152        .13509       -.32108E-06   -.77477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.563761
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95071
  Prefactor  = 8.17789
  norm       = 0.833268
  Prefactor  = 47.2184
  Prefactor  = 24.5342
  norm       = 0.0001
  norm       = 25.831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.8155
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06734
  Prefactor  = 0.981517
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.731     FROM HESSE     STATUS=OK           238 CALLS     1931 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56376        1.5788        .16577E-03   -1.5558    
   2  norm          .10000E-03    8.6068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4341        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9507        3.6902        .14638E-03   -1.5310    
   6  Prefactor     8.1779        9.9452        .70095E-03   -1.5136    
   7  norm          .83327        2.9340        .23705E-03   -1.5525    
   8  Prefactor     47.218        26.425        .58351E-04   -1.4333    
   9  Prefactor     24.534        34.393        .80858E-04   -1.4717    
  10  norm          .10000E-03    3.7447        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.831        9.8604        .78821E-04   -1.4691    
  12  Prefactor     .10000E-03    26.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.816        69.242        .47045E-04   -1.3999    
  15  Prefactor     .10000E-03    18.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0673        .25297        .29521E-03   -.90808    
  18  Prefactor     .98152        .16402        .20200E-03   -.93348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71021e-10
Minuit parameter uncertainties:
  1  1.57895
  2  3.20674e-05
  3  1.56313e-07
  4  3.05943e-05
  5  3.69038
  6  9.94716
  7  2.93455
  8  26.4315
  9  34.4204
  10  2.83255e-07
  11  9.86105
  12  2.25546e-05
  13  3.55421e-07
  14  69.3185
  15  1.18644e-05
  16  3.06661e-07
  17  0.253252
  18  0.164107
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  4.722e+01  2.643e+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:  9.815e-01  1.641e-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.067e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.96
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.73e-05

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) = 6563.66062005
delta logL = 0.0700585227605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6563.65206432
delta logL = 0.0786142592578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1228       1.0000          .0000       10.000    
     3 'Normalizat'    1.0865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97407       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=   6563.652     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      310 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.654        30.827        .55805E-04    .11408E-04
   2  Index         2.1229        .48368        .73865E-02    .23284E-03
   3  Normalizat    1.0860        .25099        .29302E-03    .28788E-04
   4  Prefactor     .97431        .16379        .20267E-03   -.24232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.6535
  Index      = 2.12291
  Normalizat = 1.08602
  Prefactor  = 0.974309
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.652     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.654        30.606        .22322E-05   -1.4269    
   2  Index         2.1229        .47969        .14773E-02   -.61312    
   3  Normalizat    1.0860        .25114        .11721E-04   -.90202    
   4  Prefactor     .97431        .16393        .81070E-05   -.93591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29163e-11
Minuit parameter uncertainties:
  1  30.6157
  2  0.480798
  3  0.251417
  4  0.164009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235620': 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) = 6563.65206271
delta logL = 0.0786158650308

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  5.165e+01  3.062e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.123e+00  4.808e-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:  9.743e-01  1.640e-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.086e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 212.529 2.035
Photon Index (Free Index): 2.12 +/- 0.48
Photon Flux (Free Index): 6.81e-08 +/- 5.61e-08
Energy Flux (Free Index): 3.56e-05 +/- 2.54e-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/235620/cmap_HighResolution_461980801_462240001_4FGL_J1410.1+0202_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='3.56e-05', photon_flux_error='4.67e-08', dlogl='7.86e-02', energy_flux='3.09e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2021-09-09 03:57:09.860263', photon_index_error2='0.48', photon_index2='2.12', ts='6.96', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.07', time_epoch_completed='1631185029.86', return_code='0', job_id='235620', GAL2='0.97', EG2='1.09', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.61e-08', ts2='7.10', photon_index='2.31' WHERE bin_id='859' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:57:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 235620: <4FGL_J1410.1+0202_daily_bin859> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin859 212.529 2.0354 461980801 462240001 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 :                                   492.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

