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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin930
RA = 214.029, Dec = 13.347
tmin = 480384001, tmax = 480643201
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='283571', job_status='RUN', time_executed='2021-09-09 06:25:00.837351', time_epoch_executed='1631193900.84' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283571/ft1_4FGL_J1416.1+1320_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283571/ft2_4FGL_J1416.1+1320_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283571/ft1_4FGL_J1416.1+1320_daily_bin930.fits outfile=/scratch/kocevski/283571/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin930.fits ra=214.029 dec=13.347 rad=12.0 tmin=480384001.0 tmax=480643201.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.60
user 3.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283571/ft1_filtered_4FGL_J1416.1+1320_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/283571/ft2_4FGL_J1416.1+1320_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/283571/ltcube_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.fits outfile=/scratch/kocevski/283571/expmap_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.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/283571/ltcube_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.fits
.....................!
real 190.79
user 185.09
sys 5.32

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/283571/ft1_filtered_4FGL_J1416.1+1320_daily_bin930.fits scfile=/scratch/kocevski/283571/ft2_4FGL_J1416.1+1320_daily_bin930.fits outfile=/scratch/kocevski/283571/cmap_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283571/ft1_filtered_4FGL_J1416.1+1320_daily_bin930.fits scfile=/scratch/kocevski/283571/ft2_4FGL_J1416.1+1320_daily_bin930.fits outfile=/scratch/kocevski/283571/cmap_HighResolution_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11620E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    39.009       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9348       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7923       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3915       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.848       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3797       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83183       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=   7823.938     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2368 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.672        .31122E-07** at limit **
   2  Prefactor     .10000E-03    1.6331        .75220E-07** at limit **
   3  Prefactor     .10000E-03    2.2437        .59741E-07** at limit **
   4  Prefactor     .10000E-03    6.2949       -.28573E-08** at limit **
   5  Prefactor     16.301        15.963       -.31944E-06    .51316E-05
   6  Prefactor     .10000E-03    14.884        .14411E-06** at limit **
   7  Prefactor     4.2030        45.983       -.93222E-06   -.90469E-05
   8  Prefactor     .10000E-03    38.565        .99698E-06** at limit **
   9  norm          39.014        23.613        .11330E-06   -.24564E-05
  10  Prefactor     1.9342        4.9366        .90025E-06   -.22196E-04
  11  norm          5.8252        2.7880       -.20610E-07    .77941E-05
  12  Prefactor     .10000E-03    4.1889       -.17481E-06** at limit **
  13  norm          22.951        4.9682       -.25109E-07    .55234E-04
  14  Prefactor     8.7822        16.367        .20326E-07    .15397E-05
  15  norm          .10000E-03    9.6909       -.15670E-06** at limit **
  16  Prefactor     10.234        31.365       -.24717E-07    .37045E-04
  17  Prefactor     4.9574        21.730        .74606E-06    .91759E-05
  18  Prefactor     1.3374        85.187       -.98474E-05   -.13221E-04
  19  Prefactor     20.004        32.932        .22070E-05    .26184E-04
  20  Prefactor     30.826        46.218        .13568E-05    .26489E-04
  21  Normalizat    1.3799        .21411        .10850E-05    .21105E-04
  22  Prefactor     .83174        .14676       -.44064E-06    .12873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3013
  Prefactor  = 0.0001
  Prefactor  = 4.20299
  Prefactor  = 0.0001
  norm       = 39.014
  Prefactor  = 1.93419
  norm       = 5.82515
  Prefactor  = 0.0001
  norm       = 22.9506
  Prefactor  = 8.78217
  norm       = 0.0001
  Prefactor  = 10.2338
  Prefactor  = 4.95739
  Prefactor  = 1.33738
  Prefactor  = 20.0041
  Prefactor  = 30.8257
  Normalizat = 1.37988
  Prefactor  = 0.83174
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.938     FROM HESSE     STATUS=OK           346 CALLS     2714 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6445        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2623        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.301        16.104        .99181E-04   -1.4900    
   6  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2030        45.821        .19620E-03   -1.5298    
   8  Prefactor     .10000E-03    39.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          39.014        23.604        .64175E-04   -1.4458    
  10  Prefactor     1.9342        4.8851        .29855E-03   -1.5430    
  11  norm          5.8252        2.7882        .99219E-04   -1.5225    
  12  Prefactor     .10000E-03    4.2378        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.951        4.9663        .83611E-04   -1.4749    
  14  Prefactor     8.7822        16.317        .13518E-03   -1.5115    
  15  norm          .10000E-03    9.7067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.234        31.103        .12527E-03   -1.5068    
  17  Prefactor     4.9574        21.748        .18052E-03   -1.5263    
  18  Prefactor     1.3374        86.529        .36834E-03   -1.5477    
  19  Prefactor     20.004        32.825        .89409E-04   -1.4813    
  20  Prefactor     30.826        46.153        .72140E-04   -1.4597    
  21  Normalizat    1.3799        .25756        .27999E-03   -.81212    
  22  Prefactor     .83174        .17683        .24891E-03   -.98569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76689e-11
Minuit parameter uncertainties:
  1  3.34685e-05
  2  1.87148e-06
  3  2.03415e-06
  4  3.2423e-06
  5  16.1079
  6  7.02148e-06
  7  27.7818
  8  7.51591e-06
  9  23.6098
  10  4.88612
  11  2.7883
  12  5.90672e-06
  13  4.96638
  14  16.3256
  15  1.82743e-06
  16  31.1527
  17  20.7791
  18  21.5466
  19  32.8541
  20  46.2069
  21  0.257797
  22  0.176946
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.203e+00  2.778e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.317e-01  1.769e-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.380e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/283571/likelihoodResults_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.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) = 7823.93726868
delta logL = 0.000327752116391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7823.93726103
delta logL = 0.00033539656124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83197       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=   7823.937     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      223 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1301        586.37        .49143E-02    .29084E-04
   2  Index         2.4375        2.1747        .50000        .58631E-05
   3  Normalizat    1.3793        .19456E-01    .63313E-01    .26388E-05
   4  Prefactor     .83198        .13887E-01    .44132E-01    .18787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.13005
  Index      = 2.43753
  Normalizat = 1.3793
  Prefactor  = 0.831981
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.937     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1301        47.210        .19657E-03   -1.5301    
   2  Index         2.4375        2.4109        .11933E-01   -.53809    
   3  Normalizat    1.3793        .24581        .28004E-03   -.81229    
   4  Prefactor     .83198        .17474        .24888E-03   -.98560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28397e-12
Minuit parameter uncertainties:
  1  27.9544
  2  2.55993
  3  0.246019
  4  0.174856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283571': 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) = 7823.93725745
delta logL = 0.000338977860338

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.130e+00  2.795e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.438e+00  2.560e+00  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.320e-01  1.749e-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.379e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/283571/cmap_HighResolution_480384001_480643201_4FGL_J1416.1+1320_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-09 06:35:29.125475', job_id='283571', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631194529.13', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.39e-04', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='930' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:35:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 283571: <4FGL_J1416.1+1320_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin930 214.029 13.347 480384001 480643201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             259.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

