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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1749
RA = 194.31, Dec = 36.7706
tmin = 692668801, tmax = 692928001
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='953028', job_status='RUN', time_executed='2022-12-17 00:46:58.576132', time_epoch_executed='1671266818.58' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953028

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953028/ft1_4FGL_J1257.2+3646_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953028/ft1_4FGL_J1257.2+3646_daily_bin1749.fits outfile=/scratch/kocevski/953028/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1749.fits ra=194.31 dec=36.7706 rad=12.0 tmin=692668801.0 tmax=692928001.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.64
user 3.41
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.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/953028/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/953028/ltcube_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.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/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/953028/ltcube_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits outfile=/scratch/kocevski/953028/expmap_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.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/953028/ltcube_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits
.....................!
real 193.11
user 187.67
sys 5.13

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

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits outfile=/scratch/kocevski/953028/cmap_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.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=194.31 yref=36.7706 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits outfile=/scratch/kocevski/953028/cmap_HighResolution_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.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=194.31 yref=36.7706 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953028/Model_4FGL_J1257.2+3646_daily_bin1749.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/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits.....................!
real 56.79
user 55.38
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits', '/scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits', expMap='/scratch/kocevski/953028/expmap_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits', expCube='/scratch/kocevski/953028/ltcube_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953028/Model_4FGL_J1257.2+3646_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953028/ft1_filtered_4FGL_J1257.2+3646_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/953028/ft2_4FGL_J1257.2+3646_daily_bin1749.fits
Exposure map: /scratch/kocevski/953028/expmap_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits
Exposure cube: /scratch/kocevski/953028/ltcube_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953028/Model_4FGL_J1257.2+3646_daily_bin1749.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) = 6858.0572068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.779       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35753E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7513       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3917       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15914E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24003E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.992       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31673E-04   1.0000          .0000       .10000E+07
     9 'norm      '    2.2288       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.153       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12574E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .92714E-03   1.0000          .0000       .10000E+07
    13 'norm      '    14.324       1.0000          .0000       .10000E+07
    14 'norm      '    32.406       1.0000          .0000       .10000E+07
    15 'norm      '    19.861       1.0000          .0000       .10000E+07
    16 'Prefactor '    .69982E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .71883E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48593E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    14.354       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1619       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6858.046     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1617 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.808        4.0365       -.25298E-07    .89558E-02
   2  Prefactor      .0000        17.384       -.84879E-06** at limit **
   3  Prefactor     2.7465        2.0029       -.10430E-06   -.20086E-04
   4  Prefactor     4.3903        2.1093        .20876E-06    .10497E-01
   5  Prefactor      .0000        7.7537        .43727E-05** at limit **
   6  Prefactor     .66613E-09    6.2450       -.40495E-05** at limit **
   7  Prefactor     11.996        3.2784       -.16758E-05   -.75018E-02
   8  Prefactor      .0000        1.5100        .47121E-06** at limit **
   9  norm          2.2382        3.5872        .15478E-06    .38880E-02
  10  Prefactor     10.088        1.4354       -.42530E-06    .43044E-02
  11  Prefactor     .27756E-09    3.2733       -.93691E-06** at limit **
  12  norm          .55511E-10    6.5237       -.14105E-06** at limit **
  13  norm          14.308        1.1750        .13528E-06    .87975E-03
  14  norm          32.375        5.4123        .55905E-06    .26371E-01
  15  norm          19.806        3.4352        .16486E-06   -.23437E-02
  16  Prefactor     .44409E-09    25.066        .19165E-04** at limit **
  17  Prefactor     .83267E-09    10.346       -.56659E-06** at limit **
  18  Prefactor     .29976E-08    36.411       -.45893E-05** at limit **
  19  Prefactor     14.341        1.0415       -.41752E-07    .37312E-02
  20  Normalizat    1.1625        .18724       -.39062E-05    .67434E-03
  21  Prefactor     .65110        .22659        .43205E-05    .33217E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8084
  Prefactor  = 0
  Prefactor  = 2.74652
  Prefactor  = 4.39032
  Prefactor  = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 11.9955
  Prefactor  = 0
  norm       = 2.23821
  Prefactor  = 10.0884
  Prefactor  = 2.77556e-10
  norm       = 5.55112e-11
  norm       = 14.308
  norm       = 32.3748
  norm       = 19.8065
  Prefactor  = 4.44089e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 2.9976e-09
  Prefactor  = 14.3409
  Normalizat = 1.16253
  Prefactor  = 0.651099
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.046     FROM HESSE     STATUS=OK           371 CALLS     1988 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.808        4.0465        .30492E-03   -1.5642    
   2  Prefactor      .0000        4.6774        .98462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7465        2.0024        .61346E-03   -1.5675    
   4  Prefactor     4.3903        2.1113        .48035E-03   -1.5666    
   5  Prefactor      .0000        7.7442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66613E-09    6.2511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.996        21.575        .28903E-03   -1.5639    
   8  Prefactor      .0000        1.5101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2382        3.8504        .68837E-03   -1.5678    
  10  Prefactor     10.088        25.300        .31423E-03   -1.5644    
  11  Prefactor     .27756E-09    3.2786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    6.3920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.308        12.764        .26438E-03   -1.5632    
  14  norm          32.375        8.8651        .17569E-03   -1.5594    
  15  norm          19.806        13.324        .22446E-03   -1.5619    
  16  Prefactor     .44409E-09    2.7393        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .83267E-09    10.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29976E-08    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.341        14.009        .26411E-03   -1.5632    
  20  Normalizat    1.1625        .16653        .35900E-01   -.87769    
  21  Prefactor     .65110        .19891        .77943E-01   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6736e-09
Minuit parameter uncertainties:
  1  4.0465
  2  9.2271e-06
  3  2.00236
  4  2.11132
  5  1.51722e-05
  6  0.000130479
  7  21.5755
  8  5.18194e-06
  9  3.85038
  10  25.3006
  11  5.95379e-05
  12  3.1991e-05
  13  12.7645
  14  8.86515
  15  13.3235
  16  6.84656e-05
  17  0.00018904
  18  0.000659313
  19  14.0092
  20  0.166607
  21  0.199124
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  5.182e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  6.511e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.163e+00  1.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 3.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953028/likelihoodResults_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.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) = 6858.0519807
delta logL = -0.00563231783417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6858.0463484
delta logL = -1.40798874781e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6858.046     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      239 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .74536        .42118E-03** at limit **
   2  Index         .66544        .71608       -.27281E-05     .0000    
   3  Normalizat    1.1625        1.1208        .85424E-05   -.85514E-04
   4  Prefactor     .65110        1.0003       -.94208E-05   -.64018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.665438
  Normalizat = 1.16253
  Prefactor  = 0.6511
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6858.046     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .74536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .34939E-03    .84785       -.27281E-05   -1.0490    
   3  Normalizat    1.1625        1.1208        .85424E-05   -.87769    
   4  Prefactor     .65110        1.0003       -.94208E-05   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.80266e-12
Minuit parameter uncertainties:
  1  2.8156e-06
  2  0.726312
  3  1.14521
  4  1.02998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953028': 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): 101
logL (Free Index) = 6858.04634838
delta logL = 1.6916601453e-10

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  2.816e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  6.654e-01  7.263e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  6.511e-01  1.030e+00  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.163e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/953028/cmap_HighResolution_692668801_692928001_4FGL_J1257.2+3646_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-03', job_status='DONE', photon_flux_upper_limit='3.19e-08', time_completed='2022-12-17 00:56:59.346017', job_id='953028', GAL2='0.65', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1671267419.35', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.69e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1749' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:56:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 953028: <4FGL_J1257.2+3646_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:45:19 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:45:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:45:21 2022
Terminated at Sat Dec 17 00:57:00 2022
Results reported at Sat Dec 17 00:57:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1749 194.31 36.7706 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

