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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin584
RA = 214.029, Dec = 13.347
tmin = 390700801, tmax = 390960001
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='280840', job_status='RUN', time_executed='2021-09-09 06:15:23.606917', time_epoch_executed='1631193323.61' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280840

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280840/ft1_4FGL_J1416.1+1320_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280840/ft2_4FGL_J1416.1+1320_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280840/ft1_4FGL_J1416.1+1320_daily_bin584.fits outfile=/scratch/kocevski/280840/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin584.fits ra=214.029 dec=13.347 rad=12.0 tmin=390700801.0 tmax=390960001.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 7.20
user 6.86
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280840/ft1_filtered_4FGL_J1416.1+1320_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/280840/ft2_4FGL_J1416.1+1320_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/280840/ltcube_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.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/280840/ft2_4FGL_J1416.1+1320_daily_bin584.fits
.....................!
real 11.91
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280840/ft1_filtered_4FGL_J1416.1+1320_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/280840/ft2_4FGL_J1416.1+1320_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/280840/ltcube_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.fits outfile=/scratch/kocevski/280840/expmap_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.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/280840/ltcube_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.fits
.....................!
real 190.49
user 185.35
sys 4.52

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/280840/ft1_filtered_4FGL_J1416.1+1320_daily_bin584.fits scfile=/scratch/kocevski/280840/ft2_4FGL_J1416.1+1320_daily_bin584.fits outfile=/scratch/kocevski/280840/cmap_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.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.81
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.591       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4550       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6451       1.0000         .10000E-03   10000.    
    13 'norm      '    22.027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82774       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=   6578.064     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2345 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    41.605       -.58934E-05** at limit **
   2  Prefactor     1.2720        3.8175        .33846E-06   -.35789E-03
   3  Prefactor     .10000E-03    1.7868       -.10090E-06** at limit **
   4  Prefactor     .10000E-03    9.2872       -.43928E-06** at limit **
   5  Prefactor     .10000E-03    2.7790       -.18471E-07** at limit **
   6  Prefactor     9.3818        16.229        .11213E-06   -.95539E-07
   7  Prefactor     4.6770        53.632        .40657E-05    .49211E-04
   8  Prefactor     22.590        24.438       -.69556E-07   -.10674E-04
   9  norm          7.2583        24.528        .35660E-06   -.22909E-05
  10  Prefactor     3.4520        8.8062       -.17750E-05   -.18425E-03
  11  norm          6.2388        2.7983        .70088E-08    .20475E-04
  12  Prefactor     5.6463        5.9706        .22573E-05   -.17878E-02
  13  norm          22.027        4.8277       -.10443E-07    .15744E-03
  14  Prefactor     .10004E-03    48.396        .13917E-04** at limit **
  15  norm          .10001E-03    67.463       -.86726E-05** at limit **
  16  Prefactor     9.1032        19.532       -.34805E-07    .11366E-05
  17  Prefactor     11.990        20.569        .17799E-06    .92269E-05
  18  Prefactor     21.745        15.374        .21967E-07    .14972E-04
  19  Prefactor     .10000E-03    11.930       -.20010E-06** at limit **
  20  Prefactor     .10000E-03    13.916        .10999E-06** at limit **
  21  Normalizat    1.2456        .20533       -.53659E-07    .10513E-03
  22  Prefactor     .82770        .14989       -.30905E-06    .12209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 1.272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.38183
  Prefactor  = 4.67698
  Prefactor  = 22.5895
  norm       = 7.25827
  Prefactor  = 3.45199
  norm       = 6.23877
  Prefactor  = 5.64634
  norm       = 22.0267
  Prefactor  = 0.000100037
  norm       = 0.000100014
  Prefactor  = 9.10318
  Prefactor  = 11.9896
  Prefactor  = 21.7454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24561
  Prefactor  = 0.827699
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.064     FROM HESSE     STATUS=OK           348 CALLS     2693 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    42.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2720        3.8365        .26428E-03   -1.5482    
   3  Prefactor     .10000E-03    1.7927        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7846        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3818        16.228        .13084E-03   -1.5095    
   7  Prefactor     4.6770        53.256        .18618E-03   -1.5275    
   8  Prefactor     22.590        24.475        .84274E-04   -1.4757    
   9  norm          7.2583        24.558        .14888E-03   -1.5169    
  10  Prefactor     3.4520        8.7726        .21758E-03   -1.5336    
  11  norm          6.2388        2.7989        .88306E-04   -1.5208    
  12  Prefactor     5.6463        7.4156        .84537E-03   -1.5233    
  13  norm          22.027        4.8347        .79634E-04   -1.4769    
  14  Prefactor     .10004E-03    52.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    71.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1032        19.518        .13285E-03   -1.5104    
  17  Prefactor     11.990        20.566        .11568E-03   -1.5015    
  18  Prefactor     21.745        15.376        .85897E-04   -1.4775    
  19  Prefactor     .10000E-03    11.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2456        .24877        .26867E-03   -.85205    
  22  Prefactor     .82770        .18074        .23527E-03   -.98715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2924e-09
Minuit parameter uncertainties:
  1  0.00105944
  2  3.83723
  3  4.15266e-06
  4  4.24332e-05
  5  1.81044e-06
  6  16.2352
  7  31.5996
  8  24.4859
  9  24.5924
  10  8.77582
  11  2.79897
  12  7.41676
  13  4.83482
  14  0.00280135
  15  0.00200929
  16  19.5316
  17  20.5784
  18  15.3786
  19  2.21519e-05
  20  9.96217e-06
  21  0.249005
  22  0.180869
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.677e+00  3.160e+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.277e-01  1.809e-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.246e+00  2.490e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280840/likelihoodResults_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.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) = 6578.02315259
delta logL = 0.040618253478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.02176658
delta logL = 0.0420042679707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6005       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9193       1.0000          .0000       10.000    
     3 'Normalizat'    1.2341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83124       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=   6578.022     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      312 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5232        330.30        .42439E-02   -.16938E-03
   2  Index         2.9190        2.2866        .37225       -.80015E-04
   3  Normalizat    1.2342        .26623E-01    .60988E-01    .37799E-04
   4  Prefactor     .83135        .19522E-01    .44122E-01   -.58096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52318
  Index      = 2.91895
  Normalizat = 1.23417
  Prefactor  = 0.831354
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.022     FROM HESSE     STATUS=OK            33 CALLS      345 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5232        26.272        .16975E-03   -1.5238    
   2  Index         2.9190        1.9807        .80565E-02   -.42927    
   3  Normalizat    1.2342        .24748        .26974E-03   -.85553    
   4  Prefactor     .83135        .17860        .23479E-03   -.98583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09926e-09
Minuit parameter uncertainties:
  1  24.1089
  2  2.04941
  3  0.24772
  4  0.178722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280840': 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) = 6578.02175556
delta logL = 0.0420152839215

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.523e+00  2.411e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.919e+00  2.049e+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.314e-01  1.787e-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.234e+00  2.477e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/280840/cmap_HighResolution_390700801_390960001_4FGL_J1416.1+1320_daily_bin584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-09 06:25:25.537946', job_id='280840', GAL2='0.83', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1631193925.54', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.20e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='584' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 280840: <4FGL_J1416.1+1320_daily_bin584> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin584> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:12:08 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:12:09 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:09 2021
Terminated at Thu Sep  9 06:25:28 2021
Results reported at Thu Sep  9 06:25:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin584 214.029 13.347 390700801 390960001 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            800 sec.

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

