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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1711
RA = 194.31, Dec = 36.7706
tmin = 682819201, tmax = 683078401
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='123447', job_status='RUN', time_executed='2022-09-16 17:06:46.383422', time_epoch_executed='1663373206.38' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123447/ft1_4FGL_J1257.2+3646_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123447/ft1_4FGL_J1257.2+3646_daily_bin1711.fits outfile=/scratch/kocevski/123447/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1711.fits ra=194.31 dec=36.7706 rad=12.0 tmin=682819201.0 tmax=683078401.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.81
user 3.53
sys 0.20

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

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

Number of photons that the gtmktime cut: 509

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123447/ft1_filtered_4FGL_J1257.2+3646_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/123447/ltcube_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.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/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits
.....................!
real 11.70
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123447/ft1_filtered_4FGL_J1257.2+3646_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/123447/ltcube_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.fits outfile=/scratch/kocevski/123447/expmap_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.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/123447/ltcube_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.fits
.....................!
real 158.04
user 153.07
sys 4.05

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/123447/ft1_filtered_4FGL_J1257.2+3646_daily_bin1711.fits scfile=/scratch/kocevski/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits outfile=/scratch/kocevski/123447/cmap_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123447/ft1_filtered_4FGL_J1257.2+3646_daily_bin1711.fits scfile=/scratch/kocevski/123447/ft2_4FGL_J1257.2+3646_daily_bin1711.fits outfile=/scratch/kocevski/123447/cmap_HighResolution_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1279       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11465E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2796       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2673       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81235E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .47927       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.108       1.0000          .0000       .10000E+07
     8 'Prefactor '    .93022E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .11935E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12046E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.9575       1.0000          .0000       .10000E+07
    12 'norm      '    .14209E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .20189E-05   1.0000          .0000       .10000E+07
    14 'norm      '    16.779       1.0000          .0000       .10000E+07
    15 'norm      '    .27762E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18078E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6374       1.0000          .0000       .10000E+07
    18 'Prefactor '    86.753       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1718       1.0000          .0000       .10000E+07
    20 'Normalizat'    .97260       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1585       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=   5736.494     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1716 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1644        4.2256        .17499E-07    .19929E-02
   2  Prefactor     .38858E-09    6.7582        .36228E-07** at limit **
   3  Prefactor     2.2695        2.3652       -.30091E-07   -.25134E-02
   4  Prefactor     1.2669        1.6418        .26479E-07    .34689E-02
   5  Prefactor      .0000        3.2784       -.49612E-07** at limit **
   6  Prefactor     .18180E-06    49.358       -.50958E-06** at limit **
   7  Prefactor     14.749        15.588        .54607E-07    .10176    
   8  Prefactor     .11102E-09    3.1444       -.16888E-07** at limit **
   9  norm          .15670E-04    10.367       -.23921E-06** at limit **
  10  Prefactor     .31434E-05    27.641       -.21482E-06** at limit **
  11  Prefactor     5.0367        13.541        .32253E-07   -.98121E-02
  12  norm          .11102E-09    4.6282       -.31705E-07** at limit **
  13  norm          .13878E-08    8.0679       -.14991E-06** at limit **
  14  norm          16.760        5.9753       -.17741E-07    .12612E-01
  15  norm           .0000        3.9214       -.11563E-06** at limit **
  16  Prefactor     .74870E-05    42.941       -.90719E-06** at limit **
  17  Prefactor     6.3327        12.348        .35045E-06   -.56320E-01
  18  Prefactor     85.439        83.603       -.25928E-06   -.99877E-02
  19  Prefactor     2.1285        19.042       -.43130E-06    .30018E-01
  20  Normalizat    .97290        .21679       -.16566E-05    .21570E-05
  21  Prefactor     1.1582        .26542        .22936E-05    .90050E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.16441
  Prefactor  = 3.88578e-10
  Prefactor  = 2.26949
  Prefactor  = 1.26691
  Prefactor  = 0
  Prefactor  = 1.81799e-07
  Prefactor  = 14.7489
  Prefactor  = 1.11022e-10
  norm       = 1.56697e-05
  Prefactor  = 3.14337e-06
  Prefactor  = 5.03669
  norm       = 1.11022e-10
  norm       = 1.38778e-09
  norm       = 16.7603
  norm       = 0
  Prefactor  = 7.48696e-06
  Prefactor  = 6.33271
  Prefactor  = 85.4387
  Prefactor  = 2.12846
  Normalizat = 0.972901
  Prefactor  = 1.15822
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.494     FROM HESSE     STATUS=OK           373 CALLS     2089 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1644        4.2278        .33149E-03   -1.5647    
   2  Prefactor     .38858E-09    6.7431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2695        2.3673        .67978E-03   -1.5678    
   4  Prefactor     1.2669        1.6681        .98871E-03   -1.5685    
   5  Prefactor      .0000        3.2787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18180E-06    49.374        .80823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.749        18.581        .25742E-03   -1.5631    
   8  Prefactor     .11102E-09    3.1420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .15670E-04    4.6380        .52776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31434E-05    33.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0367        13.619        .45145E-03   -1.5663    
  12  norm          .11102E-09    4.6239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .13878E-08    8.0894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.760        6.7995        .24424E-03   -1.5626    
  15  norm           .0000        3.9232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74870E-05    4.9731        .48344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3327        29.706        .42285E-03   -1.5658    
  18  Prefactor     85.439        87.542        .10737E-03   -1.5523    
  19  Prefactor     2.1285        58.631        .69845E-03   -1.5679    
  20  Normalizat    .97290        .18421        .45823E-01   -.93944    
  21  Prefactor     1.1582        .22216        .64554E-01   -.87627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74088e-07
Minuit parameter uncertainties:
  1  4.22783
  2  0.000100841
  3  2.36728
  4  1.66807
  5  1.86184e-05
  6  0.00599249
  7  18.5809
  8  3.46257e-05
  9  0.0170501
  10  0.0206283
  11  13.6196
  12  4.29455e-05
  13  0.000213881
  14  6.79952
  15  1.2932e-05
  16  0.0122038
  17  27.4316
  18  87.5433
  19  22.3424
  20  0.184329
  21  0.22234
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.110e-10  3.463e-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:  1.158e+00  2.223e-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:  9.729e-01  1.843e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123447/likelihoodResults_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.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) = 5736.49478316
delta logL = -0.000329062606397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.49445493
delta logL = -8.30886165204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30353E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .66047       1.0000          .0000       10.000    
     3 'Normalizat'    .97266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5735.330     FROM MIGRAD    STATUS=CONVERGED    320 CALLS      514 TOTAL
                     EDM=   .26E-04  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88263E-08    .22354E-06     .0000    ** at limit **
   2  Index        10.0000        6.3104         .0000    ** at limit **
   3  Normalizat    .89333        .18507         .0000        .53361E-02
   4  Prefactor     1.2277        .23091         .0000        .17001E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82627e-09
  Index      = 10
  Normalizat = 0.893327
  Prefactor  = 1.22774
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.330     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      553 TOTAL
                     EDM=   .21E+03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88263E-08    .10578E-06    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        9.9533        .41873        1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89333        .39949E-01    .45823E-01   -.96695    
   4  Prefactor     1.2277        .49583E-01    .62976E-01   -.85482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 212.278
Minuit parameter uncertainties:
  1  6.1022e-08
  2  0.00429074
  3  0.0399503
  4  0.0495847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123447': 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) = 5735.33046631
delta logL = 1.1639877872

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.826e-09  6.102e-08  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.000e+01  4.291e-03  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.228e+00  4.958e-02  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.933e-01  3.995e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 194.310 36.771
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.11e-08 +/- 4.10e-07
Energy Flux (Free Index): 6.82e-06 +/- 4.61e-05

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/123447/cmap_HighResolution_682819201_683078401_4FGL_J1257.2+3646_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', comment='SUCCESS', energy_flux2='6.82e-06', dlogl='1.16e+00', photon_flux2='6.11e-08', job_status='DONE', time_completed='2022-09-16 17:15:07.809726', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.33e-08', energy_flux_error2='4.61e-05', EG='0.97', time_epoch_completed='1663373707.81', return_code='0', job_id='123447', GAL2='1.23', EG2='0.89', return_code2='102', photon_flux_error2='4.10e-07', ts2='2.48', photon_index='2.03' WHERE bin_id='1711' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:15:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 123447: <4FGL_J1257.2+3646_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:27 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:02:41 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:41 2022
Terminated at Fri Sep 16 17:15:08 2022
Results reported at Fri Sep 16 17:15:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1711 194.31 36.7706 682819201 683078401 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 :                                   500.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            881 sec.

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

