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 35 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0253.5+3216_weekly_bin717
RA = 43.3829, Dec = 32.2826
tmin = 672624001, tmax = 673228801
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='367659', job_status='RUN', time_executed='2022-05-03 01:06:11.991028', time_epoch_executed='1651565171.99' WHERE source_name='4FGL J0253.5+3216' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367659

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367659/ft1_4FGL_J0253.5+3216_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367659/ft1_4FGL_J0253.5+3216_weekly_bin717.fits outfile=/scratch/kocevski/367659/ft1_filteredMKT_4FGL_J0253.5+3216_weekly_bin717.fits ra=43.3829 dec=32.2826 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.40
user 6.11
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.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/367659/ft1_filteredMKT_4FGL_J0253.5+3216_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.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.57
user 0.40
sys 0.16

Number of photons that the gtmktime cut: 141

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367659/ltcube_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.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/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits
.....................!
real 36.70
user 36.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367659/ltcube_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits outfile=/scratch/kocevski/367659/expmap_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.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/367659/ltcube_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits
.....................!
real 193.06
user 186.73
sys 5.91

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0253.5+3216 @ 43.3829 32.2826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits outfile=/scratch/kocevski/367659/cmap_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.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=43.3829 yref=32.2826 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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits outfile=/scratch/kocevski/367659/cmap_HighResolution_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.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=43.3829 yref=32.2826 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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367659/Model_4FGL_J0253.5+3216_weekly_bin717.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/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits.....................!
real 35.26
user 33.87
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits', '/scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits', expMap='/scratch/kocevski/367659/expmap_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits', expCube='/scratch/kocevski/367659/ltcube_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367659/Model_4FGL_J0253.5+3216_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.5+3216'

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  8.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367659/ft1_filtered_4FGL_J0253.5+3216_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367659/ft2_4FGL_J0253.5+3216_weekly_bin717.fits
Exposure map: /scratch/kocevski/367659/expmap_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367659/ltcube_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367659/Model_4FGL_J0253.5+3216_weekly_bin717.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) = 1558.43953547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10210E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    18.115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29720E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14380E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18042E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6819       1.0000         .10000E-03   10000.    
     7 'norm      '    .20327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25469       1.0000         .10000E-03   10000.    
    10 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .33584E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2328.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.402       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7802       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56739E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8857       1.0000         .10000E-03   10000.    
    21 'norm      '    .71299E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.6128       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .14243       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1557.612     FROM MIGRAD    STATUS=CONVERGED   1209 CALLS     3126 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.830        .10374E-01** at limit **
   2  norm          18.745        14.572        .23526E-02    .36204E-03
   3  Prefactor     .10000E-03    25.424        .10697E-01** at limit **
   4  norm          .10003E-03    27.273        .80018E-01** at limit **
   5  Prefactor     .10000E-03    48.891        .90712E-02** at limit **
   6  norm          1.7147        2.9445        .81198E-02    .62908E-03
   7  norm          .10000E-03    255.58        .99926E-02** at limit **
   8  Prefactor     17.026        21.636        .23966E-02    .40338E-04
   9  Prefactor     .10000E-03    198.08        .10225E-01** at limit **
  10  norm          .10000E-03    37.236        .90712E-02** at limit **
  11  Prefactor     .10000E-03    67.891        .90712E-02** at limit **
  12  norm          .10000E-03    18.706        .10671E-01** at limit **
  13  Prefactor     2207.2        1200.4        .23662E-03   -.23997E-04
  14  Prefactor     5473.8        7655.4        .31058E-02   -.96455E-06
  15  norm          .10033E-03    8468.1        .78419E-02** at limit **
  16  norm          .10005E-03    265.78        .10144E-01** at limit **
  17  Prefactor     .10000E-03    60.955        .90712E-02** at limit **
  18  Prefactor     .10000E-03    117.77        .95114E-02** at limit **
  19  norm          5.0314        2.0086        .44818E-02    .13157E-02
  20  Prefactor     3.3095        5.4525        .51173E-02    .69960E-03
  21  norm          .10000E-03    70.329        .10485E-01** at limit **
  22  norm          4.9734        5.8476        .46851E-02    .28826E-03
  23  Prefactor     47.048        156.58        .30623E-02    .52017E-04
  24  Normalizat    .15205E-01    7.8647        .34242        .14931E-04
  25  Prefactor     .81677        .34240        .33225E-01    .40534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.7451
  Prefactor  = 0.0001
  norm       = 0.000100027
  Prefactor  = 0.000100001
  norm       = 1.71467
  norm       = 0.0001
  Prefactor  = 17.0264
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 2207.23
  Prefactor  = 5473.79
  norm       = 0.000100327
  norm       = 0.000100049
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.0314
  Prefactor  = 3.30955
  norm       = 0.000100004
  norm       = 4.97343
  Prefactor  = 47.0479
  Normalizat = 0.0152052
  Prefactor  = 0.816773
 **********
 **   18 **HESSE 
 **********

 FCN=   1557.612     FROM HESSE     STATUS=NOT POSDEF   415 CALLS     3541 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.713        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.745        26.576        .94103E-04   -1.4842    
   3  Prefactor     .10000E-03    25.359        .19295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10003E-03    214.60        .26329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7147        6.8770        .55442E-04   -1.5446    
   7  norm          .10000E-03    254.16        .19985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.026        44.166        .95863E-04   -1.4882    
   9  Prefactor     .10000E-03    196.99        .20449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    37.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.779        .16670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2207.2        1557.1        .47324E-04   -.59264    
  14  Prefactor     5473.8        7404.8        .12423E-03    .94900E-01
  15  norm          .10033E-03    8458.3        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    264.32        .20289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    117.12        .19023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0314        2.2843        .32566E-04   -1.5259    
  20  Prefactor     3.3095        6.0748        .95489E-04   -1.5344    
  21  norm          .10000E-03    71.110        .20969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9734        5.9356        .81755E-04   -1.5262    
  23  Prefactor     47.048        168.38        .12249E-03   -1.4335    
  24  Normalizat    .15205E-01    5.0847        .14682E-01   -1.5251    
  25  Prefactor     .81677        1.0419        .14682E-03   -.99113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72112e-08
Minuit parameter uncertainties:
  1  2.31026e-05
  2  26.5926
  3  2.77501e-05
  4  0.00480401
  5  0.000386848
  6  6.869
  7  0.000426643
  8  44.2511
  9  0.000415515
  10  0.000113145
  11  0.000907787
  12  0.000412908
  13  1596.27
  14  10886
  15  0.112244
  16  0.00723638
  17  0.000498602
  18  0.000100811
  19  2.28432
  20  6.07593
  21  0.00109625
  22  5.93631
  23  170.123
  24  4.36982
  25  1.06883
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  5.474e+03  1.089e+04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.168e-01  1.069e+00  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.521e-02  4.370e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 43.383 32.283
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.31e-06 +/- 6.59e-06
Energy Flux (Fixed Index): 1.57e-03 +/- 3.11e-03
calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.317523676183

TS (Fixed Index): 1.37
Ra Dec: 43.383 32.283
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.60e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367659/likelihoodResults_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.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) = 1555.10229831
delta logL = 2.50930957055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1555.10228836
delta logL = 2.50931951213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.8673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1555.102     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       81 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.8673        .16727        .32602E-01    .61851E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 2.8673
 **********
 **   18 **HESSE 
 **********

 FCN=   1555.102     FROM HESSE     STATUS=OK             7 CALLS       88 TOTAL
                     EDM=   .14E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.8673        .17084        .14250E-03   -.44066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42e-17
Minuit parameter uncertainties:
  1  0.170882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367659': 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) = 1555.10228836
delta logL = 2.50931951215

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  5.473e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
283        Index:  2.867e+00  1.709e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.164e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.613e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 6.39
Ra Dec: 43.383 32.283
Photon Index (Free Index): 2.87 +/- 0.17
Photon Flux (Free Index): 1.70e-05 +/- 7.19e-06
Energy Flux (Free Index): 3.64e-03 +/- 1.17e-03

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/367659/cmap_HighResolution_672624001_673228801_4FGL_J0253.5+3216_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.60e+04', comment='SUCCESS', photon_flux='3.31e-06', energy_flux2='3.64e-03', photon_flux_error='6.59e-06', dlogl='2.51e+00', energy_flux='1.57e-03', photon_flux2='1.70e-05', job_status='DONE', time_completed='2022-05-03 01:14:14.039470', photon_index_error2='0.17', photon_index2='2.87', ts='1.11', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.17e-03', EG='0.02', time_epoch_completed='1651565654.04', return_code='102', job_id='367659', GAL2='0.82', EG2='0.02', return_code2='0', energy_flux_error='3.11e-03', photon_flux_error2='7.19e-06', ts2='6.39', photon_index='2.17' WHERE bin_id='717' AND source_name='4FGL J0253.5+3216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:14:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 367659: <4FGL_J0253.5+3216_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0253.5+3216_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:33 2022
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:05:28 2022
Terminated at Tue May  3 01:14:14 2022
Results reported at Tue May  3 01:14:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.5+3216_weekly_bin717 43.3829 32.2826 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.5+3216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            821 sec.

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

