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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin499
RA = 214.029, Dec = 13.347
tmin = 368668801, tmax = 368928001
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='280729', job_status='RUN', time_executed='2021-09-09 06:15:45.769517', time_epoch_executed='1631193345.77' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280729/ft1_4FGL_J1416.1+1320_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280729/ft1_4FGL_J1416.1+1320_daily_bin499.fits outfile=/scratch/kocevski/280729/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin499.fits ra=214.029 dec=13.347 rad=12.0 tmin=368668801.0 tmax=368928001.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.25
user 3.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280729/ft1_filtered_4FGL_J1416.1+1320_daily_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/280729/ltcube_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.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/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits
.....................!
real 13.02
user 11.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280729/ft1_filtered_4FGL_J1416.1+1320_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/280729/ltcube_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.fits outfile=/scratch/kocevski/280729/expmap_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.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/280729/ltcube_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.fits
.....................!
real 194.45
user 184.98
sys 6.22

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/280729/ft1_filtered_4FGL_J1416.1+1320_daily_bin499.fits scfile=/scratch/kocevski/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits outfile=/scratch/kocevski/280729/cmap_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.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.22
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280729/ft1_filtered_4FGL_J1416.1+1320_daily_bin499.fits scfile=/scratch/kocevski/280729/ft2_4FGL_J1416.1+1320_daily_bin499.fits outfile=/scratch/kocevski/280729/cmap_HighResolution_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.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 2.74
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.178       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.710       1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.709       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4631       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3116       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2928       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2990       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4446       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61665       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=   5905.160     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2372 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.183        44.766        .44352E-05    .46833E-05
   2  Prefactor     .51602        2.4520       -.55408E-06   -.23033E-03
   3  Prefactor     .10000E-03    3.9999        .15084E-06** at limit **
   4  Prefactor     6.1550        7.5965       -.12434E-07   -.30717E-04
   5  Prefactor     15.234        12.168       -.56409E-06   -.39345E-04
   6  Prefactor     .10000E-03    9.2305        .11177E-05** at limit **
   7  Prefactor     11.710        16.135       -.46147E-06   -.57491E-05
   8  Prefactor     87.713        38.829        .26974E-05    .77627E-06
   9  norm          7.4623        16.249       -.13236E-05   -.28514E-04
  10  Prefactor     5.3103        5.2756       -.81923E-07   -.71878E-04
  11  norm          6.5571        3.0567        .15098E-07   -.43743E-04
  12  Prefactor     .10000E-03    5.2937       -.44978E-07** at limit **
  13  norm          3.2922        2.7153       -.91267E-07   -.29351E-03
  14  Prefactor     .10000E-03    14.208        .58952E-05** at limit **
  15  norm          3.4619        11.439       -.15888E-05   -.14278E-03
  16  Prefactor     .10000E-03    7.8737       -.78178E-06** at limit **
  17  Prefactor     18.931        18.042       -.66179E-06   -.98615E-05
  18  Prefactor     .10000E-03    5.9006        .35406E-06** at limit **
  19  Prefactor     2.2704        30.880       -.35205E-05   -.76758E-04
  20  Prefactor     .10000E-03    13.353       -.64745E-05** at limit **
  21  Normalizat    1.4444        .21177       -.12256E-06    .97154E-04
  22  Prefactor     .61683        .14917        .38070E-06    .16450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.1828
  Prefactor  = 0.516019
  Prefactor  = 0.000100001
  Prefactor  = 6.15503
  Prefactor  = 15.2339
  Prefactor  = 0.0001
  Prefactor  = 11.7103
  Prefactor  = 87.7135
  norm       = 7.46234
  Prefactor  = 5.31031
  norm       = 6.55714
  Prefactor  = 0.0001
  norm       = 3.29222
  Prefactor  = 0.0001
  norm       = 3.46193
  Prefactor  = 0.0001
  Prefactor  = 18.9305
  Prefactor  = 0.0001
  Prefactor  = 2.2704
  Prefactor  = 0.0001
  Normalizat = 1.44436
  Prefactor  = 0.616826
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.160     FROM HESSE     STATUS=OK           348 CALLS     2720 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.183        44.576        .53053E-04   -1.4194    
   2  Prefactor     .51602        8.8795        .22741E-02   -1.5564    
   3  Prefactor     .10000E-03    9.2485        .29512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1550        7.5941        .16183E-03   -1.5212    
   5  Prefactor     15.234        12.287        .10262E-03   -1.4927    
   6  Prefactor     .10000E-03    9.2317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.710        16.142        .11706E-03   -1.5023    
   8  Prefactor     87.713        38.802        .42900E-04   -1.3832    
   9  norm          7.4623        16.259        .14681E-03   -1.5162    
  10  Prefactor     5.3103        5.2729        .17025E-03   -1.5247    
  11  norm          6.5571        3.0558        .88864E-04   -1.5196    
  12  Prefactor     .10000E-03    5.4300        .34479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2922        2.7125        .11048E-03   -1.5345    
  14  Prefactor     .10000E-03    14.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4619        11.530        .21736E-03   -1.5336    
  16  Prefactor     .10000E-03    7.8801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.931        18.046        .92050E-04   -1.4838    
  18  Prefactor     .10000E-03    5.9155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2704        31.590        .27066E-03   -1.5407    
  20  Prefactor     .10000E-03    13.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4444        .25589        .23616E-03   -.79354    
  22  Prefactor     .61683        .17775        .25094E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67558e-10
Minuit parameter uncertainties:
  1  44.6021
  2  4.28146
  3  0.000193057
  4  7.59525
  5  12.2886
  6  6.55586e-06
  7  16.1481
  8  38.8132
  9  16.2687
  10  5.27338
  11  3.05583
  12  3.3718e-06
  13  2.71258
  14  6.20687e-06
  15  11.5373
  16  7.20086e-06
  17  18.0512
  18  7.03247e-06
  19  16.9481
  20  9.39225e-06
  21  0.256114
  22  0.177909
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.171e+01  1.615e+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:  6.168e-01  1.779e-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.444e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 5.20e-06 +/- 7.17e-06

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

Saving results to:
/scratch/kocevski/280729/likelihoodResults_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.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) = 5905.09872481
delta logL = 0.0608111543952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.09602368
delta logL = 0.0635122906087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0079       1.0000          .0000       10.000    
     3 'Normalizat'    1.4499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61430       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=   5905.096     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      266 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.921        18.926        .10735E-03    .10268E-03
   2  Index         2.0076        .96324        .14118E-01    .26993E-04
   3  Normalizat    1.4499        .23945        .23578E-03    .15908E-03
   4  Prefactor     .61430        .17445        .25140E-03    .13770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9209
  Index      = 2.00761
  Normalizat = 1.44988
  Prefactor  = 0.614299
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.096     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.921        18.836        .21470E-04   -1.4962    
   2  Index         2.0076        .95914        .56471E-03   -.64160    
   3  Normalizat    1.4499        .23965        .47155E-04   -.79197    
   4  Prefactor     .61430        .17461        .10056E-04   -1.0699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94658e-11
Minuit parameter uncertainties:
  1  18.8444
  2  0.968547
  3  0.239836
  4  0.174762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280729': 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) = 5905.09602363
delta logL = 0.0635123376678

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.392e+01  1.884e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.008e+00  9.685e-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:  6.143e-01  1.748e-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.450e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.01 +/- 0.97
Photon Flux (Free Index): 1.11e-08 +/- 1.90e-08
Energy Flux (Free Index): 7.55e-06 +/- 1.42e-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/280729/cmap_HighResolution_368668801_368928001_4FGL_J1416.1+1320_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='7.55e-06', photon_flux_error='2.11e-08', dlogl='6.35e-02', energy_flux='5.20e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-09 06:25:32.008476', photon_index_error2='0.97', photon_index2='2.01', ts='1.04', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='1.42e-05', EG='1.44', time_epoch_completed='1631193932.01', return_code='0', job_id='280729', GAL2='0.61', EG2='1.45', return_code2='0', energy_flux_error='7.17e-06', photon_flux_error2='1.90e-08', ts2='1.17', photon_index='2.37' WHERE bin_id='499' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 280729: <4FGL_J1416.1+1320_daily_bin499> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin499 214.029 13.347 368668801 368928001 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 :                                   558.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

