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


Performing analysis on: 4FGL_J1319.8+7759_daily_bin752
RA = 199.966, Dec = 77.9882
tmin = 434246401, tmax = 434505601
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='482089', job_status='RUN', time_executed='2021-09-07 12:16:13.825470', time_epoch_executed='1631042173.83' WHERE source_name='4FGL J1319.8+7759' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482089/ft1_4FGL_J1319.8+7759_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482089/ft1_4FGL_J1319.8+7759_daily_bin752.fits outfile=/scratch/kocevski/482089/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin752.fits ra=199.966 dec=77.9882 rad=12.0 tmin=434246401.0 tmax=434505601.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 6.04
user 5.73
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.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/482089/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.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.50
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/482089/ltcube_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.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/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits
.....................!
real 15.84
user 15.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/482089/ltcube_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits outfile=/scratch/kocevski/482089/expmap_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.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/482089/ltcube_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits
.....................!
real 192.44
user 186.92
sys 5.02

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

Setting source of interest to:
4FGL J1319.8+7759 @ 199.966 77.9882

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits outfile=/scratch/kocevski/482089/cmap_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.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=199.966 yref=77.9882 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.57
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits outfile=/scratch/kocevski/482089/cmap_HighResolution_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.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=199.966 yref=77.9882 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482089/Model_4FGL_J1319.8+7759_daily_bin752.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/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits.....................!
real 63.36
user 61.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits', '/scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits', expMap='/scratch/kocevski/482089/expmap_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits', expCube='/scratch/kocevski/482089/ltcube_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482089/Model_4FGL_J1319.8+7759_daily_bin752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.8+7759'

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  8.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482089/ft1_filtered_4FGL_J1319.8+7759_daily_bin752.fits
Spacecraft file(s): /scratch/kocevski/482089/ft2_4FGL_J1319.8+7759_daily_bin752.fits
Exposure map: /scratch/kocevski/482089/expmap_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits
Exposure cube: /scratch/kocevski/482089/ltcube_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482089/Model_4FGL_J1319.8+7759_daily_bin752.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) = 5450.47641663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    118.59       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.356       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42379E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    33.371       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8458       1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.614       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9868       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.452       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21073E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.439       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    38.774       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5450.468     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4185 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4951        .39669E-07** at limit **
   2  Prefactor     118.56        72.976       -.51650E-04    .12737E-03
   3  Prefactor     .10000E-03    7.9843        .16613E-06** at limit **
   4  Prefactor     72.533        153.68        .16688E-03    .11170E-04
   5  Prefactor     .10000E-03    155.69       -.14373E-04** at limit **
   6  norm          .10000E-03    7.1155        .88694E-08** at limit **
   7  Prefactor     .10000E-03    8.8654        .72995E-07** at limit **
   8  norm          .10000E-03    .87326        .27126E-07** at limit **
   9  Prefactor     .10000E-03    9.3801       -.74635E-07** at limit **
  10  Prefactor     .10000E-03    5.3795        .32232E-07** at limit **
  11  Prefactor     .10000E-03    3.6113        .38249E-07** at limit **
  12  Prefactor     .10000E-03    21.081        .14182E-06** at limit **
  13  Prefactor     .10027E-03    741.95       -.24970E-03** at limit **
  14  norm          33.365        12.506        .43501E-06    .21984E-03
  15  norm          2.8420        5.9368        .16657E-05   -.39389E-03
  16  Prefactor     84.009        76.676        .98077E-05   -.47677E-05
  17  Prefactor     70.629        60.793        .52087E-05    .26525E-04
  18  Prefactor     7.9866        18.215       -.27824E-05   -.81172E-03
  19  Prefactor     .10000E-03    33.205       -.74255E-06** at limit **
  20  Prefactor     .10000E-03    15.784       -.22741E-06** at limit **
  21  Prefactor     16.714        13.482        .30170E-05   -.71811E-04
  22  Prefactor     .10000E-03    10.256        .28893E-07** at limit **
  23  Prefactor     .10000E-03    71.950        .11572E-05** at limit **
  24  Prefactor     63.456        39.087        .12096E-05   -.79511E-04
  25  Prefactor     .10003E-03    355.27        .10651E-03** at limit **
  26  Prefactor     40.500        65.454        .32022E-04   -.72606E-04
  27  norm          .10000E-03    6.5150       -.27073E-07** at limit **
  28  Prefactor     .10000E-03    1.5529        .20342E-07** at limit **
  29  Prefactor     38.784        48.946        .16766E-05   -.40523E-05
  30  Normalizat    1.1073        .21701       -.29263E-05   -.13055E-04
  31  Prefactor     .83364        .15778       -.21598E-05    .22751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 118.559
  Prefactor  = 0.0001
  Prefactor  = 72.5328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100268
  norm       = 33.365
  norm       = 2.84204
  Prefactor  = 84.0094
  Prefactor  = 70.6292
  Prefactor  = 7.9866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.4564
  Prefactor  = 0.000100034
  Prefactor  = 40.5
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7835
  Normalizat = 1.10726
  Prefactor  = 0.833644
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.468     FROM HESSE     STATUS=OK           604 CALLS     4789 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5019        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     118.56        72.936        .36951E-04   -1.3526    
   3  Prefactor     .10000E-03    7.9911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     72.533        153.90        .23598E-03   -1.4003    
   5  Prefactor     .10000E-03    155.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.1809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8302        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3837        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6304        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10027E-03    761.41        .38843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.365        12.573        .69367E-04   -1.4552    
  15  norm          2.8420        5.9077        .24103E-03   -1.5371    
  16  Prefactor     84.009        76.905        .43831E-04   -1.3872    
  17  Prefactor     70.629        60.805        .23886E-03   -1.4025    
  18  Prefactor     7.9866        18.303        .70937E-03   -1.5143    
  19  Prefactor     .10000E-03    33.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.714        13.616        .97944E-04   -1.4890    
  22  Prefactor     .10000E-03    10.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    72.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     63.456        39.522        .50377E-04   -1.4113    
  25  Prefactor     .10003E-03    360.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     40.500        65.380        .63034E-04   -1.4434    
  27  norm          .10000E-03    6.5192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.5611        .89831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     38.784        48.973        .64368E-04   -1.4462    
  30  Normalizat    1.1073        .25414        .27954E-03   -.89519    
  31  Prefactor     .83364        .18286        .24203E-03   -.98500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51366e-09
Minuit parameter uncertainties:
  1  8.96076e-06
  2  72.9914
  3  1.37753e-05
  4  154.755
  5  0.000169257
  6  3.73023e-05
  7  2.72327e-06
  8  2.88728e-06
  9  2.43259e-05
  10  7.3523e-06
  11  7.5314e-06
  12  8.66804e-06
  13  0.0289593
  14  12.5736
  15  5.90888
  16  76.9959
  17  60.8582
  18  18.3162
  19  9.06835e-05
  20  6.42224e-05
  21  13.6188
  22  3.05206e-05
  23  3.62806e-05
  24  39.538
  25  0.00706172
  26  65.4957
  27  2.88193e-06
  28  2.56902e-06
  29  49.024
  30  0.254421
  31  0.182992
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  7.063e+01  6.086e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  8.336e-01  1.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.107e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 199.966 77.988
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.97e-05

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) = 5450.45456028
delta logL = 0.0133471709096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.45212335
delta logL = 0.0157841013106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.138       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9308       1.0000          .0000       10.000    
     3 'Normalizat'    1.1112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+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=   5450.452     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      289 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.142        70.018        .23161E-03    .23561E-05
   2  Index         1.9308        .66572        .86094E-02    .23491E-03
   3  Normalizat    1.1111        .22545        .27913E-03   -.32949E-04
   4  Prefactor     .83320        .17210        .24211E-03   -.39819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.1415
  Index      = 1.93084
  Normalizat = 1.11113
  Prefactor  = 0.833199
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.452     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.142        69.190        .92642E-05   -1.3972    
   2  Index         1.9308        .65775        .17219E-02   -.66091    
   3  Normalizat    1.1111        .22553        .11165E-04   -.89395    
   4  Prefactor     .83320        .17222        .96846E-05   -.98516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22167e-12
Minuit parameter uncertainties:
  1  69.2647
  2  0.660832
  3  0.225721
  4  0.172331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482089': 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) = 5450.45212334
delta logL = 0.0157841091286

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  7.514e+01  6.926e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  1.931e+00  6.608e-01  0.000e+00  1.000e+01 (-1.000e+00)
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  8.332e-01  1.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.111e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 199.966 77.988
Photon Index (Free Index): 1.93 +/- 0.66
Photon Flux (Free Index): 3.09e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.55e-05 +/- 2.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/482089/cmap_HighResolution_434246401_434505601_4FGL_J1319.8+7759_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='2.55e-05', photon_flux_error='3.18e-08', dlogl='1.58e-02', energy_flux='2.29e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2021-09-07 12:29:49.050247', photon_index_error2='0.66', photon_index2='1.93', ts='6.26', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.11', time_epoch_completed='1631042989.05', return_code='0', job_id='482089', GAL2='0.83', EG2='1.11', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='4.29e-08', ts2='6.28', photon_index='2.05' WHERE bin_id='752' AND source_name='4FGL J1319.8+7759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:29:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 482089: <4FGL_J1319.8+7759_daily_bin752> in cluster <slac> Done

Job <4FGL_J1319.8+7759_daily_bin752> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 12:15:25 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:16:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:16:02 2021
Terminated at Tue Sep  7 12:29:49 2021
Results reported at Tue Sep  7 12:29:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_daily_bin752 199.966 77.9882 434246401 434505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.8+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            864 sec.

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

