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


Performing analysis on: 4FGL_J0023.7+4457_daily_bin1751
RA = 5.9477, Dec = 44.951
tmin = 693187201, tmax = 693446401
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='66996', job_status='RUN', time_executed='2022-12-23 00:05:33.908012', time_epoch_executed='1671782733.91' WHERE source_name='4FGL J0023.7+4457' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66996

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66996/ft1_4FGL_J0023.7+4457_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66996/ft1_4FGL_J0023.7+4457_daily_bin1751.fits outfile=/scratch/kocevski/66996/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1751.fits ra=5.9477 dec=44.951 rad=12.0 tmin=693187201.0 tmax=693446401.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.14
user 3.42
sys 0.23

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

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

Number of photons that the gtmktime cut: 1063

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/66996/ltcube_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.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/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits
.....................!
real 12.25
user 11.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/66996/ltcube_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.fits outfile=/scratch/kocevski/66996/expmap_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.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/66996/ltcube_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.fits
.....................!
real 193.31
user 186.64
sys 5.28

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/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits scfile=/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits outfile=/scratch/kocevski/66996/cmap_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits scfile=/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits outfile=/scratch/kocevski/66996/cmap_HighResolution_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/66996/ft2_4FGL_J0023.7+4457_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66996/Model_4FGL_J0023.7+4457_daily_bin1751.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/66996/ft1_filtered_4FGL_J0023.7+4457_daily_bin1751.fits.....................!
real 124.43
user 121.85
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89361E-03   1.0000          .0000       .10000E+07
     2 'norm      '    8.3792       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10476E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .19945E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.7807       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39675E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .56920E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37546E-02   1.0000          .0000       .10000E+07
     9 'norm      '    4.3712       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1861       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4822       1.0000          .0000       .10000E+07
    12 'norm      '    6.3590       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.4733       1.0000          .0000       .10000E+07
    14 'norm      '    .97555       1.0000          .0000       .10000E+07
    15 'Prefactor '    41.369       1.0000          .0000       .10000E+07
    16 'norm      '    .84077E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .62178E-06   1.0000          .0000       .10000E+07
    18 'norm      '    10.508       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26846E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19935E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .31504E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    .80829       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0136       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=   11259.09     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     1908 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10381E-07    3.1845        .70280E-06** at limit **
   2  norm          8.4121        10.807        .20078E-05   -.11601E-01
   3  Prefactor     .34417E-08    3.3296        .16421E-06** at limit **
   4  norm          .17626E-01    19.989        .76564E-05** at limit **
   5  Prefactor     6.7796        3.2759        .13993E-06   -.35740E-02
   6  Prefactor      .0000        8.4620        .27913E-08** at limit **
   7  Prefactor     .24092E-07    53.099       -.33475E-05** at limit **
   8  Prefactor     .36637E-08    16.074        .84711E-06** at limit **
   9  norm          4.3705        2.3914       -.37811E-07    .13955E-02
  10  Prefactor     1.1854        3.0688       -.68330E-06    .35241E-02
  11  Prefactor     4.4416        2.3563        .32075E-06   -.22273E-02
  12  norm          6.2942        1.2939       -.10820E-06    .11837E-01
  13  Prefactor     6.4578        1.1036       -.42752E-07    .37311E-02
  14  norm          .96820        2.1020       -.12770E-06   -.13203E-02
  15  Prefactor     41.386        1.0868       -.24318E-07    .24193E-01
  16  norm          .36804E-07    1.6415       -.52378E-06** at limit **
  17  norm           .0000        .76415       -.24966E-06** at limit **
  18  norm          10.511        1.3971        .18813E-06    .46850E-01
  19  Prefactor     .56066E-08    20.934       -.12593E-06** at limit **
  20  Prefactor     .33307E-09    28.867        .34606E-05** at limit **
  21  Prefactor      .0000        2.8088       -.60651E-06** at limit **
  22  Normalizat    .80845        .20303       -.41763E-04   -.78975E-04
  23  Prefactor     1.0136        .74495E-01    .15891E-04   -.13060E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03806e-08
  norm       = 8.41215
  Prefactor  = 3.44169e-09
  norm       = 0.0176257
  Prefactor  = 6.77961
  Prefactor  = 0
  Prefactor  = 2.40918e-08
  Prefactor  = 3.66374e-09
  norm       = 4.37049
  Prefactor  = 1.18543
  Prefactor  = 4.4416
  norm       = 6.29417
  Prefactor  = 6.45775
  norm       = 0.968201
  Prefactor  = 41.3857
  norm       = 3.68039e-08
  norm       = 0
  norm       = 10.5112
  Prefactor  = 5.60663e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Normalizat = 0.80845
  Prefactor  = 1.01356
 **********
 **   18 **HESSE 
 **********

 FCN=   11259.09     FROM HESSE     STATUS=OK           424 CALLS     2332 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10381E-07    4.2440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4121        11.161        .34608E-03   -1.5650    
   3  Prefactor     .34417E-08    3.7863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .17626E-01    .70108        .47459E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7796        3.2785        .38508E-03   -1.5656    
   6  Prefactor      .0000        8.5341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24092E-07    53.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36637E-08    16.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3705        2.3885        .48150E-03   -1.5666    
  10  Prefactor     1.1854        3.1427        .10472E-02   -1.5686    
  11  Prefactor     4.4416        9.7638        .47535E-03   -1.5666    
  12  norm          6.2942        66.706        .39780E-03   -1.5658    
  13  Prefactor     6.4578        18.417        .39423E-03   -1.5657    
  14  norm          .96820        2.1071        .42898E-03   -1.5688    
  15  Prefactor     41.386        41.992        .15549E-03   -1.5579    
  16  norm          .36804E-07    4.0548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .76564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.511        8.3325        .30884E-03   -1.5643    
  19  Prefactor     .56066E-08    21.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33307E-09    28.572        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        2.8067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80845        .19503        .96982E-01   -.99756    
  23  Prefactor     1.0136        .69376E-01    .32608E-01   -.92279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14709e-07
Minuit parameter uncertainties:
  1  0.00042011
  2  11.1612
  3  0.000229008
  4  0.222324
  5  3.27848
  6  5.20175e-06
  7  0.00227967
  8  0.000487906
  9  2.38851
  10  3.14273
  11  9.76381
  12  40.9814
  13  18.4176
  14  2.10713
  15  41.9923
  16  0.000772411
  17  2.09784e-06
  18  8.33253
  19  0.000686525
  20  0.000196496
  21  1.03405e-06
  22  0.1952
  23  0.0693825
Done.

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

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  6.780e+00  3.278e+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.014e+00  6.938e-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:  8.085e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 5.948 44.951
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.55e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.29e-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) = 11259.0387905
delta logL = 0.0479764450029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11259.0358849
delta logL = 0.050882049929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8793       1.0000          .0000       .10000E+07
     2 'Index     '    2.5942       1.0000          .0000       10.000    
     3 'Normalizat'    .79694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0163       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11259.04     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      301 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8795        4.5408        .11515E-04    .15658E-02
   2  Index         2.5942        .55796        .60070E-02    .28211E-04
   3  Normalizat    .79692        .20403        .43258E-03    .13451E-03
   4  Prefactor     1.0163        .74593E-01    .14393E-03    .33270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87954
  Index      = 2.59416
  Normalizat = 0.796915
  Prefactor  = 1.01631
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8795        4.1736        .46061E-06   -1.5659    
   2  Index         2.5942        .51248        .24028E-03   -.50199    
   3  Normalizat    .79692        .20386        .17303E-04   -1.0018    
   4  Prefactor     1.0163        .74553E-01    .28786E-04   -.92188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82432e-11
Minuit parameter uncertainties:
  1  4.17356
  2  0.51365
  3  0.20406
  4  0.0745602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66996': 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) = 11259.0358848
delta logL = 0.0508821534168

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  5.880e+00  4.174e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  2.594e+00  5.137e-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.016e+00  7.456e-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.969e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 5.948 44.951
Photon Index (Free Index): 2.59 +/- 0.51
Photon Flux (Free Index): 9.35e-08 +/- 4.98e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.31e-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/66996/cmap_HighResolution_693187201_693446401_4FGL_J0023.7+4457_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.55e-08', energy_flux2='2.47e-05', photon_flux_error='4.13e-08', dlogl='5.09e-02', energy_flux='2.67e-05', photon_flux2='9.35e-08', job_status='DONE', time_completed='2022-12-23 00:19:32.803907', photon_index_error2='0.51', photon_index2='2.59', ts='7.37', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.81', time_epoch_completed='1671783572.8', return_code='0', job_id='66996', GAL2='1.02', EG2='0.80', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.98e-08', ts2='7.52', photon_index='2.44' WHERE bin_id='1751' AND source_name='4FGL J0023.7+4457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:19:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 66996: <4FGL_J0023.7+4457_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0023.7+4457_daily_bin1751> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec 23 00:04:39 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:04:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:04:39 2022
Terminated at Fri Dec 23 00:19:33 2022
Results reported at Fri Dec 23 00:19:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0023.7+4457_daily_bin1751 5.9477 44.951 693187201 693446401 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 :                                   805.46 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             342.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            894 sec.

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

