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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1714
RA = 194.31, Dec = 36.7706
tmin = 683596801, tmax = 683856001
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='123451', job_status='RUN', time_executed='2022-09-16 17:05:01.609243', time_epoch_executed='1663373101.61' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123451/ft1_4FGL_J1257.2+3646_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123451/ft2_4FGL_J1257.2+3646_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123451/ft1_4FGL_J1257.2+3646_daily_bin1714.fits outfile=/scratch/kocevski/123451/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1714.fits ra=194.31 dec=36.7706 rad=12.0 tmin=683596801.0 tmax=683856001.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.52
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123451/ft2_4FGL_J1257.2+3646_daily_bin1714.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/123451/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/123451/ft1_filtered_4FGL_J1257.2+3646_daily_bin1714.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.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 590

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123451/ft1_filtered_4FGL_J1257.2+3646_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/123451/ft2_4FGL_J1257.2+3646_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/123451/ltcube_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.fits outfile=/scratch/kocevski/123451/expmap_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.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/123451/ltcube_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.fits
.....................!
real 191.43
user 186.34
sys 4.73

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/123451/ft1_filtered_4FGL_J1257.2+3646_daily_bin1714.fits scfile=/scratch/kocevski/123451/ft2_4FGL_J1257.2+3646_daily_bin1714.fits outfile=/scratch/kocevski/123451/cmap_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123451/ft1_filtered_4FGL_J1257.2+3646_daily_bin1714.fits scfile=/scratch/kocevski/123451/ft2_4FGL_J1257.2+3646_daily_bin1714.fits outfile=/scratch/kocevski/123451/cmap_HighResolution_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4848       1.0000          .0000       .10000E+07
     2 'Prefactor '    .59316E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30531E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.7480       1.0000          .0000       .10000E+07
     6 'Prefactor '    .21540E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.120       1.0000          .0000       .10000E+07
     8 'Prefactor '    .52098E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .63505E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48235E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10971E-03   1.0000          .0000       .10000E+07
    12 'norm      '    7.1934       1.0000          .0000       .10000E+07
    13 'norm      '    17.445       1.0000          .0000       .10000E+07
    14 'norm      '    17.163       1.0000          .0000       .10000E+07
    15 'norm      '    9.9652       1.0000          .0000       .10000E+07
    16 'Prefactor '    .66436E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2034       1.0000          .0000       .10000E+07
    18 'Prefactor '    .50315E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.4104       1.0000          .0000       .10000E+07
    20 'Normalizat'    .85985       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2426       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=   6402.527     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1265 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4856        3.4111        .69517E-07   -.42939E-03
   2  Prefactor     .14821E-07    5.7454        .68625E-06** at limit **
   3  Prefactor      .0000        .56635        .28597E-06** at limit **
   4  Prefactor      .0000        .82155       -.76908E-07** at limit **
   5  Prefactor     4.7563        1.4030       -.10158E-06   -.87961E-02
   6  Prefactor     .22204E-09    9.1352        .12276E-05** at limit **
   7  Prefactor     20.528        18.682       -.73146E-06    .23506E-01
   8  Prefactor      .0000        4.6503       -.95798E-06** at limit **
   9  norm          .55511E-10    4.0002        .64692E-07** at limit **
  10  Prefactor      .0000        13.234        .70033E-06** at limit **
  11  Prefactor     .12323E-07    5.2030        .51926E-06** at limit **
  12  norm          7.2073        4.8353        .14025E-06    .11380E-02
  13  norm          17.464        1.0438        .96107E-08    .11519E-01
  14  norm          17.187        4.6893       -.13240E-06   -.57376E-02
  15  norm          9.9436        4.5265        .16466E-06    .25569E-01
  16  Prefactor      .0000        1.9651       -.97022E-06** at limit **
  17  Prefactor     5.2152        3.5371       -.21860E-06   -.58002E-01
  18  Prefactor     .61617E-08    109.19       -.16321E-05** at limit **
  19  Prefactor     5.4463        1.2072        .20806E-07    .34979E-02
  20  Normalizat    .85943        .19518        .21505E-04    .57376E-04
  21  Prefactor     1.2426        .25013       -.10541E-04    .15903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.48564
  Prefactor  = 1.48215e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.75627
  Prefactor  = 2.22045e-10
  Prefactor  = 20.5279
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.23235e-08
  norm       = 7.20731
  norm       = 17.4645
  norm       = 17.1868
  norm       = 9.94363
  Prefactor  = 0
  Prefactor  = 5.21517
  Prefactor  = 6.16174e-09
  Prefactor  = 5.44632
  Normalizat = 0.859429
  Prefactor  = 1.24258
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.527     FROM HESSE     STATUS=OK           357 CALLS     1622 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4856        3.4279        .34391E-03   -1.5650    
   2  Prefactor     .14821E-07    5.8820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .56614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .82331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7563        11.550        .46152E-03   -1.5664    
   6  Prefactor     .22204E-09    9.1548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.528        19.631        .22301E-03   -1.5617    
   8  Prefactor      .0000        4.6488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    3.9804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        13.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12323E-07    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2073        4.8423        .37376E-03   -1.5654    
  13  norm          17.464        13.164        .23952E-03   -1.5624    
  14  norm          17.187        8.7835        .24149E-03   -1.5625    
  15  norm          9.9436        15.268        .31718E-03   -1.5645    
  16  Prefactor      .0000        1.9631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2152        12.132        .44045E-03   -1.5662    
  18  Prefactor     .61617E-08    109.21        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4463        17.138        .43178E-03   -1.5661    
  20  Normalizat    .85943        .16525        .44386E-01   -.97901    
  21  Prefactor     1.2426        .21086        .61916E-01   -.85031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28634e-07
Minuit parameter uncertainties:
  1  3.42795
  2  0.000590618
  3  8.45507e-07
  4  5.71384e-06
  5  11.5501
  6  9.05209e-05
  7  19.6312
  8  4.12477e-06
  9  3.38955e-05
  10  2.88426e-06
  11  0.00051177
  12  4.84235
  13  13.1642
  14  8.78349
  15  15.2677
  16  1.00691e-05
  17  12.1321
  18  0.00163919
  19  17.1386
  20  0.165347
  21  0.211008
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  4.125e-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:  1.243e+00  2.110e-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:  8.594e-01  1.653e-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: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123451/likelihoodResults_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6402.52793012
delta logL = -0.000481618358208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6402.34518362
delta logL = 0.18226488205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66838E-01   1.0000          .0000       .10000E+07
     2 'Index     '    3.9072       1.0000          .0000       10.000    
     3 'Normalizat'    .83012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2642       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=   6402.345     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      302 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66583E-01    1.5984        .77702E-03** at limit **
   2  Index         3.9070        2.4568        .11377        .13476E-03
   3  Normalizat    .83016        .23956E-01    .44002E-01    .44282E-05
   4  Prefactor     1.2641        .31070E-01    .61453E-01   -.12812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0665834
  Index      = 3.90696
  Normalizat = 0.830162
  Prefactor  = 1.26407
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.345     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      335 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66583E-01    9.9139        .34111E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9070        6.6037        .71191E-02   -.22039    
   3  Normalizat    .83016        .14339        .25396E-03   -.98959    
   4  Prefactor     1.2641        .18378        .27179E-03   -.84382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30475e-06
Minuit parameter uncertainties:
  1  1.62493
  2  9.20075
  3  0.143458
  4  0.183871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123451': 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) = 6402.3451798
delta logL = 0.182268693469

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.658e-02  1.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  3.907e+00  9.201e+00  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:  1.264e+00  1.839e-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:  8.302e-01  1.435e-01  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/123451/cmap_HighResolution_683596801_683856001_4FGL_J1257.2+3646_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2022-09-16 17:14:20.806192', job_id='123451', GAL2='1.26', fit_tolerance='1e-08', EG2='0.83', EG='0.86', time_epoch_completed='1663373660.81', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.82e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1714' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:14:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 123451: <4FGL_J1257.2+3646_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1714> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:28 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:02:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:02:44 2022
Terminated at Fri Sep 16 17:14:21 2022
Results reported at Fri Sep 16 17:14:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1714 194.31 36.7706 683596801 683856001 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 :                                   561.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            833 sec.

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

