/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 132 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin52
RA = 195.12, Dec = 14.2701
tmin = 252806401, tmax = 253065601
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='92650', job_status='RUN', time_executed='2021-09-06 14:28:00.645392', time_epoch_executed='1630963680.65' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92650/ft1_4FGL_J1300.4+1416_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92650/ft1_4FGL_J1300.4+1416_daily_bin52.fits outfile=/scratch/kocevski/92650/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin52.fits ra=195.12 dec=14.2701 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.55
user 1.25
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.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/92650/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.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.57
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/92650/ltcube_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.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/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits
.....................!
real 14.13
user 13.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/92650/ltcube_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits outfile=/scratch/kocevski/92650/expmap_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.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/92650/ltcube_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits
.....................!
real 190.90
user 185.23
sys 5.13

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1300.4+1416 @ 195.12 14.2701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits outfile=/scratch/kocevski/92650/cmap_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.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=195.12 yref=14.2701 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits outfile=/scratch/kocevski/92650/cmap_HighResolution_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.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=195.12 yref=14.2701 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92650/Model_4FGL_J1300.4+1416_daily_bin52.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/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits.....................!
real 65.42
user 63.97
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits', '/scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits', expMap='/scratch/kocevski/92650/expmap_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits', expCube='/scratch/kocevski/92650/ltcube_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92650/Model_4FGL_J1300.4+1416_daily_bin52.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1300.4+1416'

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/92650/ft1_filtered_4FGL_J1300.4+1416_daily_bin52.fits
Spacecraft file(s): /scratch/kocevski/92650/ft2_4FGL_J1300.4+1416_daily_bin52.fits
Exposure map: /scratch/kocevski/92650/expmap_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits
Exposure cube: /scratch/kocevski/92650/ltcube_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92650/Model_4FGL_J1300.4+1416_daily_bin52.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) = 7982.9231439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.861       1.0000         .10000E-03   10000.    
     3 'norm      '    .29961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    91.250       1.0000         .10000E-03   10000.    
     7 'norm      '    9.3369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3943       1.0000         .10000E-03   10000.    
    13 'norm      '    9.8574       1.0000         .10000E-03   10000.    
    14 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7119       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.949       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7982.893     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2013 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5626        1.5587        .62814E-08    .27785E-03
   2  Prefactor     10.844        20.478       -.14758E-04   -.61339E-05
   3  norm          .29961        .24343       -.17597E-06   -.22137E-02
   4  Prefactor     .10000E-03    39.719       -.96326E-05** at limit **
   5  Prefactor     12.965        13.177        .27903E-05    .12501E-04
   6  Prefactor     91.240        40.031       -.80885E-05    .20651E-04
   7  norm          9.3367        2.0357       -.11124E-06    .10189E-03
   8  Prefactor     .10000E-03    32.526        .20046E-04** at limit **
   9  Prefactor     1.6263        4.7407       -.36259E-05   -.10527E-02
  10  Prefactor     9.1681        10.017       -.17082E-05   -.15585E-03
  11  Prefactor     .10000E-03    8.8868       -.48271E-07** at limit **
  12  norm          2.3942        3.5083       -.59061E-06   -.51174E-03
  13  norm          9.8562        12.556       -.33216E-06    .13204E-04
  14  norm          .10000E-03    4.7370       -.77335E-07** at limit **
  15  Prefactor     3.7112        6.7164       -.12285E-05   -.22683E-03
  16  Prefactor     .10000E-03    27.537       -.94507E-05** at limit **
  17  norm          17.945        9.8213       -.10526E-05    .30452E-04
  18  Prefactor     55.916        53.764       -.38151E-04    .22723E-04
  19  Normalizat    1.1541        .18474        .32203E-05    .73453E-04
  20  Prefactor     1.0248        .15957        .40787E-05    .70134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56256
  Prefactor  = 10.8443
  norm       = 0.29961
  Prefactor  = 0.0001
  Prefactor  = 12.9646
  Prefactor  = 91.2397
  norm       = 9.33666
  Prefactor  = 0.0001
  Prefactor  = 1.62628
  Prefactor  = 9.16809
  Prefactor  = 0.0001
  norm       = 2.39418
  norm       = 9.85616
  norm       = 0.0001
  Prefactor  = 3.71124
  Prefactor  = 0.0001
  norm       = 17.9445
  Prefactor  = 55.9158
  Normalizat = 1.15406
  Prefactor  = 1.02476
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.893     FROM HESSE     STATUS=OK           299 CALLS     2312 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5626        1.5702        .10842E-03   -1.5458    
   2  Prefactor     10.844        20.474        .12157E-03   -1.5049    
   3  norm          .29961        .23279        .37810E-03   -1.5599    
   4  Prefactor     .10000E-03    39.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.965        13.145        .11124E-03   -1.4988    
   6  Prefactor     91.240        40.068        .42067E-04   -1.3795    
   7  norm          9.3367        2.0359        .57472E-04   -1.5097    
   8  Prefactor     .10000E-03    32.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6263        4.7531        .32291E-03   -1.5453    
  10  Prefactor     9.1681        10.035        .13235E-03   -1.5102    
  11  Prefactor     .10000E-03    8.9794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3942        3.4931        .19458E-03   -1.5398    
  13  norm          9.8562        12.552        .12763E-03   -1.5080    
  14  norm          .10000E-03    4.7885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7112        6.7109        .20961E-03   -1.5323    
  16  Prefactor     .10000E-03    27.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.945        9.8156        .94538E-04   -1.4860    
  18  Prefactor     55.916        53.579        .53629E-04   -1.4211    
  19  Normalizat    1.1541        .21705        .27520E-03   -.88035    
  20  Prefactor     1.0248        .18714        .25757E-03   -.91909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88533e-09
Minuit parameter uncertainties:
  1  1.57029
  2  20.4872
  3  0.232795
  4  2.10013e-05
  5  13.1483
  6  40.0797
  7  2.03594
  8  5.43284e-05
  9  4.75425
  10  10.0368
  11  4.24534e-05
  12  3.49339
  13  12.5552
  14  1.29114e-05
  15  6.7123
  16  1.01304e-05
  17  9.81646
  18  53.6257
  19  0.217217
  20  0.187257
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.245e-05  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.025e+00  1.873e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.154e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92650/likelihoodResults_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.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): 102
logL (Free Index) = 7982.89400902
delta logL = -0.000530761421942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7982.8934785
delta logL = -2.39828295889e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7690       1.0000          .0000       10.000    
     3 'Normalizat'    1.1541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   7982.865     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      360 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37609        13.536        .32773E-01    .14401E-02
   2  Index         4.6306        7.0428        .35151        .45145E-04
   3  Normalizat    1.1410        .17449E-01    .27520E-03   -.37593E-05
   4  Prefactor     1.0315        .15574E-01    .25757E-03    .18185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.37609
  Index      = 4.63065
  Normalizat = 1.14101
  Prefactor  = 1.03148
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.865     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      391 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37609        318.61        .16755E-02   -1.5585    
   2  Index         4.6306        7.2103        .23346E-01   -.73938E-01
   3  Normalizat    1.1410        .13658        .11008E-04   -.88446    
   4  Prefactor     1.0315        .10398        .10303E-04   -.91687    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.27564e-07
Minuit parameter uncertainties:
  1  22.0085
  2  37.3438
  3  0.136623
  4  0.103997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92650': 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): 102
logL (Free Index) = 7982.86549049
delta logL = 0.02798776704

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.761e-01  2.201e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  4.631e+00  3.734e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.031e+00  1.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.141e+00  1.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.120 14.270

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/92650/cmap_HighResolution_252806401_253065601_4FGL_J1300.4+1416_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-06 14:39:26.716569', job_id='92650', GAL2='1.03', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1630964366.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.80e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='52' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 92650: <4FGL_J1300.4+1416_daily_bin52> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin52> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:36 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:25:37 2021
Terminated at Mon Sep  6 14:39:27 2021
Results reported at Mon Sep  6 14:39:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin52 195.12 14.2701 252806401 253065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1300.4+1416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

