/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 237 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 = 7465
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin236
RA = 214.029, Dec = 13.347
tmin = 300499201, tmax = 300758401
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='278116', job_status='RUN', time_executed='2021-09-09 06:11:07.813577', time_epoch_executed='1631193067.81' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278116/ft1_4FGL_J1416.1+1320_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278116/ft2_4FGL_J1416.1+1320_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278116/ft1_4FGL_J1416.1+1320_daily_bin236.fits outfile=/scratch/kocevski/278116/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin236.fits ra=214.029 dec=13.347 rad=12.0 tmin=300499201.0 tmax=300758401.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.72
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278116/ft1_filtered_4FGL_J1416.1+1320_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/278116/ft2_4FGL_J1416.1+1320_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/278116/ltcube_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.fits outfile=/scratch/kocevski/278116/expmap_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.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/278116/ltcube_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.fits
.....................!
real 190.22
user 185.05
sys 4.32

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/278116/ft1_filtered_4FGL_J1416.1+1320_daily_bin236.fits scfile=/scratch/kocevski/278116/ft2_4FGL_J1416.1+1320_daily_bin236.fits outfile=/scratch/kocevski/278116/cmap_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.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.35
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278116/ft1_filtered_4FGL_J1416.1+1320_daily_bin236.fits scfile=/scratch/kocevski/278116/ft2_4FGL_J1416.1+1320_daily_bin236.fits outfile=/scratch/kocevski/278116/cmap_HighResolution_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.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.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.260       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13396E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4949       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18094       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.173       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3056       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94173       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=   7076.705     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2445 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99499        28.157        .10324E-05   -.12633E-03
   2  Prefactor     6.3620        4.5203       -.43474E-07   -.10941E-03
   3  Prefactor     .32214        3.6191        .29996E-05   -.15862E-03
   4  Prefactor     1.2496        13.358        .22201E-05   -.52409E-04
   5  Prefactor     20.439        13.155       -.52968E-06   -.17599E-03
   6  Prefactor     35.441        33.110       -.30772E-05   -.28489E-03
   7  Prefactor     19.237        23.620       -.95759E-06   -.99147E-04
   8  Prefactor     .10000E-03    23.077        .11441E-06** at limit **
   9  norm          .10000E-03    24.847        .40579E-08** at limit **
  10  Prefactor     .10000E-03    2.0711       -.11268E-07** at limit **
  11  norm          20.517        4.5158        .10879E-07    .45252E-04
  12  Prefactor     .10000E-03    4.7105        .11934E-06** at limit **
  13  norm          .10000E-03    .91629        .78392E-07** at limit **
  14  Prefactor     .10000E-03    24.672       -.10144E-05** at limit **
  15  norm          1.4836        25.667        .13946E-05   -.20768E-04
  16  Prefactor     .11182E-03    14.804        .12266E-06** at limit **
  17  Prefactor     .10000E-03    17.622        .13141E-06** at limit **
  18  Prefactor     .10000E-03    7.9590       -.80423E-07** at limit **
  19  Prefactor     33.201        27.536       -.10054E-05   -.16975E-03
  20  Prefactor     .10000E-03    34.690       -.25715E-06** at limit **
  21  Normalizat    1.3056        .20734        .69925E-06   -.18924E-03
  22  Prefactor     .94190        .14927       -.58879E-06   -.11163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.994987
  Prefactor  = 6.36196
  Prefactor  = 0.322144
  Prefactor  = 1.2496
  Prefactor  = 20.439
  Prefactor  = 35.4407
  Prefactor  = 19.2374
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.5167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48356
  Prefactor  = 0.000111825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2011
  Prefactor  = 0.0001
  Normalizat = 1.30557
  Prefactor  = 0.941905
 **********
 **   18 **HESSE 
 **********

 FCN=   7076.705     FROM HESSE     STATUS=OK           350 CALLS     2795 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99499        224.75        .85942E-02   -1.5508    
   2  Prefactor     6.3620        4.5242        .14466E-03   -1.5203    
   3  Prefactor     .32214        3.8084        .31491E-03   -1.5594    
   4  Prefactor     1.2496        13.564        .40000E-03   -1.5484    
   5  Prefactor     20.439        13.263        .88578E-04   -1.4803    
   6  Prefactor     35.441        34.677        .67338E-04   -1.4517    
   7  Prefactor     19.237        23.750        .91264E-04   -1.4830    
   8  Prefactor     .10000E-03    23.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    24.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0744        .11822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.517        4.5166        .81421E-04   -1.4802    
  12  Prefactor     .10000E-03    4.8859        .35639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .93595        .78617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4836        26.032        .35045E-03   -1.5464    
  16  Prefactor     .11182E-03    18.780        .98378E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.201        27.947        .69573E-04   -1.4555    
  20  Prefactor     .10000E-03    34.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3056        .24932        .27618E-03   -.83400    
  22  Prefactor     .94190        .17969        .23352E-03   -.94692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31898e-09
Minuit parameter uncertainties:
  1  30.0214
  2  4.52442
  3  2.21509
  4  8.23593
  5  13.2651
  6  34.6965
  7  23.7616
  8  5.12199e-05
  9  2.627e-05
  10  1.37833e-07
  11  4.51669
  12  1.9753e-06
  13  7.36179e-07
  14  0.000103312
  15  12.435
  16  0.0298131
  17  1.42252e-06
  18  2.91544e-06
  19  27.9578
  20  2.26757e-05
  21  0.249547
  22  0.179807
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.924e+01  2.376e+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.419e-01  1.798e-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.306e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 8.54e-06 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/278116/likelihoodResults_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.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) = 7076.60784349
delta logL = 0.0973403128801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7076.60063497
delta logL = 0.104548826965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.635       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9052       1.0000          .0000       10.000    
     3 'Normalizat'    1.3208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93458       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=   7076.601     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.636        25.910        .86113E-04   -.19803E-04
   2  Index         1.9053        .86818        .13817E-01   -.17584E-03
   3  Normalizat    1.3209        .24175        .27478E-03   -.56724E-04
   4  Prefactor     .93458        .17745        .23428E-03   -.58183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6362
  Index      = 1.90534
  Normalizat = 1.32085
  Prefactor  = 0.934579
 **********
 **   18 **HESSE 
 **********

 FCN=   7076.601     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.636        26.036        .34445E-05   -1.4777    
   2  Index         1.9053        .87262        .27635E-02   -.66738    
   3  Normalizat    1.3209        .24194        .10991E-04   -.82946    
   4  Prefactor     .93458        .17761        .93712E-05   -.94943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49991e-12
Minuit parameter uncertainties:
  1  26.0501
  2  0.879966
  3  0.24215
  4  0.177722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278116': 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) = 7076.60063495
delta logL = 0.104548849649

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.164e+01  2.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.905e+00  8.800e-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.346e-01  1.777e-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.321e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.91 +/- 0.88
Photon Flux (Free Index): 1.54e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.36e-05 +/- 2.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/278116/cmap_HighResolution_300499201_300758401_4FGL_J1416.1+1320_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='1.36e-05', photon_flux_error='3.10e-08', dlogl='1.05e-01', energy_flux='8.54e-06', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-09-09 06:21:38.140069', photon_index_error2='0.88', photon_index2='1.91', ts='1.01', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.36e-05', EG='1.31', time_epoch_completed='1631193698.14', return_code='0', job_id='278116', GAL2='0.93', EG2='1.32', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.54e-08', ts2='1.21', photon_index='2.37' WHERE bin_id='236' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 278116: <4FGL_J1416.1+1320_daily_bin236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin236 214.029 13.347 300499201 300758401 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 :                                   606.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            907 sec.

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

