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


Performing analysis on: 4FGL_J0023.7+4457_daily_bin1734
RA = 5.9477, Dec = 44.951
tmin = 688780801, tmax = 689040001
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='766462', job_status='RUN', time_executed='2022-11-02 00:06:09.341635', time_epoch_executed='1667372769.34' WHERE source_name='4FGL J0023.7+4457' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766462/ft1_4FGL_J0023.7+4457_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766462/ft1_4FGL_J0023.7+4457_daily_bin1734.fits outfile=/scratch/kocevski/766462/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1734.fits ra=5.9477 dec=44.951 rad=12.0 tmin=688780801.0 tmax=689040001.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.54
user 3.32
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.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/766462/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1734.fits evtable="EVENTS" outfile="/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.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 1.28
user 0.31
sys 0.19

Number of photons that the gtmktime cut: 1098

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/766462/ltcube_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.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/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits
.....................!
real 17.70
user 14.89
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/766462/ltcube_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits outfile=/scratch/kocevski/766462/expmap_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.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/766462/ltcube_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits
.....................!
real 191.97
user 184.83
sys 4.82

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 172 point sources and 2 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 J0023.7+4457 @ 5.9477 44.951

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits outfile=/scratch/kocevski/766462/cmap_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.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=5.9477 yref=44.951 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 2.95
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits outfile=/scratch/kocevski/766462/cmap_HighResolution_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.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=5.9477 yref=44.951 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 1.48
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766462/Model_4FGL_J0023.7+4457_daily_bin1734.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 J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits.....................!
real 157.28
user 130.41
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits', '/scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits', expMap='/scratch/kocevski/766462/expmap_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits', expCube='/scratch/kocevski/766462/ltcube_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/766462/Model_4FGL_J0023.7+4457_daily_bin1734.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0023.7+4457'

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  1.187e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
68         Scale:  8.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/766462/ft1_filtered_4FGL_J0023.7+4457_daily_bin1734.fits
Spacecraft file(s): /scratch/kocevski/766462/ft2_4FGL_J0023.7+4457_daily_bin1734.fits
Exposure map: /scratch/kocevski/766462/expmap_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits
Exposure cube: /scratch/kocevski/766462/ltcube_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/766462/Model_4FGL_J0023.7+4457_daily_bin1734.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) = 11488.5160496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47801E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .36549E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.9315       1.0000          .0000       .10000E+07
     4 'norm      '    .14022E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3279       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51571E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .53601E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .27909E-04   1.0000          .0000       .10000E+07
     9 'norm      '    7.4480       1.0000          .0000       .10000E+07
    10 'Prefactor '    .58700E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9272       1.0000          .0000       .10000E+07
    12 'norm      '    40.883       1.0000          .0000       .10000E+07
    13 'Prefactor '    .47035E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .16607E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .23331E-03   1.0000          .0000       .10000E+07
    16 'norm      '    15.175       1.0000          .0000       .10000E+07
    17 'norm      '    .73038E-04   1.0000          .0000       .10000E+07
    18 'norm      '    3.8851       1.0000          .0000       .10000E+07
    19 'Prefactor '    .16194E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12841E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .47668E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11488.42     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1486 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45408E-07    3.3530       -.41436E-07** at limit **
   2  norm          .45791E-06    7.3667       -.28613E-06** at limit **
   3  Prefactor     8.9914        8.0043        .53679E-07   -.17147E-03
   4  norm           .0000        .46810       -.61513E-07** at limit **
   5  Prefactor     1.3284        2.6347        .23784E-06   -.75262E-03
   6  Prefactor     .30270E-06    10.817       -.72888E-07** at limit **
   7  Prefactor     .30054E-06    10.928        .40218E-07** at limit **
   8  Prefactor     .60285E-07    6.2310       -.48887E-06** at limit **
   9  norm          7.4532        3.6604       -.58469E-07    .53351E-03
  10  Prefactor      .0000        1.3900        .15388E-06** at limit **
  11  Prefactor     3.9453        7.9180       -.28524E-08   -.21616E-04
  12  norm          41.169        5.4736       -.15813E-07   -.32768E-01
  13  Prefactor     .23870E-08    8.0518        .81528E-07** at limit **
  14  norm          .27892E-05    17.319       -.36775E-06** at limit **
  15  Prefactor     .80108E-06    13.651       -.45977E-06** at limit **
  16  norm          15.143        9.5260        .10546E-06    .25918E-03
  17  norm           .0000        1.4483        .10385E-06** at limit **
  18  norm          3.9150        3.9665       -.30297E-08   -.20323E-03
  19  Prefactor     .34917E-07    7.3372        .20738E-06** at limit **
  20  Prefactor     .25707E-06    15.979        .28991E-07** at limit **
  21  Prefactor     .36138E-07    3.8502       -.34090E-06** at limit **
  22  Normalizat    1.0291        .22360        .15801E-06   -.36442E-04
  23  Prefactor     1.1000        .79342E-01    .39153E-06   -.99643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54081e-08
  norm       = 4.57911e-07
  Prefactor  = 8.99137
  norm       = 0
  Prefactor  = 1.32839
  Prefactor  = 3.02702e-07
  Prefactor  = 3.00537e-07
  Prefactor  = 6.02851e-08
  norm       = 7.45317
  Prefactor  = 0
  Prefactor  = 3.94534
  norm       = 41.169
  Prefactor  = 2.38698e-09
  norm       = 2.78921e-06
  Prefactor  = 8.01081e-07
  norm       = 15.1426
  norm       = 0
  norm       = 3.91502
  Prefactor  = 3.49165e-08
  Prefactor  = 2.57072e-07
  Prefactor  = 3.61378e-08
  Normalizat = 1.02913
  Prefactor  = 1.10002
 **********
 **   18 **HESSE 
 **********

 FCN=   11488.42     FROM HESSE     STATUS=OK           416 CALLS     1902 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45408E-07    10.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .45791E-06    18.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9914        8.0001        .33514E-03   -1.5648    
   4  norm           .0000        .46956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3284        2.6575        .95313E-03   -1.5685    
   6  Prefactor     .30270E-06    29.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30054E-06    16.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .60285E-07    9.8422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4532        3.6619        .36725E-03   -1.5653    
  10  Prefactor      .0000        1.3929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9453        7.9164        .50882E-03   -1.5668    
  12  norm          41.169        30.654        .15641E-03   -1.5580    
  13  Prefactor     .23870E-08    8.1206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27892E-05    2.6135        .53069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .80108E-06    23.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.143        9.5251        .25685E-03   -1.5630    
  17  norm           .0000        1.4457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9150        3.9559        .51167E-03   -1.5668    
  19  Prefactor     .34917E-07    10.944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25707E-06    30.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .36138E-07    11.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0291        .20340        .96185E-01   -.92061    
  23  Prefactor     1.1000        .71725E-01    .37587E-01   -.89466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12164e-07
Minuit parameter uncertainties:
  1  0.00138968
  2  0.00577304
  3  8.0001
  4  1.02552e-06
  5  2.65747
  6  0.00595749
  7  0.00439349
  8  0.00154038
  9  3.66185
  10  6.27009e-07
  11  7.91644
  12  30.6538
  13  0.000278862
  14  0.00539983
  15  0.00863251
  16  9.52509
  17  1.01396e-06
  18  3.9559
  19  0.00123676
  20  0.00556233
  21  0.0012647
  22  0.203557
  23  0.071731
Done.

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

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  1.328e+00  2.657e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
68         Scale:  8.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.100e+00  7.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.029e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 5.948 44.951
Photon Flux Upper Limit: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766462/likelihoodResults_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.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) = 11488.2956255
delta logL = 0.126561270377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11488.293693
delta logL = 0.128493797873

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11488.29     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87030        28.595        .47976E-03    .22333E-01
   2  Index         3.1330        3.6828        .21813        .14252E-03
   3  Normalizat    1.0087        .50796E-01    .97069E-01    .93332E-03
   4  Prefactor     1.1041        .18248E-01    .37434E-01   -.96833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.870301
  Index      = 3.13295
  Normalizat = 1.00865
  Prefactor  = 1.10409
 **********
 **   18 **HESSE 
 **********

 FCN=   11488.29     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87030        3.3459        .13624E-04   -1.5689    
   2  Index         3.1330        2.2517        .11678E-01   -.38268    
   3  Normalizat    1.0087        .21900        .21501E-02   -.92741    
   4  Prefactor     1.1041        .79381E-01    .15245E-03   -.89336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55185e-10
Minuit parameter uncertainties:
  1  3.34588
  2  2.35112
  3  0.219194
  4  0.0793894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766462': 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) = 11488.2936907
delta logL = 0.128496109352

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  8.703e-01  3.346e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  3.133e+00  2.351e+00  0.000e+00  1.000e+01 (-1.000e+00)
68         Scale:  8.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.104e+00  7.939e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.009e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 5.948 44.951

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/766462/cmap_HighResolution_688780801_689040001_4FGL_J0023.7+4457_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2022-11-02 00:20:40.086447', job_id='766462', GAL2='1.10', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1667373640.09', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.28e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1734' AND source_name='4FGL J0023.7+4457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:20:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 766620: <4FGL_J0023.7+4457_daily_bin1734> in cluster <slac> Done

Job <4FGL_J0023.7+4457_daily_bin1734> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Nov  2 00:05:15 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:05:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:05:17 2022
Terminated at Wed Nov  2 00:20:22 2022
Results reported at Wed Nov  2 00:20:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0023.7+4457_daily_bin1734 5.9477 44.951 688780801 689040001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0023.7+4457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   831.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             345.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 766462: <4FGL_J0023.7+4457_daily_bin1734> in cluster <slac> Done

Job <4FGL_J0023.7+4457_daily_bin1734> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Nov  2 00:05:04 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:05:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:05:05 2022
Terminated at Wed Nov  2 00:20:40 2022
Results reported at Wed Nov  2 00:20:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0023.7+4457_daily_bin1734 5.9477 44.951 688780801 689040001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0023.7+4457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

