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 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1771
RA = 196.008, Dec = 37.071
tmin = 698371201, tmax = 698630401
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='548806', job_status='RUN', time_executed='2023-02-21 00:55:27.835432', time_epoch_executed='1676969727.84' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548806

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548806/ft1_4FGL_J1304.0+3704_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548806/ft1_4FGL_J1304.0+3704_daily_bin1771.fits outfile=/scratch/kocevski/548806/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1771.fits ra=196.008 dec=37.071 rad=12.0 tmin=698371201.0 tmax=698630401.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 3.15
user 2.90
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.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/548806/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.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.71
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 209

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/548806/ltcube_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.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/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits
.....................!
real 12.79
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/548806/ltcube_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits outfile=/scratch/kocevski/548806/expmap_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.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/548806/ltcube_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits
.....................!
real 191.99
user 186.51
sys 5.00

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

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits outfile=/scratch/kocevski/548806/cmap_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.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=196.008 yref=37.071 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits outfile=/scratch/kocevski/548806/cmap_HighResolution_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.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=196.008 yref=37.071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548806/Model_4FGL_J1304.0+3704_daily_bin1771.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/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits.....................!
real 27.68
user 26.20
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits', '/scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits', expMap='/scratch/kocevski/548806/expmap_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits', expCube='/scratch/kocevski/548806/ltcube_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548806/Model_4FGL_J1304.0+3704_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548806/ft1_filtered_4FGL_J1304.0+3704_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/548806/ft2_4FGL_J1304.0+3704_daily_bin1771.fits
Exposure map: /scratch/kocevski/548806/expmap_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits
Exposure cube: /scratch/kocevski/548806/ltcube_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548806/Model_4FGL_J1304.0+3704_daily_bin1771.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) = 2376.68654299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7815       1.0000          .0000       .10000E+07
     2 'Prefactor '    32.409       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20211E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .80663E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .67498E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    68.212       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46487E-03   1.0000          .0000       .10000E+07
     8 'norm      '    4.5867       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15169E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .71899E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .12323E-07   1.0000          .0000       .10000E+07
    12 'norm      '    25.772       1.0000          .0000       .10000E+07
    13 'norm      '    42.739       1.0000          .0000       .10000E+07
    14 'norm      '    .86597E-08   1.0000          .0000       .10000E+07
    15 'norm      '    .49001E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .46993E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    14.946       1.0000          .0000       .10000E+07
    18 'Prefactor '    36.004       1.0000          .0000       .10000E+07
    19 'Prefactor '    33.138       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.046       1.0000          .0000       .10000E+07
    21 'Prefactor '    .50498       1.0000          .0000       .10000E+07
    22 'Prefactor '    .80517E-02   1.0000          .0000       .10000E+07
    23 'norm      '    1.2356       1.0000          .0000       .10000E+07
    24 'Prefactor '    6.2428       1.0000          .0000       .10000E+07
    25 'norm      '    .45609E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .71502       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2374.650     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     2440 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2415        5.3035       -.29731E-06   -.31053E-01
   2  Prefactor     32.221        14.902        .26298E-06    .31710E-01
   3  Prefactor     .88818E-09    8.1235       -.20950E-06** at limit **
   4  Prefactor     .16653E-09    13.633        .54349E-06** at limit **
   5  Prefactor     .13142E-05    54.171        .98794E-06** at limit **
   6  Prefactor     72.149        58.145       -.38582E-06    .91937E-01
   7  Prefactor     .22204E-09    5.6938       -.32599E-06** at limit **
   8  norm          4.6701        10.095       -.64392E-06   -.33952E-03
   9  Prefactor     .52086E-06    27.387       -.67903E-06** at limit **
  10  Prefactor     .37192E-08    10.191       -.91765E-06** at limit **
  11  norm          .55511E-10    2.8708       -.14534E-06** at limit **
  12  norm          25.829        1.2173        .14626E-07    .11201E-02
  13  norm          42.775        11.930        .53303E-07   -.86121E-03
  14  norm          .37759E-06    25.739        .26227E-05** at limit **
  15  norm          .32196E-08    14.928       -.11727E-06** at limit **
  16  Prefactor     .48350E-07    4.0386        .59034E-07** at limit **
  17  Prefactor     13.285        8.1816       -.70605E-06   -.45741E-02
  18  Prefactor     37.144        33.280       -.27393E-06   -.10012    
  19  Prefactor     47.348        91.955        .47608E-05   -.11957E-01
  20  Prefactor     15.045        1.7084        .11157E-06    .35808E-02
  21  Prefactor     .18867E-04    140.65        .85474E-06** at limit **
  22  Prefactor     .74940E-08    14.964        .87177E-06** at limit **
  23  norm          1.2446        1.5406       -.20880E-06   -.76452E-03
  24  Prefactor     6.2617        7.5802        .20998E-06   -.40349E-03
  25  norm          .95479E-08    12.260       -.10377E-05** at limit **
  26  Normalizat    .71361        .35546       -.25942E-04    .89017E-06
  27  Prefactor     1.4328        .44753        .30725E-04   -.38404E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.24145
  Prefactor  = 32.2213
  Prefactor  = 8.88178e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 1.31417e-06
  Prefactor  = 72.1487
  Prefactor  = 2.22045e-10
  norm       = 4.67008
  Prefactor  = 5.20861e-07
  Prefactor  = 3.71925e-09
  norm       = 5.55112e-11
  norm       = 25.8294
  norm       = 42.775
  norm       = 3.77587e-07
  norm       = 3.21965e-09
  Prefactor  = 4.83502e-08
  Prefactor  = 13.2854
  Prefactor  = 37.1435
  Prefactor  = 47.3478
  Prefactor  = 15.0446
  Prefactor  = 1.88671e-05
  Prefactor  = 7.49401e-09
  norm       = 1.24457
  Prefactor  = 6.26167
  norm       = 9.54792e-09
  Normalizat = 0.713607
  Prefactor  = 1.43284
 **********
 **   18 **HESSE 
 **********

 FCN=   2374.650     FROM HESSE     STATUS=OK           538 CALLS     2978 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2415        17.404        .41747E-03   -1.5658    
   2  Prefactor     32.221        50.585        .17568E-03   -1.5594    
   3  Prefactor     .88818E-09    8.1522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    17.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13142E-05    54.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     72.149        71.622        .12109E-03   -1.5538    
   7  Prefactor     .22204E-09    5.6832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6701        10.149        .46976E-03   -1.5665    
   9  Prefactor     .52086E-06    28.007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37192E-08    10.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    2.8732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.829        25.347        .19702E-03   -1.5606    
  13  norm          42.775        13.039        .15298E-03   -1.5577    
  14  norm          .37759E-06    26.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .32196E-08    14.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48350E-07    16.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.285        29.318        .25881E-03   -1.5635    
  18  Prefactor     37.144        51.439        .16668E-03   -1.5586    
  19  Prefactor     47.348        92.723        .17374E-03   -1.5570    
  20  Prefactor     15.045        23.147        .25795E-03   -1.5630    
  21  Prefactor     .18867E-04    154.53        .78210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .74940E-08    15.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2446        1.5767        .10098E-02   -1.5686    
  24  Prefactor     6.2617        7.6042        .40153E-03   -1.5658    
  25  norm          .95479E-08    12.637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .71361        .29933        .68114E-01   -1.0336    
  27  Prefactor     1.4328        .37327        .63367E-01   -.79438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66106e-06
Minuit parameter uncertainties:
  1  17.4044
  2  50.5853
  3  0.000172714
  4  0.000105158
  5  0.0169976
  6  71.6225
  7  7.39551e-05
  8  10.1494
  9  0.00763889
  10  0.000389292
  11  1.98809e-05
  12  25.3467
  13  13.0386
  14  0.00630965
  15  0.000440222
  16  0.00181156
  17  29.318
  18  51.4396
  19  92.7255
  20  23.147
  21  0.107993
  22  0.00068259
  23  1.5767
  24  7.60422
  25  0.000693747
  26  0.300022
  27  0.373979
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.719e-09  3.893e-04  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.433e+00  3.740e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.136e-01  3.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548806/likelihoodResults_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.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) = 2374.69611892
delta logL = -0.0464901897872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2374.64962914
delta logL = -4.06202161685e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19192E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4099       1.0000          .0000       10.000    
     3 'Normalizat'    .71365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2374.650     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      234 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-07    .54946        .42118E-03** at limit **
   2  Index         2.6627        5.7925        .50000        .39904E-08
   3  Normalizat    .71361        .18934E-02    .68114E-01   -.49026E-03
   4  Prefactor     1.4328        .24130E-02    .63367E-01   -.60714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-08
  Index      = 2.66274
  Normalizat = 0.713607
  Prefactor  = 1.43284
 **********
 **   18 **HESSE 
 **********

 FCN=   2374.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-07    2.9838        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6627        6.2867        .50000       -.48641    
   3  Normalizat    .71361        .44041E-02    .30141E-03   -1.0336    
   4  Prefactor     1.4328        .56193E-02    .28024E-03   -.79439    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55195e-10
Minuit parameter uncertainties:
  1  0.000390526
  2  9337.1
  3  0.00440411
  4  0.00561933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548806': 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) = 2374.64962873
delta logL = -1.25419319374e-09

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.277e-08  3.905e-04  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.663e+00  9.337e+03  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.433e+00  5.619e-03  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.136e-01  4.404e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/548806/cmap_HighResolution_698371201_698630401_4FGL_J1304.0+3704_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2023-02-21 01:03:11.851325', job_id='548806', GAL2='1.43', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1676970191.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='-1.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1771' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:03:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 548806: <4FGL_J1304.0+3704_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:55:14 2023
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:55:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:55:15 2023
Terminated at Tue Feb 21 01:03:12 2023
Results reported at Tue Feb 21 01:03:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1771 196.008 37.071 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   465.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   477 sec.
    Turnaround time :                            478 sec.

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

