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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin554
RA = 214.029, Dec = 13.347
tmin = 382924801, tmax = 383184001
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='280799', job_status='RUN', time_executed='2021-09-09 06:13:31.851726', time_epoch_executed='1631193211.85' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280799

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280799/ft1_4FGL_J1416.1+1320_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280799/ft1_4FGL_J1416.1+1320_daily_bin554.fits outfile=/scratch/kocevski/280799/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin554.fits ra=214.029 dec=13.347 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.55
user 4.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.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/280799/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.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.51
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/280799/ltcube_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits outfile=/scratch/kocevski/280799/expmap_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.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/280799/ltcube_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits
.....................!
real 191.29
user 185.76
sys 4.82

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/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.fits scfile=/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits outfile=/scratch/kocevski/280799/cmap_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.fits scfile=/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits outfile=/scratch/kocevski/280799/cmap_HighResolution_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.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 1.13
user 0.38
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.fits', '/scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits', expMap='/scratch/kocevski/280799/expmap_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits', expCube='/scratch/kocevski/280799/ltcube_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/280799/Model_4FGL_J1416.1+1320_daily_bin554.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/280799/ft1_filtered_4FGL_J1416.1+1320_daily_bin554.fits
Spacecraft file(s): /scratch/kocevski/280799/ft2_4FGL_J1416.1+1320_daily_bin554.fits
Exposure map: /scratch/kocevski/280799/expmap_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits
Exposure cube: /scratch/kocevski/280799/ltcube_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/280799/Model_4FGL_J1416.1+1320_daily_bin554.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) = 6267.53481549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    53.831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4284       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71898       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22391E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    25.244       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2615       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85909       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=   6267.521     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2421 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.271       -.71495E-06** at limit **
   2  Prefactor     2.3607        3.2850       -.14030E-06   -.30196E-05
   3  Prefactor     1.6521        4.2792       -.37847E-06   -.34068E-04
   4  Prefactor     .58832        53.046       -.80770E-05   -.39284E-04
   5  Prefactor     6.6691        13.645        .11307E-06   -.21803E-04
   6  Prefactor     11.290        28.927       -.74464E-06    .12997E-04
   7  Prefactor     6.1500        23.391       -.14522E-07    .14948E-04
   8  Prefactor     .10000E-03    26.804       -.96842E-06** at limit **
   9  norm          53.837        28.947        .39058E-06    .10875E-05
  10  Prefactor     4.4314        7.3511       -.12809E-05    .35205E-04
  11  norm          2.4185        1.9771        .80750E-08   -.15073E-04
  12  Prefactor     .71795        8.0644       -.11231E-05    .53808E-04
  13  norm          2.2878        2.3833       -.14480E-06   -.50426E-04
  14  Prefactor     .10000E-03    129.64       -.26696E-05** at limit **
  15  norm          25.231        19.604        .11300E-05    .16930E-03
  16  Prefactor     .10000E-03    17.610        .16719E-05** at limit **
  17  Prefactor     13.883        17.531       -.25014E-06    .73830E-05
  18  Prefactor     .10012E-03    10.726        .27752E-05** at limit **
  19  Prefactor     11.906        26.238       -.12574E-05   -.69489E-04
  20  Prefactor     .10000E-03    16.229       -.80244E-06** at limit **
  21  Normalizat    1.2612        .20770        .39098E-06   -.84137E-04
  22  Prefactor     .85927        .14650       -.26088E-07   -.56587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.36069
  Prefactor  = 1.65214
  Prefactor  = 0.588315
  Prefactor  = 6.66905
  Prefactor  = 11.2903
  Prefactor  = 6.15004
  Prefactor  = 0.0001
  norm       = 53.8366
  Prefactor  = 4.43141
  norm       = 2.41852
  Prefactor  = 0.717948
  norm       = 2.28783
  Prefactor  = 0.000100001
  norm       = 25.2314
  Prefactor  = 0.0001
  Prefactor  = 13.8825
  Prefactor  = 0.000100119
  Prefactor  = 11.9063
  Prefactor  = 0.0001
  Normalizat = 1.26118
  Prefactor  = 0.859268
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.521     FROM HESSE     STATUS=OK           362 CALLS     2783 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3607        3.2707        .16307E-03   -1.5401    
   3  Prefactor     1.6521        4.2487        .25284E-03   -1.5451    
   4  Prefactor     .58832        54.786        .40370E-02   -1.5555    
   5  Prefactor     6.6691        13.736        .15538E-03   -1.5191    
   6  Prefactor     11.290        28.982        .11918E-03   -1.5036    
   7  Prefactor     6.1500        23.339        .16188E-03   -1.5212    
   8  Prefactor     .10000E-03    26.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          53.837        28.958        .54668E-04   -1.4239    
  10  Prefactor     4.4314        7.3004        .19136E-03   -1.5287    
  11  norm          2.4185        1.9793        .97781E-04   -1.5397    
  12  Prefactor     .71795        8.1245        .41604E-03   -1.5539    
  13  norm          2.2878        2.3672        .11952E-03   -1.5405    
  14  Prefactor     .10000E-03    132.21        .40250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.231        19.624        .79729E-04   -1.4703    
  16  Prefactor     .10000E-03    17.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.883        17.527        .10751E-03   -1.4963    
  18  Prefactor     .10012E-03    9.6205        .73111E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.906        26.268        .11603E-03   -1.5018    
  20  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2612        .25087        .25577E-03   -.84733    
  22  Prefactor     .85927        .17676        .22406E-03   -.97579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96913e-08
Minuit parameter uncertainties:
  1  5.9343e-05
  2  3.2709
  3  4.24951
  4  11.3643
  5  13.7428
  6  29.0179
  7  23.3731
  8  6.11615e-05
  9  28.9657
  10  7.3019
  11  1.97937
  12  4.83078
  13  2.36727
  14  0.00052695
  15  19.6292
  16  4.19206e-05
  17  17.5339
  18  0.00213861
  19  26.2939
  20  5.9998e-05
  21  0.251111
  22  0.176876
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.150e+00  2.337e+01  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:  8.593e-01  1.769e-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:  1.261e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/280799/likelihoodResults_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.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) = 6267.52114726
delta logL = 6.63258470013e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.52114383
delta logL = 1.00659108284e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1500       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3800       1.0000          .0000       10.000    
     3 'Normalizat'    1.2612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85923       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.

 FCN=   6267.521     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      214 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0842        380.34        .40471E-02    .14504E-03
   2  Index         2.3918        2.0736        .50000        .32935E-04
   3  Normalizat    1.2610        .21823E-01    .57840E-01    .27117E-03
   4  Prefactor     .85938        .16038E-01    .44483E-01    .25715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08422
  Index      = 2.3918
  Normalizat = 1.26095
  Prefactor  = 0.859385
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.521     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0842        28.678        .16189E-03   -1.5215    
   2  Index         2.3918        2.9830        .90649E-02   -.54877    
   3  Normalizat    1.2610        .23879        .25579E-03   -.84740    
   4  Prefactor     .85938        .17581        .22404E-03   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19684e-10
Minuit parameter uncertainties:
  1  26.439
  2  3.30336
  3  0.238997
  4  0.175924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280799': 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) = 6267.52113624
delta logL = 1.7653111172e-05

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.084e+00  2.644e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.392e+00  3.303e+00  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:  8.594e-01  1.759e-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:  1.261e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/280799/cmap_HighResolution_382924801_383184001_4FGL_J1416.1+1320_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2021-09-09 06:23:15.463057', job_id='280799', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631193795.46', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.77e-05', ts2='0.08', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='554' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:23:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 280799: <4FGL_J1416.1+1320_daily_bin554> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin554> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:12:05 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:12:06 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:12:06 2021
Terminated at Thu Sep  9 06:23:16 2021
Results reported at Thu Sep  9 06:23:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin554 214.029 13.347 382924801 383184001 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            671 sec.

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

