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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin981
RA = 214.029, Dec = 13.347
tmin = 493603201, tmax = 493862401
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='283649', job_status='RUN', time_executed='2021-09-09 06:23:58.652834', time_epoch_executed='1631193838.65' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283649

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283649/ft1_4FGL_J1416.1+1320_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283649/ft2_4FGL_J1416.1+1320_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283649/ft1_4FGL_J1416.1+1320_daily_bin981.fits outfile=/scratch/kocevski/283649/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin981.fits ra=214.029 dec=13.347 rad=12.0 tmin=493603201.0 tmax=493862401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.11
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283649/ft1_filtered_4FGL_J1416.1+1320_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/283649/ft2_4FGL_J1416.1+1320_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/283649/ltcube_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.fits outfile=/scratch/kocevski/283649/expmap_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.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/283649/ltcube_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.fits
.....................!
real 198.35
user 185.74
sys 4.68

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/283649/ft1_filtered_4FGL_J1416.1+1320_daily_bin981.fits scfile=/scratch/kocevski/283649/ft2_4FGL_J1416.1+1320_daily_bin981.fits outfile=/scratch/kocevski/283649/cmap_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.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.99
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283649/ft1_filtered_4FGL_J1416.1+1320_daily_bin981.fits scfile=/scratch/kocevski/283649/ft2_4FGL_J1416.1+1320_daily_bin981.fits outfile=/scratch/kocevski/283649/cmap_HighResolution_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.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.92
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    33.377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.4429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1463       1.0000         .10000E-03   10000.    
    13 'norm      '    10.835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.798       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.510       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.929       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0356       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6283.302     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     1979 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.961        2.4461       -.14824E-06    .48917E-02
   2  Prefactor     8.0657        4.7089        .13210E-05    .12877E-02
   3  Prefactor     .10000E-03    2.2423        .24958E-06** at limit **
   4  Prefactor     .10000E-03    20.115        .15919E-06** at limit **
   5  Prefactor     .10000E-03    4.8941       -.17510E-07** at limit **
   6  Prefactor     .10006E-03    820.46       -.19827E-04** at limit **
   7  Prefactor     57.362        1.1192       -.36026E-07    .13768E-02
   8  Prefactor     .10000E-03    13.258        .35127E-06** at limit **
   9  norm          33.364        1.4165       -.39910E-08   -.32262E-02
  10  Prefactor     .10000E-03    4.9132        .20553E-05** at limit **
  11  norm          8.4423        3.3325        .18057E-06    .75450E-04
  12  Prefactor     2.1461        1.8814       -.60582E-06    .64498E-03
  13  norm          10.834        3.9448        .78680E-06   -.27159E-03
  14  Prefactor     23.797        1.0115       -.21227E-07    .53269E-03
  15  norm          .10000E-03    4.9443       -.14088E-05** at limit **
  16  Prefactor     .10000E-03    14.970        .53213E-05** at limit **
  17  Prefactor     .10000E-03    31.142       -.11634E-04** at limit **
  18  Prefactor     7.9908        1.1033        .29556E-07   -.11527E-02
  19  Prefactor     16.507        1.0355        .23734E-07   -.10945E-02
  20  Prefactor     55.923        1.1223       -.33225E-07    .12632E-02
  21  Normalizat    1.0356        .24414        .28281E-05   -.68048E-04
  22  Prefactor     .97100        .18203       -.68601E-05   -.11502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9615
  Prefactor  = 8.06571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 57.3625
  Prefactor  = 0.0001
  norm       = 33.3644
  Prefactor  = 0.000100001
  norm       = 8.44227
  Prefactor  = 2.14609
  norm       = 10.8343
  Prefactor  = 23.7971
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99079
  Prefactor  = 16.5071
  Prefactor  = 55.9227
  Normalizat = 1.0356
  Prefactor  = 0.970997
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.302     FROM HESSE     STATUS=OK           394 CALLS     2373 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.961        64.392        .14041E-02   -1.4279    
   2  Prefactor     8.0657        5.7998        .35290E-02   -1.5140    
   3  Prefactor     .10000E-03    2.2286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    11.711        .15243       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.362        35.816        .13241E-02   -1.4192    
   8  Prefactor     .10000E-03    13.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          33.364        31.615        .17340E-02   -1.4552    
  10  Prefactor     .10000E-03    7.3681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.4423        3.3380        .34491E-02   -1.5127    
  12  Prefactor     2.1461        7.5393        .70322E-02   -1.5415    
  13  norm          10.834        4.0213        .30428E-02   -1.5050    
  14  Prefactor     23.797        24.538        .20528E-02   -1.4732    
  15  norm          .10000E-03    7.5017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9908        18.128        .35449E-02   -1.5143    
  19  Prefactor     16.507        18.191        .24643E-02   -1.4895    
  20  Prefactor     55.923        49.162        .13410E-02   -1.4211    
  21  Normalizat    1.0356        .21038        .66094E-01   -.91847    
  22  Prefactor     .97100        .15406        .45902E-01   -.93703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50868e-07
Minuit parameter uncertainties:
  1  64.48
  2  5.80018
  3  4.08552e-07
  4  9.50443e-05
  5  2.8855e-06
  6  0.00166249
  7  35.8297
  8  2.90732e-05
  9  31.6309
  10  0.000177396
  11  3.33805
  12  7.54268
  13  4.02138
  14  24.5484
  15  0.000174584
  16  1.04281e-06
  17  0.000223942
  18  18.1409
  19  18.1971
  20  49.1976
  21  0.210544
  22  0.154125
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.736e+01  3.583e+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:  9.710e-01  1.541e-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.036e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.73
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.50e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.59e-05

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) = 6282.89250073
delta logL = 0.409444008639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.88169591
delta logL = 0.420248836535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.828       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8784       1.0000          .0000       10.000    
     3 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95594       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=   6282.882     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      228 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 31.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.825        37.183       -.33167E-05    .64252E-03
   2  Index         1.8784        .33888        .42635E-05    .50963E-03
   3  Normalizat    1.0746        .20428       -.32567E-06   -.15533E-03
   4  Prefactor     .95577        .15135        .27543E-06   -.15331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.8253
  Index      = 1.87839
  Normalizat = 1.07461
  Prefactor  = 0.955771
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.882     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.825        43.669        .51446E-04   -1.4147    
   2  Index         1.8784        .50783        .79522E-02   -.67426    
   3  Normalizat    1.0746        .24458        .28763E-03   -.90571    
   4  Prefactor     .95577        .18122        .22458E-03   -.94219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23313e-09
Minuit parameter uncertainties:
  1  43.6921
  2  0.509268
  3  0.244841
  4  0.181338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283649': 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) = 6282.88169544
delta logL = 0.420249301137

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.083e+01  4.369e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.878e+00  5.093e-01  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:  9.558e-01  1.813e-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.075e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.88 +/- 0.51
Photon Flux (Free Index): 4.20e-08 +/- 4.26e-08
Energy Flux (Free Index): 4.00e-05 +/- 3.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/283649/cmap_HighResolution_493603201_493862401_4FGL_J1416.1+1320_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.50e-08', energy_flux2='4.00e-05', photon_flux_error='4.68e-08', dlogl='4.20e-01', energy_flux='2.55e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-09 06:32:37.071960', photon_index_error2='0.51', photon_index2='1.88', ts='8.73', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='1.04', time_epoch_completed='1631194357.07', return_code='0', job_id='283649', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.26e-08', ts2='9.55', photon_index='2.37' WHERE bin_id='981' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:32:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 283649: <4FGL_J1416.1+1320_daily_bin981> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin981> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:21 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:22 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:21:22 2021
Terminated at Thu Sep  9 06:32:37 2021
Results reported at Thu Sep  9 06:32:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin981 214.029 13.347 493603201 493862401 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 :                                   492.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            676 sec.

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

