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


Performing analysis on: 4FGL_J0004.4-4737_daily_bin1748
RA = 1.1091, Dec = -47.6233
tmin = 692409601, tmax = 692668801
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='875417', job_status='RUN', time_executed='2022-12-14 00:05:54.991840', time_epoch_executed='1671005154.99' WHERE source_name='4FGL J0004.4-4737' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875417/ft1_4FGL_J0004.4-4737_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875417/ft1_4FGL_J0004.4-4737_daily_bin1748.fits outfile=/scratch/kocevski/875417/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1748.fits ra=1.1091 dec=-47.6233 rad=12.0 tmin=692409601.0 tmax=692668801.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.67
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.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/875417/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.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.70
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 451

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875417/ltcube_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.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/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits
.....................!
real 16.81
user 16.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875417/ltcube_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits outfile=/scratch/kocevski/875417/expmap_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.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/875417/ltcube_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits
.....................!
real 192.65
user 186.19
sys 5.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J0004.4-4737 @ 1.1091 -47.6233

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits outfile=/scratch/kocevski/875417/cmap_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.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=1.1091 yref=-47.6233 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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits outfile=/scratch/kocevski/875417/cmap_HighResolution_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.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=1.1091 yref=-47.6233 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875417/Model_4FGL_J0004.4-4737_daily_bin1748.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits.....................!
real 37.94
user 36.57
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits', '/scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits', expMap='/scratch/kocevski/875417/expmap_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits', expCube='/scratch/kocevski/875417/ltcube_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875417/Model_4FGL_J0004.4-4737_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.4-4737'

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  7.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
19         Index:  2.366e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875417/ft1_filtered_4FGL_J0004.4-4737_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875417/ft2_4FGL_J0004.4-4737_daily_bin1748.fits
Exposure map: /scratch/kocevski/875417/expmap_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875417/ltcube_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875417/Model_4FGL_J0004.4-4737_daily_bin1748.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) = 4880.80990878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.832       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55758E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    36.939       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0431       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.0578       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.397       1.0000          .0000       .10000E+07
     8 'norm      '    .58133E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.0910       1.0000          .0000       .10000E+07
    10 'norm      '    23.064       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.379       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.5849       1.0000          .0000       .10000E+07
    13 'norm      '    .18686E-02   1.0000          .0000       .10000E+07
    14 'norm      '    14.259       1.0000          .0000       .10000E+07
    15 'norm      '    .15407E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0671       1.0000          .0000       .10000E+07
    17 'Prefactor '    .81468E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .91755E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .85301E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .49208       1.0000          .0000       .10000E+07
    21 'norm      '    1.2145       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.8762       1.0000          .0000       .10000E+07
    23 'Prefactor '    .13485E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    13.220       1.0000          .0000       .10000E+07
    25 'norm      '    .48894E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .73524E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    7.4583       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4880.807     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2853 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.655        44.995       -.78021E-07    .78946E-01
   2  Prefactor     8.0592        1.9811       -.22000E-07   -.63315E-02
   3  Prefactor     .74496E-07    5.8832       -.29886E-06** at limit **
   4  Prefactor     36.927        13.932        .76030E-07    .13909E-01
   5  Prefactor     4.0060        7.8488       -.10042E-07   -.16615E-03
   6  Prefactor     1.0566        6.5739        .62629E-06    .24083E-03
   7  Prefactor     12.332        6.9492        .38872E-08    .66894E-03
   8  norm          .31835E-05    18.841        .81589E-06** at limit **
   9  Prefactor     6.0679        1.7671        .21311E-07    .48263E-03
  10  norm          23.023        5.4372        .13535E-07   -.27035E-01
  11  Prefactor     20.697        35.363        .25291E-07    .62706E-01
  12  Prefactor     7.7208        1.9949       -.31914E-07   -.17620E-02
  13  norm           .0000        5.6365       -.15748E-07** at limit **
  14  norm          14.289        8.8847        .30726E-08    .19621E-02
  15  norm           .0000        1.8414       -.84670E-07** at limit **
  16  Prefactor     5.0355        6.5166       -.44456E-07    .34388E-04
  17  Prefactor     .21296E-05    21.891        .85171E-06** at limit **
  18  norm           .0000        1.8155       -.31809E-06** at limit **
  19  Prefactor     .73663E-07    28.836        .81989E-06** at limit **
  20  norm          .48928        1.0433       -.12697E-06   -.61819E-03
  21  norm          1.2055        4.7308        .17911E-06    .21821E-03
  22  Prefactor     8.8770        1.3665       -.92243E-08    .49010E-02
  23  Prefactor      .0000        4.4387        .37918E-07** at limit **
  24  Prefactor     13.261        18.123       -.30892E-06   -.10024E-01
  25  norm          .76272E-07    5.7392       -.33474E-06** at limit **
  26  Prefactor      .0000        3.0731       -.25337E-06** at limit **
  27  Prefactor     7.4297        5.2365        .13232E-06    .91688E-03
  28  Normalizat    1.2795        .23654        .61370E-05    .20038E-04
  29  Prefactor     .64241        .25383       -.11005E-04    .20174E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6547
  Prefactor  = 8.05923
  Prefactor  = 7.4496e-08
  Prefactor  = 36.9267
  Prefactor  = 4.00601
  Prefactor  = 1.05656
  Prefactor  = 12.3317
  norm       = 3.18351e-06
  Prefactor  = 6.06793
  norm       = 23.0233
  Prefactor  = 20.6969
  Prefactor  = 7.72083
  norm       = 0
  norm       = 14.2891
  norm       = 0
  Prefactor  = 5.03553
  Prefactor  = 2.12957e-06
  norm       = 0
  Prefactor  = 7.36633e-08
  norm       = 0.489278
  norm       = 1.20548
  Prefactor  = 8.87695
  Prefactor  = 0
  Prefactor  = 13.2606
  norm       = 7.62723e-08
  Prefactor  = 0
  Prefactor  = 7.42974
  Normalizat = 1.27951
  Prefactor  = 0.642411
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.807     FROM HESSE     STATUS=OK           619 CALLS     3472 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.655        79.278        .17195E-03   -1.5592    
   2  Prefactor     8.0592        19.592        .35263E-03   -1.5651    
   3  Prefactor     .74496E-07    11.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.927        14.129        .16455E-03   -1.5586    
   5  Prefactor     4.0060        7.8853        .50124E-03   -1.5668    
   6  Prefactor     1.0566        6.6698        .11941E-02   -1.5687    
   7  Prefactor     12.332        7.7811        .28425E-03   -1.5638    
   8  norm          .31835E-05    37.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0679        36.330        .40657E-03   -1.5659    
  10  norm          23.023        33.326        .20828E-03   -1.5612    
  11  Prefactor     20.697        46.725        .22158E-03   -1.5617    
  12  Prefactor     7.7208        16.707        .36390E-03   -1.5652    
  13  norm           .0000        5.6417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.289        8.9012        .26499E-03   -1.5632    
  15  norm           .0000        1.8415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0355        6.5810        .44644E-03   -1.5663    
  17  Prefactor     .21296E-05    39.021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.8150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73663E-07    28.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .48928        1.1032        .79511E-03   -1.5694    
  21  norm          1.2055        4.7541        .10250E-02   -1.5686    
  22  Prefactor     8.8770        17.162        .33619E-03   -1.5648    
  23  Prefactor      .0000        4.3926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.261        18.505        .27524E-03   -1.5635    
  25  norm          .76272E-07    11.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        3.0642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4297        5.4395        .36700E-03   -1.5653    
  28  Normalizat    1.2795        .20440        .48379E-01   -.84180    
  29  Prefactor     .64241        .21609        .72555E-01   -1.0583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88401e-06
Minuit parameter uncertainties:
  1  79.2803
  2  19.5919
  3  0.00183736
  4  14.1289
  5  7.88532
  6  5.30925
  7  7.7811
  8  0.0218883
  9  29.6951
  10  33.3266
  11  46.7259
  12  16.7072
  13  5.67684e-06
  14  8.90116
  15  3.36396e-07
  16  6.58102
  17  0.0182317
  18  1.65945e-06
  19  0.002922
  20  1.10316
  21  4.75414
  22  17.1617
  23  4.34706e-06
  24  18.5054
  25  0.00185712
  26  1.96136e-06
  27  5.43948
  28  0.204528
  29  0.216375
Done.

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

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  8.059e+00  1.959e+01  0.000e+00  1.000e+06 ( 1.000e-13)
19         Index:  2.366e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  6.424e-01  2.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.280e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 1.109 -47.623
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875417/likelihoodResults_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.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) = 4880.77303566
delta logL = 0.0344450599832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4880.77128013
delta logL = 0.0362005821198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4880.771     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .40E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.239        24.143        .15771E-06    .40368E-04
   2  Index         2.0565        1.0336        .30437E-04   -.46399E-06
   3  Normalizat    1.2832        .19243       -.27515E-07   -.23783E-04
   4  Prefactor     .63816        .21315       -.46010E-06   -.14626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2394
  Index      = 2.05646
  Normalizat = 1.28315
  Prefactor  = 0.638163
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.771     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.239        24.168        .11953E-04   -1.5641    
   2  Index         2.0565        1.0353        .10198E-02   -.62946    
   3  Normalizat    1.2832        .22763        .21361E-03   -.84071    
   4  Prefactor     .63816        .25145        .32211E-03   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26213e-13
Minuit parameter uncertainties:
  1  24.1682
  2  1.04693
  3  0.227807
  4  0.251893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875417': 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) = 4880.77127253
delta logL = 0.0362081831108

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.124e+01  2.417e+01  0.000e+00  1.000e+06 ( 1.000e-13)
19         Index:  2.056e+00  1.047e+00  0.000e+00  1.000e+01 (-1.000e+00)
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  6.382e-01  2.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.283e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 1.109 -47.623

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/875417/cmap_HighResolution_692409601_692668801_4FGL_J0004.4-4737_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2022-12-14 00:16:51.582019', job_id='875417', GAL2='0.64', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1671005811.58', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.62e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1748' AND source_name='4FGL J0004.4-4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:16:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 875417: <4FGL_J0004.4-4737_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0004.4-4737_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:04:35 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:04:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:04:36 2022
Terminated at Wed Dec 14 00:16:52 2022
Results reported at Wed Dec 14 00:16:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4737_daily_bin1748 1.1091 -47.6233 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0004.4-4737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

