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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1765
RA = 194.31, Dec = 36.7706
tmin = 696816001, tmax = 697075201
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='634099', job_status='RUN', time_executed='2023-02-03 00:58:40.833026', time_epoch_executed='1675414720.83' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634099/ft1_4FGL_J1257.2+3646_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634099/ft1_4FGL_J1257.2+3646_daily_bin1765.fits outfile=/scratch/kocevski/634099/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1765.fits ra=194.31 dec=36.7706 rad=12.0 tmin=696816001.0 tmax=697075201.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.67
user 3.42
sys 0.21

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

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

Number of photons that the gtmktime cut: 612

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634099/ft1_filtered_4FGL_J1257.2+3646_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634099/ltcube_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.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/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits
.....................!
real 15.86
user 15.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634099/ft1_filtered_4FGL_J1257.2+3646_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634099/ltcube_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.fits outfile=/scratch/kocevski/634099/expmap_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.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/634099/ltcube_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.fits
.....................!
real 194.49
user 188.13
sys 5.02

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/634099/ft1_filtered_4FGL_J1257.2+3646_daily_bin1765.fits scfile=/scratch/kocevski/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits outfile=/scratch/kocevski/634099/cmap_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.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.59
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634099/ft1_filtered_4FGL_J1257.2+3646_daily_bin1765.fits scfile=/scratch/kocevski/634099/ft2_4FGL_J1257.2+3646_daily_bin1765.fits outfile=/scratch/kocevski/634099/cmap_HighResolution_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3834       1.0000          .0000       .10000E+07
     2 'Prefactor '    .57782       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3195       1.0000          .0000       .10000E+07
     4 'Prefactor '    .49592       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27304E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .30777E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.7126       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.3187       1.0000          .0000       .10000E+07
     9 'norm      '    5.0514       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21974E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.3382       1.0000          .0000       .10000E+07
    12 'norm      '    4.8515       1.0000          .0000       .10000E+07
    13 'norm      '    8.3205       1.0000          .0000       .10000E+07
    14 'norm      '    48.056       1.0000          .0000       .10000E+07
    15 'norm      '    .50335E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .67726E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .69120E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    54.750       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.5074       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0757       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=   6761.717     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1644 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3793        3.1600       -.39821E-07   -.19120E-02
   2  Prefactor     .55157        10.433       -.84618E-06    .17615E-02
   3  Prefactor     4.3176        2.7274        .13165E-06   -.10898E-01
   4  Prefactor     .49956        1.9723       -.58205E-07   -.44443E-02
   5  Prefactor     .27756E-09    3.3489        .14236E-06** at limit **
   6  Prefactor     .92704E-08    20.588       -.10276E-05** at limit **
   7  Prefactor     4.7794        11.395        .82282E-06    .44710E-02
   8  Prefactor     6.3645        5.6682       -.63381E-06    .72453E-02
   9  norm          5.0606        5.0458        .25948E-06   -.32899E-02
  10  Prefactor     .14727E-06    39.795       -.46353E-06** at limit **
  11  Prefactor     5.3461        5.0518        .19884E-05    .22289E-01
  12  norm          4.8333        4.1344       -.13394E-06   -.54572E-02
  13  norm          8.3255        9.3603       -.19807E-06   -.30545E-02
  14  norm          47.936        7.5184       -.27017E-06   -.13190E-01
  15  norm          .20539E-08    13.189       -.41102E-09** at limit **
  16  Prefactor     .33307E-09    2.1510       -.34823E-06** at limit **
  17  Prefactor     .27671E-04    231.36        .77168E-05** at limit **
  18  Prefactor     55.041        15.373        .53730E-06   -.19187    
  19  Prefactor     4.4201        16.024       -.72718E-05   -.19823E-01
  20  Normalizat    1.0442        .20168        .39189E-05   -.37771E-03
  21  Prefactor     1.0756        .24571       -.98390E-05   -.22329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37931
  Prefactor  = 0.551567
  Prefactor  = 4.31764
  Prefactor  = 0.499559
  Prefactor  = 2.77556e-10
  Prefactor  = 9.27036e-09
  Prefactor  = 4.77937
  Prefactor  = 6.36447
  norm       = 5.06058
  Prefactor  = 1.47271e-07
  Prefactor  = 5.34611
  norm       = 4.83327
  norm       = 8.32548
  norm       = 47.936
  norm       = 2.05391e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 2.76714e-05
  Prefactor  = 55.0412
  Prefactor  = 4.4201
  Normalizat = 1.04422
  Prefactor  = 1.07558
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.717     FROM HESSE     STATUS=OK           371 CALLS     2015 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3793        3.1687        .54983E-03   -1.5671    
   2  Prefactor     .55157        24.956        .71239E-03   -1.5693    
   3  Prefactor     4.3176        2.7272        .48446E-03   -1.5666    
   4  Prefactor     .49956        2.0176        .79121E-03   -1.5694    
   5  Prefactor     .27756E-09    3.3549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92704E-08    20.435        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7794        14.811        .46329E-03   -1.5664    
   8  Prefactor     6.3645        5.8692        .39908E-03   -1.5658    
   9  norm          5.0606        5.0566        .44715E-03   -1.5663    
  10  Prefactor     .14727E-06    40.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3461        15.700        .43475E-03   -1.5662    
  12  norm          4.8333        4.2304        .45646E-03   -1.5664    
  13  norm          8.3255        9.3575        .34731E-03   -1.5650    
  14  norm          47.936        7.6389        .14426E-03   -1.5569    
  15  norm          .20539E-08    13.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33307E-09    2.1621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27671E-04    13.454        .74436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.041        60.208        .13516E-03   -1.5560    
  19  Prefactor     4.4201        17.258        .47398E-03   -1.5666    
  20  Normalizat    1.0442        .17571        .40984E-01   -.91563    
  21  Prefactor     1.0756        .21101        .69778E-01   -.90251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45312e-06
Minuit parameter uncertainties:
  1  3.16875
  2  7.42023
  3  2.72722
  4  2.00792
  5  5.81112e-05
  6  0.000870159
  7  14.8115
  8  5.86924
  9  5.05665
  10  0.00485493
  11  15.6999
  12  4.23036
  13  9.35749
  14  7.6389
  15  0.000328849
  16  5.4388e-05
  17  0.0385902
  18  60.2091
  19  17.2578
  20  0.17581
  21  0.211174
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.364e+00  5.869e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.076e+00  2.112e-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:  1.044e+00  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.44e-05

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) = 6761.68255681
delta logL = 0.0345454088292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6761.66907813
delta logL = 0.0480240869683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3517       1.0000          .0000       .10000E+07
     2 'Index     '    2.2597       1.0000          .0000       10.000    
     3 'Normalizat'    1.0354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0809       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=   6761.669     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3516        123.49        .43419E-03    .52183E-02
   2  Index         2.2591        6.0983        .14478        .10369E-03
   3  Normalizat    1.0354        .96157E-01    .41662E-01    .22528E-04
   4  Prefactor     1.0809        .81817E-01    .69617E-01    .19873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35164
  Index      = 2.25911
  Normalizat = 1.03538
  Prefactor  = 1.08089
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.669     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3516        6.4444        .15448E-04   -1.5662    
   2  Index         2.2591        .80655        .79256E-02   -.58018    
   3  Normalizat    1.0354        .20197        .25576E-03   -.91854    
   4  Prefactor     1.0809        .24544        .30800E-03   -.90080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41027e-09
Minuit parameter uncertainties:
  1  6.44444
  2  0.811639
  3  0.202117
  4  0.245696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634099': 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) = 6761.66907753
delta logL = 0.048024689323

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.352e+00  6.444e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.259e+00  8.116e-01  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.081e+00  2.457e-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:  1.035e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.26 +/- 0.81
Photon Flux (Free Index): 3.28e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/634099/cmap_HighResolution_696816001_697075201_4FGL_J1257.2+3646_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='1.33e-05', photon_flux_error='2.23e-08', dlogl='4.80e-02', energy_flux='1.56e-05', photon_flux2='3.28e-08', job_status='DONE', time_completed='2023-02-03 01:08:11.753654', photon_index_error2='0.81', photon_index2='2.26', ts='4.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.04', time_epoch_completed='1675415291.75', return_code='0', job_id='634099', GAL2='1.08', EG2='1.04', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.00e-08', ts2='4.42', photon_index='2.03' WHERE bin_id='1765' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:08:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 634099: <4FGL_J1257.2+3646_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:21 2023
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:54 2023
Terminated at Fri Feb  3 01:08:12 2023
Results reported at Fri Feb  3 01:08:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1765 194.31 36.7706 696816001 697075201 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 :                                   571.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            771 sec.

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

