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 182 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.8+3228_daily_bin1746
RA = 194.473, Dec = 32.4721
tmin = 691891201, tmax = 692150401
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='727196', job_status='RUN', time_executed='2022-12-08 00:58:23.270130', time_epoch_executed='1670489903.27' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727196/ft1_4FGL_J1257.8+3228_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727196/ft2_4FGL_J1257.8+3228_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727196/ft1_4FGL_J1257.8+3228_daily_bin1746.fits outfile=/scratch/kocevski/727196/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1746.fits ra=194.473 dec=32.4721 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.74
user 4.46
sys 0.24

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

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

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727196/ft1_filtered_4FGL_J1257.8+3228_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/727196/ft2_4FGL_J1257.8+3228_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/727196/ltcube_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.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/727196/ft2_4FGL_J1257.8+3228_daily_bin1746.fits
.....................!
real 12.20
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727196/ft1_filtered_4FGL_J1257.8+3228_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/727196/ft2_4FGL_J1257.8+3228_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/727196/ltcube_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.fits outfile=/scratch/kocevski/727196/expmap_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.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/727196/ltcube_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.fits
.....................!
real 191.87
user 186.03
sys 4.61

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/727196/ft1_filtered_4FGL_J1257.8+3228_daily_bin1746.fits scfile=/scratch/kocevski/727196/ft2_4FGL_J1257.8+3228_daily_bin1746.fits outfile=/scratch/kocevski/727196/cmap_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3888       1.0000          .0000       .10000E+07
     2 'Prefactor '    .93210       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56455E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.0087       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12747E-04   1.0000          .0000       .10000E+07
     6 'norm      '    4.4253       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19163E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11927E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.7518       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6134       1.0000          .0000       .10000E+07
    11 'norm      '    3.6948       1.0000          .0000       .10000E+07
    12 'Prefactor '    .53691E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .18993E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47374E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .13456E-06   1.0000          .0000       .10000E+07
    16 'norm      '    18.632       1.0000          .0000       .10000E+07
    17 'norm      '    28.412       1.0000          .0000       .10000E+07
    18 'norm      '    15.707       1.0000          .0000       .10000E+07
    19 'norm      '    30.654       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15489E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    14.836       1.0000          .0000       .10000E+07
    22 'norm      '    6.9500       1.0000          .0000       .10000E+07
    23 'Prefactor '    .81065E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15754E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .28420E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    .27048E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.5159       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .49417       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=   7321.119     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1937 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3925        3.2238       -.35215E-07   -.16663E-02
   2  Prefactor     .92931        .45801       -.16746E-08   -.69811E-02
   3  Prefactor      .0000        .77241       -.45220E-07** at limit **
   4  Prefactor     5.0076        2.8988       -.56499E-07   -.22632E-02
   5  Prefactor     .19984E-08    1.1824       -.54777E-07** at limit **
   6  norm          4.4047        3.1303       -.21320E-07   -.62390E-03
   7  Prefactor     .66613E-09    1.3625       -.59683E-07** at limit **
   8  Prefactor     .88540E-07    1.9364       -.17642E-07** at limit **
   9  Prefactor     6.7420        1.0514        .33198E-09   -.29003E-02
  10  Prefactor     3.6362        4.4246        .32022E-07   -.90103E-04
  11  norm          3.6918        3.0682        .34329E-07    .46768E-03
  12  Prefactor     .15765E-07    5.0406       -.88047E-07** at limit **
  13  norm           .0000        2.7421       -.35163E-07** at limit **
  14  Prefactor     .27478E-07    4.1670        .19026E-07** at limit **
  15  norm           .0000        1.3230       -.15349E-06** at limit **
  16  norm          18.808        1.1941        .61004E-08   -.28550E-01
  17  norm          28.425        3.2195       -.77104E-09    .90319E-02
  18  norm          15.812        2.0367        .36083E-08   -.31608E-01
  19  norm          30.655        1.0252        .65250E-09    .19986E-02
  20  Prefactor      .0000        1.6297        .17371E-07** at limit **
  21  Prefactor     14.323        2.0665       -.14201E-07    .41739E-01
  22  norm          6.9408        4.3512       -.11077E-07   -.15342E-01
  23  Prefactor     .44409E-08    22.195       -.26967E-06** at limit **
  24  Prefactor     .89373E-08    13.973       -.27703E-06** at limit **
  25  Prefactor     .41672E-06    1.5869       -.46790E-07** at limit **
  26  Prefactor     .55511E-10    1.7834        .14231E-07** at limit **
  27  Normalizat    1.5167        .19675        .22088E-05   -.59451E-04
  28  Prefactor     .49370        .22716       -.60094E-05   -.51983E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39254
  Prefactor  = 0.92931
  Prefactor  = 0
  Prefactor  = 5.00757
  Prefactor  = 1.9984e-09
  norm       = 4.4047
  Prefactor  = 6.66134e-10
  Prefactor  = 8.85403e-08
  Prefactor  = 6.74198
  Prefactor  = 3.63619
  norm       = 3.69183
  Prefactor  = 1.57652e-08
  norm       = 0
  Prefactor  = 2.7478e-08
  norm       = 0
  norm       = 18.8078
  norm       = 28.4246
  norm       = 15.8117
  norm       = 30.655
  Prefactor  = 0
  Prefactor  = 14.3232
  norm       = 6.94075
  Prefactor  = 4.44089e-09
  Prefactor  = 8.9373e-09
  Prefactor  = 4.16722e-07
  Prefactor  = 5.55112e-11
  Normalizat = 1.51672
  Prefactor  = 0.493697
 **********
 **   18 **HESSE 
 **********

 FCN=   7321.119     FROM HESSE     STATUS=OK           579 CALLS     2516 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3925        3.2279        .39686E-03   -1.5657    
   2  Prefactor     .92931        5.0780        .43566E-03   -1.5689    
   3  Prefactor      .0000        .77129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0076        2.9088        .44909E-03   -1.5663    
   5  Prefactor     .19984E-08    2.5245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4047        3.1299        .47847E-03   -1.5666    
   7  Prefactor     .66613E-09    2.4944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88540E-07    5.4959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7420        6.2860        .38592E-03   -1.5656    
  10  Prefactor     3.6362        4.4356        .53129E-03   -1.5670    
  11  norm          3.6918        3.0794        .52516E-03   -1.5670    
  12  Prefactor     .15765E-07    5.8578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.7479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27478E-07    5.2635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.3285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.808        16.851        .23176E-03   -1.5621    
  17  norm          28.425        9.0816        .18764E-03   -1.5601    
  18  norm          15.812        14.874        .25245E-03   -1.5628    
  19  norm          30.655        20.076        .18064E-03   -1.5597    
  20  Prefactor      .0000        1.6343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.323        17.463        .25977E-03   -1.5632    
  22  norm          6.9408        5.6367        .38031E-03   -1.5655    
  23  Prefactor     .44409E-08    22.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .89373E-08    14.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .41672E-06    31.906        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-10    1.7836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5167        .17901        .49863E-01   -.77310    
  28  Prefactor     .49370        .20907        .95600E-01   -1.1227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02629e-07
Minuit parameter uncertainties:
  1  3.22787
  2  4.34466
  3  2.52652e-06
  4  2.90885
  5  0.000141381
  6  3.1299
  7  8.23176e-05
  8  0.00139535
  9  6.28597
  10  4.43556
  11  3.07941
  12  0.000607756
  13  1.46162e-05
  14  0.000760953
  15  8.66235e-06
  16  16.8507
  17  9.08156
  18  14.8736
  19  20.0765
  20  8.32475e-06
  21  17.4632
  22  5.6367
  23  0.000629551
  24  0.000709217
  25  0.00729301
  26  1.57939e-05
  27  0.179081
  28  0.209399
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.692e+00  3.079e+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:  4.937e-01  2.094e-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.517e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 7.15e-06

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

Saving results to:
/scratch/kocevski/727196/likelihoodResults_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.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) = 7320.75883532
delta logL = 0.360521073015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7320.75625704
delta logL = 0.363099352975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9043       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6507       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48732       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=   7320.756     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9038        3.6312        .51037E-03   -.87325E-03
   2  alpha         1.6501        .57838        .44649       -.25293E-04
   3  Normalizat    1.5254        .17652        .49751E-01    .29429E-04
   4  Prefactor     .48726        .20529        .96184E-01    .61433E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90379
  alpha      = 1.65009
  Normalizat = 1.52537
  Prefactor  = 0.48726
 **********
 **   18 **HESSE 
 **********

 FCN=   7320.756     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9038        3.3519        .13696E-04   -1.5668    
   2  alpha         1.6501        .62351        .18515E-01   -.34688    
   3  Normalizat    1.5254        .19526        .21993E-03   -.77068    
   4  Prefactor     .48726        .22635        .42639E-03   -1.1257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83044e-12
Minuit parameter uncertainties:
  1  3.35187
  2  0.631064
  3  0.195356
  4  0.226772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727196': 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) = 7320.75625657
delta logL = 0.363099827582

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.904e+00  3.352e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.650e+00  6.311e-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:  4.873e-01  2.268e-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.525e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.65 +/- 0.63
Photon Flux (Free Index): 1.37e-08 +/- 1.40e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.65e-05

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/727196/cmap_HighResolution_691891201_692150401_4FGL_J1257.8+3228_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.44e-05', photon_flux_error='1.80e-08', dlogl='3.63e-01', energy_flux='8.58e-06', photon_flux2='1.37e-08', job_status='DONE', time_completed='2022-12-08 01:10:07.985641', photon_index_error2='0.63', photon_index2='1.65', ts='3.67', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='6.96e-08', energy_flux_error2='1.65e-05', EG='1.52', time_epoch_completed='1670490607.99', return_code='0', job_id='727196', GAL2='0.49', EG2='1.53', return_code2='0', energy_flux_error='7.15e-06', photon_flux_error2='1.40e-08', ts2='4.39', photon_index='2.22' WHERE bin_id='1746' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:10:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 727196: <4FGL_J1257.8+3228_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 00:55:11 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:55:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:55:13 2022
Terminated at Thu Dec  8 01:10:08 2022
Results reported at Thu Dec  8 01:10:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1746 194.473 32.4721 691891201 692150401 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

