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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin484
RA = 214.029, Dec = 13.347
tmin = 364780801, tmax = 365040001
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='280707', job_status='RUN', time_executed='2021-09-09 06:14:53.532283', time_epoch_executed='1631193293.53' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280707/ft1_4FGL_J1416.1+1320_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280707/ft1_4FGL_J1416.1+1320_daily_bin484.fits outfile=/scratch/kocevski/280707/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin484.fits ra=214.029 dec=13.347 rad=12.0 tmin=364780801.0 tmax=365040001.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.49
user 3.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.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/280707/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin484.fits evtable="EVENTS" outfile="/scratch/kocevski/280707/ft1_filtered_4FGL_J1416.1+1320_daily_bin484.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280707/ft1_filtered_4FGL_J1416.1+1320_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/280707/ltcube_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.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/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits
.....................!
real 11.97
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280707/ft1_filtered_4FGL_J1416.1+1320_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/280707/ltcube_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.fits outfile=/scratch/kocevski/280707/expmap_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.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/280707/ltcube_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.fits
.....................!
real 190.19
user 185.52
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 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/280707/ft1_filtered_4FGL_J1416.1+1320_daily_bin484.fits scfile=/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits outfile=/scratch/kocevski/280707/cmap_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.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 1.23
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280707/ft1_filtered_4FGL_J1416.1+1320_daily_bin484.fits scfile=/scratch/kocevski/280707/ft2_4FGL_J1416.1+1320_daily_bin484.fits outfile=/scratch/kocevski/280707/cmap_HighResolution_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.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.08
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.418       1.0000         .10000E-03   10000.    
     9 'norm      '    .26828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8277       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.325       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1402       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88661       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=   6346.636     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2363 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3981        29.420       -.22081E-04   -.12676E-04
   2  Prefactor     4.3053        4.2447       -.11575E-05   -.31928E-03
   3  Prefactor     8.8923        5.1560        .89695E-06   -.12939E-04
   4  Prefactor     .10000E-03    10.244       -.47535E-06** at limit **
   5  Prefactor     .10000E-03    3.8302        .46507E-07** at limit **
   6  Prefactor     9.4796        28.378        .12969E-04   -.83647E-05
   7  Prefactor     10.288        27.554        .21367E-04   -.19865E-04
   8  Prefactor     36.508        34.743       -.45169E-05    .12544E-04
   9  norm          .14493        21.365       -.94848E-06    .25018E-03
  10  Prefactor     .10000E-03    2.4077       -.55350E-07** at limit **
  11  norm          11.193        3.5232        .88820E-07    .12366E-06
  12  Prefactor     9.8330        7.2324       -.55794E-06   -.25995E-03
  13  norm          3.9748        2.9203        .99552E-07   -.26608E-03
  14  Prefactor     .10000E-03    14.349        .56224E-06** at limit **
  15  norm          .10000E-03    8.5015        .57371E-06** at limit **
  16  Prefactor     .10000E-03    7.5124       -.35731E-06** at limit **
  17  Prefactor     39.883        21.590       -.18719E-05   -.43697E-04
  18  Prefactor     4.7334        17.610        .36884E-04   -.17916E-04
  19  Prefactor     55.331        30.396       -.85470E-05   -.16932E-03
  20  Prefactor     .10000E-03    30.498       -.79532E-06** at limit **
  21  Normalizat    1.1402        .21132       -.31823E-05   -.22932E-04
  22  Prefactor     .88666        .15209       -.18649E-07   -.22381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.39812
  Prefactor  = 4.30531
  Prefactor  = 8.89228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4796
  Prefactor  = 10.2878
  Prefactor  = 36.5079
  norm       = 0.144926
  Prefactor  = 0.0001
  norm       = 11.1928
  Prefactor  = 9.83297
  norm       = 3.97479
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8829
  Prefactor  = 4.7334
  Prefactor  = 55.3308
  Prefactor  = 0.0001
  Normalizat = 1.14017
  Prefactor  = 0.886657
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.636     FROM HESSE     STATUS=OK           352 CALLS     2715 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3981        29.435        .13077E-03   -1.5095    
   2  Prefactor     4.3053        4.2478        .15633E-03   -1.5293    
   3  Prefactor     8.8923        5.1566        .13300E-03   -1.5111    
   4  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8412        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4796        28.358        .13012E-03   -1.5092    
   7  Prefactor     10.288        27.539        .12488E-03   -1.5066    
   8  Prefactor     36.508        34.905        .66411E-04   -1.4499    
   9  norm          .14493        25.780        .11151       -1.5632    
  10  Prefactor     .10000E-03    2.4103        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.193        3.5250        .81337E-04   -1.5039    
  12  Prefactor     9.8330        7.2557        .12782E-03   -1.5081    
  13  norm          3.9748        2.9155        .11148E-03   -1.5309    
  14  Prefactor     .10000E-03    14.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.5147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.883        21.596        .63470E-04   -1.4444    
  18  Prefactor     4.7334        17.513        .18479E-03   -1.5273    
  19  Prefactor     55.331        30.381        .53929E-04   -1.4219    
  20  Prefactor     .10000E-03    30.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1402        .25687        .27397E-03   -.88472    
  22  Prefactor     .88666        .18436        .22750E-03   -.96609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69609e-09
Minuit parameter uncertainties:
  1  29.4805
  2  4.2481
  3  5.15689
  4  2.97986e-05
  5  9.77923e-06
  6  28.3983
  7  27.5733
  8  34.9242
  9  3.8662
  10  1.46778e-05
  11  3.5251
  12  7.25633
  13  2.91556
  14  2.31729e-05
  15  1.70204e-05
  16  1.61903e-05
  17  21.5998
  18  17.532
  19  30.3891
  20  0.000172333
  21  0.257154
  22  0.184489
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.029e+01  2.757e+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.867e-01  1.845e-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.140e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280707/likelihoodResults_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.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) = 6346.512848
delta logL = 0.122932332599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6346.49255397
delta logL = 0.143226357348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3669       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1948       1.0000          .0000       10.000    
     3 'Normalizat'    1.1162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89701       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=   6346.493     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3208        275.37        .39768E-02    .13722E-03
   2  Index         3.1999        3.8443        .21695        .72758E-04
   3  Normalizat    1.1163        .48160E-01    .62515E-01    .14257E-04
   4  Prefactor     .89701        .34814E-01    .44967E-01    .93440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32075
  Index      = 3.19988
  Normalizat = 1.11635
  Prefactor  = 0.897012
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.493     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3208        39.077        .15907E-03   -1.5205    
   2  Index         3.1999        2.6894        .88347E-02   -.36829    
   3  Normalizat    1.1163        .25356        .27652E-03   -.89229    
   4  Prefactor     .89701        .18611        .22630E-03   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91848e-11
Minuit parameter uncertainties:
  1  31.4626
  2  2.86648
  3  0.253837
  4  0.186246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280707': 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) = 6346.49254883
delta logL = 0.143231501779

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.321e+00  3.146e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.200e+00  2.866e+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.970e-01  1.862e-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.116e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/280707/cmap_HighResolution_364780801_365040001_4FGL_J1416.1+1320_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-09 06:24:30.434822', job_id='280707', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.14', time_epoch_completed='1631193870.43', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.43e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='484' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 280707: <4FGL_J1416.1+1320_daily_bin484> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin484> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:11:56 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:11:58 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:11:58 2021
Terminated at Thu Sep  9 06:24:31 2021
Results reported at Thu Sep  9 06:24:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin484 214.029 13.347 364780801 365040001 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 :                                   562.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            755 sec.

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

