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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1767
RA = 194.473, Dec = 32.4721
tmin = 697334401, tmax = 697593601
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='78782', job_status='RUN', time_executed='2023-02-09 01:17:22.720763', time_epoch_executed='1675934242.72' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78782/ft1_4FGL_J1257.8+3228_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78782/ft1_4FGL_J1257.8+3228_daily_bin1767.fits outfile=/scratch/kocevski/78782/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1767.fits ra=194.473 dec=32.4721 rad=12.0 tmin=697334401.0 tmax=697593601.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.60
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.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/78782/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.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.35
sys 0.14

Number of photons that the gtmktime cut: 671

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/78782/ltcube_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.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/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits
.....................!
real 16.00
user 15.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/78782/ltcube_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits outfile=/scratch/kocevski/78782/expmap_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.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/78782/ltcube_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits
.....................!
real 191.84
user 186.42
sys 4.38

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/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits scfile=/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits outfile=/scratch/kocevski/78782/cmap_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits scfile=/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits outfile=/scratch/kocevski/78782/cmap_HighResolution_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits', '/scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits', expMap='/scratch/kocevski/78782/expmap_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits', expCube='/scratch/kocevski/78782/ltcube_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/78782/Model_4FGL_J1257.8+3228_daily_bin1767.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/78782/ft1_filtered_4FGL_J1257.8+3228_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/78782/ft2_4FGL_J1257.8+3228_daily_bin1767.fits
Exposure map: /scratch/kocevski/78782/expmap_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits
Exposure cube: /scratch/kocevski/78782/ltcube_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/78782/Model_4FGL_J1257.8+3228_daily_bin1767.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) = 7160.23401515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.603       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9949       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2322       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10338E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.2605       1.0000          .0000       .10000E+07
     6 'norm      '    2.0589       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.885       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.737       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24827E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .27853E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.3481       1.0000          .0000       .10000E+07
    12 'Prefactor '    .38154E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .29646E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .22558E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.8391       1.0000          .0000       .10000E+07
    16 'norm      '    13.550       1.0000          .0000       .10000E+07
    17 'norm      '    23.913       1.0000          .0000       .10000E+07
    18 'norm      '    34.532       1.0000          .0000       .10000E+07
    19 'norm      '    .11843E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.6435       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24050E-02   1.0000          .0000       .10000E+07
    22 'norm      '    52.630       1.0000          .0000       .10000E+07
    23 'Prefactor '    .14890       1.0000          .0000       .10000E+07
    24 'Prefactor '    .84822E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    7.7990       1.0000          .0000       .10000E+07
    26 'Prefactor '    4.8073       1.0000          .0000       .10000E+07
    27 'Normalizat'    .90857       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0644       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=   7160.164     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2491 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.678        5.4120       -.11204E-07   -.12429E-01
   2  Prefactor     4.0042        3.2144       -.98412E-08    .54662E-01
   3  Prefactor     2.2251        2.0684        .31915E-07    .43523E-02
   4  Prefactor     .55511E-10    1.2899        .57981E-07** at limit **
   5  Prefactor     8.2621        1.5250        .49429E-08    .40206E-01
   6  norm          2.0416        3.1994        .10766E-06    .32484E-02
   7  Prefactor     11.849        2.2061        .52532E-08   -.61888E-02
   8  Prefactor     20.748        2.1927        .51580E-08   -.17502E-01
   9  Prefactor     .48350E-07    2.7675       -.43948E-07** at limit **
  10  Prefactor      .0000        1.6643       -.44099E-07** at limit **
  11  norm          3.3537        3.0663       -.83505E-08    .28112E-03
  12  Prefactor     .44587E-06    4.2288       -.44754E-07** at limit **
  13  norm          .55511E-10    1.1647        .36201E-07** at limit **
  14  Prefactor     .17097E-06    12.843       -.21127E-06** at limit **
  15  norm          1.8503        3.2138        .76429E-07    .36497E-02
  16  norm          13.539        1.5937        .43570E-10    .11325E-01
  17  norm          23.906        5.9111        .17986E-07   -.27702E-01
  18  norm          34.419        6.1064       -.71958E-08    .54059E-01
  19  norm          .17669E-06    3.4814       -.46524E-07** at limit **
  20  Prefactor     1.6475        2.2457       -.54263E-07   -.33580E-02
  21  Prefactor      .0000        5.3813       -.57404E-07** at limit **
  22  norm          52.637        1.1000       -.50635E-10    .14982E-02
  23  Prefactor     .64060E-07    33.587       -.10139E-06** at limit **
  24  Prefactor     .38824E-06    11.047       -.13533E-06** at limit **
  25  Prefactor     7.8298        2.4797        .10477E-07   -.26034E-02
  26  Prefactor     4.8268        3.9456       -.59502E-07   -.33468E-02
  27  Normalizat    .90863        .19986        .60562E-07    .85056E-04
  28  Prefactor     1.0642        .24602        .32303E-06    .76202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6782
  Prefactor  = 4.00421
  Prefactor  = 2.22509
  Prefactor  = 5.55112e-11
  Prefactor  = 8.26214
  norm       = 2.04163
  Prefactor  = 11.8489
  Prefactor  = 20.7485
  Prefactor  = 4.83502e-08
  Prefactor  = 0
  norm       = 3.35373
  Prefactor  = 4.45866e-07
  norm       = 5.55112e-11
  Prefactor  = 1.70974e-07
  norm       = 1.85031
  norm       = 13.5391
  norm       = 23.9063
  norm       = 34.419
  norm       = 1.76692e-07
  Prefactor  = 1.64752
  Prefactor  = 0
  norm       = 52.6369
  Prefactor  = 6.40599e-08
  Prefactor  = 3.88245e-07
  Prefactor  = 7.82978
  Prefactor  = 4.82676
  Normalizat = 0.908635
  Prefactor  = 1.0642
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.164     FROM HESSE     STATUS=OK           581 CALLS     3072 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.678        5.4984        .22038E-03   -1.5617    
   2  Prefactor     4.0042        8.9133        .50435E-03   -1.5668    
   3  Prefactor     2.2251        2.0675        .68779E-03   -1.5678    
   4  Prefactor     .55511E-10    1.2876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2621        5.9201        .34858E-03   -1.5650    
   6  norm          2.0416        3.3157        .71994E-03   -1.5679    
   7  Prefactor     11.849        9.4931        .29033E-03   -1.5639    
   8  Prefactor     20.748        21.045        .21966E-03   -1.5617    
   9  Prefactor     .48350E-07    8.3908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.6708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3537        3.0720        .55286E-03   -1.5671    
  12  Prefactor     .44587E-06    8.2660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    1.1635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17097E-06    15.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8503        3.2553        .76893E-03   -1.5681    
  16  norm          13.539        13.293        .27185E-03   -1.5634    
  17  norm          23.906        9.9789        .20454E-03   -1.5610    
  18  norm          34.419        19.067        .17019E-03   -1.5591    
  19  norm          .17669E-06    7.8826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6475        2.2782        .82370E-03   -1.5682    
  21  Prefactor      .0000        5.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          52.637        12.009        .13785E-03   -1.5563    
  23  Prefactor     .64060E-07    36.949        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .38824E-06    14.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.8298        17.321        .35882E-03   -1.5652    
  26  Prefactor     4.8268        3.9543        .45861E-03   -1.5664    
  27  Normalizat    .90863        .17200        .45011E-01   -.96157    
  28  Prefactor     1.0642        .21079        .69976E-01   -.90619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96291e-07
Minuit parameter uncertainties:
  1  5.49839
  2  8.91336
  3  2.06745
  4  1.40359e-05
  5  5.92007
  6  3.31575
  7  9.49312
  8  21.0454
  9  0.00127405
  10  4.06851e-06
  11  3.07204
  12  0.00383954
  13  1.41988e-05
  14  0.00328671
  15  3.25534
  16  13.293
  17  9.97889
  18  19.0673
  19  0.00236031
  20  2.27824
  21  5.01212e-06
  22  12.0095
  23  0.00307684
  24  0.00477755
  25  17.3212
  26  3.95427
  27  0.172105
  28  0.210951
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.354e+00  3.072e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.064e+00  2.110e-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:  9.086e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.16
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 7.79e-06 +/- 7.14e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.11499998
delta logL = 0.0494669803284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.11485589
delta logL = 0.0496110691074

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7160.115     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3319        5.0832        .55255E-03   -.39815E-02
   2  alpha         1.9436        1.1370        .42520        .56595E-04
   3  Normalizat    .91363        .16771        .45075E-01    .76621E-05
   4  Prefactor     1.0611        .20818        .70076E-01   -.32790E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33192
  alpha      = 1.94364
  Normalizat = 0.913626
  Prefactor  = 1.06107
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.115     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3319        3.1727        .14127E-04   -1.5671    
   2  alpha         1.9436        .84983        .24405E-01   -.22442    
   3  Normalizat    .91363        .19616        .26625E-03   -.95983    
   4  Prefactor     1.0611        .24466        .31003E-03   -.90721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10684e-10
Minuit parameter uncertainties:
  1  3.17273
  2  0.868063
  3  0.196312
  4  0.244916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78782': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.11483599
delta logL = 0.0496309676373

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.332e+00  3.173e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.944e+00  8.681e-01  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:  1.061e+00  2.449e-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:  9.136e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.94 +/- 0.87
Photon Flux (Free Index): 1.47e-08 +/- 1.97e-08
Energy Flux (Free Index): 8.71e-06 +/- 9.34e-06

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/78782/cmap_HighResolution_697334401_697593601_4FGL_J1257.8+3228_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='8.71e-06', photon_flux_error='1.80e-08', dlogl='4.96e-02', energy_flux='7.79e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2023-02-09 01:28:54.126806', photon_index_error2='0.87', photon_index2='1.94', ts='4.16', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.34e-06', EG='0.91', time_epoch_completed='1675934934.13', return_code='0', job_id='78782', GAL2='1.06', EG2='0.91', return_code2='0', energy_flux_error='7.14e-06', photon_flux_error2='1.97e-08', ts2='4.26', photon_index='2.22' WHERE bin_id='1767' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:28:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 78782: <4FGL_J1257.8+3228_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 01:15:22 2023
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:15:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:15:32 2023
Terminated at Thu Feb  9 01:28:54 2023
Results reported at Thu Feb  9 01:28:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1767 194.473 32.4721 697334401 697593601 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 :                                   691.88 sec.
    Max Memory :                                 631 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            812 sec.

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

