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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1755
RA = 194.473, Dec = 32.4721
tmin = 694224001, tmax = 694483201
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='823655', job_status='RUN', time_executed='2023-01-04 01:01:55.298978', time_epoch_executed='1672822915.3' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823655/ft1_4FGL_J1257.8+3228_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823655/ft1_4FGL_J1257.8+3228_daily_bin1755.fits outfile=/scratch/kocevski/823655/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1755.fits ra=194.473 dec=32.4721 rad=12.0 tmin=694224001.0 tmax=694483201.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.01
user 2.77
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.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/823655/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.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.52
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 784

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/823655/ltcube_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.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/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits
.....................!
real 16.92
user 16.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/823655/ltcube_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits outfile=/scratch/kocevski/823655/expmap_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.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/823655/ltcube_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits
.....................!
real 194.25
user 187.93
sys 5.75

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits outfile=/scratch/kocevski/823655/cmap_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.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.473 yref=32.4721 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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits outfile=/scratch/kocevski/823655/cmap_HighResolution_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.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.473 yref=32.4721 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823655/Model_4FGL_J1257.8+3228_daily_bin1755.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/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits.....................!
real 65.99
user 64.55
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits', '/scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits', expMap='/scratch/kocevski/823655/expmap_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits', expCube='/scratch/kocevski/823655/ltcube_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823655/Model_4FGL_J1257.8+3228_daily_bin1755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/823655/ft1_filtered_4FGL_J1257.8+3228_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/823655/ft2_4FGL_J1257.8+3228_daily_bin1755.fits
Exposure map: /scratch/kocevski/823655/expmap_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits
Exposure cube: /scratch/kocevski/823655/ltcube_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823655/Model_4FGL_J1257.8+3228_daily_bin1755.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) = 8286.64474186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.207       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11328E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.7860       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.9689       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11878E-03   1.0000          .0000       .10000E+07
     6 'norm      '    17.366       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10931E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.574       1.0000          .0000       .10000E+07
     9 'Prefactor '    .32233E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .57338E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .13060E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.6306       1.0000          .0000       .10000E+07
    13 'norm      '    .89089       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.2182       1.0000          .0000       .10000E+07
    15 'norm      '    3.2811       1.0000          .0000       .10000E+07
    16 'norm      '    .43880E-03   1.0000          .0000       .10000E+07
    17 'norm      '    40.664       1.0000          .0000       .10000E+07
    18 'norm      '    3.6036       1.0000          .0000       .10000E+07
    19 'norm      '    14.560       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18885E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .31603E-03   1.0000          .0000       .10000E+07
    22 'norm      '    33.013       1.0000          .0000       .10000E+07
    23 'Prefactor '    .63626E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .12202E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    26.810       1.0000          .0000       .10000E+07
    26 'Prefactor '    4.2559       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8286.496     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1922 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.175        5.0043        .23959E-06    .45192E-02
   2  Prefactor     .11879E-06    3.6359        .35637E-05** at limit **
   3  Prefactor     4.7904        3.0116       -.58960E-06    .56395E-02
   4  Prefactor     2.9754        2.5267        .45308E-06    .50052E-02
   5  Prefactor     .55511E-10    1.7660       -.42939E-06** at limit **
   6  norm          17.359        1.1963       -.13299E-06   -.52142E-01
   7  Prefactor     .49077E-06    2.1858       -.27054E-06** at limit **
   8  Prefactor     18.369        1.3995       -.26424E-06   -.73304E-02
   9  Prefactor     .11147E-06    1.8176       -.98329E-06** at limit **
  10  Prefactor     .55511E-10    1.6469        .52272E-06** at limit **
  11  norm          .99920E-09    2.5758        .75304E-06** at limit **
  12  Prefactor     9.7599        6.2234       -.30516E-05   -.47598E-01
  13  norm          .89384        1.8086        .19163E-06   -.19008E-02
  14  Prefactor     8.2238        1.0603       -.44089E-07   -.11436E-01
  15  norm          3.2783        3.2998       -.30936E-06    .30653E-02
  16  norm          .13850E-06    5.0479       -.52518E-06** at limit **
  17  norm          40.778        4.7891        .23905E-07    .53626E-03
  18  norm          3.4270        2.8375        .10333E-05    .27684E-02
  19  norm          14.532        1.0538        .50302E-07    .10142E-01
  20  Prefactor     .55511E-10    1.4001       -.49476E-06** at limit **
  21  Prefactor     .97866E-07    1.7014        .61843E-06** at limit **
  22  norm          33.016        1.0858        .65106E-07    .34811E-01
  23  Prefactor     .71221E-06    12.778        .71807E-05** at limit **
  24  Prefactor     .69278E-06    14.248       -.75090E-05** at limit **
  25  Prefactor     26.752        8.3538        .26422E-05   -.69886E-02
  26  Prefactor     4.2600        3.2193        .17213E-06    .35431E-02
  27  Normalizat    1.2006        .18707       -.19029E-05   -.52010E-04
  28  Prefactor     .76591        .22165        .85033E-05   -.26420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1749
  Prefactor  = 1.18794e-07
  Prefactor  = 4.79036
  Prefactor  = 2.97544
  Prefactor  = 5.55112e-11
  norm       = 17.3594
  Prefactor  = 4.90774e-07
  Prefactor  = 18.3693
  Prefactor  = 1.11466e-07
  Prefactor  = 5.55112e-11
  norm       = 9.99201e-10
  Prefactor  = 9.75989
  norm       = 0.89384
  Prefactor  = 8.22383
  norm       = 3.27832
  norm       = 1.385e-07
  norm       = 40.7775
  norm       = 3.42697
  norm       = 14.5318
  Prefactor  = 5.55112e-11
  Prefactor  = 9.78662e-08
  norm       = 33.0156
  Prefactor  = 7.12208e-07
  Prefactor  = 6.92779e-07
  Prefactor  = 26.7524
  Prefactor  = 4.25997
  Normalizat = 1.20065
  Prefactor  = 0.765906
 **********
 **   18 **HESSE 
 **********

 FCN=   8286.496     FROM HESSE     STATUS=OK           579 CALLS     2501 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.175        5.0174        .31338E-03   -1.5644    
   2  Prefactor     .11879E-06    4.6892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7904        3.0133        .45964E-03   -1.5664    
   4  Prefactor     2.9754        2.5472        .58904E-03   -1.5673    
   5  Prefactor     .55511E-10    1.7663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.359        5.7887        .24007E-03   -1.5625    
   7  Prefactor     .49077E-06    5.2060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.369        19.096        .23211E-03   -1.5622    
   9  Prefactor     .11147E-06    3.3126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.6511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99920E-09    2.5738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7599        16.069        .32267E-03   -1.5645    
  13  norm          .89384        1.8217        .46392E-03   -1.5689    
  14  Prefactor     8.2238        8.7962        .34948E-03   -1.5651    
  15  norm          3.2783        3.3450        .55875E-03   -1.5672    
  16  norm          .13850E-06    5.8993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          40.778        10.589        .15683E-03   -1.5580    
  18  norm          3.4270        23.598        .53203E-03   -1.5671    
  19  norm          14.532        12.008        .26222E-03   -1.5632    
  20  Prefactor     .55511E-10    1.3904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97866E-07    3.3982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          33.016        8.9731        .17407E-03   -1.5593    
  23  Prefactor     .71221E-06    16.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .69278E-06    18.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.752        18.715        .19317E-03   -1.5605    
  26  Prefactor     4.2600        3.2143        .48817E-03   -1.5667    
  27  Normalizat    1.2006        .16091        .54529E-01   -.86583    
  28  Prefactor     .76591        .18934        .79866E-01   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53304e-07
Minuit parameter uncertainties:
  1  5.01737
  2  0.00149287
  3  3.01327
  4  2.54725
  5  2.29131e-05
  6  5.7887
  7  0.00319682
  8  19.0963
  9  0.00121541
  10  1.82541e-05
  11  0.00010044
  12  16.0693
  13  1.82167
  14  8.79621
  15  3.34502
  16  0.00180771
  17  10.5891
  18  17.9857
  19  12.008
  20  2.01147e-05
  21  0.0011535
  22  8.97309
  23  0.00685415
  24  0.00707059
  25  18.7147
  26  3.21427
  27  0.160978
  28  0.189502
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  9.992e-10  1.004e-04  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.659e-01  1.895e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.201e+00  1.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823655/likelihoodResults_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.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) = 8286.49601155
delta logL = -0.000256278593952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8286.49575544
delta logL = -1.70191924553e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12212E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    1.5857       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8286.496     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      239 TOTAL
                     EDM=   .73E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6004        .60594E-08** at limit **
   2  alpha         2.8681        1.5267        .13620E-05     .0000    
   3  Normalizat    1.2006        .18396       -.19319E-05    .19368E-05
   4  Prefactor     .76591        .22122        .20121E-07   -.30176E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.86809
  Normalizat = 1.20065
  Prefactor  = 0.765905
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8286.496     FROM HESSE     STATUS=FAILED        11 CALLS      250 TOTAL
                     EDM=   .73E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.5549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6141        1.2168        .13620E-05    .14777    
   3  Normalizat    1.2006        1.1061       -.19319E-05   -.86583    
   4  Prefactor     .76591        1.1152        .20121E-07   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.31285e-14
Minuit parameter uncertainties:
  1  4.85614e-07
  2  1.1207
  3  1.12884
  4  1.15075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823655': 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) = 8286.49575527
delta logL = 1.94631866179e-10

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  0.000e+00  4.856e-07  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.868e+00  1.121e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.659e-01  1.151e+00  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.201e+00  1.129e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.473 32.472

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/823655/cmap_HighResolution_694224001_694483201_4FGL_J1257.8+3228_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2023-01-04 01:14:39.786095', job_id='823655', GAL2='0.77', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1672823679.79', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.95e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1755' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:14:39 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 823655: <4FGL_J1257.8+3228_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 01:00:18 2023
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:00:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:00:37 2023
Terminated at Wed Jan  4 01:14:40 2023
Results reported at Wed Jan  4 01:14:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1755 194.473 32.4721 694224001 694483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            862 sec.

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

