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 42 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_J1257.2+3646_daily_bin1747
RA = 194.31, Dec = 36.7706
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='800922', job_status='RUN', time_executed='2022-12-11 00:51:21.454492', time_epoch_executed='1670748681.45' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800922

Creating custom pfile directory:
/scratch/kocevski/800922/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/800922/ft1_4FGL_J1257.2+3646_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/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800922/ft1_4FGL_J1257.2+3646_daily_bin1747.fits outfile=/scratch/kocevski/800922/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1747.fits ra=194.31 dec=36.7706 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.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_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/800922/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/800922/ft1_filtered_4FGL_J1257.2+3646_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.34
sys 0.14

Number of photons that the gtmktime cut: 634

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/800922/ltcube_692150401_692409601_4FGL_J1257.2+3646_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/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits
.....................!
real 12.21
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/800922/ltcube_692150401_692409601_4FGL_J1257.2+3646_daily_bin1747.fits outfile=/scratch/kocevski/800922/expmap_692150401_692409601_4FGL_J1257.2+3646_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/800922/ltcube_692150401_692409601_4FGL_J1257.2+3646_daily_bin1747.fits
.....................!
real 191.12
user 185.51
sys 5.25

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/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits outfile=/scratch/kocevski/800922/cmap_692150401_692409601_4FGL_J1257.2+3646_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=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/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits outfile=/scratch/kocevski/800922/cmap_HighResolution_692150401_692409601_4FGL_J1257.2+3646_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=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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/800922/ft2_4FGL_J1257.2+3646_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800922/Model_4FGL_J1257.2+3646_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/800922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1747.fits.....................!
real 55.71
user 54.36
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0008       1.0000          .0000       .10000E+07
     2 'Prefactor '    .99575E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10823E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7060       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.3445       1.0000          .0000       .10000E+07
     6 'Prefactor '    28.893       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.2958       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8826       1.0000          .0000       .10000E+07
     9 'norm      '    9.0547       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28442E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18179E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .12168E-02   1.0000          .0000       .10000E+07
    13 'norm      '    7.6034       1.0000          .0000       .10000E+07
    14 'norm      '    41.638       1.0000          .0000       .10000E+07
    15 'norm      '    .23616       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7271       1.0000          .0000       .10000E+07
    17 'Prefactor '    .32977E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .47193E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .96657E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88505       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=   6893.484     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1672 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9992        3.2520       -.20785E-07    .27448E-03
   2  Prefactor      .0000        2.3770        .15225E-07** at limit **
   3  Prefactor      .0000        2.0350       -.42586E-07** at limit **
   4  Prefactor     1.7066        2.6040        .20738E-07    .37668E-03
   5  Prefactor     6.3503        9.3772        .36024E-07   -.12826E-01
   6  Prefactor     29.083        1.3528        .27414E-08    .12966E-01
   7  Prefactor     5.2938        1.1521       -.16766E-08   -.57980E-02
   8  Prefactor     2.8894        2.9681       -.94554E-07    .35361E-03
   9  norm          8.9224        5.5605        .25805E-06    .33165E-03
  10  Prefactor      .0000        29.615       -.25410E-06** at limit **
  11  Prefactor     .72164E-09    10.477        .42133E-07** at limit **
  12  norm          .10436E-07    11.005        .62754E-07** at limit **
  13  norm          7.6043        3.1512        .39862E-08    .47580E-01
  14  norm          41.792        6.7961       -.23559E-07    .50992E-03
  15  norm          .85587E-06    1.9864       -.49166E-07** at limit **
  16  Prefactor     2.7229        2.6709        .24709E-07   -.12528E-04
  17  Prefactor     .14433E-08    6.8852       -.81619E-07** at limit **
  18  Prefactor     .16653E-09    55.776       -.26190E-06** at limit **
  19  Prefactor     .55511E-10    5.1024        .14685E-06** at limit **
  20  Normalizat    1.0365        .18985       -.11310E-05   -.44740E-05
  21  Prefactor     .88562        .23148        .18332E-05   -.73251E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99924
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.70656
  Prefactor  = 6.35025
  Prefactor  = 29.0834
  Prefactor  = 5.29382
  Prefactor  = 2.88936
  norm       = 8.92243
  Prefactor  = 0
  Prefactor  = 7.21645e-10
  norm       = 1.04361e-08
  norm       = 7.60434
  norm       = 41.7919
  norm       = 8.55871e-07
  Prefactor  = 2.72286
  Prefactor  = 1.44329e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.03649
  Prefactor  = 0.885623
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.484     FROM HESSE     STATUS=OK           367 CALLS     2039 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9992        3.2733        .37892E-03   -1.5655    
   2  Prefactor      .0000        2.3794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.0011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7066        2.6554        .80475E-03   -1.5682    
   5  Prefactor     6.3503        9.9031        .39826E-03   -1.5658    
   6  Prefactor     29.083        27.562        .18607E-03   -1.5600    
   7  Prefactor     5.2938        13.186        .43652E-03   -1.5662    
   8  Prefactor     2.8894        2.9716        .59835E-03   -1.5674    
   9  norm          8.9224        5.5657        .33284E-03   -1.5648    
  10  Prefactor      .0000        29.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72164E-09    10.481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10436E-07    10.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6043        9.4724        .36345E-03   -1.5653    
  14  norm          41.792        8.7603        .15499E-03   -1.5579    
  15  norm          .85587E-06    12.697        .80365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7229        2.6760        .61637E-03   -1.5675    
  17  Prefactor     .14433E-08    7.0203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-09    55.774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    5.1130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0365        .16216        .41530E-01   -.91818    
  21  Prefactor     .88562        .19696        .70147E-01   -.96645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06844e-08
Minuit parameter uncertainties:
  1  3.27332
  2  1.07175e-05
  3  1.59547e-06
  4  2.65537
  5  9.90316
  6  27.5617
  7  13.1862
  8  2.97159
  9  5.56568
  10  2.33724e-05
  11  0.000173741
  12  0.000673939
  13  9.47241
  14  8.76031
  15  0.00659317
  16  2.67598
  17  0.000202946
  18  0.000193312
  19  2.79717e-05
  20  0.162233
  21  0.197117
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.889e+00  2.972e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.856e-01  1.971e-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.036e+00  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 7.09e-06 +/- 7.29e-06

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) = 6893.06348155
delta logL = 0.420108305691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6893.03678745
delta logL = 0.446802397811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6901       1.0000          .0000       .10000E+07
     2 'Index     '    1.3856       1.0000          .0000       10.000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88303       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=   6893.037     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6918        215.67        .52551E-03   -.21136E-02
   2  Index         1.3859        6.3526        .31264       -.13314E-04
   3  Normalizat    1.0415        .14833        .41161E-01    .75409E-05
   4  Prefactor     .88303        .13773        .70238E-01    .17541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69179
  Index      = 1.38586
  Normalizat = 1.04154
  Prefactor  = 0.883032
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.037     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6918        3.8662        .15951E-04   -1.5670    
   2  Index         1.3859        .63052        .11639E-01   -.80789    
   3  Normalizat    1.0415        .18678        .23507E-03   -.91652    
   4  Prefactor     .88303        .23005        .31076E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67552e-13
Minuit parameter uncertainties:
  1  3.86624
  2  0.634068
  3  0.186893
  4  0.230305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800922': 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): 0
logL (Free Index) = 6893.0367873
delta logL = 0.446802555716

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.692e+00  3.866e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.386e+00  6.341e-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:  8.830e-01  2.303e-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.042e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.39 +/- 0.63
Photon Flux (Free Index): 5.26e-09 +/- 6.71e-09
Energy Flux (Free Index): 2.43e-05 +/- 4.10e-05

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/800922/cmap_HighResolution_692150401_692409601_4FGL_J1257.2+3646_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='2.43e-05', photon_flux_error='1.13e-08', dlogl='4.47e-01', energy_flux='7.09e-06', photon_flux2='5.26e-09', job_status='DONE', time_completed='2022-12-11 01:00:44.913053', photon_index_error2='0.63', photon_index2='1.39', ts='4.23', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='1.04', time_epoch_completed='1670749244.91', return_code='0', job_id='800922', GAL2='0.88', EG2='1.04', return_code2='0', energy_flux_error='7.29e-06', photon_flux_error2='6.71e-09', ts2='5.12', photon_index='2.03' WHERE bin_id='1747' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:00:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 800922: <4FGL_J1257.2+3646_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:50:29 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:50:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:50:30 2022
Terminated at Sun Dec 11 01:00:45 2022
Results reported at Sun Dec 11 01:00:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1747 194.31 36.7706 692150401 692409601 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 :                                   566.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            616 sec.

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

