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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1763
RA = 194.31, Dec = 36.7706
tmin = 696297601, tmax = 696556801
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='279488', job_status='RUN', time_executed='2023-01-28 00:53:15.707694', time_epoch_executed='1674895995.71' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279488/ft1_4FGL_J1257.2+3646_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279488/ft1_4FGL_J1257.2+3646_daily_bin1763.fits outfile=/scratch/kocevski/279488/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1763.fits ra=194.31 dec=36.7706 rad=12.0 tmin=696297601.0 tmax=696556801.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.65
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.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/279488/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 594

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/279488/ltcube_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.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/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits
.....................!
real 15.15
user 14.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/279488/ltcube_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits outfile=/scratch/kocevski/279488/expmap_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.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/279488/ltcube_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits
.....................!
real 192.61
user 186.21
sys 5.88

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/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits scfile=/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits outfile=/scratch/kocevski/279488/cmap_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits scfile=/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits outfile=/scratch/kocevski/279488/cmap_HighResolution_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits', '/scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits', expMap='/scratch/kocevski/279488/expmap_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits', expCube='/scratch/kocevski/279488/ltcube_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279488/Model_4FGL_J1257.2+3646_daily_bin1763.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/279488/ft1_filtered_4FGL_J1257.2+3646_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/279488/ft2_4FGL_J1257.2+3646_daily_bin1763.fits
Exposure map: /scratch/kocevski/279488/expmap_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits
Exposure cube: /scratch/kocevski/279488/ltcube_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279488/Model_4FGL_J1257.2+3646_daily_bin1763.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) = 6593.37809703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3829       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17847E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .47506E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4278       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11496E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1120       1.0000          .0000       .10000E+07
     7 'Prefactor '    .51912E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25978E-05   1.0000          .0000       .10000E+07
     9 'norm      '    2.6104       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20308E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27821E-03   1.0000          .0000       .10000E+07
    12 'norm      '    6.0071       1.0000          .0000       .10000E+07
    13 'norm      '    .96950E-06   1.0000          .0000       .10000E+07
    14 'norm      '    20.702       1.0000          .0000       .10000E+07
    15 'norm      '    60.707       1.0000          .0000       .10000E+07
    16 'Prefactor '    .58285E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4950       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96450E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.6506       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .42195       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=   6593.349     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1596 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3891        4.0653        .95551E-09   -.11161E-01
   2  Prefactor     .12749E-04    11.608        .17405E-07** at limit **
   3  Prefactor     .53291E-08    2.1543        .22232E-08** at limit **
   4  Prefactor     6.4209        3.9040       -.45882E-09    .13483E-02
   5  Prefactor     .36138E-07    5.1456       -.21731E-08** at limit **
   6  Prefactor     4.1230        1.1140        .63446E-09   -.23491E-02
   7  Prefactor     .62933E-06    5.3564        .80046E-08** at limit **
   8  Prefactor     .72164E-09    1.4915        .13193E-08** at limit **
   9  norm          2.5870        4.8484       -.21706E-08    .10727E-01
  10  Prefactor     .38419E-06    5.8362       -.40746E-08** at limit **
  11  Prefactor     .11102E-09    3.7006       -.87231E-09** at limit **
  12  norm          6.0161        4.5669       -.99357E-09    .12328E-01
  13  norm          .55028E-06    5.5045       -.10871E-07** at limit **
  14  norm          20.715        6.6993        .83346E-09   -.37346E-01
  15  norm          60.699        3.2804       -.28685E-09    .79762E-03
  16  Prefactor     .38858E-09    1.9198        .18148E-08** at limit **
  17  Prefactor     2.5308        2.5156       -.34441E-08    .67209E-02
  18  Prefactor     .57216E-05    17.311       -.11201E-07** at limit **
  19  Prefactor     .81712E-07    5.6834       -.14943E-08** at limit **
  20  Normalizat    1.6503        .22103       -.62578E-08    .18427E-03
  21  Prefactor     .42214        .24986        .94982E-08    .65822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38911
  Prefactor  = 1.27487e-05
  Prefactor  = 5.32907e-09
  Prefactor  = 6.42086
  Prefactor  = 3.61378e-08
  Prefactor  = 4.12303
  Prefactor  = 6.2933e-07
  Prefactor  = 7.21645e-10
  norm       = 2.58696
  Prefactor  = 3.84193e-07
  Prefactor  = 1.11022e-10
  norm       = 6.01613
  norm       = 5.50282e-07
  norm       = 20.7145
  norm       = 60.6987
  Prefactor  = 3.88578e-10
  Prefactor  = 2.53076
  Prefactor  = 5.72159e-06
  Prefactor  = 8.17124e-08
  Normalizat = 1.65033
  Prefactor  = 0.422143
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.349     FROM HESSE     STATUS=OK           357 CALLS     1953 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3891        4.1064        .43290E-03   -1.5662    
   2  Prefactor     .12749E-04    18.205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .53291E-08    2.1794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4209        3.9160        .39564E-03   -1.5657    
   5  Prefactor     .36138E-07    5.1504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1230        21.410        .49689E-03   -1.5667    
   7  Prefactor     .62933E-06    7.0658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    1.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5870        4.9328        .63109E-03   -1.5676    
  10  Prefactor     .38419E-06    11.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    3.7162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0161        4.5959        .40944E-03   -1.5659    
  13  norm          .55028E-06    7.6057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.715        12.313        .21985E-03   -1.5617    
  15  norm          60.699        22.377        .12835E-03   -1.5552    
  16  Prefactor     .38858E-09    1.9556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5308        27.920        .64679E-03   -1.5676    
  18  Prefactor     .57216E-05    19.785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .81712E-07    11.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6503        .20486        .49634E-01   -.73637    
  21  Prefactor     .42214        .23312        .10519       -1.1569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21606e-06
Minuit parameter uncertainties:
  1  4.10644
  2  0.0304691
  3  0.0002152
  4  3.91601
  5  0.000862859
  6  18.7909
  7  0.00421746
  8  6.67408e-05
  9  4.9328
  10  0.00426335
  11  4.28613e-05
  12  4.5959
  13  0.00409163
  14  12.3135
  15  22.3774
  16  5.44935e-05
  17  16.8119
  18  0.0212791
  19  0.00197793
  20  0.20496
  21  0.233644
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.216e-10  6.674e-05  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:  4.221e-01  2.336e-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.650e+00  2.050e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279488/likelihoodResults_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.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) = 6593.35302292
delta logL = -0.0041946287065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6593.34882837
delta logL = -7.55844666855e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     2 'Index     '    .93205       1.0000          .0000       10.000    
     3 'Normalizat'    1.6504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42205       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.

 FCN=   6593.349     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      254 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .31239E-01    .42118E-03** at limit **
   2  Index         1.3279        6.8977        .45412       -.20028E-10
   3  Normalizat    1.6503        .59528E-03    .49634E-01    .21368E-03
   4  Prefactor     .42214        .68766E-03    .10519        .10163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.32789
  Normalizat = 1.65033
  Prefactor  = 0.422142
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.349     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      281 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .11719        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3279        8.4458        .50000       -.82481    
   3  Normalizat    1.6503        .11526E-02    .21940E-03   -.73637    
   4  Prefactor     .42214        .13267E-02    .46648E-03   -1.1569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74733e-12
Minuit parameter uncertainties:
  1  5.40729e-06
  2  28581.5
  3  0.00115261
  4  0.0013267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279488': 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) = 6593.34882829
delta logL = 2.06455297302e-10

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.551e-11  5.407e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.328e+00  2.858e+04  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:  4.221e-01  1.327e-03  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.650e+00  1.153e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279488/cmap_HighResolution_696297601_696556801_4FGL_J1257.2+3646_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-03', job_status='DONE', photon_flux_upper_limit='3.30e-08', time_completed='2023-01-28 01:03:12.260487', job_id='279488', GAL2='0.42', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1674896592.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='2.06e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1763' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:03:12 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 279488: <4FGL_J1257.2+3646_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jan 28 00:50:26 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:52:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:52:27 2023
Terminated at Sat Jan 28 01:03:13 2023
Results reported at Sat Jan 28 01:03:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1763 194.31 36.7706 696297601 696556801 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 :                                   598.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            767 sec.

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

