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


Performing analysis on: 4FGL_J0010.6+2043_daily_bin1702
RA = 2.6502, Dec = 20.7332
tmin = 680486401, tmax = 680745601
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='232855', job_status='RUN', time_executed='2022-07-29 00:07:06.171678', time_epoch_executed='1659078426.17' WHERE source_name='4FGL J0010.6+2043' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232855/ft1_4FGL_J0010.6+2043_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232855/ft1_4FGL_J0010.6+2043_daily_bin1702.fits outfile=/scratch/kocevski/232855/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1702.fits ra=2.6502 dec=20.7332 rad=12.0 tmin=680486401.0 tmax=680745601.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 3.04
user 2.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.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/232855/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 746

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/232855/ltcube_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.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/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits
.....................!
real 16.55
user 16.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/232855/ltcube_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits outfile=/scratch/kocevski/232855/expmap_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.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/232855/ltcube_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits
.....................!
real 196.10
user 189.41
sys 5.75

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/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits scfile=/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits outfile=/scratch/kocevski/232855/cmap_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits scfile=/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits outfile=/scratch/kocevski/232855/cmap_HighResolution_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.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.56
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits', '/scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits', expMap='/scratch/kocevski/232855/expmap_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits', expCube='/scratch/kocevski/232855/ltcube_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232855/Model_4FGL_J0010.6+2043_daily_bin1702.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/232855/ft1_filtered_4FGL_J0010.6+2043_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/232855/ft2_4FGL_J0010.6+2043_daily_bin1702.fits
Exposure map: /scratch/kocevski/232855/expmap_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits
Exposure cube: /scratch/kocevski/232855/ltcube_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232855/Model_4FGL_J0010.6+2043_daily_bin1702.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) = 8334.27051048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12500E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.220       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.2934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.762       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.745       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0017       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=   8334.269     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1716 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    1.0496        .27857E-06** at limit **
   2  Prefactor     6.9443        6.6633        .13903E-05   -.38135E-03
   3  Prefactor     .10000E-03    2.8820       -.70371E-07** at limit **
   4  Prefactor     9.4219        7.3113        .54053E-08   -.19631E-04
   5  Prefactor     21.217        27.186       -.69122E-06   -.10777E-03
   6  Prefactor     .10000E-03    1.4868       -.11563E-06** at limit **
   7  norm          9.2931        8.6337        .37795E-07   -.36582E-05
   8  Prefactor     .10000E-03    15.535       -.83479E-06** at limit **
   9  Prefactor     14.763        11.846        .66243E-08   -.14090E-04
  10  norm          .10000E-03    3.5655       -.10511E-07** at limit **
  11  Prefactor     8.4308        6.5219       -.14151E-07   -.58323E-05
  12  Prefactor     .10000E-03    7.7915       -.80162E-06** at limit **
  13  Prefactor     .10000E-03    7.1735        .11621E-05** at limit **
  14  norm          .10000E-03    7.9482       -.88847E-06** at limit **
  15  Prefactor     .10000E-03    1.2632       -.57205E-08** at limit **
  16  Prefactor     85.751        46.079        .10034E-05    .19731E-03
  17  Normalizat    1.0020        .17626       -.17846E-06   -.59172E-04
  18  Prefactor     1.0017        .11546       -.41562E-07   -.71125E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100053
  Prefactor  = 6.94427
  Prefactor  = 0.0001
  Prefactor  = 9.42186
  Prefactor  = 21.2175
  Prefactor  = 0.0001
  norm       = 9.29314
  Prefactor  = 0.0001
  Prefactor  = 14.7625
  norm       = 0.0001
  Prefactor  = 8.43077
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 85.751
  Normalizat = 1.00205
  Prefactor  = 1.00175
 **********
 **   18 **HESSE 
 **********

 FCN=   8334.269     FROM HESSE     STATUS=OK           244 CALLS     1960 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    12.113        .17252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9443        6.9716        .76117E-03   -1.5181    
   3  Prefactor     .10000E-03    2.9057        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4219        7.3132        .13057E-03   -1.5094    
   5  Prefactor     21.217        27.392        .86951E-04   -1.4786    
   6  Prefactor     .10000E-03    2.6614        .21441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.2931        8.6321        .13146E-03   -1.5098    
   8  Prefactor     .10000E-03    15.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.763        11.839        .10425E-03   -1.4939    
  10  norm          .10000E-03    3.6298        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4308        6.5200        .13806E-03   -1.5127    
  12  Prefactor     .10000E-03    8.1291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.1895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2643        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     85.751        46.929        .43384E-04   -1.3853    
  17  Normalizat    1.0020        .20487        .29055E-03   -.92962    
  18  Prefactor     1.0017        .13577        .19454E-03   -.92671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69301e-09
Minuit parameter uncertainties:
  1  0.00160326
  2  6.97243
  3  5.80664e-06
  4  7.31386
  5  27.4082
  6  8.56936e-06
  7  8.63323
  8  0.000165676
  9  11.841
  10  1.49711e-06
  11  6.52051
  12  9.90611e-05
  13  0.000169958
  14  0.000133437
  15  4.75129e-07
  16  46.9492
  17  0.205031
  18  0.13582
Done.

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

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  6.944e+00  6.972e+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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.002e+00  1.358e-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.002e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 2.650 20.733
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 8.61e-06 +/- 8.64e-06

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

Saving results to:
/scratch/kocevski/232855/likelihoodResults_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.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) = 8333.71557351
delta logL = 0.55373502801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8333.63913301
delta logL = 0.630175530598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.052       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6292       1.0000          .0000       10.000    
     3 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99428       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=   8333.639     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.054        10.454        .11539E-03    .27587E-05
   2  Index         1.6296        .52608        .10751E-01   -.97201E-05
   3  Normalizat    1.0171        .20139        .28879E-03   -.15006E-03
   4  Prefactor     .99428        .13548        .19510E-03   -.11039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.054
  Index      = 1.62958
  Normalizat = 1.01711
  Prefactor  = 0.994278
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.639     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.054        10.491        .46156E-05   -1.5013    
   2  Index         1.6296        .52806        .43004E-03   -.73972    
   3  Normalizat    1.0171        .20156        .11552E-04   -.92459    
   4  Prefactor     .99428        .13560        .39019E-04   -.92921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82855e-11
Minuit parameter uncertainties:
  1  10.4925
  2  0.529875
  3  0.201713
  4  0.135651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232855': 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) = 8333.63913269
delta logL = 0.630175851289

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.205e+01  1.049e+01  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  1.630e+00  5.299e-01  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:  9.943e-01  1.357e-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.017e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 2.650 20.733
Photon Index (Free Index): 1.63 +/- 0.53
Photon Flux (Free Index): 1.37e-08 +/- 1.52e-08
Energy Flux (Free Index): 2.81e-05 +/- 3.82e-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/232855/cmap_HighResolution_680486401_680745601_4FGL_J0010.6+2043_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='2.81e-05', photon_flux_error='2.34e-08', dlogl='6.30e-01', energy_flux='8.61e-06', photon_flux2='1.37e-08', job_status='DONE', time_completed='2022-07-29 00:17:55.068516', photon_index_error2='0.53', photon_index2='1.63', ts='1.72', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.19e-08', energy_flux_error2='3.82e-05', EG='1.00', time_epoch_completed='1659079075.07', return_code='0', job_id='232855', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='1.52e-08', ts2='2.98', photon_index='2.32' WHERE bin_id='1702' AND source_name='4FGL J0010.6+2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 00:17:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 232855: <4FGL_J0010.6+2043_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0010.6+2043_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:03 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:05:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:05:18 2022
Terminated at Fri Jul 29 00:17:55 2022
Results reported at Fri Jul 29 00:17:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1702 2.6502 20.7332 680486401 680745601 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 :                                   643.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            772 sec.

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

