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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1773
RA = 193.637, Dec = 22.1808
tmin = 698889601, tmax = 699148801
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='790546', job_status='RUN', time_executed='2023-02-27 09:51:19.690777', time_epoch_executed='1677520279.69' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790546/ft1_4FGL_J1254.5+2210_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790546/ft1_4FGL_J1254.5+2210_daily_bin1773.fits outfile=/scratch/kocevski/790546/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1773.fits ra=193.637 dec=22.1808 rad=12.0 tmin=698889601.0 tmax=699148801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.94
user 2.72
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.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/790546/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.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.49
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 245

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790546/ltcube_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.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/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits
.....................!
real 15.30
user 14.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790546/ltcube_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits outfile=/scratch/kocevski/790546/expmap_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.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/790546/ltcube_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits
.....................!
real 191.78
user 186.12
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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits outfile=/scratch/kocevski/790546/cmap_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.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=193.637 yref=22.1808 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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits outfile=/scratch/kocevski/790546/cmap_HighResolution_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.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=193.637 yref=22.1808 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790546/Model_4FGL_J1254.5+2210_daily_bin1773.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/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits.....................!
real 31.23
user 29.85
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits', '/scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits', expMap='/scratch/kocevski/790546/expmap_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits', expCube='/scratch/kocevski/790546/ltcube_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790546/Model_4FGL_J1254.5+2210_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790546/ft1_filtered_4FGL_J1254.5+2210_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790546/ft2_4FGL_J1254.5+2210_daily_bin1773.fits
Exposure map: /scratch/kocevski/790546/expmap_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790546/ltcube_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790546/Model_4FGL_J1254.5+2210_daily_bin1773.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) = 2819.56927851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2819.49191906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16147E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10641E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .82557E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19900E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25488E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20411E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .14913E-05   1.0000          .0000       .10000E+07
     8 'norm      '    10.921       1.0000          .0000       .10000E+07
     9 'Prefactor '    .79321E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    52.719       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19485       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.1800       1.0000          .0000       .10000E+07
    13 'norm      '    .36717E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10834E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12391E-01   1.0000          .0000       .10000E+07
    16 'norm      '    4.3903       1.0000          .0000       .10000E+07
    17 'norm      '    61.230       1.0000          .0000       .10000E+07
    18 'norm      '    .13438E-05   1.0000          .0000       .10000E+07
    19 'norm      '    11.722       1.0000          .0000       .10000E+07
    20 'norm      '    22.036       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22157E-02   1.0000          .0000       .10000E+07
    22 'norm      '    4.9673       1.0000          .0000       .10000E+07
    23 'Prefactor '    .81156E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    4.8380       1.0000          .0000       .10000E+07
    25 'Normalizat'    .74393E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    2.0552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2819.489     FROM MIGRAD    STATUS=CONVERGED    250 CALLS     2385 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36426E-06    3.8563       -.22278E-05** at limit **
   2  Prefactor     .56244E-06    3.3579       -.59884E-06** at limit **
   3  norm          .12768E-08    4.2785       -.25219E-06** at limit **
   4  Prefactor     .55289E-07    2.9903       -.14745E-05** at limit **
   5  Prefactor     .13267E-07    4.4576       -.91724E-06** at limit **
   6  Prefactor     .80863E-06    6.8277       -.16760E-05** at limit **
   7  norm          .22204E-09    10.703       -.15224E-05** at limit **
   8  norm          10.997        10.705        .49781E-07   -.50078E-01
   9  Prefactor     .17608E-06    13.315        .31260E-07** at limit **
  10  Prefactor     53.669        33.849       -.39411E-06    .20035E-01
  11  Prefactor     .94813E-07    1.9755       -.75695E-06** at limit **
  12  Prefactor     9.2290        2.0801       -.39656E-07    .24875E-02
  13  norm          .23093E-07    3.4553       -.85108E-06** at limit **
  14  Prefactor     .17419E-06    20.263        .21591E-05** at limit **
  15  Prefactor     .12845E-06    27.688       -.29554E-05** at limit **
  16  norm          4.4741        8.2816        .46219E-06   -.62614E-03
  17  norm          61.205        4.3056       -.39630E-07   -.61540E-01
  18  norm          .46702E-06    7.2496       -.22875E-06** at limit **
  19  norm          11.730        1.1777       -.33052E-07    .41534E-02
  20  norm          21.955        5.4810       -.20748E-07    .17987E-01
  21  Prefactor     .69389E-07    171.37       -.18062E-05** at limit **
  22  norm          4.8749        5.9256       -.95425E-07    .79959E-02
  23  Prefactor     .31941E-06    7.2859       -.53305E-06** at limit **
  24  Prefactor     4.7411        2.3166       -.11889E-06   -.21279E-02
  25  Normalizat    .73046E-01    .47811       -.44812E-04   -.12612E-04
  26  Prefactor     2.0564        .37150        .62569E-05   -.51871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64264e-07
  Prefactor  = 5.62439e-07
  norm       = 1.27676e-09
  Prefactor  = 5.52891e-08
  Prefactor  = 1.32672e-08
  Prefactor  = 8.08631e-07
  norm       = 2.22045e-10
  norm       = 10.9969
  Prefactor  = 1.76081e-07
  Prefactor  = 53.6687
  Prefactor  = 9.4813e-08
  Prefactor  = 9.22904
  norm       = 2.30926e-08
  Prefactor  = 1.74194e-07
  Prefactor  = 1.28453e-07
  norm       = 4.47411
  norm       = 61.2049
  norm       = 4.67015e-07
  norm       = 11.7302
  norm       = 21.9546
  Prefactor  = 6.93889e-08
  norm       = 4.87491
  Prefactor  = 3.19411e-07
  Prefactor  = 4.74113
  Normalizat = 0.0730458
  Prefactor  = 2.05639
 **********
 **   18 **HESSE 
 **********

 FCN=   2819.489     FROM HESSE     STATUS=NOT POSDEF   518 CALLS     2903 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36426E-06    4.5696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .56244E-06    4.4293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .12768E-08    3.8031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55289E-07    4.3301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13267E-07    4.0012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .80863E-06    7.9888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22204E-09    .95860        .27987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.997        14.273        .30292E-03   -1.5642    
   9  Prefactor     .17608E-06    12.231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.669        52.622        .13774E-03   -1.5561    
  11  Prefactor     .94813E-07    43.674        .79782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2290        36.431        .33054E-03   -1.5647    
  13  norm          .23093E-07    9.9343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17419E-06    18.401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12845E-06    24.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4741        16.866        .48043E-03   -1.5666    
  17  norm          61.205        20.871        .12780E-03   -1.5551    
  18  norm          .46702E-06    7.3645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.730        24.658        .29235E-03   -1.5639    
  20  norm          21.955        22.198        .21308E-03   -1.5614    
  21  Prefactor     .69389E-07    152.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.8749        23.973        .45100E-03   -1.5664    
  23  Prefactor     .31941E-06    9.8129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7411        56.360        .45712E-03   -1.5664    
  25  Normalizat    .73046E-01    9.1076        .24112       -1.4117    
  26  Prefactor     2.0564        1.8946        .51787E-01   -.62948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25561e-07
Minuit parameter uncertainties:
  1  0.00258033
  2  0.00315667
  3  0.000138157
  4  0.000978623
  5  0.000461101
  6  0.00508331
  7  2.75201e-05
  8  14.2732
  9  0.00293499
  10  52.6223
  11  0.00407034
  12  36.4315
  13  0.000957559
  14  0.00358081
  15  0.00357513
  16  16.866
  17  20.8713
  18  0.00370902
  19  24.6583
  20  22.1982
  21  0.00650762
  22  21.6212
  23  0.00354073
  24  32.6934
  25  1.93801
  26  1.97195
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2819.4887825

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  9.481e-08  4.070e-03  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  2.056e+00  1.972e+00  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.305e-02  1.938e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790546/likelihoodResults_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.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) = 2819.49654474
delta logL = -0.00776223994581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2819.38251746
delta logL = 0.106265036646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9684       1.0000          .0000       .10000E+07
     2 'Index     '    2.9207       1.0000          .0000       10.000    
     3 'Normalizat'    .35455E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2819.383     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9800        177.14        .73883E-03    .34975E-02
   2  Index         2.9190        6.4579        .12619        .42498E-04
   3  Normalizat    .34566E-01    .73059E-01    .32516E-01    .89546E-04
   4  Prefactor     2.0658        .80174E-01    .51684E-01    .30733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97995
  Index      = 2.91898
  Normalizat = 0.0345655
  Prefactor  = 2.06575
 **********
 **   18 **HESSE 
 **********

 FCN=   2819.383     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9800        12.988        .15478E-04   -1.5680    
   2  Index         2.9190        1.8976        .68393E-02   -.42927    
   3  Normalizat    .34566E-01    1.2628        .13006E-02   -1.4716    
   4  Prefactor     2.0658        .38368        .22841E-03   -.62716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80069e-10
Minuit parameter uncertainties:
  1  10.1422
  2  1.95755
  3  0.360628
  4  0.384259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790546': 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) = 2819.38251322
delta logL = 0.106269278327

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.980e+00  1.014e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.919e+00  1.958e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  2.066e+00  3.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  3.457e-02  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/790546/cmap_HighResolution_698889601_699148801_4FGL_J1254.5+2210_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2023-02-27 09:59:22.800445', job_id='790546', GAL2='2.07', fit_tolerance='1e-08', EG2='0.03', EG='0.07', time_epoch_completed='1677520762.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='2.06', dlogl='1.06e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1773' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:59:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0183>
Subject: Job 790546: <4FGL_J1254.5+2210_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:18 2023
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:19 2023
Terminated at Mon Feb 27 09:59:23 2023
Results reported at Mon Feb 27 09:59:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1773 193.637 22.1808 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.77 sec.
    Max Memory :                                 641 MB
    Average Memory :                             205.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2928 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            845 sec.

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

