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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1754
RA = 194.31, Dec = 36.7706
tmin = 693964801, tmax = 694224001
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='642073', job_status='RUN', time_executed='2023-01-01 01:07:37.305216', time_epoch_executed='1672564057.31' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642073/ft1_4FGL_J1257.2+3646_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642073/ft1_4FGL_J1257.2+3646_daily_bin1754.fits outfile=/scratch/kocevski/642073/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1754.fits ra=194.31 dec=36.7706 rad=12.0 tmin=693964801.0 tmax=694224001.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.91
user 3.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.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/642073/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/642073/ft1_filtered_4FGL_J1257.2+3646_daily_bin1754.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.35
sys 0.15

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642073/ft1_filtered_4FGL_J1257.2+3646_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/642073/ltcube_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.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/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits
.....................!
real 14.85
user 14.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642073/ft1_filtered_4FGL_J1257.2+3646_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642073/ltcube_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.fits outfile=/scratch/kocevski/642073/expmap_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.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/642073/ltcube_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.fits
.....................!
real 191.83
user 186.41
sys 4.99

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/642073/ft1_filtered_4FGL_J1257.2+3646_daily_bin1754.fits scfile=/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits outfile=/scratch/kocevski/642073/cmap_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642073/ft1_filtered_4FGL_J1257.2+3646_daily_bin1754.fits scfile=/scratch/kocevski/642073/ft2_4FGL_J1257.2+3646_daily_bin1754.fits outfile=/scratch/kocevski/642073/cmap_HighResolution_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4501       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53681E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15588E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1816       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27008E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    18.538       1.0000          .0000       .10000E+07
     7 'Prefactor '    .25539E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .95747E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .59271E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .51346E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    9.6191       1.0000          .0000       .10000E+07
    12 'norm      '    5.5712       1.0000          .0000       .10000E+07
    13 'norm      '    22.394       1.0000          .0000       .10000E+07
    14 'norm      '    19.458       1.0000          .0000       .10000E+07
    15 'norm      '    8.0357       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19898       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73627E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23424E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.5739       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3504       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .54913       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=   5999.448     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1712 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4493        3.0625       -.46699E-07    .15099E-03
   2  Prefactor      .0000        2.3454       -.22075E-07** at limit **
   3  Prefactor      .0000        1.1752       -.28366E-07** at limit **
   4  Prefactor     2.1809        2.1028       -.13973E-07   -.47144E-03
   5  Prefactor     .55511E-10    3.4584       -.91041E-07** at limit **
   6  Prefactor     18.533        1.1605       -.11543E-07   -.11323E-02
   7  Prefactor     .13323E-08    6.9225        .30987E-06** at limit **
   8  Prefactor      .0000        1.9007       -.22351E-07** at limit **
   9  norm           .0000        2.1502        .19608E-07** at limit **
  10  Prefactor     .89928E-07    108.13       -.17192E-06** at limit **
  11  Prefactor     9.6971        16.169        .64663E-06    .21284E-01
  12  norm          5.5598        4.9275       -.15892E-06   -.23858E-02
  13  norm          22.401        8.8926       -.61753E-07    .16571    
  14  norm          19.482        6.4204       -.15924E-06    .44984E-01
  15  norm          8.0532        9.0450       -.48873E-07   -.54222E-01
  16  Prefactor     .15278        16.095        .52729E-06** at limit **
  17  Prefactor     .31652E-06    36.912        .20864E-05** at limit **
  18  Prefactor     .21166E-06    34.729        .78141E-06** at limit **
  19  Prefactor     9.5743        9.2270       -.12159E-06   -.89379E-01
  20  Normalizat    1.3507        .19541        .41330E-06    .40083E-04
  21  Prefactor     .54896        .23080        .13191E-05    .25427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44927
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.18086
  Prefactor  = 5.55112e-11
  Prefactor  = 18.5327
  Prefactor  = 1.33227e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 8.99281e-08
  Prefactor  = 9.69708
  norm       = 5.55979
  norm       = 22.4012
  norm       = 19.4819
  norm       = 8.05319
  Prefactor  = 0.152782
  Prefactor  = 3.16525e-07
  Prefactor  = 2.11664e-07
  Prefactor  = 9.57434
  Normalizat = 1.35071
  Prefactor  = 0.548962
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.448     FROM HESSE     STATUS=OK           367 CALLS     2079 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4493        3.1005        .65325E-03   -1.5677    
   2  Prefactor      .0000        2.3609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.1751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1809        2.1193        .69669E-03   -1.5678    
   5  Prefactor     .55511E-10    3.4817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.533        37.034        .23235E-03   -1.5622    
   7  Prefactor     .13323E-08    6.9539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.9063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.1660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89928E-07    107.26        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6971        16.433        .32287E-03   -1.5646    
  12  norm          5.5598        4.9573        .42540E-03   -1.5661    
  13  norm          22.401        13.102        .21137E-03   -1.5613    
  14  norm          19.482        6.6939        .22678E-03   -1.5620    
  15  norm          8.0532        9.6459        .35346E-03   -1.5651    
  16  Prefactor     .15278        1.5417        .65976E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31652E-06    37.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .21166E-06    35.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.5743        10.539        .32363E-03   -1.5646    
  20  Normalizat    1.3507        .17230        .45988E-01   -.82065    
  21  Prefactor     .54896        .20393        .83384E-01   -1.0978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81615e-07
Minuit parameter uncertainties:
  1  3.10049
  2  3.04542e-06
  3  3.28458e-07
  4  2.11935
  5  3.00823e-05
  6  37.0347
  7  0.000190605
  8  5.7833e-06
  9  3.77442e-06
  10  0.00621186
  11  16.4334
  12  4.95735
  13  13.1023
  14  6.69388
  15  9.6459
  16  0.970663
  17  0.00688356
  18  0.00546722
  19  10.5385
  20  0.172373
  21  0.204205
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  5.783e-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:  5.490e-01  2.042e-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.351e+00  1.724e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642073/likelihoodResults_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.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) = 5999.44893497
delta logL = -0.000785818694567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5999.44815613
delta logL = -6.97805990058e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37012E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .89265       1.0000          .0000       10.000    
     3 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54845       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=   5999.448     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      228 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0856        .42118E-03** at limit **
   2  Index         1.2878        1.4542        .16629E-04     .0000    
   3  Normalizat    1.3507        1.0696       -.12397E-04   -.54754E-03
   4  Prefactor     .54896        .89427       -.36766E-05   -.20458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.28775
  Normalizat = 1.35071
  Prefactor  = 0.548963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5999.448     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .12500        1.5309        .16629E-04   -.83672    
   3  Normalizat    1.3507        1.0696       -.12397E-04   -.82065    
   4  Prefactor     .54896        .89427       -.36766E-05   -1.0978    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68725e-10
Minuit parameter uncertainties:
  1  8.77505e-06
  2  1.50431
  3  1.08805
  4  0.918999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642073': 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) = 5999.44814915
delta logL = -1.25510268845e-10

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  8.775e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.288e+00  1.504e+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:  5.490e-01  9.190e-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.351e+00  1.088e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/642073/cmap_HighResolution_693964801_694224001_4FGL_J1257.2+3646_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2023-01-01 01:17:21.772347', job_id='642073', GAL2='0.55', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1672564641.77', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-1.26e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1754' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:17:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 642073: <4FGL_J1257.2+3646_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:24 2023
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:07:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:07:20 2023
Terminated at Sun Jan  1 01:17:22 2023
Results reported at Sun Jan  1 01:17:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1754 194.31 36.7706 693964801 694224001 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 :                                   586.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            718 sec.

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

