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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin774
RA = 214.029, Dec = 13.347
tmin = 439948801, tmax = 440208001
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='282332', job_status='RUN', time_executed='2021-09-09 06:18:41.785351', time_epoch_executed='1631193521.79' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282332

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282332/ft1_4FGL_J1416.1+1320_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282332/ft2_4FGL_J1416.1+1320_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282332/ft1_4FGL_J1416.1+1320_daily_bin774.fits outfile=/scratch/kocevski/282332/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin774.fits ra=214.029 dec=13.347 rad=12.0 tmin=439948801.0 tmax=440208001.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.15
user 3.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282332/ft1_filtered_4FGL_J1416.1+1320_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/282332/ft2_4FGL_J1416.1+1320_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/282332/ltcube_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.fits outfile=/scratch/kocevski/282332/expmap_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.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/282332/ltcube_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.fits
.....................!
real 198.60
user 185.63
sys 5.76

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/282332/ft1_filtered_4FGL_J1416.1+1320_daily_bin774.fits scfile=/scratch/kocevski/282332/ft2_4FGL_J1416.1+1320_daily_bin774.fits outfile=/scratch/kocevski/282332/cmap_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.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.69
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282332/ft1_filtered_4FGL_J1416.1+1320_daily_bin774.fits scfile=/scratch/kocevski/282332/ft2_4FGL_J1416.1+1320_daily_bin774.fits outfile=/scratch/kocevski/282332/cmap_HighResolution_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.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.68
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.122       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51262E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0549       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97864E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28750       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12962E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81958       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=   7610.084     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2446 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.121        62.055        .63132E-06    .29462E-04
   2  Prefactor     .10000E-03    3.7101       -.15685E-06** at limit **
   3  Prefactor     .10000E-03    3.0468       -.86157E-07** at limit **
   4  Prefactor     .10000E-03    8.4570       -.14817E-05** at limit **
   5  Prefactor     .10000E-03    5.0218        .23255E-05** at limit **
   6  Prefactor     .10000E-03    14.142       -.39463E-07** at limit **
   7  Prefactor     15.289        20.130        .45310E-06   -.58719E-04
   8  Prefactor     2.0553        33.699        .15127E-04    .33325E-03
   9  norm          .10000E-03    21.868       -.26203E-06** at limit **
  10  Prefactor     .10262        10.632        .56107E-05   -.10204E-02
  11  norm          6.9504        2.9298        .25978E-07   -.10008E-04
  12  Prefactor     .10000E-03    6.3635       -.41585E-06** at limit **
  13  norm          .28891        1.3986        .31189E-06   -.31582E-03
  14  Prefactor     .10000E-03    19.976        .18560E-05** at limit **
  15  norm          2.3448        16.581       -.59976E-06   -.86123E-04
  16  Prefactor     .10000E-03    7.8276        .16571E-05** at limit **
  17  Prefactor     16.966        15.241        .37345E-07   -.19256E-04
  18  Prefactor     .10000E-03    4.4819       -.13101E-07** at limit **
  19  Prefactor     .10000E-03    45.235        .47971E-05** at limit **
  20  Prefactor     .10000E-03    35.644       -.62333E-05** at limit **
  21  Normalizat    1.2814        .17687       -.11075E-06   -.10481E-03
  22  Prefactor     .81961        .12758       -.37365E-06   -.11422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.1211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2891
  Prefactor  = 2.05528
  norm       = 0.0001
  Prefactor  = 0.10262
  norm       = 6.95044
  Prefactor  = 0.0001
  norm       = 0.288912
  Prefactor  = 0.0001
  norm       = 2.34482
  Prefactor  = 0.0001
  Prefactor  = 16.9658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.28142
  Prefactor  = 0.819612
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.084     FROM HESSE     STATUS=OK           350 CALLS     2796 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.121        62.154        .47937E-04   -1.4031    
   2  Prefactor     .10000E-03    3.8319        .32778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0915        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.747        .35439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.289        20.178        .10243E-03   -1.4926    
   8  Prefactor     2.0553        35.822        .14417E-02   -1.5421    
   9  norm          .10000E-03    22.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10262        6.7576        .57059E-01   -1.5644    
  11  norm          6.9504        2.9283        .93976E-04   -1.5181    
  12  Prefactor     .10000E-03    6.5260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28891        5.2723        .19345E-02   -1.5600    
  14  Prefactor     .10000E-03    20.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3448        16.528        .26790E-03   -1.5402    
  16  Prefactor     .10000E-03    7.8395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.966        15.235        .97237E-04   -1.4884    
  18  Prefactor     .10000E-03    4.5015        .18036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2814        .21392        .24902E-03   -.84123    
  22  Prefactor     .81961        .15473        .22030E-03   -.99009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9159e-09
Minuit parameter uncertainties:
  1  62.2121
  2  1.65871e-05
  3  8.56622e-06
  4  7.68019e-05
  5  6.64211e-05
  6  1.4668e-05
  7  20.1872
  8  17.1725
  9  3.59472e-05
  10  1.66488
  11  2.92833
  12  8.01203e-05
  13  2.46821
  14  0.000139951
  15  12.4553
  16  6.5475e-05
  17  15.2382
  18  5.4672e-06
  19  0.000128543
  20  0.000493035
  21  0.214065
  22  0.154807
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.529e+01  2.019e+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:  8.196e-01  1.548e-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.281e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282332/likelihoodResults_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.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) = 7609.50877955
delta logL = 0.574823792454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7609.46186696
delta logL = 0.621736380059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6384       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3316       1.0000          .0000       10.000    
     3 'Normalizat'    1.2986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81374       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.

 FCN=   7609.462     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5875        11.123        .32270E-02   -.27078E-04
   2  Index         1.3288        .43857        .30197       -.78075E-04
   3  Normalizat    1.2986        .17289        .55980E-01   -.16662E-05
   4  Prefactor     .81373        .12599        .43896E-01    .22433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.58746
  Index      = 1.32878
  Normalizat = 1.29862
  Prefactor  = 0.81373
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.462     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5875        15.363        .12908E-03   -1.5089    
   2  Index         1.3288        .73226        .11009E-01   -.82455    
   3  Normalizat    1.2986        .20993        .24754E-03   -.83608    
   4  Prefactor     .81373        .15302        .22095E-03   -.99224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3208e-11
Minuit parameter uncertainties:
  1  15.3698
  2  0.738062
  3  0.210071
  4  0.153098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282332': 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) = 7609.46186033
delta logL = 0.621743007769

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  9.587e+00  1.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.329e+00  7.381e-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:  8.137e-01  1.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.299e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.33 +/- 0.74
Photon Flux (Free Index): 4.78e-09 +/- 7.52e-09
Energy Flux (Free Index): 2.67e-05 +/- 4.70e-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/282332/cmap_HighResolution_439948801_440208001_4FGL_J1416.1+1320_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', comment='SUCCESS', energy_flux2='2.67e-05', dlogl='6.22e-01', photon_flux2='4.78e-09', job_status='DONE', time_completed='2021-09-09 06:29:26.869560', photon_index_error2='0.74', photon_index2='1.33', ts='0.99', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.82e-08', energy_flux_error2='4.70e-05', EG='1.28', time_epoch_completed='1631194166.87', return_code='0', job_id='282332', GAL2='0.81', EG2='1.30', return_code2='0', photon_flux_error2='7.52e-09', ts2='2.22', photon_index='2.37' WHERE bin_id='774' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 282332: <4FGL_J1416.1+1320_daily_bin774> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin774> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:15 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:17:17 2021
Terminated at Thu Sep  9 06:29:27 2021
Results reported at Thu Sep  9 06:29:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin774 214.029 13.347 439948801 440208001 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 :                                   621.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

