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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin476
RA = 212.529, Dec = 2.0354
tmin = 362707201, tmax = 362966401
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='232729', job_status='RUN', time_executed='2021-09-09 03:39:56.353607', time_epoch_executed='1631183996.35' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232729

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232729/ft1_4FGL_J1410.1+0202_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232729/ft2_4FGL_J1410.1+0202_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232729/ft1_4FGL_J1410.1+0202_daily_bin476.fits outfile=/scratch/kocevski/232729/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin476.fits ra=212.529 dec=2.0354 rad=12.0 tmin=362707201.0 tmax=362966401.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.95
user 5.61
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232729/ft2_4FGL_J1410.1+0202_daily_bin476.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/232729/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin476.fits evtable="EVENTS" outfile="/scratch/kocevski/232729/ft1_filtered_4FGL_J1410.1+0202_daily_bin476.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.55
user 0.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232729/ft1_filtered_4FGL_J1410.1+0202_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/232729/ft2_4FGL_J1410.1+0202_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/232729/ltcube_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.fits outfile=/scratch/kocevski/232729/expmap_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.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/232729/ltcube_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.fits
.....................!
real 193.20
user 188.33
sys 4.21

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/232729/ft1_filtered_4FGL_J1410.1+0202_daily_bin476.fits scfile=/scratch/kocevski/232729/ft2_4FGL_J1410.1+0202_daily_bin476.fits outfile=/scratch/kocevski/232729/cmap_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.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.17
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232729/ft1_filtered_4FGL_J1410.1+0202_daily_bin476.fits scfile=/scratch/kocevski/232729/ft2_4FGL_J1410.1+0202_daily_bin476.fits outfile=/scratch/kocevski/232729/cmap_HighResolution_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.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.11
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60895       1.0000         .10000E-03   10000.    
     2 'norm      '    23.206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.626       1.0000         .10000E-03   10000.    
    10 'norm      '    22.559       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73575E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2784       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79727       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=   5819.895     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1754 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60931        1.9363        .10450E-05   -.75157E-04
   2  norm          23.207        26.073        .68190E-07   -.59976E-05
   3  Prefactor     .18193        2.4170        .30237E-06   -.11190E-04
   4  Prefactor     .10000E-03    19.560        .45269E-07** at limit **
   5  Prefactor     .10000E-03    2.2197        .40105E-07** at limit **
   6  Prefactor     .10000E-03    5.0429        .40668E-07** at limit **
   7  norm          2.9395        2.4008        .13363E-06   -.26641E-04
   8  Prefactor     13.761        17.515        .19838E-06   -.42823E-05
   9  Prefactor     47.629        34.806        .27457E-06   -.20044E-05
  10  norm          22.560        13.823        .75392E-07   -.13731E-05
  11  norm          .10000E-03    4.8920        .63437E-07** at limit **
  12  Prefactor     .10000E-03    27.448        .15784E-06** at limit **
  13  norm          21.405        23.538       -.81750E-08    .20772E-05
  14  Prefactor     .10000E-03    402.83       -.10190E-04** at limit **
  15  Prefactor     .10000E-03    12.955        .18192E-07** at limit **
  16  norm          .10000E-03    10.393        .10850E-07** at limit **
  17  Normalizat    1.2784        .20923       -.12971E-05   -.39319E-04
  18  Prefactor     .79722        .13253       -.46667E-06   -.67428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.609309
  norm       = 23.2066
  Prefactor  = 0.181927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93955
  Prefactor  = 13.7605
  Prefactor  = 47.6286
  norm       = 22.56
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27839
  Prefactor  = 0.797215
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.895     FROM HESSE     STATUS=OK           248 CALLS     2002 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60931        1.9629        .17989E-03   -1.5552    
   2  norm          23.207        26.083        .83151E-04   -1.4744    
   3  Prefactor     .18193        25.771        .22324E-02   -1.5623    
   4  Prefactor     .10000E-03    19.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2297        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0554        .16733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9395        2.3974        .10277E-03   -1.5365    
   8  Prefactor     13.761        17.525        .10798E-03   -1.4966    
   9  Prefactor     47.629        34.827        .58103E-04   -1.4327    
  10  norm          22.560        13.835        .84333E-04   -1.4758    
  11  norm          .10000E-03    4.9351        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.405        23.543        .86568E-04   -1.4782    
  14  Prefactor     .10000E-03    406.05        .41903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2784        .25082        .26075E-03   -.84214    
  18  Prefactor     .79722        .15997        .20946E-03   -.99831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43384e-08
Minuit parameter uncertainties:
  1  1.96306
  2  26.096
  3  4.33124
  4  1.12184e-05
  5  3.00389e-06
  6  5.93038e-06
  7  2.39745
  8  17.5318
  9  34.8423
  10  13.8365
  11  7.30507e-06
  12  7.60647e-05
  13  23.5536
  14  9.81466e-07
  15  1.63778e-05
  16  1.13911e-05
  17  0.251063
  18  0.160065
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.376e+01  1.753e+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:  7.972e-01  1.601e-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.278e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 9.01e-06 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/232729/likelihoodResults_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.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) = 5819.76579754
delta logL = 0.128872910906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.75946063
delta logL = 0.13520982246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.791       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8656       1.0000          .0000       10.000    
     3 'Normalizat'    1.2898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79304       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=   5819.759     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      254 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.796        19.853        .10079E-03   -.56397E-05
   2  Index         1.8654        .80567        .11889E-01   -.54838E-04
   3  Normalizat    1.2897        .24212        .25974E-03   -.42894E-05
   4  Prefactor     .79300        .15824        .20993E-03    .28160E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7957
  Index      = 1.86545
  Normalizat = 1.28973
  Prefactor  = 0.793001
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.759     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.796        19.952        .40316E-05   -1.4913    
   2  Index         1.8654        .80979        .23777E-02   -.67758    
   3  Normalizat    1.2897        .24235        .10390E-04   -.83874    
   4  Prefactor     .79300        .15840        .83973E-05   -.99987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26278e-13
Minuit parameter uncertainties:
  1  19.9606
  2  0.815736
  3  0.242564
  4  0.15849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232729': 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) = 5819.75946035
delta logL = 0.135210099773

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.580e+01  1.996e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.865e+00  8.157e-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:  7.930e-01  1.585e-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.290e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 212.529 2.035
Photon Index (Free Index): 1.87 +/- 0.82
Photon Flux (Free Index): 1.47e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.45e-05 +/- 2.43e-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/232729/cmap_HighResolution_362707201_362966401_4FGL_J1410.1+0202_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='1.45e-05', photon_flux_error='3.10e-08', dlogl='1.35e-01', energy_flux='9.01e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-09 03:48:44.846135', photon_index_error2='0.82', photon_index2='1.87', ts='1.10', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='2.43e-05', EG='1.28', time_epoch_completed='1631184524.85', return_code='0', job_id='232729', GAL2='0.79', EG2='1.29', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.54e-08', ts2='1.37', photon_index='2.31' WHERE bin_id='476' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:48:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 232729: <4FGL_J1410.1+0202_daily_bin476> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin476 212.529 2.0354 362707201 362966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1410.1+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   521.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             181.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

