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


Performing analysis on: 4FGL_J2248.9+2106_weekly_bin741
RA = 342.246, Dec = 21.1159
tmin = 687139201, tmax = 687744001
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='396659', job_status='RUN', time_executed='2022-10-18 01:44:01.790982', time_epoch_executed='1666082641.79' WHERE source_name='4FGL J2248.9+2106' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396659

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396659/ft1_4FGL_J2248.9+2106_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396659/ft1_4FGL_J2248.9+2106_weekly_bin741.fits outfile=/scratch/kocevski/396659/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin741.fits ra=342.246 dec=21.1159 rad=12.0 tmin=687139201.0 tmax=687744001.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 5.06
user 4.79
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.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/396659/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.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.47
user 0.30
sys 0.15

Number of photons that the gtmktime cut: 988

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396659/ltcube_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.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/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits
.....................!
real 21.06
user 20.69
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396659/ltcube_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits outfile=/scratch/kocevski/396659/expmap_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.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/396659/ltcube_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits
.....................!
real 146.13
user 141.43
sys 4.43

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

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits outfile=/scratch/kocevski/396659/cmap_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.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=342.246 yref=21.1159 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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits outfile=/scratch/kocevski/396659/cmap_HighResolution_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.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=342.246 yref=21.1159 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.50
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396659/Model_4FGL_J2248.9+2106_weekly_bin741.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/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits.....................!
real 84.24
user 82.97
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits', '/scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits', expMap='/scratch/kocevski/396659/expmap_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits', expCube='/scratch/kocevski/396659/ltcube_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396659/Model_4FGL_J2248.9+2106_weekly_bin741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/396659/ft1_filtered_4FGL_J2248.9+2106_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396659/ft2_4FGL_J2248.9+2106_weekly_bin741.fits
Exposure map: /scratch/kocevski/396659/expmap_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396659/ltcube_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396659/Model_4FGL_J2248.9+2106_weekly_bin741.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) = 10151.1151695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     3 'Prefactor '    36.016       1.0000          .0000       .10000E+07
     4 'norm      '    5.7200       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1941       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35688E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80665E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1612       1.0000          .0000       .10000E+07
    10 'norm      '    1.6780       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.623       1.0000          .0000       .10000E+07
    12 'Prefactor '    .80879E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.6376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3746       1.0000          .0000       .10000E+07
    15 'Prefactor '    69.761       1.0000          .0000       .10000E+07
    16 'Prefactor '    100.03       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.942       1.0000          .0000       .10000E+07
    18 'Prefactor '    .31731E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .53711       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10151.11     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1596 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40523E-08    10.427       -.91714E-07** at limit **
   2  norm           .0000        .38545       -.17092E-07** at limit **
   3  Prefactor     36.010        2.2900       -.53698E-09   -.38715E-01
   4  norm          5.7437        4.6030       -.14605E-08   -.39969E-03
   5  Prefactor     2.1754        11.999        .18176E-06    .22339E-03
   6  Prefactor     .17764E-08    16.921        .17074E-06** at limit **
   7  Prefactor     .76211        .21358        .30634E-07    .96479E-03
   8  Prefactor     .10000E-03    6.2099       -.10297E-05** at limit **
   9  norm          3.1592        1.3331        .10050E-07    .21115E-02
  10  norm          1.6783        1.2200       -.13122E-09    .84747E-04
  11  Prefactor     13.896        24.274        .24759E-07   -.63493E-01
  12  Prefactor     .11102E-09    6.3420        .20271E-06** at limit **
  13  Prefactor     5.6376        .39329        .24342E-07    .15038E-02
  14  Prefactor     3.3756        9.6131       -.61194E-08   -.83096E-03
  15  Prefactor     69.682        23.620       -.10197E-07   -.15332    
  16  Prefactor     99.395        52.077        .53709E-07   -.16217E-01
  17  Prefactor     11.822        9.0325        .98975E-07    .77250E-03
  18  Prefactor     .60507E-08    10.691        .74227E-07** at limit **
  19  Normalizat    .53732        .26801        .25410E-05    .41149E-04
  20  Prefactor     1.0409        .13837       -.11634E-05    .21191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05231e-09
  norm       = 0
  Prefactor  = 36.0102
  norm       = 5.74373
  Prefactor  = 2.17538
  Prefactor  = 1.77636e-09
  Prefactor  = 0.762111
  Prefactor  = 0.0001
  norm       = 3.15918
  norm       = 1.67829
  Prefactor  = 13.8958
  Prefactor  = 1.11022e-10
  Prefactor  = 5.63756
  Prefactor  = 3.37564
  Prefactor  = 69.6817
  Prefactor  = 99.395
  Prefactor  = 11.8221
  Prefactor  = 6.05072e-09
  Normalizat = 0.53732
  Prefactor  = 1.04092
 **********
 **   18 **HESSE 
 **********

 FCN=   10151.11     FROM HESSE     STATUS=OK           337 CALLS     1933 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40523E-08    10.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .37898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.010        18.432        .16665E-03   -1.5588    
   4  norm          5.7437        4.6280        .41974E-03   -1.5660    
   5  Prefactor     2.1754        12.173        .69445E-03   -1.5678    
   6  Prefactor     .17764E-08    16.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76211        .21522        .52442E-02   -1.5533    
   8  Prefactor     .10000E-03    6.1237        .10449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1592        1.3418        .56981E-03   -1.5672    
  10  norm          1.6783        1.2158        .81304E-03   -1.5682    
  11  Prefactor     13.896        30.633        .27112E-03   -1.5633    
  12  Prefactor     .11102E-09    6.3389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6376        .39521        .35156E-02   -1.5233    
  14  Prefactor     3.3756        9.6492        .55059E-03   -1.5671    
  15  Prefactor     69.682        38.707        .11973E-03   -1.5541    
  16  Prefactor     99.395        52.589        .99989E-04   -1.5509    
  17  Prefactor     11.822        9.0901        .28963E-03   -1.5639    
  18  Prefactor     .60507E-08    10.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .53732        .26781        .12182       -1.1072    
  20  Prefactor     1.0409        .13158        .40477E-01   -.91378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46651e-07
Minuit parameter uncertainties:
  1  0.000411336
  2  1.30554e-06
  3  18.4318
  4  4.62804
  5  10.2919
  6  0.000346543
  7  0.215223
  8  2.93161e-05
  9  1.34181
  10  1.21584
  11  30.6334
  12  5.27971e-05
  13  0.395211
  14  9.64927
  15  38.7071
  16  52.5891
  17  9.09016
  18  0.000508568
  19  0.26846
  20  0.131619
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.110e-10  5.280e-05  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.041e+00  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  5.373e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396659/likelihoodResults_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.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) = 10151.1222375
delta logL = -0.00945998158022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10151.1127779
delta logL = -3.88847183785e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10150.90     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84506E-01    2.5956        .42118E-03** at limit **
   2  Index         4.5209        2.8164        .13501        .16136E-03
   3  Normalizat    .49138        .40348E-01    .12706        .23215E-03
   4  Prefactor     1.0559        .21602E-01    .40480E-01   -.37211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0845062
  Index      = 4.52089
  Normalizat = 0.491383
  Prefactor  = 1.0559
 **********
 **   18 **HESSE 
 **********

 FCN=   10150.90     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84506E-01    10.909        .45565E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.5209        7.0766        .85062E-02   -.95969E-01
   3  Normalizat    .49138        .18778        .56362E-03   -1.1282    
   4  Prefactor     1.0559        .99750E-01    .21012E-03   -.90889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55091e-06
Minuit parameter uncertainties:
  1  1.92026
  2  9.2609
  3  0.188024
  4  0.0997677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396659': 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) = 10150.8991069
delta logL = 0.213670573519

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  8.451e-02  1.920e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  4.521e+00  9.261e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.056e+00  9.977e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  4.914e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.246 21.116

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/396659/cmap_HighResolution_687139201_687744001_4FGL_J2248.9+2106_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2022-10-18 01:53:40.106902', job_id='396659', GAL2='1.06', fit_tolerance='1e-08', EG2='0.49', EG='0.54', time_epoch_completed='1666083220.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.14e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='741' AND source_name='4FGL J2248.9+2106' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:53:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 396659: <4FGL_J2248.9+2106_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2248.9+2106_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:24 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:25 2022
Terminated at Tue Oct 18 01:53:40 2022
Results reported at Tue Oct 18 01:53:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_weekly_bin741 342.246 21.1159 687139201 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.9+2106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             242.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

