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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin964
RA = 214.029, Dec = 13.347
tmin = 489196801, tmax = 489456001
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='283625', job_status='RUN', time_executed='2021-09-09 06:25:22.093804', time_epoch_executed='1631193922.09' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283625/ft1_4FGL_J1416.1+1320_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283625/ft2_4FGL_J1416.1+1320_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283625/ft1_4FGL_J1416.1+1320_daily_bin964.fits outfile=/scratch/kocevski/283625/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin964.fits ra=214.029 dec=13.347 rad=12.0 tmin=489196801.0 tmax=489456001.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 5.47
user 4.67
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283625/ft1_filtered_4FGL_J1416.1+1320_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/283625/ft2_4FGL_J1416.1+1320_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/283625/ltcube_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.fits outfile=/scratch/kocevski/283625/expmap_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.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/283625/ltcube_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.fits
.....................!
real 191.08
user 185.37
sys 4.17

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/283625/ft1_filtered_4FGL_J1416.1+1320_daily_bin964.fits scfile=/scratch/kocevski/283625/ft2_4FGL_J1416.1+1320_daily_bin964.fits outfile=/scratch/kocevski/283625/cmap_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.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.74
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4426       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70217E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.3654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9651       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.219       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1259       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99535       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=   5226.332     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2332 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.984        .22651E-04** at limit **
   2  Prefactor     .10000E-03    1.0891        .12483E-07** at limit **
   3  Prefactor     .10000E-03    5.0916       -.28707E-07** at limit **
   4  Prefactor     9.4411        18.181        .27750E-06   -.38576E-04
   5  Prefactor     5.7523        15.646        .39795E-07   -.63393E-04
   6  Prefactor     .10005E-03    26.073       -.85618E-06** at limit **
   7  Prefactor     13.204        24.348       -.10296E-05   -.54330E-05
   8  Prefactor     .10000E-03    27.099        .17825E-05** at limit **
   9  norm          .10000E-03    13.714       -.18517E-04** at limit **
  10  Prefactor     .10000E-03    3.8967        .14079E-06** at limit **
  11  norm          9.3656        4.0122        .60618E-08   -.15974E-04
  12  Prefactor     9.9676        9.3485       -.13955E-05   -.77009E-04
  13  norm          1.3515        2.9976       -.36473E-06   -.66112E-03
  14  Prefactor     .10000E-03    33.848       -.19172E-04** at limit **
  15  norm          .10000E-03    11.664        .25585E-05** at limit **
  16  Prefactor     .10000E-03    27.274       -.31454E-05** at limit **
  17  Prefactor     .10000E-03    14.403        .17276E-04** at limit **
  18  Prefactor     .10000E-03    6.9899        .22980E-07** at limit **
  19  Prefactor     10.573        23.506       -.22746E-05   -.73708E-05
  20  Prefactor     20.217        33.623       -.18138E-05   -.12450E-05
  21  Normalizat    1.1258        .23616        .57690E-06    .11997E-04
  22  Prefactor     .99537        .16522        .17658E-06    .62507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.44106
  Prefactor  = 5.75235
  Prefactor  = 0.000100051
  Prefactor  = 13.2043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.36557
  Prefactor  = 9.96757
  norm       = 1.35146
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5734
  Prefactor  = 20.2166
  Normalizat = 1.12583
  Prefactor  = 0.995368
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.332     FROM HESSE     STATUS=OK           344 CALLS     2676 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0906        .73677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2119        .15921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4411        18.230        .13042E-03   -1.5093    
   5  Prefactor     5.7523        15.677        .16748E-03   -1.5228    
   6  Prefactor     .10005E-03    190.13        .71110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.204        24.343        .11023E-03   -1.4981    
   8  Prefactor     .10000E-03    27.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9058        .13928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.3656        4.0108        .91667E-04   -1.5096    
  12  Prefactor     9.9676        9.3479        .12694E-03   -1.5076    
  13  norm          1.3515        2.9591        .17741E-03   -1.5475    
  14  Prefactor     .10000E-03    33.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.573        23.508        .12323E-03   -1.5058    
  20  Prefactor     20.217        33.623        .89075E-04   -1.4808    
  21  Normalizat    1.1258        .28970        .28345E-03   -.88927    
  22  Prefactor     .99537        .20256        .21689E-03   -.92884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78627e-10
Minuit parameter uncertainties:
  1  2.73413e-05
  2  4.02961e-07
  3  7.90619e-06
  4  18.2411
  5  15.6877
  6  0.00624035
  7  24.3608
  8  3.30278e-06
  9  2.59235e-06
  10  1.37785e-05
  11  4.01091
  12  9.34929
  13  2.95941
  14  3.16197e-05
  15  9.19785e-06
  16  7.1519e-05
  17  1.83577e-05
  18  5.22825e-06
  19  23.5281
  20  33.6549
  21  0.290113
  22  0.202719
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.320e+01  2.436e+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.954e-01  2.027e-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.126e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/283625/likelihoodResults_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.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) = 5225.8082517
delta logL = 0.523460776376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.79572412
delta logL = 0.535988358313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.784       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4589       1.0000          .0000       10.000    
     3 'Normalizat'    1.1413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98659       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=   5225.796     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.814        20.154        .25203E-02    .61391E-04
   2  Index         1.4600        .50793        .27760       -.91862E-04
   3  Normalizat    1.1413        .22499        .63684E-01    .14715E-03
   4  Prefactor     .98658        .16376        .46099E-01    .20454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8135
  Index      = 1.45996
  Normalizat = 1.14131
  Prefactor  = 0.986583
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.796     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.814        23.502        .10081E-03   -1.4912    
   2  Index         1.4600        .71910        .10088E-01   -.78667    
   3  Normalizat    1.1413        .27450        .28170E-03   -.88436    
   4  Prefactor     .98658        .20003        .21759E-03   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28836e-10
Minuit parameter uncertainties:
  1  23.5157
  2  0.724168
  3  0.274849
  4  0.200185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283625': 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) = 5225.79572299
delta logL = 0.535989486692

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.581e+01  2.352e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.460e+00  7.242e-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.866e-01  2.002e-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.141e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.46 +/- 0.72
Photon Flux (Free Index): 8.02e-09 +/- 1.30e-08
Energy Flux (Free Index): 2.90e-05 +/- 5.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/283625/cmap_HighResolution_489196801_489456001_4FGL_J1416.1+1320_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', comment='SUCCESS', energy_flux2='2.90e-05', dlogl='5.36e-01', photon_flux2='8.02e-09', job_status='DONE', time_completed='2021-09-09 06:34:29.814142', photon_index_error2='0.72', photon_index2='1.46', ts='0.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='5.51e-05', EG='1.13', time_epoch_completed='1631194469.81', return_code='0', job_id='283625', GAL2='0.99', EG2='1.14', return_code2='0', photon_flux_error2='1.30e-08', ts2='1.52', photon_index='2.37' WHERE bin_id='964' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 283625: <4FGL_J1416.1+1320_daily_bin964> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin964 214.029 13.347 489196801 489456001 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 :                                   516.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

