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


Performing analysis on: 4FGL_J0023.7+4457_daily_bin1762
RA = 5.9477, Dec = 44.951
tmin = 696038401, tmax = 696297601
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='95716', job_status='RUN', time_executed='2023-01-25 00:08:12.440408', time_epoch_executed='1674634092.44' WHERE source_name='4FGL J0023.7+4457' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95716/ft1_4FGL_J0023.7+4457_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95716/ft1_4FGL_J0023.7+4457_daily_bin1762.fits outfile=/scratch/kocevski/95716/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1762.fits ra=5.9477 dec=44.951 rad=12.0 tmin=696038401.0 tmax=696297601.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.84
user 3.49
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.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/95716/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.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.55
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 958

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/95716/ltcube_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.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/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits
.....................!
real 16.42
user 15.91
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/95716/ltcube_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits outfile=/scratch/kocevski/95716/expmap_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.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/95716/ltcube_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits
.....................!
real 194.00
user 186.79
sys 5.68

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/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits outfile=/scratch/kocevski/95716/cmap_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.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 0.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits outfile=/scratch/kocevski/95716/cmap_HighResolution_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.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 0.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95716/Model_4FGL_J0023.7+4457_daily_bin1762.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/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits.....................!
real 115.30
user 112.32
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits', '/scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits', expMap='/scratch/kocevski/95716/expmap_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits', expCube='/scratch/kocevski/95716/ltcube_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95716/Model_4FGL_J0023.7+4457_daily_bin1762.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/95716/ft1_filtered_4FGL_J0023.7+4457_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/95716/ft2_4FGL_J0023.7+4457_daily_bin1762.fits
Exposure map: /scratch/kocevski/95716/expmap_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits
Exposure cube: /scratch/kocevski/95716/ltcube_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95716/Model_4FGL_J0023.7+4457_daily_bin1762.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) = 9999.35700922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89084E-04   1.0000          .0000       .10000E+07
     2 'norm      '    13.572       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.6328       1.0000          .0000       .10000E+07
     4 'norm      '    .11641E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.6461       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6938       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.060       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1210       1.0000          .0000       .10000E+07
     9 'norm      '    3.8354       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4111       1.0000          .0000       .10000E+07
    11 'Prefactor '    .25580E-06   1.0000          .0000       .10000E+07
    12 'norm      '    28.553       1.0000          .0000       .10000E+07
    13 'Prefactor '    20.905       1.0000          .0000       .10000E+07
    14 'norm      '    1.7233       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4921       1.0000          .0000       .10000E+07
    16 'norm      '    1.6568       1.0000          .0000       .10000E+07
    17 'norm      '    .98781       1.0000          .0000       .10000E+07
    18 'norm      '    5.1503       1.0000          .0000       .10000E+07
    19 'Prefactor '    .13459E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .18157E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4835       1.0000          .0000       .10000E+07
    22 'Normalizat'    .70845       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0779       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=   9999.335     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1473 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1798        .15796E-06** at limit **
   2  norm          13.397        16.025       -.15105E-07   -.40068E-02
   3  Prefactor     9.6831        9.5547        .90349E-08    .11604E-02
   4  norm           .0000        3.1594        .24234E-07** at limit **
   5  Prefactor     6.6423        3.5627        .15163E-09   -.13138E-02
   6  Prefactor     3.6144        1.1788        .40732E-09    .11424E-01
   7  Prefactor     17.010        1.8770        .97827E-08   -.27951E-01
   8  Prefactor     3.2209        1.7671       -.28883E-07    .19815E-01
   9  norm          3.8344        2.8491        .62481E-07    .39180E-03
  10  Prefactor     1.4124        3.0116       -.63861E-07   -.13692E-03
  11  Prefactor      .0000        2.5732        .46005E-08** at limit **
  12  norm          29.143        4.8760       -.47986E-07    .31856E-02
  13  Prefactor     20.879        1.2032        .25132E-10    .24723E-01
  14  norm          1.7109        3.9741       -.18102E-06    .45566E-03
  15  Prefactor     3.4601        1.1106        .11753E-07   -.34908E-02
  16  norm          1.6701        8.8335       -.62496E-07   -.14634E-03
  17  norm          .99108        2.1237        .10729E-06    .78528E-05
  18  norm          5.1377        5.1218       -.11435E-06   -.43363E-04
  19  Prefactor     .60507E-08    62.175        .85491E-06** at limit **
  20  Prefactor     .33307E-09    18.806        .45896E-06** at limit **
  21  Prefactor     1.4757        5.5440        .48082E-07    .15578E-03
  22  Normalizat    .70901        .22161        .23360E-06   -.14348E-05
  23  Prefactor     1.0778        .82875E-01   -.84634E-06    .84733E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 13.3968
  Prefactor  = 9.68307
  norm       = 0
  Prefactor  = 6.6423
  Prefactor  = 3.61443
  Prefactor  = 17.0097
  Prefactor  = 3.22092
  norm       = 3.8344
  Prefactor  = 1.41237
  Prefactor  = 0
  norm       = 29.1433
  Prefactor  = 20.8793
  norm       = 1.71093
  Prefactor  = 3.46013
  norm       = 1.67014
  norm       = 0.991075
  norm       = 5.13771
  Prefactor  = 6.05072e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 1.47573
  Normalizat = 0.709009
  Prefactor  = 1.07777
 **********
 **   18 **HESSE 
 **********

 FCN=   9999.335     FROM HESSE     STATUS=OK           428 CALLS     1901 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.397        16.214        .27163E-03   -1.5635    
   3  Prefactor     9.6831        9.6652        .32264E-03   -1.5646    
   4  norm           .0000        3.0499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6423        3.7051        .38901E-03   -1.5656    
   6  Prefactor     3.6144        13.025        .52524E-03   -1.5670    
   7  Prefactor     17.010        21.234        .24221E-03   -1.5625    
   8  Prefactor     3.2209        69.790        .57366E-03   -1.5672    
   9  norm          3.8344        2.8579        .51509E-03   -1.5669    
  10  Prefactor     1.4124        3.0779        .91159E-03   -1.5684    
  11  Prefactor      .0000        2.5611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.143        37.924        .18717E-03   -1.5600    
  13  Prefactor     20.879        14.293        .21878E-03   -1.5617    
  14  norm          1.7109        3.9901        .79977E-03   -1.5682    
  15  Prefactor     3.4601        79.881        .54082E-03   -1.5671    
  16  norm          1.6701        8.8887        .81954E-03   -1.5682    
  17  norm          .99108        2.1349        .43334E-03   -1.5688    
  18  norm          5.1377        5.1197        .44275E-03   -1.5663    
  19  Prefactor     .60507E-08    63.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33307E-09    18.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4757        5.6467        .88056E-03   -1.5684    
  22  Normalizat    .70901        .21227        .10331       -1.0354    
  23  Prefactor     1.0778        .76479E-01    .38494E-01   -.90180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31011e-07
Minuit parameter uncertainties:
  1  6.06649e-06
  2  16.214
  3  9.66524
  4  1.40782e-06
  5  3.70507
  6  13.0248
  7  21.2339
  8  29.9862
  9  2.85795
  10  3.07786
  11  2.73311e-06
  12  37.9239
  13  14.2931
  14  3.99013
  15  33.2509
  16  7.70594
  17  2.13487
  18  5.11974
  19  0.00123715
  20  0.000157743
  21  5.64669
  22  0.212518
  23  0.0764872
Done.

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

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  6.642e+00  3.705e+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.078e+00  7.649e-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:  7.090e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.76
Ra Dec: 5.948 44.951
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.37e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.46e-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) = 9998.78955802
delta logL = 0.545340284605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9998.78726282
delta logL = 0.547635482064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6451       1.0000          .0000       .10000E+07
     2 'Index     '    1.8355       1.0000          .0000       10.000    
     3 'Normalizat'    .76665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0665       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=   9998.787     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      213 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6480        5.1322        .38904E-03    .16767E-01
   2  Index         1.8358        .47896        .19658       -.72439E-04
   3  Normalizat    .76662        .19695        .99689E-01    .48136E-04
   4  Prefactor     1.0665        .74791E-01    .39026E-01   -.10786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64801
  Index      = 1.83576
  Normalizat = 0.766618
  Prefactor  = 1.06653
 **********
 **   18 **HESSE 
 **********

 FCN=   9998.787     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6480        5.5433        .77807E-04   -1.5656    
   2  Index         1.8358        .63090        .10275E-01   -.68522    
   3  Normalizat    .76662        .21833        .44181E-03   -1.0132    
   4  Prefactor     1.0665        .82018E-01    .14638E-03   -.90543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19183e-09
Minuit parameter uncertainties:
  1  5.54333
  2  0.633725
  3  0.218581
  4  0.0820275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95716': 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) = 9998.78726269
delta logL = 0.547635610385

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  6.648e+00  5.543e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  1.836e+00  6.337e-01  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.067e+00  8.203e-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:  7.666e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.70
Ra Dec: 5.948 44.951
Photon Index (Free Index): 1.84 +/- 0.63
Photon Flux (Free Index): 3.98e-08 +/- 5.13e-08
Energy Flux (Free Index): 4.29e-05 +/- 4.35e-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/95716/cmap_HighResolution_696038401_696297601_4FGL_J0023.7+4457_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.37e-08', energy_flux2='4.29e-05', photon_flux_error='4.67e-08', dlogl='5.48e-01', energy_flux='2.62e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2023-01-25 00:20:09.499989', photon_index_error2='0.63', photon_index2='1.84', ts='10.76', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.35e-05', EG='0.71', time_epoch_completed='1674634809.5', return_code='0', job_id='95716', GAL2='1.07', EG2='0.77', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.13e-08', ts2='11.70', photon_index='2.44' WHERE bin_id='1762' AND source_name='4FGL J0023.7+4457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:20:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 95716: <4FGL_J0023.7+4457_daily_bin1762> in cluster <slac> Done

Job <4FGL_J0023.7+4457_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:04:46 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:06:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:06:59 2023
Terminated at Wed Jan 25 00:20:10 2023
Results reported at Wed Jan 25 00:20:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0023.7+4457_daily_bin1762 5.9477 44.951 696038401 696297601 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            924 sec.

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

