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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1780
RA = 1.1184, Dec = -40.0251
tmin = 700704001, tmax = 700963201
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='48885', job_status='RUN', time_executed='2023-03-20 00:06:49.113733', time_epoch_executed='1679296009.11' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48885/ft1_4FGL_J0004.4-4001_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48885/ft1_4FGL_J0004.4-4001_daily_bin1780.fits outfile=/scratch/kocevski/48885/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1780.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=700704001.0 tmax=700963201.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 5.32
user 3.91
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.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/48885/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.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.62
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 514

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/48885/ltcube_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.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/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits
.....................!
real 12.93
user 12.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/48885/ltcube_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits outfile=/scratch/kocevski/48885/expmap_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.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/48885/ltcube_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits
.....................!
real 190.69
user 185.29
sys 4.79

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J0004.4-4001 @ 1.1184 -40.0251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits outfile=/scratch/kocevski/48885/cmap_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.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.1184 yref=-40.0251 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits outfile=/scratch/kocevski/48885/cmap_HighResolution_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.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.1184 yref=-40.0251 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48885/Model_4FGL_J0004.4-4001_daily_bin1780.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/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits.....................!
real 44.36
user 42.36
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits', '/scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits', expMap='/scratch/kocevski/48885/expmap_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits', expCube='/scratch/kocevski/48885/ltcube_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48885/Model_4FGL_J0004.4-4001_daily_bin1780.xml', optimizer='MINUIT')

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

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  6.579e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/48885/ft1_filtered_4FGL_J0004.4-4001_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/48885/ft2_4FGL_J0004.4-4001_daily_bin1780.fits
Exposure map: /scratch/kocevski/48885/expmap_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits
Exposure cube: /scratch/kocevski/48885/ltcube_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48885/Model_4FGL_J0004.4-4001_daily_bin1780.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) = 5661.61244395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.123       1.0000          .0000       .10000E+07
     2 'Prefactor '    28.289       1.0000          .0000       .10000E+07
     3 'Prefactor '    .90717E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15518E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.7985       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16663E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    84.887       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33401E-06   1.0000          .0000       .10000E+07
     9 'norm      '    45.585       1.0000          .0000       .10000E+07
    10 'norm      '    8.1309       1.0000          .0000       .10000E+07
    11 'norm      '    .34449E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .13664E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .10542E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .92889E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19329E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.3395       1.0000          .0000       .10000E+07
    17 'norm      '    .42355E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.848       1.0000          .0000       .10000E+07
    19 'norm      '    .94924E-08   1.0000          .0000       .10000E+07
    20 'norm      '    .17723E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56605E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .22071E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .27160E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .11007E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.9925       1.0000          .0000       .10000E+07
    26 'Prefactor '    .90840E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.5397       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .59433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5661.360     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2558 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.647        59.381       -.34319E-06   -.19708E-01
   2  Prefactor     28.767        2.1873       -.42171E-07    .48098E-02
   3  Prefactor     .94369E-09    12.424        .16574E-06** at limit **
   4  Prefactor     .55511E-10    3.9548       -.33094E-07** at limit **
   5  Prefactor     8.7993        8.3747        .24255E-07   -.10449E-02
   6  Prefactor     .13330E-05    24.786        .10706E-05** at limit **
   7  Prefactor     86.841        21.918       -.22765E-07    .38683E-01
   8  Prefactor     .55511E-10    3.6530        .65266E-07** at limit **
   9  norm          46.074        9.8894        .30010E-07   -.72517E-01
  10  norm          8.1407        7.6791        .28440E-07    .13587E-02
  11  norm           .0000        2.3152       -.25540E-06** at limit **
  12  norm           .0000        1.3160        .16124E-06** at limit **
  13  norm          .75995E-07    16.324        .20322E-06** at limit **
  14  Prefactor     .87819E-07    10.195       -.22918E-06** at limit **
  15  Prefactor      .0000        15.939        .14798E-06** at limit **
  16  Prefactor     4.2652        22.105       -.41070E-06    .31267E-01
  17  norm           .0000        1.6530       -.41397E-08** at limit **
  18  Prefactor     13.919        14.113       -.17990E-06   -.60450E-01
  19  norm           .0000        .31843       -.77620E-08** at limit **
  20  norm           .0000        1.3053        .57226E-07** at limit **
  21  Prefactor      .0000        .90431       -.62018E-07** at limit **
  22  Prefactor     .12601E-07    8.2052        .64252E-07** at limit **
  23  Prefactor     .42784E-05    29.837        .10808E-05** at limit **
  24  Prefactor      .0000        3.0894       -.33191E-07** at limit **
  25  Prefactor     2.9880        3.8721       -.15439E-06   -.54700E-03
  26  Prefactor     .49382E-05    30.753        .19109E-06** at limit **
  27  Normalizat    1.5350        .23217       -.20133E-05   -.60448E-04
  28  Prefactor     .59559        .24738       -.73108E-06   -.36112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.6467
  Prefactor  = 28.7668
  Prefactor  = 9.4369e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 8.79931
  Prefactor  = 1.33304e-06
  Prefactor  = 86.8406
  Prefactor  = 5.55112e-11
  norm       = 46.0737
  norm       = 8.14073
  norm       = 0
  norm       = 0
  norm       = 7.59948e-08
  Prefactor  = 8.78186e-08
  Prefactor  = 0
  Prefactor  = 4.26525
  norm       = 0
  Prefactor  = 13.9191
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.2601e-08
  Prefactor  = 4.27841e-06
  Prefactor  = 0
  Prefactor  = 2.98803
  Prefactor  = 4.93816e-06
  Normalizat = 1.53504
  Prefactor  = 0.595588
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.360     FROM HESSE     STATUS=OK           571 CALLS     3129 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.647        59.882        .12206E-03   -1.5540    
   2  Prefactor     28.767        28.033        .18805E-03   -1.5601    
   3  Prefactor     .94369E-09    12.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.9461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.7993        8.4163        .33768E-03   -1.5649    
   6  Prefactor     .13330E-05    25.562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.841        34.712        .10854E-03   -1.5522    
   8  Prefactor     .55511E-10    3.6537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          46.074        35.632        .14812E-03   -1.5572    
  10  norm          8.1407        7.6765        .35136E-03   -1.5651    
  11  norm           .0000        2.3159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.3171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .75995E-07    16.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87819E-07    10.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        15.856        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2652        120.53        .55360E-03   -1.5667    
  17  norm           .0000        1.6528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.919        14.520        .26890E-03   -1.5633    
  19  norm           .0000        .31831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        1.3065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        .90534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12601E-07    8.2286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .42784E-05    34.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        3.0883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9880        4.0155        .58656E-03   -1.5673    
  26  Prefactor     .49382E-05    47.505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5350        .19912        .48059E-01   -.76798    
  28  Prefactor     .59559        .21209        .80225E-01   -1.0777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00288e-06
Minuit parameter uncertainties:
  1  59.8829
  2  28.033
  3  0.000213861
  4  2.861e-05
  5  8.41634
  6  0.0116748
  7  34.7117
  8  3.29935e-05
  9  35.6323
  10  7.67648
  11  4.53054e-06
  12  4.14155e-06
  13  0.00222605
  14  0.00190004
  15  1.45755e-05
  16  45.3478
  17  1.39883e-06
  18  14.5199
  19  3.69878e-07
  20  1.67698e-06
  21  7.25656e-07
  22  0.000643627
  23  0.0242995
  24  1.59631e-05
  25  4.01555
  26  0.0306327
  27  0.199225
  28  0.212372
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  7.065e+01  5.988e+01  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  5.956e-01  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.535e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 1.118 -40.025
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.53e-05

TS (Fixed Index): 2.70
Ra Dec: 1.118 -40.025
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48885/likelihoodResults_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.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): 102
logL (Free Index) = 5659.65863482
delta logL = 1.70171767507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.6124833
delta logL = 1.74786919371

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5659.612     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      273 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3188        25.619        .55613E-03   -.44813E-03
   2  Index         3.9271        1.9638        .62563E-01    .13852E-03
   3  Normalizat    1.4008        .73478E-01    .49746E-01   -.24869E-04
   4  Prefactor     .70011        .77951E-01    .74532E-01    .13074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31881
  Index      = 3.92713
  Normalizat = 1.40084
  Prefactor  = 0.700115
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.612     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3188        37.899        .62824E-05   -1.5672    
   2  Index         3.9271        2.5569        .25634E-02   -.21626    
   3  Normalizat    1.4008        .22036        .21992E-03   -.80604    
   4  Prefactor     .70011        .23740        .32992E-03   -1.0352    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.86265e-10
Minuit parameter uncertainties:
  1  22.4305
  2  2.69104
  3  0.220507
  4  0.237744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48885': 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): 102
logL (Free Index) = 5659.61248136
delta logL = 1.74787113231

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  3.319e+00  2.243e+01  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  3.927e+00  2.691e+00  0.000e+00  1.000e+01 (-1.000e+00)
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  7.001e-01  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.401e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 1.118 -40.025
Photon Index (Free Index): 3.93 +/- 2.69
Photon Flux (Free Index): 1.33e-07 +/- 7.74e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.01e-05

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/48885/cmap_HighResolution_700704001_700963201_4FGL_J0004.4-4001_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='2.01e-05', photon_flux_error='3.06e-08', dlogl='1.75e+00', energy_flux='1.80e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2023-03-20 00:18:20.585125', photon_index_error2='2.69', photon_index2='3.93', ts='2.70', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.01e-05', EG='1.54', time_epoch_completed='1679296700.59', return_code='0', job_id='48885', GAL2='0.70', EG2='1.40', return_code2='102', energy_flux_error='1.53e-05', photon_flux_error2='7.74e-08', ts2='6.47', photon_index='2.15' WHERE bin_id='1780' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:18:20 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 48885: <4FGL_J0004.4-4001_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:04:42 2023
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:04:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:04:43 2023
Terminated at Mon Mar 20 00:18:21 2023
Results reported at Mon Mar 20 00:18:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1780 1.1184 -40.0251 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0004.4-4001 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.29 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             259.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            819 sec.

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

