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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1756
RA = 194.31, Dec = 36.7706
tmin = 694483201, tmax = 694742401
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='13100', job_status='RUN', time_executed='2023-01-07 00:52:26.926853', time_epoch_executed='1673081546.93' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13100/ft1_4FGL_J1257.2+3646_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13100/ft2_4FGL_J1257.2+3646_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13100/ft1_4FGL_J1257.2+3646_daily_bin1756.fits outfile=/scratch/kocevski/13100/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1756.fits ra=194.31 dec=36.7706 rad=12.0 tmin=694483201.0 tmax=694742401.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 2.99
user 2.74
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13100/ft1_filtered_4FGL_J1257.2+3646_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/13100/ft2_4FGL_J1257.2+3646_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/13100/ltcube_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.fits outfile=/scratch/kocevski/13100/expmap_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.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/13100/ltcube_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.fits
.....................!
real 190.75
user 185.47
sys 4.62

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/13100/ft1_filtered_4FGL_J1257.2+3646_daily_bin1756.fits scfile=/scratch/kocevski/13100/ft2_4FGL_J1257.2+3646_daily_bin1756.fits outfile=/scratch/kocevski/13100/cmap_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13100/ft1_filtered_4FGL_J1257.2+3646_daily_bin1756.fits scfile=/scratch/kocevski/13100/ft2_4FGL_J1257.2+3646_daily_bin1756.fits outfile=/scratch/kocevski/13100/cmap_HighResolution_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5389       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11718E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.1176       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.0102       1.0000          .0000       .10000E+07
     5 'Prefactor '    .43686E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.717       1.0000          .0000       .10000E+07
     7 'Prefactor '    .28813E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .62037E-03   1.0000          .0000       .10000E+07
     9 'norm      '    13.717       1.0000          .0000       .10000E+07
    10 'Prefactor '    .51107E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .39911E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .96589E-08   1.0000          .0000       .10000E+07
    13 'norm      '    2.4116       1.0000          .0000       .10000E+07
    14 'norm      '    78.585       1.0000          .0000       .10000E+07
    15 'norm      '    7.1567       1.0000          .0000       .10000E+07
    16 'Prefactor '    .46670E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .19164E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .77995E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.2721       1.0000          .0000       .10000E+07
    20 'Normalizat'    .86268       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2427       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=   10197.86     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1304 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5032        4.2967        .21359E-07    .50008E-04
   2  Prefactor     .66613E-08    5.1230       -.87715E-07** at limit **
   3  Prefactor     1.1304        2.5451       -.14716E-07    .93615E-04
   4  Prefactor     7.0231        3.1220       -.16220E-07   -.45132E-04
   5  Prefactor     .38858E-09    5.6230       -.11779E-06** at limit **
   6  Prefactor     12.977        1.2578        .17725E-08    .48146E-02
   7  Prefactor     .14433E-08    4.6335       -.18186E-06** at limit **
   8  Prefactor     .88818E-09    4.2461       -.49284E-07** at limit **
   9  norm          13.760        5.5345       -.33750E-07   -.14151E-02
  10  Prefactor     .12657E-07    12.809       -.49540E-06** at limit **
  11  Prefactor     .55456E-07    8.0283       -.41061E-06** at limit **
  12  norm           .0000        1.0610        .34889E-07** at limit **
  13  norm          2.4470        5.0236       -.49277E-07    .24101E-04
  14  norm          78.613        5.9451       -.21628E-07    .38143E-01
  15  norm          7.1476        5.2074       -.42026E-07   -.15881E-01
  16  Prefactor     .13900E-06    2.1645       -.60995E-07** at limit **
  17  Prefactor     .59730E-07    2.3423       -.99305E-07** at limit **
  18  Prefactor     .23870E-08    11.576       -.84466E-07** at limit **
  19  Prefactor     5.3112        2.4356        .59252E-09   -.24571E-03
  20  Normalizat    .86227        .17036       -.38085E-06    .12492E-04
  21  Prefactor     1.2427        .21433        .10250E-05    .85366E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50315
  Prefactor  = 6.66134e-09
  Prefactor  = 1.13038
  Prefactor  = 7.02313
  Prefactor  = 3.88578e-10
  Prefactor  = 12.9765
  Prefactor  = 1.44329e-09
  Prefactor  = 8.88178e-10
  norm       = 13.7602
  Prefactor  = 1.26565e-08
  Prefactor  = 5.54556e-08
  norm       = 0
  norm       = 2.44701
  norm       = 78.6129
  norm       = 7.14761
  Prefactor  = 1.39e-07
  Prefactor  = 5.973e-08
  Prefactor  = 2.38698e-09
  Prefactor  = 5.3112
  Normalizat = 0.862272
  Prefactor  = 1.24272
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.86     FROM HESSE     STATUS=OK           363 CALLS     1667 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5032        4.4182        .39222E-03   -1.5657    
   2  Prefactor     .66613E-08    8.2359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1304        2.6864        .11123E-02   -1.5687    
   4  Prefactor     7.0231        3.1429        .37866E-03   -1.5655    
   5  Prefactor     .38858E-09    6.9860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.977        18.173        .28064E-03   -1.5636    
   7  Prefactor     .14433E-08    4.7016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88818E-09    4.2913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.760        5.5924        .27019E-03   -1.5634    
  10  Prefactor     .12657E-07    20.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55456E-07    21.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.0674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4470        5.0597        .65895E-03   -1.5677    
  14  norm          78.613        9.0829        .11281E-03   -1.5531    
  15  norm          7.1476        10.635        .37472E-03   -1.5654    
  16  Prefactor     .13900E-06    1.3188        .63136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .59730E-07    7.4930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .23870E-08    11.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3112        12.689        .43751E-03   -1.5662    
  20  Normalizat    .86227        .14530        .44423E-01   -.97799    
  21  Prefactor     1.2427        .18044        .67646E-01   -.85027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90588e-08
Minuit parameter uncertainties:
  1  4.41818
  2  0.000468121
  3  2.68643
  4  3.14291
  5  0.000104773
  6  18.1735
  7  0.000166069
  8  0.00012163
  9  5.59241
  10  0.00101697
  11  0.00217898
  12  1.01533e-05
  13  5.05974
  14  9.08287
  15  10.6346
  16  0.000856235
  17  0.00133816
  18  0.000337805
  19  12.6894
  20  0.145364
  21  0.180533
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.882e-10  1.216e-04  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  1.805e-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.623e-01  1.454e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13100/likelihoodResults_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.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) = 10197.9883083
delta logL = -0.125797270708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10197.8625135
delta logL = -2.40895315073e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21030E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.3481       1.0000          .0000       10.000    
     3 'Normalizat'    .86201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2431       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=   10197.86     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      228 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    .16375E-01    .42118E-03** at limit **
   2  Index         2.0970        5.2237        .50000        .54570E-09
   3  Normalizat    .86226        .22704E-03    .44414E-01   -.85080E-03
   4  Prefactor     1.2427        .28885E-03    .67646E-01   -.10337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Index      = 2.09699
  Normalizat = 0.862264
  Prefactor  = 1.24273
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.86     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    .12596        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0970        8.9189        .50000       -.61947    
   3  Normalizat    .86226        .62695E-03    .27804E-03   -.97799    
   4  Prefactor     1.2427        .79727E-03    .29924E-03   -.85026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66985e-12
Minuit parameter uncertainties:
  1  1.96458e-05
  2  2472.85
  3  0.000626947
  4  0.000797274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13100': 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) = 10197.862511
delta logL = -1.08047970571e-09

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.772e-10  1.965e-05  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.097e+00  2.473e+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.243e+00  7.973e-04  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.623e-01  6.269e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/13100/cmap_HighResolution_694483201_694742401_4FGL_J1257.2+3646_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2023-01-07 01:05:13.953140', job_id='13100', GAL2='1.24', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1673082313.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-1.08e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1756' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:05:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 13100: <4FGL_J1257.2+3646_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:50:14 2023
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:50:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:50:47 2023
Terminated at Sat Jan  7 01:05:14 2023
Results reported at Sat Jan  7 01:05:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1756 194.31 36.7706 694483201 694742401 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 :                                   768.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            900 sec.

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

