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 51 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1319.8+7759_weekly_bin715
RA = 199.966, Dec = 77.9882
tmin = 671414401, tmax = 672019201
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='934812', job_status='RUN', time_executed='2022-04-19 02:30:35.418219', time_epoch_executed='1650360635.42' WHERE source_name='4FGL J1319.8+7759' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934812

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934812/ft1_4FGL_J1319.8+7759_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934812/ft1_4FGL_J1319.8+7759_weekly_bin715.fits outfile=/scratch/kocevski/934812/ft1_filteredMKT_4FGL_J1319.8+7759_weekly_bin715.fits ra=199.966 dec=77.9882 rad=12.0 tmin=671414401.0 tmax=672019201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.67
user 7.33
sys 0.29

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

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

Number of photons that the gtmktime cut: 1852

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934812/ft1_filtered_4FGL_J1319.8+7759_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934812/ltcube_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.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/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits
.....................!
real 30.64
user 30.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934812/ft1_filtered_4FGL_J1319.8+7759_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934812/ltcube_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.fits outfile=/scratch/kocevski/934812/expmap_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.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/934812/ltcube_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.fits
.....................!
real 193.21
user 187.41
sys 5.37

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/934812/ft1_filtered_4FGL_J1319.8+7759_weekly_bin715.fits scfile=/scratch/kocevski/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits outfile=/scratch/kocevski/934812/cmap_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934812/ft1_filtered_4FGL_J1319.8+7759_weekly_bin715.fits scfile=/scratch/kocevski/934812/ft2_4FGL_J1319.8+7759_weekly_bin715.fits outfile=/scratch/kocevski/934812/cmap_HighResolution_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.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.61
user 0.45
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11915E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17016       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69505       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.240       1.0000         .10000E-03   10000.    
    14 'norm      '    .12168E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.758       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.761       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8925       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86492       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0408       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.636       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4182       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2382       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    39.585       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98797       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98661       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=   19720.15     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     3635 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.118        6.3148       -.30262E-07   -.90900E-06
   2  Prefactor     .10000E-03    2.3758       -.10438E-06** at limit **
   3  Prefactor     .10000E-03    2.5894        .11477E-06** at limit **
   4  Prefactor     .10000E-03    4.4404        .24659E-06** at limit **
   5  Prefactor     .10000E-03    13.893        .52204E-05** at limit **
   6  norm          .10001E-03    .76068        .74883E-07** at limit **
   7  Prefactor     .17319        .82786        .73282E-06   -.21333E-02
   8  norm          1.2876        .46178       -.54161E-07   -.22635E-02
   9  Prefactor     .10000E-03    5.6904       -.16906E-05** at limit **
  10  Prefactor     14.342        5.6483       -.25383E-07   -.46049E-03
  11  Prefactor     .69509        2.1456        .78987E-07   -.67370E-03
  12  Prefactor     8.1891        5.9682       -.26986E-06   -.36458E-04
  13  Prefactor     21.236        29.774       -.37213E-05   -.84248E-04
  14  norm          .10000E-03    1.2130        .11800E-06** at limit **
  15  norm          .63976        1.4858        .17275E-06   -.46756E-03
  16  Prefactor     .10000E-03    7.3019        .37916E-05** at limit **
  17  Prefactor     20.761        20.545       -.62641E-06   -.23031E-04
  18  Prefactor     26.761        9.4178        .24707E-06    .76459E-04
  19  Prefactor     6.6564        14.542        .79414E-06    .24818E-04
  20  Prefactor     6.8933        10.123        .35405E-06    .35991E-04
  21  Prefactor     .86659        3.9741       -.15710E-05   -.54308E-03
  22  Prefactor     1.0372        9.1359        .18168E-06   -.16395E-03
  23  Prefactor     22.637        22.306       -.93911E-07    .50857E-05
  24  Prefactor     2.4178        7.9360        .17760E-05   -.55904E-03
  25  Prefactor     2.2377        29.084       -.15975E-05   -.19539E-04
  26  Prefactor     .10000E-03    13.474       -.48697E-05** at limit **
  27  norm          39.585        12.625       -.48536E-06   -.90855E-04
  28  Prefactor     .10000E-03    1.2434        .15136E-07** at limit **
  29  Prefactor     .10000E-03    8.1843       -.26043E-05** at limit **
  30  Normalizat    .98798        .99129E-01    .15738E-06   -.13060E-03
  31  Prefactor     .98663        .75417E-01   -.86706E-08   -.10197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.173189
  norm       = 1.28757
  Prefactor  = 0.0001
  Prefactor  = 14.3417
  Prefactor  = 0.69509
  Prefactor  = 8.18906
  Prefactor  = 21.2362
  norm       = 0.0001
  norm       = 0.639762
  Prefactor  = 0.0001
  Prefactor  = 20.7606
  Prefactor  = 26.761
  Prefactor  = 6.65639
  Prefactor  = 6.89331
  Prefactor  = 0.866585
  Prefactor  = 1.03725
  Prefactor  = 22.6373
  Prefactor  = 2.41777
  Prefactor  = 2.23775
  Prefactor  = 0.0001
  norm       = 39.5847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987975
  Prefactor  = 0.986632
 **********
 **   18 **HESSE 
 **********

 FCN=   19720.15     FROM HESSE     STATUS=OK           644 CALLS     4279 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.118        6.3299        .85168E-04   -1.4767    
   2  Prefactor     .10000E-03    2.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    1.5061        .39994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17319        3.8510        .22770E-02   -1.5625    
   8  norm          1.2876        .47254        .51371E-04   -1.5481    
   9  Prefactor     .10000E-03    5.8111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.342        5.6121        .10577E-03   -1.4950    
  11  Prefactor     .69509        2.2586        .36395E-03   -1.5541    
  12  Prefactor     8.1891        5.8654        .14011E-03   -1.5136    
  13  Prefactor     21.236        29.854        .86909E-04   -1.4786    
  14  norm          .10000E-03    4.9049        .29805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .63976        1.4516        .24533E-03   -1.5548    
  16  Prefactor     .10000E-03    7.3229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.761        20.520        .87912E-04   -1.4796    
  18  Prefactor     26.761        9.4174        .77440E-04   -1.4673    
  19  Prefactor     6.6564        14.472        .15553E-03   -1.5192    
  20  Prefactor     6.8933        10.089        .15282E-03   -1.5183    
  21  Prefactor     .86659        4.6393        .50719E-03   -1.5522    
  22  Prefactor     1.0372        9.6303        .49070E-03   -1.5504    
  23  Prefactor     22.637        22.306        .84190E-04   -1.4756    
  24  Prefactor     2.4178        14.232        .13161E-02   -1.5397    
  25  Prefactor     2.2377        29.207        .27474E-03   -1.5409    
  26  Prefactor     .10000E-03    13.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          39.585        12.624        .63708E-04   -1.4449    
  28  Prefactor     .10000E-03    1.2959        .30538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.2031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98798        .11237        .26537E-03   -.93434    
  31  Prefactor     .98663        .85041E-01    .20928E-03   -.93176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59772e-09
Minuit parameter uncertainties:
  1  6.33013
  2  5.57274e-06
  3  2.02606e-06
  4  5.62906e-07
  5  0.000130998
  6  0.000206448
  7  1.63299
  8  0.472541
  9  1.86838e-05
  10  5.61231
  11  2.25884
  12  5.86581
  13  29.8752
  14  6.96939e-05
  15  1.45168
  16  8.2356e-05
  17  20.5266
  18  9.41793
  19  14.4794
  20  10.0912
  21  4.0104
  22  6.32212
  23  22.3137
  24  11.7359
  25  16.1782
  26  0.00014286
  27  12.625
  28  1.87761e-06
  29  6.12632e-05
  30  0.112401
  31  0.0850529
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  2.076e+01  2.053e+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:  9.866e-01  8.505e-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.880e-01  1.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 199.966 77.988
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.07e-08
Energy Flux (Fixed Index): 6.72e-06 +/- 6.64e-06

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

Saving results to:
/scratch/kocevski/934812/likelihoodResults_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.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) = 19720.1463868
delta logL = 0.00812827828486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19720.1434324
delta logL = 0.0110826953751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.025       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1271       1.0000          .0000       10.000    
     3 'Normalizat'    .98707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98689       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=   19720.14     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      257 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.020        24.416        .91824E-04    .24405E-03
   2  Index         2.1274        .59077        .10681E-01    .15430E-03
   3  Normalizat    .98707        .10433        .26548E-03    .58789E-03
   4  Prefactor     .98689        .82467E-01    .20926E-03    .69902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0204
  Index      = 2.1274
  Normalizat = 0.987073
  Prefactor  = 0.98689
 **********
 **   18 **HESSE 
 **********

 FCN=   19720.14     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.020        22.566        .18365E-04   -1.4835    
   2  Index         2.1274        .54656        .42724E-03   -.61202    
   3  Normalizat    .98707        .10437        .10619E-04   -.93465    
   4  Prefactor     .98689        .82506E-01    .41851E-04   -.93168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61408e-10
Minuit parameter uncertainties:
  1  22.5765
  2  0.5482
  3  0.104388
  4  0.0825161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934812': 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) = 19720.1434322
delta logL = 0.0110828664911

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.902e+01  2.258e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.127e+00  5.482e-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.869e-01  8.252e-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.871e-01  1.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 199.966 77.988
Photon Index (Free Index): 2.13 +/- 0.55
Photon Flux (Free Index): 1.19e-08 +/- 1.31e-08
Energy Flux (Free Index): 6.14e-06 +/- 7.05e-06

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/934812/cmap_HighResolution_671414401_672019201_4FGL_J1319.8+7759_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='6.14e-06', photon_flux_error='1.07e-08', dlogl='1.11e-02', energy_flux='6.72e-06', photon_flux2='1.19e-08', job_status='DONE', time_completed='2022-04-19 03:12:31.660865', photon_index_error2='0.55', photon_index2='2.13', ts='1.52', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.59e-08', energy_flux_error2='7.05e-06', EG='0.99', time_epoch_completed='1650363151.66', return_code='0', job_id='934812', GAL2='0.99', EG2='0.99', return_code2='0', energy_flux_error='6.64e-06', photon_flux_error2='1.31e-08', ts2='1.54', photon_index='2.05' WHERE bin_id='715' AND source_name='4FGL J1319.8+7759' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:12:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 931073: <4FGL_J1319.8+7759_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1319.8+7759_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:57 2022
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:15:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:15:50 2022
Terminated at Tue Apr 19 02:59:09 2022
Results reported at Tue Apr 19 02:59:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_weekly_bin715 199.966 77.9882 671414401 672019201 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 :                                   2508.14 sec.
    Max Memory :                                 1244 MB
    Average Memory :                             353.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2936 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2599 sec.
    Turnaround time :                            10332 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 934812: <4FGL_J1319.8+7759_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1319.8+7759_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:11 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:29:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:29:35 2022
Terminated at Tue Apr 19 03:12:32 2022
Results reported at Tue Apr 19 03:12:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_weekly_bin715 199.966 77.9882 671414401 672019201 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 :                                   2514.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             357.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2577 sec.
    Turnaround time :                            10461 sec.

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

