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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin504
RA = 214.029, Dec = 13.347
tmin = 369964801, tmax = 370224001
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='280737', job_status='RUN', time_executed='2021-09-09 06:12:32.559353', time_epoch_executed='1631193152.56' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280737/ft1_4FGL_J1416.1+1320_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280737/ft1_4FGL_J1416.1+1320_daily_bin504.fits outfile=/scratch/kocevski/280737/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin504.fits ra=214.029 dec=13.347 rad=12.0 tmin=369964801.0 tmax=370224001.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 9.02
user 7.36
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280737/ft1_filtered_4FGL_J1416.1+1320_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/280737/ltcube_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.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/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits
.....................!
real 12.01
user 11.18
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280737/ft1_filtered_4FGL_J1416.1+1320_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/280737/ltcube_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.fits outfile=/scratch/kocevski/280737/expmap_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.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/280737/ltcube_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.fits
.....................!
real 195.18
user 186.54
sys 4.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/280737/ft1_filtered_4FGL_J1416.1+1320_daily_bin504.fits scfile=/scratch/kocevski/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits outfile=/scratch/kocevski/280737/cmap_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.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.72
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280737/ft1_filtered_4FGL_J1416.1+1320_daily_bin504.fits scfile=/scratch/kocevski/280737/ft2_4FGL_J1416.1+1320_daily_bin504.fits outfile=/scratch/kocevski/280737/cmap_HighResolution_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.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.59
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.343       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.336       1.0000         .10000E-03   10000.    
     9 'norm      '    31.522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39966E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53991E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10918E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .61516E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69142       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=   4841.821     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     3117 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.971        56.920        .54600E-04   -.40394E-05
   2  Prefactor     6.2333        5.6184        .14887E-03   -.10523E-03
   3  Prefactor     .10000E-03    2.9526        .11619E-02** at limit **
   4  Prefactor     21.389        15.671        .86617E-04    .25332E-04
   5  Prefactor     12.712        14.869        .11239E-03    .15982E-04
   6  Prefactor     .10000E-03    7.5199        .18142E-02** at limit **
   7  Prefactor     27.306        35.453        .76613E-04   -.35614E-04
   8  Prefactor     20.354        32.894        .88819E-04   -.63999E-05
   9  norm          31.522        28.325        .35683E-03    .44286E-05
  10  Prefactor     .10000E-03    13.675        .18142E-02** at limit **
  11  norm          4.7439        2.7015        .83888E-04    .60578E-04
  12  Prefactor     .11245        8.9839        .52294E-01    .50249E-03
  13  norm          4.4834        3.5408        .11078E-03   -.91336E-05
  14  Prefactor     .10003E-03    53.433        .13471    ** at limit **
  15  norm          .10000E-03    21.187        .18142E-02** at limit **
  16  Prefactor     13.526        19.318        .10890E-03    .26935E-04
  17  Prefactor     .10000E-03    11.080        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.6217        .12931E-02** at limit **
  19  Prefactor     .10000E-03    13.665        .18142E-02** at limit **
  20  Prefactor     .10000E-03    154.85        .37804E-03** at limit **
  21  Normalizat    1.3647        .29223        .25172E-03    .94393E-05
  22  Prefactor     .69153        .19457        .24089E-03    .11940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.9712
  Prefactor  = 6.23334
  Prefactor  = 0.0001
  Prefactor  = 21.3887
  Prefactor  = 12.7119
  Prefactor  = 0.0001
  Prefactor  = 27.3057
  Prefactor  = 20.3543
  norm       = 31.522
  Prefactor  = 0.0001
  norm       = 4.74394
  Prefactor  = 0.112452
  norm       = 4.48335
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 13.526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.3647
  Prefactor  = 0.691527
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.821     FROM HESSE     STATUS=OK           340 CALLS     3457 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.971        56.918        .10920E-04   -1.4237    
   2  Prefactor     6.2333        5.6182        .59547E-05   -1.5209    
   3  Prefactor     .10000E-03    2.9530        .23239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.389        15.671        .34647E-05   -1.4783    
   5  Prefactor     12.712        14.869        .44956E-05   -1.4995    
   6  Prefactor     .10000E-03    7.5200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.306        35.452        .30645E-05   -1.4662    
   8  Prefactor     20.354        32.895        .35527E-05   -1.4805    
   9  norm          31.522        28.325        .14273E-04   -1.4584    
  10  Prefactor     .10000E-03    13.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7439        2.7015        .33555E-05   -1.5272    
  12  Prefactor     .11245        8.5100        .54261E-01   -1.5641    
  13  norm          4.4834        3.5404        .44312E-05   -1.5284    
  14  Prefactor     .10003E-03    53.559        .13449       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    21.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.526        19.318        .43558E-05   -1.4972    
  17  Prefactor     .10000E-03    11.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6218        .25862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    154.86        .75609E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3647        .29249        .10069E-04   -.81655    
  22  Prefactor     .69153        .19481        .96357E-05   -1.0386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55713e-10
Minuit parameter uncertainties:
  1  56.9753
  2  5.61867
  3  7.82348e-06
  4  15.6738
  5  14.8731
  6  1.54086e-06
  7  35.4793
  8  32.924
  9  28.3368
  10  1.19662e-05
  11  2.70159
  12  1.95591
  13  3.54061
  14  0.00260801
  15  1.25282e-05
  16  19.3271
  17  5.24287e-06
  18  2.83973e-06
  19  4.28574e-05
  20  0.00151744
  21  0.292844
  22  0.194997
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.731e+01  3.548e+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:  6.915e-01  1.950e-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.365e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280737/likelihoodResults_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.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) = 4841.49541613
delta logL = 0.325479775916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4841.49383782
delta logL = 0.327058078881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.332       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6921       1.0000          .0000       10.000    
     3 'Normalizat'    1.3880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68171       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=   4841.494     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      260 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.339        38.538        .75268E-04   -.17222E-03
   2  Index         1.6923        .76211        .94216E-02   -.14445E-03
   3  Normalizat    1.3884        .26991        .24983E-03   -.57041E-03
   4  Prefactor     .68170        .19148        .24235E-03   -.51174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3388
  Index      = 1.69234
  Normalizat = 1.38837
  Prefactor  = 0.681701
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.494     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.339        39.322        .15054E-04   -1.4643    
   2  Index         1.6923        .77760        .18843E-02   -.72286    
   3  Normalizat    1.3884        .27015        .49966E-04   -.80966    
   4  Prefactor     .68170        .19165        .48470E-04   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21954e-10
Minuit parameter uncertainties:
  1  39.3582
  2  0.783284
  3  0.270428
  4  0.191833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280737': 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) = 4841.4938336
delta logL = 0.327062297195

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.834e+01  3.936e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.692e+00  7.833e-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:  6.817e-01  1.918e-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.388e+00  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.69 +/- 0.78
Photon Flux (Free Index): 1.64e-08 +/- 2.96e-08
Energy Flux (Free Index): 2.75e-05 +/- 4.53e-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/280737/cmap_HighResolution_369964801_370224001_4FGL_J1416.1+1320_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', energy_flux2='2.75e-05', dlogl='3.27e-01', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-09 06:22:03.958891', photon_index_error2='0.78', photon_index2='1.69', ts='0.90', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='4.53e-05', EG='1.36', time_epoch_completed='1631193723.96', return_code='0', job_id='280737', GAL2='0.68', EG2='1.39', return_code2='0', photon_flux_error2='2.96e-08', ts2='1.53', photon_index='2.37' WHERE bin_id='504' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:22:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 280737: <4FGL_J1416.1+1320_daily_bin504> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin504> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:11:59 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:12:01 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:12:01 2021
Terminated at Thu Sep  9 06:22:05 2021
Results reported at Thu Sep  9 06:22:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin504 214.029 13.347 369964801 370224001 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 :                                   552.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            606 sec.

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

