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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin668
RA = 214.029, Dec = 13.347
tmin = 412473601, tmax = 412732801
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='282175', job_status='RUN', time_executed='2021-09-09 06:17:17.334295', time_epoch_executed='1631193437.33' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282175/ft1_4FGL_J1416.1+1320_daily_bin668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282175/ft1_4FGL_J1416.1+1320_daily_bin668.fits outfile=/scratch/kocevski/282175/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin668.fits ra=214.029 dec=13.347 rad=12.0 tmin=412473601.0 tmax=412732801.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.30
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.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/282175/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/282175/ft1_filtered_4FGL_J1416.1+1320_daily_bin668.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 1.37
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282175/ft1_filtered_4FGL_J1416.1+1320_daily_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/282175/ltcube_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.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/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits
.....................!
real 12.65
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282175/ft1_filtered_4FGL_J1416.1+1320_daily_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/282175/ltcube_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.fits outfile=/scratch/kocevski/282175/expmap_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.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/282175/ltcube_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.fits
.....................!
real 197.16
user 185.13
sys 4.85

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/282175/ft1_filtered_4FGL_J1416.1+1320_daily_bin668.fits scfile=/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits outfile=/scratch/kocevski/282175/cmap_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.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.81
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282175/ft1_filtered_4FGL_J1416.1+1320_daily_bin668.fits scfile=/scratch/kocevski/282175/ft2_4FGL_J1416.1+1320_daily_bin668.fits outfile=/scratch/kocevski/282175/cmap_HighResolution_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.805       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4903       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12253E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.243       1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.606       1.0000         .10000E-03   10000.    
     9 'norm      '    .12214E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1047       1.0000         .10000E-03   10000.    
    13 'norm      '    9.7784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31433E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51130E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.432       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70814       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0780       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=   3135.767     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2397 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.230        140.84        .22030E-05    .10086E-04
   2  Prefactor     4.5035        12.750       -.89468E-06   -.47522E-04
   3  Prefactor     .10000E-03    6.0864       -.18449E-05** at limit **
   4  Prefactor     .10000E-03    22.716       -.75121E-06** at limit **
   5  Prefactor     15.452        19.756        .56245E-06   -.86304E-04
   6  Prefactor     .10000E-03    77.091        .17622E-07** at limit **
   7  Prefactor     25.195        44.636        .25526E-06   -.27391E-04
   8  Prefactor     68.580        90.240       -.56104E-06   -.76393E-05
   9  norm          .10000E-03    52.250        .42358E-06** at limit **
  10  Prefactor     .10000E-03    12.740        .81055E-06** at limit **
  11  norm          6.9243        3.2758        .44982E-07   -.76941E-04
  12  Prefactor     5.1245        13.141       -.58341E-06   -.12736E-03
  13  norm          9.7755        5.2067       -.19100E-06   -.36282E-03
  14  Prefactor     .10000E-03    135.03        .21591E-05** at limit **
  15  norm          .10000E-03    61.504        .14671E-05** at limit **
  16  Prefactor     .10000E-03    404.02        .21294E-04** at limit **
  17  Prefactor     .10000E-03    29.873        .64331E-06** at limit **
  18  Prefactor     .10000E-03    28.251        .16426E-05** at limit **
  19  Prefactor     11.172        38.000       -.65547E-05   -.99512E-04
  20  Prefactor     38.367        62.987       -.51054E-06   -.40300E-04
  21  Normalizat    .70880        .35579       -.12203E-04   -.43643E-04
  22  Prefactor     1.0773        .24714        .56505E-05   -.36318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2301
  Prefactor  = 4.50352
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.4519
  Prefactor  = 0.0001
  Prefactor  = 25.1946
  Prefactor  = 68.5798
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.92431
  Prefactor  = 5.12451
  norm       = 9.77549
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1722
  Prefactor  = 38.3671
  Normalizat = 0.708804
  Prefactor  = 1.07731
 **********
 **   18 **HESSE 
 **********

 FCN=   3135.767     FROM HESSE     STATUS=OK           342 CALLS     2739 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.230        139.44        .45000E-03   -1.4808    
   2  Prefactor     4.5035        12.723        .19001E-03   -1.5284    
   3  Prefactor     .10000E-03    6.2716        .13655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.452        19.840        .10190E-03   -1.4922    
   6  Prefactor     .10000E-03    77.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.195        44.623        .79731E-04   -1.4704    
   8  Prefactor     68.580        90.292        .48460E-04   -1.4050    
   9  norm          .10000E-03    52.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9243        3.2770        .66915E-04   -1.5182    
  12  Prefactor     5.1245        13.039        .17795E-03   -1.5255    
  13  norm          9.7755        5.2006        .85257E-04   -1.5083    
  14  Prefactor     .10000E-03    135.61        .21370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    61.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    391.26        .68113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.172        37.912        .11965E-03   -1.5039    
  20  Prefactor     38.367        62.930        .64653E-04   -1.4468    
  21  Normalizat    .70880        .36470        .34384E-03   -1.0355    
  22  Prefactor     1.0773        .25673        .20615E-03   -.90195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08055e-09
Minuit parameter uncertainties:
  1  106.581
  2  12.7309
  3  0.000203695
  4  0.000140255
  5  19.8484
  6  5.3216e-05
  7  44.6824
  8  90.4731
  9  8.46506e-05
  10  7.43065e-05
  11  3.27712
  12  13.0461
  13  5.20082
  14  0.000628285
  15  0.0003829
  16  0.00105464
  17  0.000154489
  18  0.00013622
  19  37.9943
  20  63.0389
  21  0.365953
  22  0.257025
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.519e+01  4.468e+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:  1.077e+00  2.570e-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:  7.088e-01  3.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282175/likelihoodResults_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.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) = 3135.68862828
delta logL = 0.0779713708885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3135.68131794
delta logL = 0.0852817142554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.515       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2219       1.0000          .0000       10.000    
     3 'Normalizat'    .68245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0908       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=   3135.681     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      315 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.513        48.953        .11805E-03    .93074E-04
   2  Index         3.2222        2.5150        .84037E-02    .29543E-04
   3  Normalizat    .68179        .35134        .35008E-03   -.94402E-04
   4  Prefactor     1.0913        .25374        .20496E-03   -.15971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5135
  Index      = 3.22217
  Normalizat = 0.681786
  Prefactor  = 1.09133
 **********
 **   18 **HESSE 
 **********

 FCN=   3135.681     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.513        33.608        .47222E-05   -1.5029    
   2  Index         3.2222        1.8280        .33615E-03   -.36352    
   3  Normalizat    .68179        .35019        .14003E-04   -1.0462    
   4  Prefactor     1.0913        .25287        .40991E-04   -.89744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62031e-11
Minuit parameter uncertainties:
  1  33.6631
  2  1.87814
  3  0.351341
  4  0.253143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282175': 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) = 3135.68131604
delta logL = 0.0852836157737

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.151e+01  3.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.222e+00  1.878e+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:  1.091e+00  2.531e-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:  6.818e-01  3.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/282175/cmap_HighResolution_412473601_412732801_4FGL_J1416.1+1320_daily_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2021-09-09 06:24:39.755744', job_id='282175', GAL2='1.09', fit_tolerance='1e-08', EG2='0.68', EG='0.71', time_epoch_completed='1631193879.76', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.53e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='668' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:24:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 282175: <4FGL_J1416.1+1320_daily_bin668> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin668> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:05 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:07 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:17:07 2021
Terminated at Thu Sep  9 06:24:40 2021
Results reported at Thu Sep  9 06:24:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin668 214.029 13.347 412473601 412732801 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 :                                   426.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             353.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   453 sec.
    Turnaround time :                            455 sec.

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

