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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1210
RA = 214.029, Dec = 13.347
tmin = 552960001, tmax = 553219201
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='285308', job_status='RUN', time_executed='2021-09-09 06:28:01.365990', time_epoch_executed='1631194081.37' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285308/ft1_4FGL_J1416.1+1320_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285308/ft1_4FGL_J1416.1+1320_daily_bin1210.fits outfile=/scratch/kocevski/285308/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1210.fits ra=214.029 dec=13.347 rad=12.0 tmin=552960001.0 tmax=553219201.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.37
user 2.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.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/285308/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1210.fits evtable="EVENTS" outfile="/scratch/kocevski/285308/ft1_filtered_4FGL_J1416.1+1320_daily_bin1210.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/285308/ft1_filtered_4FGL_J1416.1+1320_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/285308/ltcube_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.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/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits
.....................!
real 12.83
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285308/ft1_filtered_4FGL_J1416.1+1320_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/285308/ltcube_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.fits outfile=/scratch/kocevski/285308/expmap_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.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/285308/ltcube_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.fits
.....................!
real 195.57
user 185.29
sys 5.60

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/285308/ft1_filtered_4FGL_J1416.1+1320_daily_bin1210.fits scfile=/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits outfile=/scratch/kocevski/285308/cmap_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.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.65
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285308/ft1_filtered_4FGL_J1416.1+1320_daily_bin1210.fits scfile=/scratch/kocevski/285308/ft2_4FGL_J1416.1+1320_daily_bin1210.fits outfile=/scratch/kocevski/285308/cmap_HighResolution_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.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.77
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41303E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1117       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26875       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99630       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1306       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=   10470.44     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2381 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    140.52        .56260E-04** at limit **
   2  Prefactor     .10000E-03    .97032       -.24346E-07** at limit **
   3  Prefactor     1.0922        1.3747       -.11248E-06   -.70109E-03
   4  Prefactor     4.0118        4.2404       -.62754E-06   -.10550E-02
   5  Prefactor     8.5288        7.8112        .49921E-06    .67548E-03
   6  Prefactor     .10000E-03    48.037       -.22650E-06** at limit **
   7  Prefactor     .10000E-03    6.7963       -.23777E-07** at limit **
   8  Prefactor     .10000E-03    10.640       -.31675E-06** at limit **
   9  norm          .10000E-03    24.922       -.37258E-07** at limit **
  10  Prefactor     4.1118        4.0600       -.10255E-06    .99860E-04
  11  norm          5.3278        2.2501       -.58124E-08    .20971E-03
  12  Prefactor     .10000E-03    3.0371        .93409E-07** at limit **
  13  norm          18.688        3.6419       -.26823E-07    .16230E-03
  14  Prefactor     .10000E-03    9.5504        .80979E-06** at limit **
  15  norm          15.401        11.994       -.82631E-06   -.60392E-03
  16  Prefactor     .12601        7.8931       -.36274E-05    .12780E-03
  17  Prefactor     19.428        21.025        .11520E-06   -.75713E-04
  18  Prefactor     .10000E-03    3.5222       -.82179E-07** at limit **
  19  Prefactor     .10000E-03    8.6660       -.64753E-06** at limit **
  20  Prefactor     .10000E-03    7.4746        .20785E-06** at limit **
  21  Normalizat    .99626        .16859        .39094E-06    .30896E-03
  22  Prefactor     1.1306        .12680        .30852E-06    .43512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.09215
  Prefactor  = 4.01179
  Prefactor  = 8.52878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.11176
  norm       = 5.32784
  Prefactor  = 0.0001
  norm       = 18.6879
  Prefactor  = 0.000100001
  norm       = 15.4013
  Prefactor  = 0.126008
  Prefactor  = 19.4279
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.996257
  Prefactor  = 1.13064
 **********
 **   18 **HESSE 
 **********

 FCN=   10470.44     FROM HESSE     STATUS=OK           348 CALLS     2729 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.91        .85700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .97591        .98410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0922        1.3531        .13137E-03   -1.5499    
   4  Prefactor     4.0118        4.2715        .20133E-03   -1.5307    
   5  Prefactor     8.5288        7.8463        .13727E-03   -1.5124    
   6  Prefactor     .10000E-03    48.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1118        4.0595        .19847E-03   -1.5302    
  11  norm          5.3278        2.2502        .96757E-04   -1.5246    
  12  Prefactor     .10000E-03    3.0965        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.688        3.6404        .82209E-04   -1.4843    
  14  Prefactor     .10000E-03    9.5624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.401        12.051        .10206E-03   -1.4923    
  16  Prefactor     .12601        12.319        .95251E-01   -1.5637    
  17  Prefactor     19.428        21.019        .90874E-04   -1.4826    
  18  Prefactor     .10000E-03    3.5284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99626        .20169        .30045E-03   -.93156    
  22  Prefactor     1.1306        .15221        .21522E-03   -.88493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19362e-09
Minuit parameter uncertainties:
  1  0.00119028
  2  3.83572e-06
  3  1.35312
  4  4.27184
  5  7.84725
  6  5.84814e-05
  7  2.26978e-05
  8  8.0003e-05
  9  5.83674e-05
  10  4.05975
  11  2.25024
  12  1.19018e-05
  13  3.6404
  14  0.00018089
  15  12.0533
  16  2.49132
  17  21.0271
  18  1.32369e-05
  19  0.000139295
  20  4.73448e-05
  21  0.201842
  22  0.152264
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.270e-05  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.131e+00  1.523e-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:  9.963e-01  2.018e-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: 3.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285308/likelihoodResults_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.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) = 10470.4409919
delta logL = -0.000699311047356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10470.4402925
delta logL = 1.01490513771e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3543       1.0000          .0000       10.000    
     3 'Normalizat'    .99625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1306       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=   10470.44     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    89.205        .18142E-02** at limit **
   2  Index         2.2825        7.2712        .50000        .17882E-04
   3  Normalizat    .99626        .14217E-01    .30045E-03   -.17557E-04
   4  Prefactor     1.1306        .10838E-01    .21522E-03    .43948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101672
  Index      = 2.28246
  Normalizat = 0.996256
  Prefactor  = 1.13064
 **********
 **   18 **HESSE 
 **********

 FCN=   10470.44     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10167E-03    366.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2825        5.7735        .50000       -.57461    
   3  Normalizat    .99626        .30333E-01    .12018E-04   -.93156    
   4  Prefactor     1.1306        .23122E-01    .86090E-05   -.88493    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73136e-08
Minuit parameter uncertainties:
  1  0.049835
  2  797.606
  3  0.0303336
  4  0.0231221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285308': 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) = 10470.4402923
delta logL = 3.3009746403e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.017e-04  4.984e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.282e+00  7.976e+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.131e+00  2.312e-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:  9.963e-01  3.033e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/285308/cmap_HighResolution_552960001_553219201_4FGL_J1416.1+1320_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-03', job_status='DONE', photon_flux_upper_limit='3.87e-08', time_completed='2021-09-09 06:40:36.180958', job_id='285308', GAL2='1.13', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631194836.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1210' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 285308: <4FGL_J1416.1+1320_daily_bin1210> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1210> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 06:26:49 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:26:51 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:26:51 2021
Terminated at Thu Sep  9 06:40:36 2021
Results reported at Thu Sep  9 06:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1210 214.029 13.347 552960001 553219201 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

