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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin238
RA = 214.029, Dec = 13.347
tmin = 301017601, tmax = 301276801
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='278119', job_status='RUN', time_executed='2021-09-09 06:09:55.960806', time_epoch_executed='1631192995.96' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278119

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278119/ft1_4FGL_J1416.1+1320_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278119/ft2_4FGL_J1416.1+1320_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278119/ft1_4FGL_J1416.1+1320_daily_bin238.fits outfile=/scratch/kocevski/278119/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin238.fits ra=214.029 dec=13.347 rad=12.0 tmin=301017601.0 tmax=301276801.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.47
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278119/ft1_filtered_4FGL_J1416.1+1320_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/278119/ft2_4FGL_J1416.1+1320_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/278119/ltcube_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.fits outfile=/scratch/kocevski/278119/expmap_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.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/278119/ltcube_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.fits
.....................!
real 194.92
user 185.57
sys 4.77

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/278119/ft1_filtered_4FGL_J1416.1+1320_daily_bin238.fits scfile=/scratch/kocevski/278119/ft2_4FGL_J1416.1+1320_daily_bin238.fits outfile=/scratch/kocevski/278119/cmap_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.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.57
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2278       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17372E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2903       1.0000         .10000E-03   10000.    
    11 'norm      '    10.325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17516E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.669       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0772       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99052       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=   7145.452     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2447 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.503        33.603        .25846E-06    .14090E-04
   2  Prefactor     1.2297        4.0812        .12896E-05   -.33876E-03
   3  Prefactor     6.1522        4.3094        .26555E-07    .12467E-04
   4  Prefactor     .10000E-03    16.107        .60373E-07** at limit **
   5  Prefactor     .10000E-03    7.2552        .33345E-06** at limit **
   6  Prefactor     .10000E-03    7.0743       -.26116E-06** at limit **
   7  Prefactor     15.513        29.763       -.12411E-05   -.10160E-03
   8  Prefactor     .10001E-03    88.294       -.42716E-05** at limit **
   9  norm          .10000E-03    53.518       -.10005E-05** at limit **
  10  Prefactor     2.2949        6.6873        .24424E-05    .30594E-03
  11  norm          10.325        3.3074        .16226E-07    .17924E-04
  12  Prefactor     .10000E-03    1.8101        .37691E-07** at limit **
  13  norm          .16181        1.0776        .52626E-07   -.22425E-03
  14  Prefactor     .10001E-03    70.486        .43921E-05** at limit **
  15  norm          10.228        16.439        .29695E-06   -.14408E-03
  16  Prefactor     .10000E-03    5.7221        .26191E-07** at limit **
  17  Prefactor     5.3927        11.046        .24710E-05   -.42163E-03
  18  Prefactor     22.861        18.037       -.98893E-07   -.51460E-04
  19  Prefactor     20.685        23.131        .50139E-06    .69645E-04
  20  Prefactor     .10000E-03    35.596       -.46841E-07** at limit **
  21  Normalizat    1.0771        .19032       -.42436E-06   -.42868E-04
  22  Prefactor     .99052        .14139       -.37782E-06   -.32055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5031
  Prefactor  = 1.22972
  Prefactor  = 6.15219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5133
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 2.29494
  norm       = 10.3253
  Prefactor  = 0.0001
  norm       = 0.161813
  Prefactor  = 0.000100014
  norm       = 10.2277
  Prefactor  = 0.0001
  Prefactor  = 5.39271
  Prefactor  = 22.8613
  Prefactor  = 20.685
  Prefactor  = 0.0001
  Normalizat = 1.07707
  Prefactor  = 0.990523
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.452     FROM HESSE     STATUS=OK           348 CALLS     2795 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.503        33.603        .88459E-04   -1.4802    
   2  Prefactor     1.2297        4.1894        .30025E-03   -1.5486    
   3  Prefactor     6.1522        4.3085        .14185E-03   -1.5212    
   4  Prefactor     .10000E-03    16.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.513        30.186        .10166E-03   -1.4920    
   8  Prefactor     .10001E-03    92.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    54.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2949        6.8587        .27124E-03   -1.5405    
  11  norm          10.325        3.3072        .84546E-04   -1.5065    
  12  Prefactor     .10000E-03    1.8166        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16181        4.4026        .16949E-02   -1.5628    
  14  Prefactor     .10001E-03    74.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.228        16.395        .12517E-03   -1.5068    
  16  Prefactor     .10000E-03    5.7254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3927        11.754        .86521E-03   -1.5243    
  18  Prefactor     22.861        18.046        .83771E-04   -1.4751    
  19  Prefactor     20.685        23.145        .88099E-04   -1.4798    
  20  Prefactor     .10000E-03    35.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0771        .23304        .27813E-03   -.90492    
  22  Prefactor     .99052        .17444        .21319E-03   -.93046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38285e-08
Minuit parameter uncertainties:
  1  33.6344
  2  4.19038
  3  4.30872
  4  1.50528e-05
  5  4.54625e-05
  6  3.5046e-05
  7  30.2154
  8  0.00174661
  9  0.000312098
  10  6.861
  11  3.30726
  12  5.81216e-06
  13  1.6877
  14  0.00205471
  15  16.4025
  16  1.05535e-06
  17  11.7594
  18  18.0501
  19  23.1554
  20  3.6553e-05
  21  0.233267
  22  0.174535
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.551e+01  3.022e+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.905e-01  1.745e-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.077e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278119/likelihoodResults_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.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) = 7145.42313737
delta logL = 0.0285143714846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7145.41757818
delta logL = 0.0340735570553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.980       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1445       1.0000          .0000       10.000    
     3 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98767       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=   7145.418     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.980        1770.0        .22983E-02    .19630E-03
   2  Index         2.1432        5.3820        .25019        .21187E-04
   3  Normalizat    1.0820        .70523E-01    .62752E-01    .26841E-04
   4  Prefactor     .98735        .52802E-01    .46113E-01    .42129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9801
  Index      = 2.14319
  Normalizat = 1.08199
  Prefactor  = 0.987354
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.418     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.980        34.412        .91934E-04   -1.4836    
   2  Index         2.1432        .83695        .12357E-01   -.60816    
   3  Normalizat    1.0820        .23104        .27756E-03   -.90332    
   4  Prefactor     .98735        .17170        .21348E-03   -.93152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20947e-10
Minuit parameter uncertainties:
  1  34.4481
  2  0.84286
  3  0.231253
  4  0.1718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278119': 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) = 7145.41757238
delta logL = 0.0340793648529

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.898e+01  3.445e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.143e+00  8.429e-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.874e-01  1.718e-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.082e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/278119/cmap_HighResolution_301017601_301276801_4FGL_J1416.1+1320_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-09 06:20:20.874469', job_id='278119', GAL2='0.99', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631193620.87', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.41e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='238' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 278119: <4FGL_J1416.1+1320_daily_bin238> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin238> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:32 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:06:35 2021
Terminated at Thu Sep  9 06:20:22 2021
Results reported at Thu Sep  9 06:20:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin238 214.029 13.347 301017601 301276801 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 :                                   597.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            830 sec.

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

