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


Performing analysis on: 4FGL_J2010.0+7229_daily_bin1775
RA = 302.516, Dec = 72.4874
tmin = 699408001, tmax = 699667201
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='790060', job_status='RUN', time_executed='2023-03-05 03:49:07.534275', time_epoch_executed='1678016947.53' WHERE source_name='4FGL J2010.0+7229' and cadence='daily' and bin_id='1775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790060/ft1_4FGL_J2010.0+7229_daily_bin1775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790060/ft1_4FGL_J2010.0+7229_daily_bin1775.fits outfile=/scratch/kocevski/790060/ft1_filteredMKT_4FGL_J2010.0+7229_daily_bin1775.fits ra=302.516 dec=72.4874 rad=12.0 tmin=699408001.0 tmax=699667201.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.72
user 4.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.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/790060/ft1_filteredMKT_4FGL_J2010.0+7229_daily_bin1775.fits evtable="EVENTS" outfile="/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 1992

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits" evtable="EVENTS" scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits sctable="SC_DATA" outfile=/scratch/kocevski/790060/ltcube_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.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/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits
.....................!
real 14.13
user 13.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits sctable="SC_DATA" expcube=/scratch/kocevski/790060/ltcube_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits outfile=/scratch/kocevski/790060/expmap_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.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/790060/ltcube_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits
.....................!
real 191.44
user 186.27
sys 4.39

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 197 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2010.0+7229 @ 302.516 72.4874

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits outfile=/scratch/kocevski/790060/cmap_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.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=302.516 yref=72.4874 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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits outfile=/scratch/kocevski/790060/cmap_HighResolution_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.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=302.516 yref=72.4874 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790060/Model_4FGL_J2010.0+7229_daily_bin1775.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits.....................!
real 257.95
user 255.95
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits', '/scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits', expMap='/scratch/kocevski/790060/expmap_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits', expCube='/scratch/kocevski/790060/ltcube_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790060/Model_4FGL_J2010.0+7229_daily_bin1775.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2010.0+7229'

4FGL J2010.0+7229
   Spectrum: LogParabola
403         norm:  2.347e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  2.198e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  1.036e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  9.954e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790060/ft1_filtered_4FGL_J2010.0+7229_daily_bin1775.fits
Spacecraft file(s): /scratch/kocevski/790060/ft2_4FGL_J2010.0+7229_daily_bin1775.fits
Exposure map: /scratch/kocevski/790060/expmap_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits
Exposure cube: /scratch/kocevski/790060/ltcube_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790060/Model_4FGL_J2010.0+7229_daily_bin1775.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) = 20082.721137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48874E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.0581       1.0000          .0000       .10000E+07
     3 'norm      '    1.4571       1.0000          .0000       .10000E+07
     4 'norm      '    16.436       1.0000          .0000       .10000E+07
     5 'Prefactor '    .68183E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51901       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.656       1.0000          .0000       .10000E+07
     8 'Prefactor '    24.361       1.0000          .0000       .10000E+07
     9 'norm      '    .36247E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.7451       1.0000          .0000       .10000E+07
    11 'norm      '    .17128E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25136E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1624       1.0000          .0000       .10000E+07
    14 'norm      '    1.8993       1.0000          .0000       .10000E+07
    15 'norm      '    .69425E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .41694E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .36590E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    15.459       1.0000          .0000       .10000E+07
    19 'norm      '    3.3394       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.6791       1.0000          .0000       .10000E+07
    21 'norm      '    .30413       1.0000          .0000       .10000E+07
    22 'Prefactor '    .25105E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.0545       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20082.70     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2175 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    17.734        .13829E-06** at limit **
   2  norm          1.0543        1.8171       -.11566E-07   -.58107E-04
   3  norm          1.4568        .65470        .28695E-08   -.30960E-03
   4  norm          16.484        4.9156       -.22138E-08    .12168E-03
   5  Prefactor      .0000        40.817       -.26912E-07** at limit **
   6  Prefactor     .56142        8.2812       -.21129E-07    .19420E-03
   7  Prefactor     22.564        16.969        .48626E-07   -.41999E-02
   8  Prefactor     23.845        55.048       -.15081E-06    .24452E-05
   9  norm           .0000        45.558        .74003E-06** at limit **
  10  norm          1.7456        3.0957       -.53159E-07    .90238E-04
  11  norm           .0000        8.0187       -.43553E-07** at limit **
  12  Prefactor      .0000        11.217       -.35033E-07** at limit **
  13  Prefactor     1.1613        3.4308        .11713E-07    .45588E-05
  14  norm          1.8992        1.0480       -.39895E-08    .87290E-04
  15  norm           .0000        20.954       -.81497E-07** at limit **
  16  norm           .0000        .99207        .16725E-07** at limit **
  17  norm           .0000        5.0808       -.16308E-07** at limit **
  18  Prefactor     15.454        3.5638        .81395E-08    .15655E-01
  19  norm          3.3397        2.5467       -.51845E-07    .39279E-03
  20  Prefactor     4.6998        6.6164       -.20528E-07    .10104E-03
  21  norm          .29436        16.362        .52698E-08   -.54325E-04
  22  Prefactor      .0000        1.1281       -.70084E-08** at limit **
  23  Prefactor     2.0531        1.9929       -.15302E-07   -.91036E-03
  24  Normalizat    1.0592        .17525        .10025E-05   -.10384E-04
  25  Prefactor     .96363        .42905E-01   -.23903E-06    .12121E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 1.0543
  norm       = 1.45682
  norm       = 16.4837
  Prefactor  = 0
  Prefactor  = 0.561424
  Prefactor  = 22.5642
  Prefactor  = 23.8453
  norm       = 0
  norm       = 1.74564
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.16129
  norm       = 1.89923
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 15.4537
  norm       = 3.33973
  Prefactor  = 4.69981
  norm       = 0.294365
  Prefactor  = 0
  Prefactor  = 2.05312
  Normalizat = 1.05918
  Prefactor  = 0.96363
 **********
 **   18 **HESSE 
 **********

 FCN=   20082.70     FROM HESSE     STATUS=OK           493 CALLS     2668 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    17.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0543        1.9161        .55631E-02   -1.5687    
   3  norm          1.4568        .65883        .89143E-03   -1.5684    
   4  norm          16.484        5.0411        .24678E-03   -1.5627    
   5  Prefactor      .0000        40.841        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56142        8.6327        .76819E-03   -1.5693    
   7  Prefactor     22.564        19.608        .21014E-03   -1.5613    
   8  Prefactor     23.845        55.508        .20265E-03   -1.5610    
   9  norm           .0000        1.7347        .54498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7456        3.1238        .79364E-03   -1.5682    
  11  norm           .0000        8.0076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        11.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1613        3.4613        .10675E-02   -1.5686    
  14  norm          1.8992        1.0757        .75443E-04   -1.5680    
  15  norm           .0000        20.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .99047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.0745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.454        15.582        .25447E-03   -1.5629    
  19  norm          3.3397        2.5581        .55362E-03   -1.5671    
  20  Prefactor     4.6998        6.6243        .46499E-03   -1.5665    
  21  norm          .29436        2.6613        .10156E-01   -1.5697    
  22  Prefactor      .0000        1.1272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0531        41.919        .72083E-03   -1.5679    
  24  Normalizat    1.0592        .16830        .11002       -.91073    
  25  Prefactor     .96363        .40884E-01    .30206E-01   -.93952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04198e-06
Minuit parameter uncertainties:
  1  0.000101108
  2  1.91615
  3  0.658828
  4  5.04108
  5  8.12476e-06
  6  4.40301
  7  19.6079
  8  55.5091
  9  1.25935e-05
  10  3.1238
  11  1.81476e-05
  12  2.56425e-05
  13  3.46134
  14  1.07566
  15  1.92597e-05
  16  5.79275e-08
  17  3.79186e-06
  18  15.5822
  19  2.55815
  20  6.62432
  21  1.77021
  22  6.54868e-07
  23  18.5543
  24  0.168386
  25  0.0408857
Done.

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

Extracting fit parameters...

4FGL J2010.0+7229
   Spectrum: LogParabola
403         norm:  3.340e+00  2.558e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  2.198e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  1.036e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  9.954e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.636e-01  4.089e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.059e+00  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.38
Ra Dec: 302.516 72.487
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.11e-05

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) = 20082.4933189
delta logL = 0.205399911996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20082.1579277
delta logL = 0.540791066247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52257       1.0000          .0000       .10000E+07
     2 'alpha     '    .76908       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   20082.16     FROM MIGRAD    STATUS=FAILED       107 CALLS      275 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52146        1.1027        .16592E-03   -.97026E-02
   2  alpha         .76765        .87050        .34900E-01   -.41162E-03
   3  Normalizat    1.0706        .15929        .48581E-03   -.53356E-05
   4  Prefactor     .96635        .42158E-01    .13335E-03    .44332E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   20082.16     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      346 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52146        1.1027        .65014E-05   -1.5694    
   2  alpha         .76765        .87050        .26326E-02   -.76556    
   3  Normalizat    1.0706        .15929        .15760E-03   -.90701    
   4  Prefactor     .96635        .42158E-01    .43869E-04   -.93860    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20082.16     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      376 TOTAL
                     EDM=   .89E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52146        1.1007        .66370E-05   -.87702E-03
   2  alpha         .76765        .86786        .69801E-02    .10945E-05
   3  Normalizat    1.0706        .15933        .19432E-04   -.51484E-05
   4  Prefactor     .96635        .42167E-01    .53341E-05    .34101E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.521457
  alpha      = 0.767647
  Normalizat = 1.0706
  Prefactor  = 0.966353
 **********
 **   18 **HESSE 
 **********

 FCN=   20082.16     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52146        1.1426        .26548E-06   -1.5694    
   2  alpha         .76765        .89793        .27920E-03   -.76556    
   3  Normalizat    1.0706        .15919        .38865E-05   -.90701    
   4  Prefactor     .96635        .42136E-01    .10668E-05   -.93860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70554e-13
Minuit parameter uncertainties:
  1  1.1426
  2  0.939961
  3  0.159259
  4  0.0421377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790060': 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) = 20082.1579252
delta logL = 0.540793598968

Extracting fit parameters...

4FGL J2010.0+7229
   Spectrum: LogParabola
403         norm:  5.215e-01  1.143e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  7.676e-01  9.400e-01  0.000e+00  5.000e+00 ( 1.000e+00)
405         beta:  1.036e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  9.954e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.664e-01  4.214e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.071e+00  1.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.46
Ra Dec: 302.516 72.487
Photon Index (Free Index): 0.77 +/- 0.94
Photon Flux (Free Index): 2.88e-09 +/- 3.86e-09
Energy Flux (Free Index): 3.01e-05 +/- 4.57e-05

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/790060/cmap_HighResolution_699408001_699667201_4FGL_J2010.0+7229_daily_bin1775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='3.01e-05', photon_flux_error='2.52e-08', dlogl='5.41e-01', energy_flux='1.45e-05', photon_flux2='2.88e-09', job_status='DONE', time_completed='2023-03-05 04:14:36.748203', photon_index_error2='0.94', photon_index2='0.77', ts='5.38', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.57e-05', EG='1.06', time_epoch_completed='1678018476.75', return_code='0', job_id='790060', GAL2='0.97', EG2='1.07', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.86e-09', ts2='6.46', photon_index='2.20' WHERE bin_id='1775' AND source_name='4FGL J2010.0+7229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar  5 04:14:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 790060: <4FGL_J2010.0+7229_daily_bin1775> in cluster <slac> Done

Job <4FGL_J2010.0+7229_daily_bin1775> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Mar  5 03:40:13 2023
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar  5 03:45:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar  5 03:45:41 2023
Terminated at Sun Mar  5 04:14:37 2023
Results reported at Sun Mar  5 04:14:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2010.0+7229_daily_bin1775 302.516 72.4874 699408001 699667201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2010.0+7229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1529.12 sec.
    Max Memory :                                 1270 MB
    Average Memory :                             347.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1736 sec.
    Turnaround time :                            2064 sec.

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

