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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1747
RA = 196.008, Dec = 37.071
tmin = 692150401, tmax = 692409601
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='803490', job_status='RUN', time_executed='2022-12-11 01:03:59.822271', time_epoch_executed='1670749439.82' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803490/ft1_4FGL_J1304.0+3704_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803490/ft1_4FGL_J1304.0+3704_daily_bin1747.fits outfile=/scratch/kocevski/803490/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1747.fits ra=196.008 dec=37.071 rad=12.0 tmin=692150401.0 tmax=692409601.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.97
user 3.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.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/803490/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/803490/ltcube_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.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/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/803490/ltcube_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits outfile=/scratch/kocevski/803490/expmap_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.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/803490/ltcube_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits
.....................!
real 190.52
user 185.12
sys 5.06

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/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits scfile=/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits outfile=/scratch/kocevski/803490/cmap_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits scfile=/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits outfile=/scratch/kocevski/803490/cmap_HighResolution_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits', '/scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits', expMap='/scratch/kocevski/803490/expmap_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits', expCube='/scratch/kocevski/803490/ltcube_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803490/Model_4FGL_J1304.0+3704_daily_bin1747.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/803490/ft1_filtered_4FGL_J1304.0+3704_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/803490/ft2_4FGL_J1304.0+3704_daily_bin1747.fits
Exposure map: /scratch/kocevski/803490/expmap_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits
Exposure cube: /scratch/kocevski/803490/ltcube_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803490/Model_4FGL_J1304.0+3704_daily_bin1747.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) = 6681.53462862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13323E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .56621E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.0279       1.0000          .0000       .10000E+07
     5 'Prefactor '    25.044       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8431       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.9745       1.0000          .0000       .10000E+07
     8 'norm      '    9.6759       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17235E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .47697E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .31836E-01   1.0000          .0000       .10000E+07
    12 'norm      '    8.2496       1.0000          .0000       .10000E+07
    13 'norm      '    42.178       1.0000          .0000       .10000E+07
    14 'norm      '    .91339E-03   1.0000          .0000       .10000E+07
    15 'norm      '    6.3966       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.8296       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21479E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    33.633       1.0000          .0000       .10000E+07
    19 'Prefactor '    .30459E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .75823E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    70.620       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17895E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .88873E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    3.7752       1.0000          .0000       .10000E+07
    25 'norm      '    .19167E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65538       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=   6681.411     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     2465 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4893        3.9512       -.99843E-07    .17339E-02
   2  Prefactor      .0000        2.2288       -.42216E-06** at limit **
   3  Prefactor      .0000        1.3998        .24417E-06** at limit **
   4  Prefactor     7.0370        9.9458        .18734E-06    .59442E-02
   5  Prefactor     25.097        1.3932        .16746E-07    .11851E-01
   6  Prefactor     6.8248        2.5439        .36909E-07    .12884    
   7  Prefactor     2.9719        3.0331       -.12290E-06   -.13040E-02
   8  norm          9.6894        5.6409       -.16484E-06    .15057E-02
   9  Prefactor     .12101E-07    31.879        .17377E-05** at limit **
  10  Prefactor     .26645E-08    13.535       -.75484E-06** at limit **
  11  norm          .25535E-08    31.937        .39081E-05** at limit **
  12  norm          8.2527        9.6560       -.11034E-06    .47892E-02
  13  norm          42.255        6.8262       -.55375E-08    .30927E-02
  14  norm          .35361E-06    60.076       -.17578E-05** at limit **
  15  norm          6.4391        4.3565       -.43072E-06    .35920E-02
  16  Prefactor     2.8275        2.7122       -.23118E-06    .17483E-02
  17  Prefactor     .22204E-09    7.2759       -.25325E-06** at limit **
  18  Prefactor     30.632        42.973        .18702E-06    .30262E-02
  19  Prefactor     .44237E-06    71.740        .13501E-06** at limit **
  20  Prefactor      .0000        6.0765        .14526E-06** at limit **
  21  Prefactor     73.481        43.363       -.16363E-06   -.27838E-02
  22  Prefactor     .47740E-08    13.850       -.23795E-07** at limit **
  23  norm           .0000        .74125        .22778E-06** at limit **
  24  Prefactor     3.8015        4.7651        .20062E-06   -.45167E-04
  25  norm          .55511E-10    3.6888       -.42377E-06** at limit **
  26  Normalizat    1.1414        .18603       -.75809E-05    .90688E-04
  27  Prefactor     .65570        .22407        .90142E-05    .37856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.48934
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.03697
  Prefactor  = 25.0974
  Prefactor  = 6.82475
  Prefactor  = 2.9719
  norm       = 9.68939
  Prefactor  = 1.21014e-08
  Prefactor  = 2.66454e-09
  norm       = 2.55351e-09
  norm       = 8.25265
  norm       = 42.2552
  norm       = 3.53606e-07
  norm       = 6.43909
  Prefactor  = 2.82753
  Prefactor  = 2.22045e-10
  Prefactor  = 30.6319
  Prefactor  = 4.42368e-07
  Prefactor  = 0
  Prefactor  = 73.4809
  Prefactor  = 4.77396e-09
  norm       = 0
  Prefactor  = 3.80149
  norm       = 5.55112e-11
  Normalizat = 1.14139
  Prefactor  = 0.655698
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.411     FROM HESSE     STATUS=OK           550 CALLS     3015 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4893        3.9613        .34387E-03   -1.5650    
   2  Prefactor      .0000        2.2314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.3852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0370        9.9732        .37818E-03   -1.5655    
   5  Prefactor     25.097        25.350        .19987E-03   -1.5608    
   6  Prefactor     6.8248        13.507        .38330E-03   -1.5656    
   7  Prefactor     2.9719        3.0335        .58844E-03   -1.5673    
   8  norm          9.6894        5.6508        .32191E-03   -1.5646    
   9  Prefactor     .12101E-07    31.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .26645E-08    13.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25535E-08    2.3083        .72072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.2527        9.6604        .34881E-03   -1.5651    
  13  norm          42.255        6.8910        .15399E-03   -1.5578    
  14  norm          .35361E-06    60.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4391        4.4223        .39661E-03   -1.5657    
  16  Prefactor     2.8275        2.7313        .60431E-03   -1.5674    
  17  Prefactor     .22204E-09    7.2786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.632        50.022        .17245E-03   -1.5597    
  19  Prefactor     .44237E-06    72.773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        6.0769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     73.481        51.456        .11900E-03   -1.5537    
  22  Prefactor     .47740E-08    13.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .72841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8015        4.7758        .51933E-03   -1.5669    
  25  norm          .55511E-10    3.6946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1414        .16331        .36507E-01   -.88434    
  27  Prefactor     .65570        .19617        .76730E-01   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67974e-07
Minuit parameter uncertainties:
  1  3.96135
  2  1.39307e-05
  3  4.61007e-06
  4  9.97319
  5  25.3502
  6  13.5074
  7  3.03352
  8  5.6508
  9  0.0012423
  10  0.000380323
  11  0.000154085
  12  9.66038
  13  6.89103
  14  0.00923728
  15  4.42226
  16  2.73132
  17  8.219e-05
  18  50.0229
  19  0.0113479
  20  3.5427e-06
  21  51.4561
  22  0.0005132
  23  3.82583e-06
  24  4.77578
  25  2.21881e-05
  26  0.163386
  27  0.196379
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.665e-09  3.803e-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:  6.557e-01  1.964e-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:  1.141e+00  1.634e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803490/likelihoodResults_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.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) = 6681.44874752
delta logL = -0.0378193929264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6681.41093287
delta logL = -4.73716318083e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13267E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.6941       1.0000          .0000       10.000    
     3 'Normalizat'    1.1413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65596       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=   6681.411     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      231 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12990E-07    .81436        .42118E-03** at limit **
   2  Index         2.1877        6.0922        .50000        .18417E-08
   3  Normalizat    1.1414        .75533E-03    .36523E-01    .42040E-03
   4  Prefactor     .65570        .91944E-03    .76730E-01    .36047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29896e-08
  Index      = 2.18765
  Normalizat = 1.14139
  Prefactor  = 0.6557
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.411     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12990E-07    4.2157        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1877        5.9583        .50000       -.59737    
   3  Normalizat    1.1414        .17150E-02    .21821E-03   -.88434    
   4  Prefactor     .65570        .20829E-02    .33972E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67152e-10
Minuit parameter uncertainties:
  1  0.000468266
  2  4492
  3  0.00171497
  4  0.00208292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803490': 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) = 6681.41092813
delta logL = -3.0286173569e-10

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.299e-08  4.683e-04  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.188e+00  4.492e+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:  6.557e-01  2.083e-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:  1.141e+00  1.715e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/803490/cmap_HighResolution_692150401_692409601_4FGL_J1304.0+3704_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2022-12-11 01:15:40.770668', job_id='803490', GAL2='0.66', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1670750140.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-3.03e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1747' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:15:40 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 803490: <4FGL_J1304.0+3704_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1747> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Dec 11 01:00:23 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:00:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:00:23 2022
Terminated at Sun Dec 11 01:15:41 2022
Results reported at Sun Dec 11 01:15:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1747 196.008 37.071 692150401 692409601 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 :                                   703.00 sec.
    Max Memory :                                 1195 MB
    Average Memory :                             272.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            918 sec.

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

