/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 68 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_bin852
RA = 214.029, Dec = 13.347
tmin = 460166401, tmax = 460425601
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='283459', job_status='RUN', time_executed='2021-09-09 06:26:15.170669', time_epoch_executed='1631193975.17' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283459/ft1_4FGL_J1416.1+1320_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283459/ft1_4FGL_J1416.1+1320_daily_bin852.fits outfile=/scratch/kocevski/283459/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin852.fits ra=214.029 dec=13.347 rad=12.0 tmin=460166401.0 tmax=460425601.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.34
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283459/ft1_filtered_4FGL_J1416.1+1320_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/283459/ltcube_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.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/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits
.....................!
real 15.51
user 15.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283459/ft1_filtered_4FGL_J1416.1+1320_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/283459/ltcube_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.fits outfile=/scratch/kocevski/283459/expmap_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.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/283459/ltcube_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.fits
.....................!
real 192.02
user 187.39
sys 4.24

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/283459/ft1_filtered_4FGL_J1416.1+1320_daily_bin852.fits scfile=/scratch/kocevski/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits outfile=/scratch/kocevski/283459/cmap_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283459/ft1_filtered_4FGL_J1416.1+1320_daily_bin852.fits scfile=/scratch/kocevski/283459/ft2_4FGL_J1416.1+1320_daily_bin852.fits outfile=/scratch/kocevski/283459/cmap_HighResolution_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.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.70
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.626       1.0000         .10000E-03   10000.    
     9 'norm      '    19.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.5382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.982       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77765       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2018       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=   6322.473     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2372 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.713        51.695        .17935E-05    .81218E-05
   2  Prefactor     1.7635        3.3197       -.10024E-05   -.72294E-03
   3  Prefactor     .10000E-03    1.6965       -.92343E-07** at limit **
   4  Prefactor     .10000E-03    5.6648        .64760E-06** at limit **
   5  Prefactor     .10000E-03    13.099       -.10899E-05** at limit **
   6  Prefactor     29.766        26.546        .18904E-05    .37229E-04
   7  Prefactor     .10000E-03    7.7731        .35474E-05** at limit **
   8  Prefactor     24.563        33.814       -.75908E-04    .13401E-04
   9  norm          19.360        31.165        .26914E-04    .77665E-04
  10  Prefactor     14.226        9.5346       -.17844E-05   -.13792E-02
  11  norm          1.8158        1.6294       -.21900E-06    .10702E-03
  12  Prefactor     .10000E-03    4.0613       -.15824E-06** at limit **
  13  norm          7.5370        3.7548       -.47990E-07    .99075E-04
  14  Prefactor     .10000E-03    10.665       -.47555E-05** at limit **
  15  norm          .10000E-03    7.1038       -.47762E-05** at limit **
  16  Prefactor     1.4587        115.98       -.24644E-04   -.11364E-03
  17  Prefactor     .10000E-03    9.3057        .47428E-05** at limit **
  18  Prefactor     5.8853        11.742        .15626E-06   -.36643E-04
  19  Prefactor     .10000E-03    51.708        .11571E-04** at limit **
  20  Prefactor     55.981        39.561       -.88204E-06   -.11543E-04
  21  Normalizat    .77805        .21373        .13922E-04   -.66493E-04
  22  Prefactor     1.2014        .16182       -.68559E-06    .52976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7132
  Prefactor  = 1.76352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 29.7659
  Prefactor  = 0.0001
  Prefactor  = 24.5632
  norm       = 19.3597
  Prefactor  = 14.2258
  norm       = 1.81576
  Prefactor  = 0.0001
  norm       = 7.53699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.45869
  Prefactor  = 0.0001
  Prefactor  = 5.88529
  Prefactor  = 0.0001
  Prefactor  = 55.9806
  Normalizat = 0.778049
  Prefactor  = 1.20145
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.473     FROM HESSE     STATUS=OK           342 CALLS     2714 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.713        51.717        .68018E-04   -1.4529    
   2  Prefactor     1.7635        3.2993        .19149E-03   -1.5442    
   3  Prefactor     .10000E-03    1.7037        .10113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.766        26.543        .73435E-04   -1.4616    
   7  Prefactor     .10000E-03    7.7807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.563        33.814        .80721E-04   -1.4716    
   9  norm          19.360        31.141        .91042E-04   -1.4828    
  10  Prefactor     14.226        9.5482        .53089E-03   -1.4953    
  11  norm          1.8158        1.6414        .93630E-04   -1.5438    
  12  Prefactor     .10000E-03    4.0871        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5370        3.7444        .10260E-03   -1.5159    
  14  Prefactor     .10000E-03    10.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4587        115.79        .35548E-03   -1.5466    
  17  Prefactor     .10000E-03    9.3160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8853        11.694        .16550E-03   -1.5223    
  19  Prefactor     .10000E-03    53.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.981        39.514        .53613E-04   -1.4210    
  21  Normalizat    .77805        .24943        .31857E-03   -1.0089    
  22  Prefactor     1.2014        .19103        .20249E-03   -.86287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77271e-09
Minuit parameter uncertainties:
  1  51.7837
  2  3.29961
  3  1.19127e-05
  4  4.6787e-05
  5  0.000327649
  6  26.5535
  7  2.67465e-06
  8  33.8403
  9  31.1676
  10  9.54925
  11  1.64148
  12  1.19068e-05
  13  3.74452
  14  3.76031e-05
  15  1.82314e-05
  16  26.0435
  17  2.02897e-05
  18  11.6982
  19  0.000143907
  20  39.5328
  21  0.249794
  22  0.191139
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.675e-06  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.201e+00  1.911e-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.780e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/283459/likelihoodResults_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.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): 102
logL (Free Index) = 6322.47340707
delta logL = -0.000610671822869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6322.47279657
delta logL = -1.76172761712e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .77810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2014       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=   6322.473     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.192        .18142E-01** at limit **
   2  Index         1.7675        5.8715        .50000       -.45402E-06
   3  Normalizat    .77806        .77970E-02    .31857E-03   -.33267E-03
   4  Prefactor     1.2014        .60662E-02    .20250E-03   -.52302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76751
  Normalizat = 0.778056
  Prefactor  = 1.20144
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.473     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    199.15        .26278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7675        8.8168        .50000       -.70298    
   3  Normalizat    .77806        .20717E-01    .12743E-04   -1.0089    
   4  Prefactor     1.2014        .16118E-01    .40499E-04   -.86287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.89417e-09
Minuit parameter uncertainties:
  1  2.11416e-05
  2  636.568
  3  0.0207171
  4  0.0161182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283459': 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): 102
logL (Free Index) = 6322.47279433
delta logL = 2.07087578019e-06

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.114e-05  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.768e+00  6.366e+02  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.201e+00  1.612e-02  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.781e-01  2.072e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/283459/cmap_HighResolution_460166401_460425601_4FGL_J1416.1+1320_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-09 06:35:54.508945', job_id='283459', GAL2='1.20', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631194554.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='852' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 283459: <4FGL_J1416.1+1320_daily_bin852> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin852 214.029 13.347 460166401 460425601 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 :                                   574.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

