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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin425
RA = 214.029, Dec = 13.347
tmin = 349488001, tmax = 349747201
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='280617', job_status='RUN', time_executed='2021-09-09 06:16:45.618387', time_epoch_executed='1631193405.62' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280617/ft1_4FGL_J1416.1+1320_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280617/ft1_4FGL_J1416.1+1320_daily_bin425.fits outfile=/scratch/kocevski/280617/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin425.fits ra=214.029 dec=13.347 rad=12.0 tmin=349488001.0 tmax=349747201.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.53
user 3.18
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280617/ft1_filtered_4FGL_J1416.1+1320_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/280617/ltcube_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.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/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits
.....................!
real 13.53
user 12.05
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280617/ft1_filtered_4FGL_J1416.1+1320_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/280617/ltcube_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.fits outfile=/scratch/kocevski/280617/expmap_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.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/280617/ltcube_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.fits
.....................!
real 200.77
user 187.00
sys 10.99

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/280617/ft1_filtered_4FGL_J1416.1+1320_daily_bin425.fits scfile=/scratch/kocevski/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits outfile=/scratch/kocevski/280617/cmap_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.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 3.19
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280617/ft1_filtered_4FGL_J1416.1+1320_daily_bin425.fits scfile=/scratch/kocevski/280617/ft2_4FGL_J1416.1+1320_daily_bin425.fits outfile=/scratch/kocevski/280617/cmap_HighResolution_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.21
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69655E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8553       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .61868       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2100       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77939       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=   6402.880     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2418 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.186       -.36468E-06** at limit **
   2  Prefactor     3.0357        3.1167       -.94133E-07    .11580E-03
   3  Prefactor     .10000E-03    2.0761       -.32241E-06** at limit **
   4  Prefactor     6.2106        8.7243        .12192E-05    .13297E-02
   5  Prefactor     19.111        12.403        .78236E-06    .24121E-03
   6  Prefactor     7.6670        13.875        .57246E-06    .48280E-04
   7  Prefactor     3.1849        31.605       -.12523E-05    .18736E-04
   8  Prefactor     .10000E-03    37.488        .94216E-05** at limit **
   9  norm          1.7376        27.241        .11998E-05    .69979E-04
  10  Prefactor     .10000E-03    2.8523        .36324E-06** at limit **
  11  norm          7.5495        3.0882        .16915E-09    .97030E-04
  12  Prefactor     3.8565        7.3431       -.30438E-05   -.15399E-03
  13  norm          1.1150        1.7885       -.32794E-06   -.21677E-03
  14  Prefactor     .10000E-03    29.861       -.56905E-05** at limit **
  15  norm          .65731        84.723       -.24030E-04    .20118E-03
  16  Prefactor     7.3579        30.253       -.14655E-05   -.37970E-04
  17  Prefactor     24.102        23.474       -.40257E-06   -.20417E-04
  18  Prefactor     .10000E-03    4.5295        .64673E-08** at limit **
  19  Prefactor     13.868        29.989       -.25766E-05   -.16235E-03
  20  Prefactor     .10002E-03    155.01        .17800E-04** at limit **
  21  Normalizat    1.2100        .19689        .30958E-06   -.10039E-03
  22  Prefactor     .77936        .14015        .82055E-06   -.83579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.03568
  Prefactor  = 0.0001
  Prefactor  = 6.21058
  Prefactor  = 19.1112
  Prefactor  = 7.66702
  Prefactor  = 3.18493
  Prefactor  = 0.000100003
  norm       = 1.73765
  Prefactor  = 0.0001
  norm       = 7.54951
  Prefactor  = 3.85654
  norm       = 1.11499
  Prefactor  = 0.000100002
  norm       = 0.657305
  Prefactor  = 7.35792
  Prefactor  = 24.1016
  Prefactor  = 0.0001
  Prefactor  = 13.868
  Prefactor  = 0.000100023
  Normalizat = 1.20999
  Prefactor  = 0.779359
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.880     FROM HESSE     STATUS=OK           356 CALLS     2774 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0357        3.1147        .13799E-03   -1.5359    
   3  Prefactor     .10000E-03    21.168        .22217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2106        10.133        .80541E-03   -1.5209    
   5  Prefactor     19.111        12.521        .91619E-04   -1.4833    
   6  Prefactor     7.6670        13.878        .14483E-03   -1.5154    
   7  Prefactor     3.1849        31.564        .22702E-03   -1.5351    
   8  Prefactor     .10000E-03    37.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7376        27.603        .31763E-03   -1.5444    
  10  Prefactor     .10000E-03    2.8708        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5495        3.0882        .87097E-04   -1.5158    
  12  Prefactor     3.8565        7.2534        .20553E-03   -1.5315    
  13  norm          1.1150        1.5029        .13138E-02   -1.5497    
  14  Prefactor     .10000E-03    30.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .65731        99.548        .52211E-02   -1.5546    
  16  Prefactor     7.3579        29.343        .14786E-03   -1.5165    
  17  Prefactor     24.102        23.398        .81582E-04   -1.4726    
  18  Prefactor     .10000E-03    4.5357        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.868        29.770        .10755E-03   -1.4963    
  20  Prefactor     .10002E-03    159.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2100        .24189        .24804E-03   -.86295    
  22  Prefactor     .77936        .17050        .22120E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03463e-09
Minuit parameter uncertainties:
  1  2.03009e-05
  2  3.11484
  3  3.2491e-05
  4  10.1355
  5  12.5227
  6  13.8838
  7  20.0664
  8  0.000695358
  9  13.8585
  10  3.97203e-05
  11  3.08822
  12  7.25502
  13  1.50294
  14  0.000439499
  15  16.2045
  16  29.4003
  17  23.4071
  18  1.39214e-05
  19  29.8015
  20  0.00383306
  21  0.24211
  22  0.170615
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.185e+00  2.007e+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:  7.794e-01  1.706e-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.210e+00  2.421e-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: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280617/likelihoodResults_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.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) = 6402.82886112
delta logL = 0.051015901493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6402.82697795
delta logL = 0.0528990621078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3096       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1863       1.0000          .0000       10.000    
     3 'Normalizat'    1.1955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78496       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=   6402.827     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      252 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3923        179.39        .55632E-02    .23623E-03
   2  Index         3.1658        2.3947        .34558        .22140E-04
   3  Normalizat    1.1957        .25511E-01    .56387E-01    .14240E-04
   4  Prefactor     .78473        .18758E-01    .43521E-01    .17174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39229
  Index      = 3.1658
  Normalizat = 1.19568
  Prefactor  = 0.784731
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.827     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3923        22.560        .22253E-03   -1.5340    
   2  Index         3.1658        2.6982        .78844E-02   -.37561    
   3  Normalizat    1.1957        .23476        .24935E-03   -.86737    
   4  Prefactor     .78473        .16965        .22051E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84738e-12
Minuit parameter uncertainties:
  1  17.5056
  2  2.87845
  3  0.234966
  4  0.169767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280617': 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) = 6402.8269377
delta logL = 0.0529393203769

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.392e+00  1.751e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.166e+00  2.878e+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:  7.847e-01  1.698e-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.196e+00  2.350e-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/280617/cmap_HighResolution_349488001_349747201_4FGL_J1416.1+1320_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-09 06:27:32.904377', job_id='280617', GAL2='0.78', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631194052.9', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.29e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='425' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:27:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 280617: <4FGL_J1416.1+1320_daily_bin425> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin425> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:11:50 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:11:52 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:11:52 2021
Terminated at Thu Sep  9 06:27:33 2021
Results reported at Thu Sep  9 06:27:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin425 214.029 13.347 349488001 349747201 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 :                                   606.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

