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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin275
RA = 214.029, Dec = 13.347
tmin = 310608001, tmax = 310867201
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='278170', job_status='RUN', time_executed='2021-09-09 06:10:20.711068', time_epoch_executed='1631193020.71' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278170/ft1_4FGL_J1416.1+1320_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278170/ft1_4FGL_J1416.1+1320_daily_bin275.fits outfile=/scratch/kocevski/278170/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin275.fits ra=214.029 dec=13.347 rad=12.0 tmin=310608001.0 tmax=310867201.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.58
user 3.30
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.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/278170/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin275.fits evtable="EVENTS" outfile="/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.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.70
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/278170/ltcube_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.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/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits
.....................!
real 12.48
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/278170/ltcube_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits outfile=/scratch/kocevski/278170/expmap_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.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/278170/ltcube_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits
.....................!
real 192.67
user 186.85
sys 5.28

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits outfile=/scratch/kocevski/278170/cmap_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.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=214.029 yref=13.347 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.64
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits outfile=/scratch/kocevski/278170/cmap_HighResolution_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.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=214.029 yref=13.347 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.78
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278170/Model_4FGL_J1416.1+1320_daily_bin275.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/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits.....................!
real 55.43
user 49.75
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits', '/scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits', expMap='/scratch/kocevski/278170/expmap_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits', expCube='/scratch/kocevski/278170/ltcube_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278170/Model_4FGL_J1416.1+1320_daily_bin275.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/278170/ft1_filtered_4FGL_J1416.1+1320_daily_bin275.fits
Spacecraft file(s): /scratch/kocevski/278170/ft2_4FGL_J1416.1+1320_daily_bin275.fits
Exposure map: /scratch/kocevski/278170/expmap_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits
Exposure cube: /scratch/kocevski/278170/ltcube_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278170/Model_4FGL_J1416.1+1320_daily_bin275.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) = 6725.78789811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.776       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0927       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.851       1.0000         .10000E-03   10000.    
     9 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0881       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15923E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84353       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6725.771     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2330 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.978        47.918        .12700E-06   -.55041E-05
   2  Prefactor     17.794        6.0285        .46741E-07    .10273E-04
   3  Prefactor     .10000E-03    2.6439        .11869E-06** at limit **
   4  Prefactor     15.777        17.827       -.15126E-07   -.11423E-04
   5  Prefactor     3.0914        14.578        .86823E-06   -.13274E-04
   6  Prefactor     4.3784        14.026        .41672E-06   -.23933E-05
   7  Prefactor     .10000E-03    19.148       -.76686E-07** at limit **
   8  Prefactor     12.833        24.307        .58936E-08   -.61429E-04
   9  norm          .10000E-03    8.8032       -.18523E-06** at limit **
  10  Prefactor     .10000E-03    11.142       -.19769E-06** at limit **
  11  norm          6.2377        3.2512        .27684E-07   -.23512E-04
  12  Prefactor     1.0913        6.1664        .29756E-05   -.19787E-04
  13  norm          .10000E-03    1.1408       -.80283E-07** at limit **
  14  Prefactor     .10000E-03    34.290        .54779E-06** at limit **
  15  norm          8.9198        15.243        .55672E-06    .22476E-05
  16  Prefactor     24.875        30.516       -.71796E-06   -.91650E-04
  17  Prefactor     9.5150        17.804        .18083E-06   -.11508E-04
  18  Prefactor     11.083        17.778       -.67712E-08   -.77606E-05
  19  Prefactor     .10000E-03    38.050       -.15802E-05** at limit **
  20  Prefactor     .10000E-03    21.523        .80263E-07** at limit **
  21  Normalizat    .84342        .21720       -.23259E-06   -.73063E-04
  22  Prefactor     1.1301        .15072       -.48915E-06   -.70533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.978
  Prefactor  = 17.7943
  Prefactor  = 0.0001
  Prefactor  = 15.7773
  Prefactor  = 3.09141
  Prefactor  = 4.37838
  Prefactor  = 0.0001
  Prefactor  = 12.8332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.23768
  Prefactor  = 1.09128
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.91982
  Prefactor  = 24.8752
  Prefactor  = 9.51502
  Prefactor  = 11.0827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.843422
  Prefactor  = 1.1301
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.771     FROM HESSE     STATUS=OK           346 CALLS     2676 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.978        47.928        .73173E-04   -1.4612    
   2  Prefactor     17.794        6.0383        .94947E-04   -1.4864    
   3  Prefactor     .10000E-03    2.6790        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.777        17.837        .10084E-03   -1.4913    
   5  Prefactor     3.0914        14.817        .23061E-03   -1.5356    
   6  Prefactor     4.3784        14.027        .19247E-03   -1.5289    
   7  Prefactor     .10000E-03    19.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.833        24.406        .11174E-03   -1.4991    
   9  norm          .10000E-03    8.8091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2377        3.2504        .10318E-03   -1.5208    
  12  Prefactor     1.0913        6.2222        .38740E-03   -1.5499    
  13  norm          .10000E-03    1.1532        .85500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9198        15.209        .13428E-03   -1.5111    
  16  Prefactor     24.875        30.652        .80284E-04   -1.4710    
  17  Prefactor     9.5150        17.799        .12990E-03   -1.5091    
  18  Prefactor     11.083        17.755        .12033E-03   -1.5042    
  19  Prefactor     .10000E-03    38.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84342        .25596        .31790E-03   -.98478    
  22  Prefactor     1.1301        .17796        .20461E-03   -.88510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86249e-11
Minuit parameter uncertainties:
  1  47.9899
  2  6.03851
  3  1.68813e-06
  4  17.8435
  5  13.5412
  6  14.0373
  7  7.09035e-05
  8  24.425
  9  2.28065e-06
  10  7.38595e-05
  11  3.25045
  12  5.21216
  13  3.63039e-07
  14  8.50102e-05
  15  15.2158
  16  30.6718
  17  17.8094
  18  17.7637
  19  4.17204e-05
  20  6.8502e-05
  21  0.256328
  22  0.178054
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  7.090e-05  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.130e+00  1.781e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  8.434e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278170/likelihoodResults_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.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): 102
logL (Free Index) = 6725.77172369
delta logL = -0.000247793883318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6725.771477
delta logL = -1.09829306894e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1265       1.0000          .0000       10.000    
     3 'Normalizat'    .84341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6725.771     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      281 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10929E-03    5.6822        .18142E-01** at limit **
   2  Index         2.6827        8.5190        .50000        .59632E-05
   3  Normalizat    .84342        .28090E-02    .31790E-03    .20635E-04
   4  Prefactor     1.1301        .20757E-02    .20461E-03    .21614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109289
  Index      = 2.68274
  Normalizat = 0.843423
  Prefactor  = 1.1301
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.771     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10929E-03    244.54        .33248E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6827        5.8217        .50000       -.48189    
   3  Normalizat    .84342        .18538E-01    .12716E-04   -.98478    
   4  Prefactor     1.1301        .13699E-01    .81844E-05   -.88510    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.89946e-07
Minuit parameter uncertainties:
  1  0.095713
  2  1399.65
  3  0.0185383
  4  0.0136988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278170': 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): 102
logL (Free Index) = 6725.77147639
delta logL = -4.93852894579e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.093e-04  9.571e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.683e+00  1.400e+03  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.130e+00  1.370e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  8.434e-01  1.854e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.029 13.347

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/278170/cmap_HighResolution_310608001_310867201_4FGL_J1416.1+1320_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-09 06:20:19.727576', job_id='278170', GAL2='1.13', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631193619.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-4.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='275' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 278170: <4FGL_J1416.1+1320_daily_bin275> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin275> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:36 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:06:38 2021
Terminated at Thu Sep  9 06:20:21 2021
Results reported at Thu Sep  9 06:20:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin275 214.029 13.347 310608001 310867201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

