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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1750
RA = 193.637, Dec = 22.1808
tmin = 692928001, tmax = 693187201
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='12058', job_status='RUN', time_executed='2022-12-20 00:50:31.063731', time_epoch_executed='1671526231.06' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12058/ft1_4FGL_J1254.5+2210_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12058/ft1_4FGL_J1254.5+2210_daily_bin1750.fits outfile=/scratch/kocevski/12058/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1750.fits ra=193.637 dec=22.1808 rad=12.0 tmin=692928001.0 tmax=693187201.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.43
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.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/12058/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.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.14

Number of photons that the gtmktime cut: 651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/12058/ltcube_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.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/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits
.....................!
real 11.45
user 11.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/12058/ltcube_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits outfile=/scratch/kocevski/12058/expmap_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.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/12058/ltcube_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits
.....................!
real 193.48
user 187.79
sys 5.35

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/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits scfile=/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits outfile=/scratch/kocevski/12058/cmap_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits scfile=/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits outfile=/scratch/kocevski/12058/cmap_HighResolution_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits', '/scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits', expMap='/scratch/kocevski/12058/expmap_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits', expCube='/scratch/kocevski/12058/ltcube_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12058/Model_4FGL_J1254.5+2210_daily_bin1750.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/12058/ft1_filtered_4FGL_J1254.5+2210_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/12058/ft2_4FGL_J1254.5+2210_daily_bin1750.fits
Exposure map: /scratch/kocevski/12058/expmap_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits
Exposure cube: /scratch/kocevski/12058/ltcube_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12058/Model_4FGL_J1254.5+2210_daily_bin1750.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) = 6913.98922436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57291       1.0000          .0000       .10000E+07
     3 'norm      '    8.5630       1.0000          .0000       .10000E+07
     4 'Prefactor '    .16815E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9711       1.0000          .0000       .10000E+07
     6 'Prefactor '    .19830E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .19484E-07   1.0000          .0000       .10000E+07
     8 'norm      '    3.7919       1.0000          .0000       .10000E+07
     9 'Prefactor '    12.362       1.0000          .0000       .10000E+07
    10 'Prefactor '    .95284       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15238E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .80392E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .21387E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5205       1.0000          .0000       .10000E+07
    15 'Prefactor '    .41211E-04   1.0000          .0000       .10000E+07
    16 'norm      '    4.7166       1.0000          .0000       .10000E+07
    17 'norm      '    21.123       1.0000          .0000       .10000E+07
    18 'norm      '    10.061       1.0000          .0000       .10000E+07
    19 'norm      '    30.140       1.0000          .0000       .10000E+07
    20 'norm      '    20.547       1.0000          .0000       .10000E+07
    21 'Prefactor '    16.615       1.0000          .0000       .10000E+07
    22 'norm      '    .47659E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .18284E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .31204E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.8289       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .41361       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=   6913.941     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1798 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .80691        .10401E-06** at limit **
   2  Prefactor     .59272        2.0774        .21482E-06    .11029E-03
   3  norm          8.5547        3.5556        .30895E-07   -.76995E-04
   4  Prefactor      .0000        1.7033        .13687E-06** at limit **
   5  Prefactor     3.9690        3.1088        .20293E-06    .25220E-03
   6  Prefactor      .0000        1.7388       -.13130E-06** at limit **
   7  norm           .0000        .79659E-01    .27658E-07** at limit **
   8  norm          3.7920        3.0087        .60658E-07    .10162E-03
   9  Prefactor     12.371        7.2282        .18441E-06   -.36570E-01
  10  Prefactor     1.0779        1.0100        .81556E-07    .44831E-03
  11  Prefactor     .22204E-09    3.6932       -.15441E-06** at limit **
  12  Prefactor     .11102E-09    11.361       -.59106E-07** at limit **
  13  norm          .77716E-08    28.656        .39717E-06** at limit **
  14  Prefactor     4.5727        3.0837       -.14155E-06    .71637E-02
  15  Prefactor     .22204E-09    24.139       -.77864E-06** at limit **
  16  norm          4.7440        3.4058        .16904E-07   -.89281E-04
  17  norm          21.112        4.6968        .23049E-08   -.79414E-02
  18  norm          10.047        2.9084       -.43982E-07    .11527E-01
  19  norm          30.149        1.1143        .42928E-08    .66193E-02
  20  norm          20.521        7.8116        .13290E-06    .22883E-01
  21  Prefactor     16.858        2.2041        .41511E-07   -.86540E-03
  22  norm          .53634E-01    2.3162        .62168E-07** at limit **
  23  Prefactor     .55511E-10    4.6112       -.30331E-06** at limit **
  24  Prefactor     .69317E-06    29.590        .67976E-06** at limit **
  25  Normalizat    1.8288        .21356       -.21870E-05    .40390E-05
  26  Prefactor     .41318        .20227        .11046E-05    .31022E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.592718
  norm       = 8.55469
  Prefactor  = 0
  Prefactor  = 3.96897
  Prefactor  = 0
  norm       = 0
  norm       = 3.79204
  Prefactor  = 12.3707
  Prefactor  = 1.07786
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  norm       = 7.77156e-09
  Prefactor  = 4.57272
  Prefactor  = 2.22045e-10
  norm       = 4.74397
  norm       = 21.1125
  norm       = 10.0467
  norm       = 30.1492
  norm       = 20.5206
  Prefactor  = 16.8583
  norm       = 0.0536344
  Prefactor  = 5.55112e-11
  Prefactor  = 6.93168e-07
  Normalizat = 1.82877
  Prefactor  = 0.413184
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.941     FROM HESSE     STATUS=OK           536 CALLS     2334 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .80593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59272        2.0961        .71691E-03   -1.5693    
   3  norm          8.5547        3.5738        .34232E-03   -1.5649    
   4  Prefactor      .0000        1.6927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9690        3.2776        .50591E-03   -1.5668    
   6  Prefactor      .0000        1.7376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .59368E-01    .99601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7920        3.0108        .51814E-03   -1.5669    
   9  Prefactor     12.371        11.322        .28465E-03   -1.5638    
  10  Prefactor     1.0779        25.436        .42173E-03   -1.5687    
  11  Prefactor     .22204E-09    3.7008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    11.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .77716E-08    1.9995        .65654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5727        11.667        .47327E-03   -1.5665    
  15  Prefactor     .22204E-09    24.296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7440        3.4157        .46310E-03   -1.5664    
  17  norm          21.112        7.3382        .21764E-03   -1.5616    
  18  norm          10.047        11.399        .31566E-03   -1.5645    
  19  norm          30.149        17.617        .18218E-03   -1.5598    
  20  norm          20.521        9.1203        .22068E-03   -1.5617    
  21  Prefactor     16.858        24.723        .24544E-03   -1.5626    
  22  norm          .53634E-01    5.0629        .11107E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    4.6122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .69317E-06    9.2372        .86363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.8288        .19605        .49275E-01   -.68915    
  26  Prefactor     .41318        .19032        .93190E-01   -1.1614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5456e-08
Minuit parameter uncertainties:
  1  1.40701e-07
  2  2.09606
  3  3.57378
  4  1.93364e-06
  5  3.27756
  6  1.53135e-06
  7  2.07117e-08
  8  3.0108
  9  11.322
  10  10.4723
  11  5.8817e-05
  12  7.77972e-05
  13  0.000248999
  14  11.6671
  15  0.000146895
  16  3.41575
  17  7.33822
  18  11.3988
  19  17.6169
  20  9.12028
  21  24.7228
  22  1.04221
  23  3.05381e-05
  24  0.00506088
  25  0.196137
  26  0.190614
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.220e-10  5.882e-05  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:  4.132e-01  1.906e-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:  1.829e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12058/likelihoodResults_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.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) = 6913.94091107
delta logL = -0.000381774881134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6913.94052932
delta logL = -2.20661604544e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10997E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6179       1.0000          .0000       10.000    
     3 'Normalizat'    1.8288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41320       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=   6913.856     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      370 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13399E-03    .44397E-02    .42118E-04** at limit **
   2  Index         6.2768        3.0111        .10411        .19042E-03
   3  Normalizat    1.8028        .24766E-01    .49555E-01    .37265E-04
   4  Prefactor     .42958        .24257E-01    .91533E-01    .64354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000133989
  Index      = 6.27677
  Normalizat = 1.80277
  Prefactor  = 0.429582
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.856     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      405 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13399E-03    .37331E-01    .20801E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2768        7.6317        .10496E-01    .25821    
   3  Normalizat    1.8028        .10898        .21905E-03   -.69591    
   4  Prefactor     .42958        .10509        .40571E-03   -1.1532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43054e-07
Minuit parameter uncertainties:
  1  0.00447303
  2  11.9742
  3  0.108996
  4  0.105137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12058': 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): 102
logL (Free Index) = 6913.85636545
delta logL = 0.0841638484908

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.340e-04  4.473e-03  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  6.277e+00  1.197e+01  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:  4.296e-01  1.051e-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:  1.803e+00  1.090e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/12058/cmap_HighResolution_692928001_693187201_4FGL_J1254.5+2210_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2022-12-20 01:01:36.661849', job_id='12058', GAL2='0.43', fit_tolerance='1e-08', EG2='1.80', EG='1.83', time_epoch_completed='1671526896.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='8.42e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1750' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:01:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 12058: <4FGL_J1254.5+2210_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1750> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 20 00:50:14 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:50:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:50:15 2022
Terminated at Tue Dec 20 01:01:37 2022
Results reported at Tue Dec 20 01:01:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1750 193.637 22.1808 692928001 693187201 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 :                                   667.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             380.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

