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


Performing analysis on: 4FGL_J0023.7+4457_daily_bin1737
RA = 5.9477, Dec = 44.951
tmin = 689558401, tmax = 689817601
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='147061', job_status='RUN', time_executed='2022-11-11 00:08:39.333652', time_epoch_executed='1668154119.33' WHERE source_name='4FGL J0023.7+4457' and cadence='daily' and bin_id='1737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147061

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147061/ft1_4FGL_J0023.7+4457_daily_bin1737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147061/ft1_4FGL_J0023.7+4457_daily_bin1737.fits outfile=/scratch/kocevski/147061/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1737.fits ra=5.9477 dec=44.951 rad=12.0 tmin=689558401.0 tmax=689817601.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.09
user 2.86
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.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/147061/ft1_filteredMKT_4FGL_J0023.7+4457_daily_bin1737.fits evtable="EVENTS" outfile="/scratch/kocevski/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.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.46
user 0.30
sys 0.15

Number of photons that the gtmktime cut: 1043

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits" evtable="EVENTS" scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits sctable="SC_DATA" outfile=/scratch/kocevski/147061/ltcube_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.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/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits
.....................!
real 13.91
user 13.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits sctable="SC_DATA" expcube=/scratch/kocevski/147061/ltcube_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.fits outfile=/scratch/kocevski/147061/expmap_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.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/147061/ltcube_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.fits
.....................!
real 157.08
user 152.02
sys 4.65

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/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits outfile=/scratch/kocevski/147061/cmap_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits outfile=/scratch/kocevski/147061/cmap_HighResolution_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/147061/ft2_4FGL_J0023.7+4457_daily_bin1737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147061/Model_4FGL_J0023.7+4457_daily_bin1737.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/147061/ft1_filtered_4FGL_J0023.7+4457_daily_bin1737.fits.....................!
real 105.97
user 104.73
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .15101       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.4731       1.0000          .0000       .10000E+07
     4 'norm      '    1.8747       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.6243       1.0000          .0000       .10000E+07
     6 'Prefactor '    15.345       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.649       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16876E-03   1.0000          .0000       .10000E+07
     9 'norm      '    5.8786       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32885E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.7026       1.0000          .0000       .10000E+07
    12 'norm      '    37.174       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12616E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .40007E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16318       1.0000          .0000       .10000E+07
    16 'norm      '    1.2399       1.0000          .0000       .10000E+07
    17 'norm      '    .55452E-05   1.0000          .0000       .10000E+07
    18 'norm      '    4.0407       1.0000          .0000       .10000E+07
    19 'Prefactor '    79.520       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11526E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    10.015       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93638       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=   11181.97     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1857 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    11.652        .21876E-05** at limit **
   2  norm          .54175E-04    4.0429       -.45862E-06** at limit **
   3  Prefactor     9.5179        6.6098        .43742E-05   -.70953E-02
   4  norm          1.8757        2.0176        .43423E-06    .21208E-02
   5  Prefactor     5.6285        3.6088       -.22290E-06   -.10707E-02
   6  Prefactor     15.308        1.1030        .17505E-06    .31007E-01
   7  Prefactor     10.694        1.3369        .56432E-06   -.23912E-02
   8  Prefactor     .11491E-07    20.353       -.70215E-05** at limit **
   9  norm          5.8808        2.9822        .87556E-06    .65057E-02
  10  Prefactor      .0000        1.6719        .64969E-06** at limit **
  11  Prefactor     6.8551        2.1895        .71698E-06   -.51235E-01
  12  norm          36.928        9.7681       -.32044E-05   -.19071    
  13  Prefactor     .61062E-09    8.2215       -.16103E-05** at limit **
  14  norm          .55511E-10    1.5707        .12270E-05** at limit **
  15  Prefactor     .47906E-07    51.073       -.41557E-05** at limit **
  16  norm          1.3306        18.884       -.13853E-05   -.28878E-02
  17  norm           .0000        2.4497       -.24701E-05** at limit **
  18  norm          4.0452        6.1069        .63610E-06    .20228E-03
  19  Prefactor     80.391        56.408        .12038E-04   -.52398E-01
  20  Prefactor     .14988E-07    31.187       -.16607E-04** at limit **
  21  Prefactor     10.041        8.6116       -.28230E-05   -.61891E-02
  22  Normalizat    1.1589        .21693       -.26175E-04    .16813E-04
  23  Prefactor     .93651        .76039E-01    .16275E-04    .32382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 5.41749e-05
  Prefactor  = 9.51788
  norm       = 1.87574
  Prefactor  = 5.6285
  Prefactor  = 15.3085
  Prefactor  = 10.6937
  Prefactor  = 1.14908e-08
  norm       = 5.88076
  Prefactor  = 0
  Prefactor  = 6.85514
  norm       = 36.9285
  Prefactor  = 6.10623e-10
  norm       = 5.55112e-11
  Prefactor  = 4.79061e-08
  norm       = 1.33065
  norm       = 0
  norm       = 4.04518
  Prefactor  = 80.3906
  Prefactor  = 1.4988e-08
  Prefactor  = 10.0414
  Normalizat = 1.15886
  Prefactor  = 0.936507
 **********
 **   18 **HESSE 
 **********

 FCN=   11181.97     FROM HESSE     STATUS=OK           420 CALLS     2277 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    11.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .54175E-04    9.1255        .12722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5179        6.6738        .32536E-03   -1.5646    
   4  norm          1.8757        2.0320        .76023E-03   -1.5681    
   5  Prefactor     5.6285        3.7070        .42335E-03   -1.5661    
   6  Prefactor     15.308        16.412        .25542E-03   -1.5630    
   7  Prefactor     10.694        23.607        .30679E-03   -1.5643    
   8  Prefactor     .11491E-07    20.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.8808        2.9825        .41395E-03   -1.5659    
  10  Prefactor      .0000        1.6727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8551        11.580        .38735E-03   -1.5656    
  12  norm          36.928        37.517        .16403E-03   -1.5586    
  13  Prefactor     .61062E-09    8.2261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.5672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47906E-07    51.393        .12472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3306        18.553        .10069E-02   -1.5685    
  17  norm           .0000        2.4351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0452        6.1124        .50139E-03   -1.5668    
  19  Prefactor     80.391        58.624        .11215E-03   -1.5529    
  20  Prefactor     .14988E-07    31.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.041        8.9208        .31639E-03   -1.5645    
  22  Normalizat    1.1589        .20598        .89998E-01   -.87884    
  23  Prefactor     .93651        .68147E-01    .45467E-01   -.94877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38587e-06
Minuit parameter uncertainties:
  1  4.5924e-05
  2  0.0444692
  3  6.67383
  4  2.03204
  5  3.70698
  6  16.4121
  7  23.6068
  8  0.000967303
  9  2.98251
  10  2.9026e-06
  11  11.5801
  12  37.5171
  13  0.000139212
  14  2.029e-05
  15  0.0031383
  16  9.93729
  17  1.11907e-05
  18  6.11241
  19  58.6247
  20  0.00137332
  21  8.92079
  22  0.206125
  23  0.0681529
Done.

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

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  5.629e+00  3.707e+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:  9.365e-01  6.815e-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.159e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 5.948 44.951
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.10e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.22e-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) = 11181.8498677
delta logL = 0.123249939325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11181.8478074
delta logL = 0.125310285921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2275       1.0000          .0000       .10000E+07
     2 'Index     '    2.7974       1.0000          .0000       10.000    
     3 'Normalizat'    1.1334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94190       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=   11181.85     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      275 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2268        45.503        .48985E-03    .61094E-02
   2  Index         2.7977        3.4922        .14061        .23290E-03
   3  Normalizat    1.1336        .98802E-01    .90855E-01    .72066E-04
   4  Prefactor     .94191        .27901E-01    .45537E-01   -.18485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22684
  Index      = 2.79769
  Normalizat = 1.13359
  Prefactor  = 0.941907
 **********
 **   18 **HESSE 
 **********

 FCN=   11181.85     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2268        5.1428        .12230E-04   -1.5667    
   2  Index         2.7977        .92713        .80386E-02   -.45611    
   3  Normalizat    1.1336        .22110        .40241E-03   -.88680    
   4  Prefactor     .94191        .76521E-01    .15597E-03   -.94692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01716e-10
Minuit parameter uncertainties:
  1  5.14277
  2  0.933856
  3  0.221285
  4  0.0765302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147061': 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) = 11181.8478063
delta logL = 0.125311381706

Extracting fit parameters...

4FGL J0023.7+4457
   Spectrum: PowerLaw
66     Prefactor:  4.227e+00  5.143e+00  0.000e+00  1.000e+06 ( 1.000e-12)
67         Index:  2.798e+00  9.339e-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:  9.419e-01  7.653e-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.134e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 5.948 44.951
Photon Index (Free Index): 2.80 +/- 0.93
Photon Flux (Free Index): 9.21e-08 +/- 6.70e-08
Energy Flux (Free Index): 2.06e-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/147061/cmap_HighResolution_689558401_689817601_4FGL_J0023.7+4457_daily_bin1737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.10e-08', energy_flux2='2.06e-05', photon_flux_error='4.67e-08', dlogl='1.25e-01', energy_flux='2.22e-05', photon_flux2='9.21e-08', job_status='DONE', time_completed='2022-11-11 00:19:36.585282', photon_index_error2='0.93', photon_index2='2.80', ts='4.34', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.16', time_epoch_completed='1668154776.59', return_code='0', job_id='147061', GAL2='0.94', EG2='1.13', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.70e-08', ts2='4.68', photon_index='2.44' WHERE bin_id='1737' AND source_name='4FGL J0023.7+4457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Nov 11 00:19:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 147061: <4FGL_J0023.7+4457_daily_bin1737> in cluster <slac> Done

Job <4FGL_J0023.7+4457_daily_bin1737> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Nov 11 00:05:05 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov 11 00:07:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov 11 00:07:28 2022
Terminated at Fri Nov 11 00:19:37 2022
Results reported at Fri Nov 11 00:19:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0023.7+4457_daily_bin1737 5.9477 44.951 689558401 689817601 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 :                                   657.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            872 sec.

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

