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


Performing analysis on: 4FGL_J0010.6+2043_daily_bin1693
RA = 2.6502, Dec = 20.7332
tmin = 678153601, tmax = 678412801
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='538836', job_status='RUN', time_executed='2022-07-02 00:07:10.360080', time_epoch_executed='1656745630.36' WHERE source_name='4FGL J0010.6+2043' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538836/ft1_4FGL_J0010.6+2043_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538836/ft1_4FGL_J0010.6+2043_daily_bin1693.fits outfile=/scratch/kocevski/538836/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1693.fits ra=2.6502 dec=20.7332 rad=12.0 tmin=678153601.0 tmax=678412801.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.28
user 3.94
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.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/538836/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 621

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/538836/ltcube_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.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/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits
.....................!
real 15.37
user 14.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/538836/ltcube_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits outfile=/scratch/kocevski/538836/expmap_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.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/538836/ltcube_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits
.....................!
real 193.11
user 187.48
sys 5.07

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

Setting source of interest to:
4FGL J0010.6+2043 @ 2.6502 20.7332

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits outfile=/scratch/kocevski/538836/cmap_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.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=2.6502 yref=20.7332 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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits outfile=/scratch/kocevski/538836/cmap_HighResolution_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.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=2.6502 yref=20.7332 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538836/Model_4FGL_J0010.6+2043_daily_bin1693.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/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits.....................!
real 73.22
user 71.18
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits', '/scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits', expMap='/scratch/kocevski/538836/expmap_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits', expCube='/scratch/kocevski/538836/ltcube_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538836/Model_4FGL_J0010.6+2043_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0010.6+2043'

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538836/ft1_filtered_4FGL_J0010.6+2043_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/538836/ft2_4FGL_J0010.6+2043_daily_bin1693.fits
Exposure map: /scratch/kocevski/538836/expmap_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits
Exposure cube: /scratch/kocevski/538836/ltcube_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538836/Model_4FGL_J0010.6+2043_daily_bin1693.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) = 6673.11736301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .91585E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.684       1.0000         .10000E-03   10000.    
    10 'norm      '    11.721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.129       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .77216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6673.112     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1762 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5165        2.6885       -.26664E-06   -.55059E-03
   2  Prefactor     .10000E-03    2.3303       -.87156E-07** at limit **
   3  Prefactor     2.2414        5.6412       -.10708E-05   -.52588E-03
   4  Prefactor     4.7874        6.5651       -.99051E-06   -.19532E-03
   5  Prefactor     8.4205        45.906       -.11319E-04   -.68121E-05
   6  Prefactor     .10000E-03    1.7777       -.82819E-07** at limit **
   7  norm          .10000E-03    6.1553       -.40574E-06** at limit **
   8  Prefactor     30.055        27.330        .90855E-05    .20136E-04
   9  Prefactor     14.684        14.054       -.43963E-05   -.92047E-06
  10  norm          11.721        8.8185       -.15176E-05   -.13966E-04
  11  Prefactor     .10000E-03    3.8125        .10175E-06** at limit **
  12  Prefactor     .10000E-03    22.905        .46321E-06** at limit **
  13  Prefactor     .10000E-03    12.222        .30266E-07** at limit **
  14  norm          .10000E-03    34.015       -.19089E-07** at limit **
  15  Prefactor     .10000E-03    2.8894        .12566E-06** at limit **
  16  Prefactor     67.122        48.219       -.65304E-05    .47982E-05
  17  Normalizat    1.2751        .18230        .68885E-07    .97145E-04
  18  Prefactor     .77231        .11866        .11901E-05    .17784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51652
  Prefactor  = 0.0001
  Prefactor  = 2.24137
  Prefactor  = 4.78738
  Prefactor  = 8.42046
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 30.0547
  Prefactor  = 14.684
  norm       = 11.7214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.1217
  Normalizat = 1.27514
  Prefactor  = 0.772312
 **********
 **   18 **HESSE 
 **********

 FCN=   6673.112     FROM HESSE     STATUS=OK           254 CALLS     2016 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5165        2.6851        .13133E-03   -1.5391    
   2  Prefactor     .10000E-03    2.3316        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2414        5.6680        .27451E-03   -1.5409    
   4  Prefactor     4.7874        6.5776        .18386E-03   -1.5270    
   5  Prefactor     8.4205        46.116        .13810E-03   -1.5128    
   6  Prefactor     .10000E-03    1.8211        .21256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.4860        .71050E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.055        27.256        .73086E-04   -1.4611    
   9  Prefactor     14.684        14.042        .10452E-03   -1.4941    
  10  norm          11.721        8.8131        .11701E-03   -1.5023    
  11  Prefactor     .10000E-03    3.8264        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    34.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9087        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.122        48.193        .48987E-04   -1.4068    
  17  Normalizat    1.2751        .21351        .25007E-03   -.84312    
  18  Prefactor     .77231        .13833        .20899E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22509e-10
Minuit parameter uncertainties:
  1  2.68526
  2  1.29397e-06
  3  5.66939
  4  6.57858
  5  39.4584
  6  2.40456e-05
  7  0.000334557
  8  27.2674
  9  14.0454
  10  8.81405
  11  1.76867e-05
  12  5.08531e-05
  13  1.42507e-05
  14  8.65723e-05
  15  2.6287e-06
  16  48.2206
  17  0.213661
  18  0.138388
Done.

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

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.000e-04  1.294e-06  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  7.723e-01  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.275e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 2.650 20.733
Photon Flux Upper Limit: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538836/likelihoodResults_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.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) = 6673.11439759
delta logL = -0.00201055274647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6673.11238648
delta logL = 5.54535290576e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2925       1.0000          .0000       10.000    
     3 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6673.112     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    2.6231        .12495E-01** at limit **
   2  Index         2.2110        6.0301        .50000        .76073E-04
   3  Normalizat    1.2751        .46863E-02    .25007E-03   -.32096E-04
   4  Prefactor     .77231        .31474E-02    .20899E-03   -.47871E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102609
  Index      = 2.21105
  Normalizat = 1.27514
  Prefactor  = 0.772313
 **********
 **   18 **HESSE 
 **********

 FCN=   6673.112     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    33.535        .12833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2110        7.3011        .50000       -.59172    
   3  Normalizat    1.2751        .16961E-01    .10003E-04   -.84312    
   4  Prefactor     .77231        .11391E-01    .83596E-05   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.71734e-08
Minuit parameter uncertainties:
  1  0.0187163
  2  204.601
  3  0.0169611
  4  0.0113913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538836': 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) = 6673.11238539
delta logL = 1.6436806618e-06

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.026e-04  1.872e-02  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.211e+00  2.046e+02  0.000e+00  1.000e+01 (-1.000e+00)
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  7.723e-01  1.139e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.275e+00  1.696e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 2.650 20.733

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/538836/cmap_HighResolution_678153601_678412801_4FGL_J0010.6+2043_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2022-07-02 00:16:55.816909', job_id='538836', GAL2='0.77', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1656746215.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1693' AND source_name='4FGL J0010.6+2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 00:16:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 538836: <4FGL_J0010.6+2043_daily_bin1693> in cluster <slac> Done

Job <4FGL_J0010.6+2043_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:04:29 2022
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 00:06:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 00:06:41 2022
Terminated at Sat Jul  2 00:16:56 2022
Results reported at Sat Jul  2 00:16:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1693 2.6502 20.7332 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            747 sec.

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

