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


Performing analysis on: 4FGL_J1319.8+7759_monthly_bin168
RA = 199.966, Dec = 77.9882
tmin = 672451201, tmax = 675043201
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='633887', job_status='RUN', time_executed='2022-05-24 03:10:41.899517', time_epoch_executed='1653387041.9' WHERE source_name='4FGL J1319.8+7759' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633887

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/633887/ft1_4FGL_J1319.8+7759_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633887/ft1_4FGL_J1319.8+7759_monthly_bin168.fits outfile=/scratch/kocevski/633887/ft1_filteredMKT_4FGL_J1319.8+7759_monthly_bin168.fits ra=199.966 dec=77.9882 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.81
user 28.08
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.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/633887/ft1_filteredMKT_4FGL_J1319.8+7759_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.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.86
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 11637

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/633887/ltcube_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.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/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits
.....................!
real 149.09
user 148.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/633887/ltcube_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits outfile=/scratch/kocevski/633887/expmap_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.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/633887/ltcube_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits
.....................!
real 194.07
user 188.54
sys 5.05

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/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits scfile=/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits outfile=/scratch/kocevski/633887/cmap_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits scfile=/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits outfile=/scratch/kocevski/633887/cmap_HighResolution_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.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.82
user 0.65
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits', '/scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits', expMap='/scratch/kocevski/633887/expmap_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits', expCube='/scratch/kocevski/633887/ltcube_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/633887/Model_4FGL_J1319.8+7759_monthly_bin168.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/633887/ft1_filtered_4FGL_J1319.8+7759_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/633887/ft2_4FGL_J1319.8+7759_monthly_bin168.fits
Exposure map: /scratch/kocevski/633887/expmap_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits
Exposure cube: /scratch/kocevski/633887/ltcube_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/633887/Model_4FGL_J1319.8+7759_monthly_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 124167.711242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8926       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.761       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49136E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9026       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.676       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5416       1.0000         .10000E-03   10000.    
    15 'norm      '    .65588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11709E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16352E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2065       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9430       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18872       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9368       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2677       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9922       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .28145E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.335       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .81657       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.4120       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86477       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0891       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   124166.9     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4313 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.971        2.3470         .0000        .16771E-01
   2  Prefactor     1.4102        3.3514         .0000        .17671    
   3  Prefactor     1.8944        1.8000         .0000        .37879E-02
   4  Prefactor     7.6203        6.8586         .0000        .75120E-02
   5  Prefactor     31.839        11.055         .0000        .27121E-02
   6  norm          8.1477        1.4225         .0000        .42298E-02
   7  Prefactor     .10003E-03    .15986         .0000    ** at limit **
   8  norm          1.4242        .19788         .0000        .61545E-02
   9  Prefactor     1.9037        2.0172         .0000        .55478E-02
  10  Prefactor     2.9698        1.6836         .0000        .67365E-02
  11  Prefactor     2.0003        .67368         .0000        .53525E-03
  12  Prefactor     10.427        2.5623         .0000        .26473E-02
  13  Prefactor     10.673        8.6677         .0000        .15836E-02
  14  norm          1.5412        .73451         .0000        .63895E-02
  15  norm          .65560        .50545         .0000        .16468E-01
  16  Prefactor     .10000E-03    3.1572         .0000    ** at limit **
  17  Prefactor     .10000E-03    2.7224         .0000    ** at limit **
  18  Prefactor     2.2050        2.3672         .0000        .58155E-02
  19  Prefactor     6.9371        4.2508         .0000        .43828E-02
  20  Prefactor     .19709        .65469         .0000        .62273E-02
  21  Prefactor     2.9368        1.8721         .0000        .58738E-02
  22  Prefactor     .36314        1.7269         .0000        .97393E-02
  23  Prefactor     1.2697        9.2341         .0000        .96231E-03
  24  Prefactor     1.9919        4.6680         .0000        .28543E-01
  25  Prefactor     .10027E-03    1.7798         .0000    ** at limit **
  26  Prefactor     .10000E-03    6.7499         .0000    ** at limit **
  27  norm          10.334        3.9386         .0000        .76147E-03
  28  Prefactor     .81647        .70244         .0000        .24341E-01
  29  Prefactor     1.4132        3.9970         .0000        .23624E-02
  30  Normalizat    .86472        .40070E-01     .0000        .37553E-04
  31  Prefactor     1.0891        .30569E-01     .0000       -.38344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.971
  Prefactor  = 1.41024
  Prefactor  = 1.8944
  Prefactor  = 7.62028
  Prefactor  = 31.8385
  norm       = 8.14775
  Prefactor  = 0.000100033
  norm       = 1.42424
  Prefactor  = 1.90369
  Prefactor  = 2.96984
  Prefactor  = 2.00034
  Prefactor  = 10.4271
  Prefactor  = 10.6727
  norm       = 1.54117
  norm       = 0.655602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20499
  Prefactor  = 6.93711
  Prefactor  = 0.197087
  Prefactor  = 2.93681
  Prefactor  = 0.363145
  Prefactor  = 1.26973
  Prefactor  = 1.99189
  Prefactor  = 0.000100269
  Prefactor  = 0.000100001
  norm       = 10.3337
  Prefactor  = 0.816466
  Prefactor  = 1.4132
  Normalizat = 0.864723
  Prefactor  = 1.08912
 **********
 **   18 **HESSE 
 **********

 FCN=   124166.9     FROM HESSE     STATUS=OK           658 CALLS     4971 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.971        2.3501        .57884E-03   -1.5016    
   2  Prefactor     1.4102        3.0584        .18140E-02   -1.5470    
   3  Prefactor     1.8944        1.7852        .30243E-03   -1.5433    
   4  Prefactor     7.6203        6.3243        .14544E-03   -1.5156    
   5  Prefactor     31.839        11.033        .71098E-04   -1.4579    
   6  norm          8.1477        1.3844        .14042E-03   -1.5137    
   7  Prefactor     .10003E-03    .33861        .42006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4242        .20019        .50795E-04   -1.5469    
   9  Prefactor     1.9037        1.9460        .30149E-03   -1.5432    
  10  Prefactor     2.9698        1.6709        .23556E-03   -1.5363    
  11  Prefactor     2.0003        .67455        .16273E-03   -1.5425    
  12  Prefactor     10.427        2.4574        .12411E-03   -1.5062    
  13  Prefactor     10.673        8.6646        .12262E-03   -1.5054    
  14  norm          1.5412        .73195        .20165E-03   -1.5460    
  15  norm          .65560        .45666        .19929E-02   -1.5546    
  16  Prefactor     .10000E-03    3.1731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2050        2.3571        .27694E-03   -1.5411    
  19  Prefactor     6.9371        4.2507        .15226E-03   -1.5181    
  20  Prefactor     .19709        .70887        .85960E-01   -1.5619    
  21  Prefactor     2.9368        1.8684        .23702E-03   -1.5365    
  22  Prefactor     .36314        1.7097        .42791E-03   -1.5587    
  23  Prefactor     1.2697        9.3440        .39545E-03   -1.5483    
  24  Prefactor     1.9919        4.6702        .14676E-02   -1.5426    
  25  Prefactor     .10027E-03    16.849        .90362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.8146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.334        3.9188        .12464E-03   -1.5065    
  28  Prefactor     .81647        .68892        .25989E-03   -1.5527    
  29  Prefactor     1.4132        3.9555        .36451E-03   -1.5470    
  30  Normalizat    .86472        .44100E-01    .27474E-03   -.97711    
  31  Prefactor     1.0891        .34078E-01    .20066E-03   -.89815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21104e-07
Minuit parameter uncertainties:
  1  2.35008
  2  3.05869
  3  1.78521
  4  6.32487
  5  11.0337
  6  1.3844
  7  0.000212133
  8  0.200187
  9  1.94606
  10  1.67088
  11  0.674554
  12  2.45739
  13  8.66562
  14  0.731955
  15  0.456664
  16  1.67722e-06
  17  1.01074e-05
  18  2.35715
  19  4.25092
  20  0.708896
  21  1.86846
  22  1.57578
  23  6.89019
  24  4.67104
  25  0.00425818
  26  0.000142012
  27  3.9189
  28  0.688927
  29  3.95627
  30  0.0441018
  31  0.0340789
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  1.011e-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:  1.089e+00  3.408e-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:  8.647e-01  4.410e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.966 77.988
Photon Flux Upper Limit: 5.71e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/633887/likelihoodResults_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.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) = 124166.869417
delta logL = -0.00173962984991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 124166.867677
delta logL = 3.48081812263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0323       1.0000          .0000       10.000    
     3 'Normalizat'    .86473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0891       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   124166.9     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    33.970        .18142E-02** at limit **
   2  Index         1.9688        5.8240        .50000        .32918E-04
   3  Normalizat    .86472        .34812E-02    .27474E-03    .15360E-03
   4  Prefactor     1.0891        .28358E-02    .20066E-03    .19308E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   124166.9     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      362 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    33.970        .33446E-03** at limit **
   2  Index         1.9688        5.8240        .54727E-03    .32918E-04
   3  Normalizat    .86472        .34812E-02    .97162E-06    .15360E-03
   4  Prefactor     1.0891        .28358E-02    .62583E-06    .19308E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   124166.9     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      408 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.739        .36285E-02** at limit **
   2  Index         1.6634        8.7851        .50000        .22810E-06
   3  Normalizat    .86472        .31878E-02    .10990E-04   -.13142E-02
   4  Prefactor     1.0891        .25969E-02    .80266E-05   -.17948E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66337
  Normalizat = 0.864723
  Prefactor  = 1.08912
 **********
 **   18 **HESSE 
 **********

 FCN=   124166.9     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      437 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.62        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6634        5.3861        .50000       -.73061    
   3  Normalizat    .86472        .79190E-02    .21979E-05   -.97711    
   4  Prefactor     1.0891        .64509E-02    .16053E-05   -.89815    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04249e-10
Minuit parameter uncertainties:
  1  0.000337681
  2  755.692
  3  0.007919
  4  0.00645095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633887': 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) = 124166.867675
delta logL = 1.94825406652e-06

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  3.377e-04  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  1.663e+00  7.557e+02  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:  1.089e+00  6.451e-03  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:  8.647e-01  7.919e-03  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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/633887/cmap_HighResolution_672451201_675043201_4FGL_J1319.8+7759_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-04', job_status='DONE', photon_flux_upper_limit='5.71e-09', time_completed='2022-05-24 07:37:05.747794', job_id='633887', GAL2='1.09', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1653403025.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='168' AND source_name='4FGL J1319.8+7759' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:37:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 633887: <4FGL_J1319.8+7759_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1319.8+7759_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:05:36 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:10:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:10:13 2022
Terminated at Tue May 24 07:37:07 2022
Results reported at Tue May 24 07:37:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_monthly_bin168 199.966 77.9882 672451201 675043201 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 :                                   15948.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             500.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   16013 sec.
    Turnaround time :                            16291 sec.

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

