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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin1770
RA = 183.437, Dec = 64.3961
tmin = 698112001, tmax = 698371201
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='485341', job_status='RUN', time_executed='2023-02-18 00:48:09.354109', time_epoch_executed='1676710089.35' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485341/ft1_4FGL_J1213.7+6423_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485341/ft1_4FGL_J1213.7+6423_daily_bin1770.fits outfile=/scratch/kocevski/485341/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1770.fits ra=183.437 dec=64.3961 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.36
user 4.13
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.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/485341/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.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.13

Number of photons that the gtmktime cut: 414

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/485341/ltcube_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.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/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits
.....................!
real 12.02
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/485341/ltcube_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits outfile=/scratch/kocevski/485341/expmap_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.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/485341/ltcube_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits
.....................!
real 192.17
user 187.16
sys 4.65

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

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits outfile=/scratch/kocevski/485341/cmap_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.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=183.437 yref=64.3961 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits outfile=/scratch/kocevski/485341/cmap_HighResolution_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.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=183.437 yref=64.3961 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485341/Model_4FGL_J1213.7+6423_daily_bin1770.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/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits.....................!
real 48.86
user 47.62
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits', '/scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits', expMap='/scratch/kocevski/485341/expmap_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits', expCube='/scratch/kocevski/485341/ltcube_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485341/Model_4FGL_J1213.7+6423_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/485341/ft1_filtered_4FGL_J1213.7+6423_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/485341/ft2_4FGL_J1213.7+6423_daily_bin1770.fits
Exposure map: /scratch/kocevski/485341/expmap_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits
Exposure cube: /scratch/kocevski/485341/ltcube_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485341/Model_4FGL_J1213.7+6423_daily_bin1770.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) = 4458.89457958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28125E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13487       1.0000          .0000       .10000E+07
     3 'Prefactor '    .66986E-04   1.0000          .0000       .10000E+07
     4 'norm      '    4.1879       1.0000          .0000       .10000E+07
     5 'norm      '    2.7059       1.0000          .0000       .10000E+07
     6 'Prefactor '    17.514       1.0000          .0000       .10000E+07
     7 'Prefactor '    .99157E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .93484E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16672E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4614       1.0000          .0000       .10000E+07
    11 'norm      '    .82766E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .42395E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41770       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.466       1.0000          .0000       .10000E+07
    15 'norm      '    .23281E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49966E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30329E-02   1.0000          .0000       .10000E+07
    18 'norm      '    8.1320       1.0000          .0000       .10000E+07
    19 'Prefactor '    .49316E-03   1.0000          .0000       .10000E+07
    20 'norm      '    6.4831       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.3890       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.8141       1.0000          .0000       .10000E+07
    23 'Prefactor '    .24799E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .19835E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.2771       1.0000          .0000       .10000E+07
    26 'Prefactor '    .34113E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .30930E-02   1.0000          .0000       .10000E+07
    28 'Normalizat'    .99780       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4458.872     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2602 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    2.1448        .73622E-07** at limit **
   2  Prefactor     .10963E-05    68.117        .29792E-05** at limit **
   3  Prefactor     .37637E-07    6.3789        .21510E-05** at limit **
   4  norm          4.1830        1.1691        .44053E-07   -.20034E-01
   5  norm          2.7321        3.6073       -.13553E-06    .21913E-02
   6  Prefactor     17.505        1.1032       -.16227E-07   -.13273E-02
   7  Prefactor     .33307E-09    3.0744        .26800E-06** at limit **
   8  Prefactor     .12323E-07    1.0571        .66212E-06** at limit **
   9  Prefactor     .27039E-06    6.9404        .11182E-05** at limit **
  10  Prefactor     2.4489        3.2978        .25927E-07    .13860E-03
  11  norm          .12768E-08    4.9510        .16298E-06** at limit **
  12  norm          .59786E-07    6.1033       -.22585E-05** at limit **
  13  Prefactor     .14533        136.73       -.85418E-05** at limit **
  14  Prefactor     13.079        22.068        .59213E-06   -.10730E-01
  15  norm           .0000        .78798        .50005E-07** at limit **
  16  Prefactor     .33307E-09    25.992        .28401E-06** at limit **
  17  Prefactor     .16415E-06    5.3442        .71868E-06** at limit **
  18  norm          8.1142        5.0855        .11655E-06   -.42182E-02
  19  Prefactor     .16653E-09    3.9687        .17421E-06** at limit **
  20  norm          6.5187        3.6660       -.20513E-07    .17165E-02
  21  Prefactor     .18668E-03    183.43       -.57989E-05** at limit **
  22  Prefactor     5.8469        1.1864       -.12089E-06    .72848E-03
  23  Prefactor     .73789E-05    86.739        .54516E-06** at limit **
  24  Prefactor     .36754E-06    5.5055       -.72381E-06** at limit **
  25  Prefactor     2.2924        4.7434        .31581E-08    .12660E-02
  26  Prefactor     .16653E-09    5.4084        .10212E-05** at limit **
  27  Prefactor     .80713E-07    4.8842       -.97460E-06** at limit **
  28  Normalizat    .99827        .20882       -.41129E-05    .13612E-03
  29  Prefactor     .84717        .23668        .24936E-05   -.79910E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 1.09635e-06
  Prefactor  = 3.76366e-08
  norm       = 4.18304
  norm       = 2.73214
  Prefactor  = 17.5048
  Prefactor  = 3.33067e-10
  Prefactor  = 1.23235e-08
  Prefactor  = 2.70395e-07
  Prefactor  = 2.44892
  norm       = 1.27676e-09
  norm       = 5.97855e-08
  Prefactor  = 0.145333
  Prefactor  = 13.0787
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 1.64146e-07
  norm       = 8.11422
  Prefactor  = 1.66533e-10
  norm       = 6.51867
  Prefactor  = 0.000186683
  Prefactor  = 5.84687
  Prefactor  = 7.37888e-06
  Prefactor  = 3.67539e-07
  Prefactor  = 2.29237
  Prefactor  = 1.66533e-10
  Prefactor  = 8.07132e-08
  Normalizat = 0.998269
  Prefactor  = 0.847166
 **********
 **   18 **HESSE 
 **********

 FCN=   4458.872     FROM HESSE     STATUS=OK           607 CALLS     3209 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    2.1456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10963E-05    178.43        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .37637E-07    6.6889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1830        1.1708        .49223E-03   -1.5667    
   5  norm          2.7321        3.6298        .61897E-03   -1.5675    
   6  Prefactor     17.505        18.200        .23905E-03   -1.5624    
   7  Prefactor     .33307E-09    3.0764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12323E-07    59.268        .14108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27039E-06    11.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4489        3.3159        .65160E-03   -1.5677    
  11  norm          .12768E-08    4.9487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .59786E-07    6.4165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14533        9.0531        .87465E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.079        25.921        .28346E-03   -1.5636    
  15  norm           .0000        .78519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33307E-09    25.949        .15542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16415E-06    9.4613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1142        5.0908        .35134E-03   -1.5651    
  19  Prefactor     .16653E-09    3.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5187        3.7061        .39392E-03   -1.5657    
  21  Prefactor     .18668E-03    475.26        .92193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.8469        13.978        .41628E-03   -1.5660    
  23  Prefactor     .73789E-05    98.702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .36754E-06    11.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2924        4.7515        .68019E-03   -1.5678    
  26  Prefactor     .16653E-09    5.4345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .80713E-07    9.6957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99827        .18239        .46139E-01   -.93088    
  29  Prefactor     .84717        .20463        .44329E-01   -.98012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58238e-07
Minuit parameter uncertainties:
  1  3.07803e-05
  2  0.0279734
  3  0.0010038
  4  1.17077
  5  3.62982
  6  18.1996
  7  6.4772e-05
  8  0.00170876
  9  0.00358187
  10  3.31586
  11  0.000159147
  12  0.00123901
  13  2.2941
  14  25.9217
  15  6.33288e-06
  16  0.000191148
  17  0.00249233
  18  5.09077
  19  5.21727e-05
  20  3.70612
  21  0.595772
  22  13.9782
  23  0.0539752
  24  0.00411859
  25  4.7515
  26  6.07491e-05
  27  0.00176905
  28  0.182505
  29  0.20481
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.641e-07  2.492e-03  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.472e-01  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.983e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485341/likelihoodResults_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.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) = 4458.87248706
delta logL = -8.01603473519e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4458.87240788
delta logL = -9.86316081253e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4458.872     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      294 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    18.723        .42118E-03** at limit **
   2  Index         1.0988        8.6122        .50000       -.14552E-08
   3  Normalizat    .99827        .80038E-02    .46147E-01   -.70052E-04
   4  Prefactor     .84717        .93353E-02    .44324E-01   -.10632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Index      = 1.09877
  Normalizat = 0.998266
  Prefactor  = 0.847169
 **********
 **   18 **HESSE 
 **********

 FCN=   4458.872     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      327 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    91.958        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0988        5.5251        .50000       -.89506    
   3  Normalizat    .99827        .17958E-01    .21877E-03   -.93089    
   4  Prefactor     .84717        .20945E-01    .27332E-03   -.98012    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95207e-09
Minuit parameter uncertainties:
  1  0.00101049
  2  89861.2
  3  0.0179579
  4  0.020945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485341': 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) = 4458.87240689
delta logL = 8.47467163112e-09

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  2.776e-09  1.010e-03  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  1.099e+00  8.986e+04  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.472e-01  2.095e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.983e-01  1.796e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.437 64.396

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/485341/cmap_HighResolution_698112001_698371201_4FGL_J1213.7+6423_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2023-02-18 00:59:13.875814', job_id='485341', GAL2='0.85', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1676710753.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.47e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1770' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:59:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 485341: <4FGL_J1213.7+6423_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:45:18 2023
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:45:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:45:20 2023
Terminated at Sat Feb 18 00:59:14 2023
Results reported at Sat Feb 18 00:59:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin1770 183.437 64.3961 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

