aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 82 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1319.8+7759_daily_bin1704
RA = 199.966, Dec = 77.9882
tmin = 681004801, tmax = 681264001
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='365180', job_status='RUN', time_executed='2022-08-04 02:21:02.937791', time_epoch_executed='1659604862.94' WHERE source_name='4FGL J1319.8+7759' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365180/ft1_4FGL_J1319.8+7759_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365180/ft1_4FGL_J1319.8+7759_daily_bin1704.fits outfile=/scratch/kocevski/365180/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin1704.fits ra=199.966 dec=77.9882 rad=12.0 tmin=681004801.0 tmax=681264001.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 2.96
user 2.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.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/365180/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.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.34
sys 0.15

Number of photons that the gtmktime cut: 1496

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365180/ltcube_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits outfile=/scratch/kocevski/365180/expmap_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.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/365180/ltcube_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits
.....................!
real 193.95
user 186.99
sys 5.50

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/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.fits scfile=/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits outfile=/scratch/kocevski/365180/cmap_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.fits scfile=/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits outfile=/scratch/kocevski/365180/cmap_HighResolution_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.fits', '/scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits', expMap='/scratch/kocevski/365180/expmap_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits', expCube='/scratch/kocevski/365180/ltcube_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365180/Model_4FGL_J1319.8+7759_daily_bin1704.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/365180/ft1_filtered_4FGL_J1319.8+7759_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365180/ft2_4FGL_J1319.8+7759_daily_bin1704.fits
Exposure map: /scratch/kocevski/365180/expmap_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365180/ltcube_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365180/Model_4FGL_J1319.8+7759_daily_bin1704.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) = 15754.9335631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.083       1.0000         .10000E-03   10000.    
     5 'Prefactor '    196.27       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23850       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1055       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9809       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9031       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71591       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.073       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.617       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.445       1.0000         .10000E-03   10000.    
    27 'norm      '    5.5765       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3803       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99713       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97491       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=   15754.78     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     3597 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0590        3.3859        .48012E-07   -.17486E-04
   2  Prefactor     .10000E-03    6.0227       -.16811E-07** at limit **
   3  Prefactor     19.225        10.162       -.33472E-07    .14193E-03
   4  Prefactor     33.094        19.733        .73648E-07    .11179E-04
   5  Prefactor     196.27        50.124       -.22392E-06   -.27554E-05
   6  norm          1.7115        3.1150        .10740E-05    .69600E-06
   7  Prefactor     .10000E-03    2.9547       -.11799E-06** at limit **
   8  norm          1.6346        .61371       -.15362E-07    .63745E-04
   9  Prefactor     .38490        4.8140       -.68326E-06   -.15025E-03
  10  Prefactor     2.1061        6.4342        .65549E-06   -.16842E-03
  11  Prefactor     3.9808        2.6013       -.33532E-07    .10834E-04
  12  Prefactor     12.575        9.1128        .97506E-08    .15406E-03
  13  Prefactor     .10000E-03    10.899        .18499E-07** at limit **
  14  norm          .10000E-03    2.1150        .30658E-07** at limit **
  15  norm          4.9042        2.5590        .30338E-07    .37709E-04
  16  Prefactor     .10000E-03    28.030       -.19384E-05** at limit **
  17  Prefactor     .10000E-03    13.178       -.45257E-06** at limit **
  18  Prefactor     .72656        3.3425        .13450E-06   -.64063E-04
  19  Prefactor     .10000E-03    18.059       -.44886E-06** at limit **
  20  Prefactor     1.2916        28.101        .14307E-05   -.56352E-04
  21  Prefactor     .10000E-03    1.6166       -.84151E-08** at limit **
  22  Prefactor     20.073        12.361        .12862E-06    .20634E-04
  23  Prefactor     24.657        25.417        .14216E-06    .78087E-05
  24  Prefactor     11.617        16.929        .26985E-06    .35937E-05
  25  Prefactor     .10000E-03    15.787        .95110E-06** at limit **
  26  Prefactor     27.439        30.590       -.32672E-06   -.22741E-04
  27  norm          5.5760        5.6696       -.67520E-08    .39212E-04
  28  Prefactor     3.3801        2.3804        .14571E-06   -.19846E-03
  29  Prefactor     .10000E-03    33.759        .27060E-05** at limit **
  30  Normalizat    .99720        .11637       -.27981E-06    .85075E-04
  31  Prefactor     .97487        .83732E-01   -.10362E-06    .92969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05899
  Prefactor  = 0.0001
  Prefactor  = 19.2254
  Prefactor  = 33.0942
  Prefactor  = 196.268
  norm       = 1.71152
  Prefactor  = 0.0001
  norm       = 1.63459
  Prefactor  = 0.384902
  Prefactor  = 2.10611
  Prefactor  = 3.98083
  Prefactor  = 12.5755
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.90416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.726564
  Prefactor  = 0.0001
  Prefactor  = 1.2916
  Prefactor  = 0.0001
  Prefactor  = 20.0728
  Prefactor  = 24.6573
  Prefactor  = 11.6173
  Prefactor  = 0.0001
  Prefactor  = 27.4392
  norm       = 5.57595
  Prefactor  = 3.38013
  Prefactor  = 0.0001
  Normalizat = 0.9972
  Prefactor  = 0.974873
 **********
 **   18 **HESSE 
 **********

 FCN=   15754.78     FROM HESSE     STATUS=OK           632 CALLS     4229 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0590        3.3853        .23194E-03   -1.5358    
   2  Prefactor     .10000E-03    6.0474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.225        10.497        .91274E-04   -1.4831    
   4  Prefactor     33.094        19.683        .69667E-04   -1.4557    
   5  Prefactor     196.27        49.926        .28836E-04   -1.2897    
   6  norm          1.7115        4.9266        .24654E-03   -1.5446    
   7  Prefactor     .10000E-03    3.0322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6346        .60652        .54665E-04   -1.5452    
   9  Prefactor     .38490        137.34        .38890E-02   -1.5584    
  10  Prefactor     2.1061        6.4775        .28436E-03   -1.5418    
  11  Prefactor     3.9808        2.5979        .15825E-03   -1.5309    
  12  Prefactor     12.575        9.5321        .11281E-03   -1.4999    
  13  Prefactor     .10000E-03    10.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1751        .35632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9042        2.5525        .13109E-03   -1.5265    
  16  Prefactor     .10000E-03    28.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .72656        26.433        .42845E-02   -1.5537    
  19  Prefactor     .10000E-03    18.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2916        29.068        .36962E-03   -1.5481    
  21  Prefactor     .10000E-03    1.6235        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.073        12.372        .89397E-04   -1.4812    
  23  Prefactor     24.657        25.416        .40337E-03   -1.4714    
  24  Prefactor     11.617        16.941        .11754E-03   -1.5026    
  25  Prefactor     .10000E-03    15.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.439        30.671        .76471E-04   -1.4660    
  27  norm          5.5760        5.6741        .17013E-03   -1.5236    
  28  Prefactor     3.3801        2.3703        .15578E-03   -1.5340    
  29  Prefactor     .10000E-03    34.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99720        .12923        .27086E-03   -.93124    
  31  Prefactor     .97487        .94181E-01    .21162E-03   -.93572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27379e-07
Minuit parameter uncertainties:
  1  3.38553
  2  4.05374e-06
  3  10.498
  4  19.6869
  5  49.9369
  6  4.92773
  7  7.74514e-06
  8  0.606522
  9  14.5732
  10  6.47962
  11  2.59802
  12  9.53328
  13  9.31605e-07
  14  9.8069e-07
  15  2.55253
  16  0.00015293
  17  2.80755e-05
  18  8.76837
  19  7.18636e-07
  20  12.2609
  21  3.0743e-08
  22  12.3733
  23  25.4267
  24  16.9478
  25  5.60428e-05
  26  30.689
  27  5.67462
  28  2.37035
  29  0.000227019
  30  0.129269
  31  0.0941966
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  2.808e-05  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:  9.749e-01  9.420e-02  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:  9.972e-01  1.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.966 77.988
Photon Flux Upper Limit: 2.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365180/likelihoodResults_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.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) = 15754.7851298
delta logL = -0.000360565358278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15754.7847693
delta logL = -1.95723259822e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0441       1.0000          .0000       10.000    
     3 'Normalizat'    .99718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97489       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.

 FCN=   15754.78     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    767.33        .90712E-02** at limit **
   2  Index         2.0417        5.6864        .50000        .13957E-05
   3  Normalizat    .99720        .24435E-01    .46132E-01    .96384E-04
   4  Prefactor     .97487        .18996E-01    .45952E-01    .10182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04168
  Normalizat = 0.9972
  Prefactor  = 0.974874
 **********
 **   18 **HESSE 
 **********

 FCN=   15754.78     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2046.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0417        5.6325        .50000       -.63312    
   3  Normalizat    .99720        .51301E-01    .27085E-03   -.93124    
   4  Prefactor     .97487        .39889E-01    .21162E-03   -.93572    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61076e-09
Minuit parameter uncertainties:
  1  0.000584697
  2  52.1568
  3  0.0513037
  4  0.0398903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365180': 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) = 15754.7847693
delta logL = 1.75532477442e-09

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  5.847e-04  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.042e+00  5.216e+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:  9.749e-01  3.989e-02  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:  9.972e-01  5.130e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.966 77.988

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/365180/cmap_HighResolution_681004801_681264001_4FGL_J1319.8+7759_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-03', job_status='DONE', photon_flux_upper_limit='2.68e-08', time_completed='2022-08-04 02:54:55.510307', job_id='365180', GAL2='0.97', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1659606895.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1704' AND source_name='4FGL J1319.8+7759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 02:54:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 365118: <4FGL_J1319.8+7759_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1319.8+7759_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:02 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:18:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:18:51 2022
Terminated at Thu Aug  4 02:53:42 2022
Results reported at Thu Aug  4 02:53:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_daily_bin1704 199.966 77.9882 681004801 681264001 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 :                                   2019.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2090 sec.
    Turnaround time :                            10000 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 365180: <4FGL_J1319.8+7759_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1319.8+7759_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:07 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:19:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:19:33 2022
Terminated at Thu Aug  4 02:54:56 2022
Results reported at Thu Aug  4 02:54:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_daily_bin1704 199.966 77.9882 681004801 681264001 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 :                                   2028.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2122 sec.
    Turnaround time :                            10069 sec.

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

