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 71 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_J1302.8+5748_monthly_bin168
RA = 195.721, Dec = 57.8146
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='633848', job_status='RUN', time_executed='2022-05-24 03:10:04.972087', time_epoch_executed='1653387004.97' WHERE source_name='4FGL J1302.8+5748' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633848

Creating custom pfile directory:
/scratch/kocevski/633848/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/633848/ft1_4FGL_J1302.8+5748_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/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633848/ft1_4FGL_J1302.8+5748_monthly_bin168.fits outfile=/scratch/kocevski/633848/ft1_filteredMKT_4FGL_J1302.8+5748_monthly_bin168.fits ra=195.721 dec=57.8146 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.65
user 27.86
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_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/633848/ft1_filteredMKT_4FGL_J1302.8+5748_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_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.85
user 0.64
sys 0.20

Number of photons that the gtmktime cut: 8750

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/633848/ltcube_672451201_675043201_4FGL_J1302.8+5748_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/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits
.....................!
real 122.52
user 121.80
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/633848/ltcube_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits outfile=/scratch/kocevski/633848/expmap_672451201_675043201_4FGL_J1302.8+5748_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/633848/ltcube_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits
.....................!
real 192.50
user 186.33
sys 5.52

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

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits outfile=/scratch/kocevski/633848/cmap_672451201_675043201_4FGL_J1302.8+5748_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=195.721 yref=57.8146 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.79
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits outfile=/scratch/kocevski/633848/cmap_HighResolution_672451201_675043201_4FGL_J1302.8+5748_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=195.721 yref=57.8146 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.79
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/633848/Model_4FGL_J1302.8+5748_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/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits.....................!
real 657.52
user 654.75
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits', '/scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits', expMap='/scratch/kocevski/633848/expmap_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits', expCube='/scratch/kocevski/633848/ltcube_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/633848/Model_4FGL_J1302.8+5748_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/633848/ft1_filtered_4FGL_J1302.8+5748_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/633848/ft2_4FGL_J1302.8+5748_monthly_bin168.fits
Exposure map: /scratch/kocevski/633848/expmap_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits
Exposure cube: /scratch/kocevski/633848/ltcube_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/633848/Model_4FGL_J1302.8+5748_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) = 95409.412173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13151E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3147       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.920       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0020       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4157       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1149       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5268       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18072       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10044E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1066       1.0000         .10000E-03   10000.    
    26 'norm      '    3.7434       1.0000         .10000E-03   10000.    
    27 'norm      '    .60482       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.217       1.0000         .10000E-03   10000.    
    30 'Prefactor '    25.430       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.7450       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.7594       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .92207       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   95409.32     FROM MIGRAD    STATUS=CONVERGED    945 CALLS     4239 TOTAL
                     EDM=   .13E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .48030         .0000    ** at limit **
   2  norm          .10004E-03    .15097         .0000    ** at limit **
   3  Prefactor     4.4304        1.7480         .0000        .41891E-02
   4  Prefactor     4.3145        4.3458         .0000        .19566E-01
   5  norm          1.9328        .46202         .0000        .63359E-02
   6  Prefactor     4.1454        3.3680         .0000        .42921E-02
   7  Prefactor     43.920        14.155         .0000       -.13525E-02
   8  norm          2.3453        1.4858         .0000        .16717    
   9  Prefactor     2.3369        4.7230         .0000        .29805E-01
  10  Prefactor     .10000E-03    .22900         .0000    ** at limit **
  11  norm          3.1758        .54663         .0000        .20583E-02
  12  Prefactor     13.574        4.6185         .0000       -.36029E-02
  13  norm          1.5772        .44338         .0000        .44764E-02
  14  Prefactor     16.466        7.1074         .0000        .16131E-02
  15  Prefactor     1.0026        1.5497         .0000        .16767E-01
  16  norm          1.5116        .70719         .0000        .57170E-02
  17  Prefactor     .10000E-03    2.3380         .0000    ** at limit **
  18  Prefactor     8.2850        6.8383         .0000       -.80603E-03
  19  Prefactor     5.4147        3.2872         .0000       -.34648E-02
  20  Prefactor     .10000E-03    5.7381         .0000    ** at limit **
  21  norm          1.1150        .93031         .0000        .15580E-01
  22  Prefactor     1.5275        12.638         .0000        .11661E-01
  23  Prefactor     .18100        .68094         .0000        .97867    
  24  Prefactor     .10000E-03    1.7708         .0000    ** at limit **
  25  Prefactor     5.1060        2.1343         .0000        .30941E-02
  26  norm          3.7434        5.9793         .0000        .60932E-02
  27  norm          .60495        .74722         .0000        .22144E-01
  28  Prefactor     .10000E-03    1.8591         .0000    ** at limit **
  29  Prefactor     24.218        29.089         .0000       -.29899E-03
  30  Prefactor     25.430        9.7567         .0000       -.10215E-02
  31  Prefactor     4.7450        .76544         .0000        .17920E-02
  32  Prefactor     6.7596        5.0305         .0000        .18023E-02
  33  Normalizat    .92210        .42048E-01     .0000        .33301E-02
  34  Prefactor     1.1375        .49791E-01     .0000        .27974E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100042
  Prefactor  = 4.43043
  Prefactor  = 4.31452
  norm       = 1.93281
  Prefactor  = 4.14545
  Prefactor  = 43.9195
  norm       = 2.34531
  Prefactor  = 2.33687
  Prefactor  = 0.0001
  norm       = 3.1758
  Prefactor  = 13.5744
  norm       = 1.57717
  Prefactor  = 16.4664
  Prefactor  = 1.00258
  norm       = 1.51163
  Prefactor  = 0.0001
  Prefactor  = 8.28504
  Prefactor  = 5.41475
  Prefactor  = 0.0001
  norm       = 1.11502
  Prefactor  = 1.52752
  Prefactor  = 0.181001
  Prefactor  = 0.000100002
  Prefactor  = 5.10599
  norm       = 3.74341
  norm       = 0.60495
  Prefactor  = 0.0001
  Prefactor  = 24.2182
  Prefactor  = 25.4296
  Prefactor  = 4.74499
  Prefactor  = 6.75964
  Normalizat = 0.922096
  Prefactor  = 1.13753
 **********
 **   18 **HESSE 
 **********

 FCN=   95409.32     FROM HESSE     STATUS=OK           758 CALLS     4997 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .48406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    .31056        .39461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4304        1.7527        .19133E-03   -1.5287    
   4  Prefactor     4.3145        4.3144        .96968E-03   -1.5293    
   5  norm          1.9328        .45988        .98195E-04   -1.5430    
   6  Prefactor     4.1454        3.3599        .19797E-03   -1.5301    
   7  Prefactor     43.920        14.130        .60494E-04   -1.4382    
   8  norm          2.3453        1.4582        .13385E-02   -1.5402    
   9  Prefactor     2.3369        4.6442        .13409E-02   -1.5402    
  10  Prefactor     .10000E-03    .64983        .28031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1758        .53601        .89207E-04   -1.5352    
  12  Prefactor     13.574        4.6138        .10871E-03   -1.4971    
  13  norm          1.5772        .44066        .10550E-03   -1.5457    
  14  Prefactor     16.466        7.1067        .98700E-04   -1.4896    
  15  Prefactor     1.0026        1.5162        .45194E-03   -1.5508    
  16  norm          1.5116        .69902        .17040E-03   -1.5462    
  17  Prefactor     .10000E-03    2.3458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2850        6.8024        .13926E-03   -1.5132    
  19  Prefactor     5.4147        3.2044        .17267E-03   -1.5243    
  20  Prefactor     .10000E-03    5.9194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1150        .89636        .23848E-03   -1.5497    
  22  Prefactor     1.5275        12.515        .17277E-02   -1.5461    
  23  Prefactor     .18100        .62601        .19779E-02   -1.5623    
  24  Prefactor     .10000E-03    17.002        .77514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.1060        1.9676        .17792E-03   -1.5256    
  26  norm          3.7434        5.9619        .10434E-02   -1.5321    
  27  norm          .60495        .72874        .27802E-03   -1.5552    
  28  Prefactor     .10000E-03    1.8825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.218        29.089        .81400E-04   -1.4723    
  30  Prefactor     25.430        9.7508        .79437E-04   -1.4699    
  31  Prefactor     4.7450        .76276        .10202E-03   -1.5272    
  32  Prefactor     6.7596        5.0237        .15433E-03   -1.5188    
  33  Normalizat    .92210        .49448E-01    .22979E-03   -.95688    
  34  Prefactor     1.1375        .59502E-01    .26299E-03   -.88276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42413e-07
Minuit parameter uncertainties:
  1  9.4448e-07
  2  0.00022888
  3  1.75272
  4  4.31467
  5  0.459878
  6  3.36002
  7  14.1312
  8  1.45822
  9  4.64496
  10  1.39827e-06
  11  0.536015
  12  4.61395
  13  0.44066
  14  7.10708
  15  1.51627
  16  0.699021
  17  2.71333e-06
  18  6.80303
  19  3.20446
  20  1.09578e-05
  21  0.896369
  22  8.74671
  23  0.62603
  24  0.00039673
  25  1.96763
  26  5.96288
  27  0.728755
  28  2.59224e-07
  29  29.1061
  30  9.75137
  31  0.762757
  32  5.02398
  33  0.0494501
  34  0.0595058
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.003e+00  1.516e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.138e+00  5.951e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.221e-01  4.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 1.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.42e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/633848/likelihoodResults_672451201_675043201_4FGL_J1302.8+5748_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): 0
logL (Free Index) = 95409.309935
delta logL = 0.00703784926736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 95409.3095978
delta logL = 0.00737514525827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96475       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3477       1.0000          .0000       10.000    
     3 'Normalizat'    .92168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   95409.31     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      260 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96475        1.5298        .43272E-03   -.65661E-03
   2  Index         2.3477        .68287        .67032E-02   -.19511E-04
   3  Normalizat    .92168        .47114E-01    .22983E-03   -.12157E-02
   4  Prefactor     1.1378        .59264E-01    .26297E-03   -.77749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.964753
  Index      = 2.34767
  Normalizat = 0.921684
  Prefactor  = 1.1378
 **********
 **   18 **HESSE 
 **********

 FCN=   95409.31     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96475        1.4920        .17309E-04   -1.5512    
   2  Index         2.3477        .66625        .26813E-03   -.55915    
   3  Normalizat    .92168        .47165E-01    .91933E-05   -.95702    
   4  Prefactor     1.1378        .59324E-01    .10519E-04   -.88268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68425e-10
Minuit parameter uncertainties:
  1  1.49204
  2  0.669023
  3  0.0471675
  4  0.0593278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633848': 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) = 95409.3095978
delta logL = 0.00737514525827

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  9.648e-01  1.492e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.348e+00  6.690e-01  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.138e+00  5.933e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.217e-01  4.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
Ra Dec: 195.721 57.815

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/633848/cmap_HighResolution_672451201_675043201_4FGL_J1302.8+5748_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-04', job_status='DONE', photon_flux_upper_limit='1.23e-08', time_completed='2022-05-24 06:30:42.364867', job_id='633848', GAL2='1.14', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1653399042.36', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.38e-03', ts2='0.55', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='168' AND source_name='4FGL J1302.8+5748' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:30:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 633848: <4FGL_J1302.8+5748_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1302.8+5748_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:05:33 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:08:45 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:08:45 2022
Terminated at Tue May 24 06:30:43 2022
Results reported at Tue May 24 06:30:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_monthly_bin168 195.721 57.8146 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11990.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             450.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12118 sec.
    Turnaround time :                            12310 sec.

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

