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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1710
RA = 60.4867, Dec = -20.5804
tmin = 682560001, tmax = 682819201
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='18788', job_status='RUN', time_executed='2022-09-16 11:09:28.458165', time_epoch_executed='1663351768.46' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18788/ft1_4FGL_J0401.9-2034_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18788/ft1_4FGL_J0401.9-2034_daily_bin1710.fits outfile=/scratch/kocevski/18788/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1710.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=682560001.0 tmax=682819201.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.65
user 3.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.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/18788/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 490

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/18788/ltcube_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.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/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits
.....................!
real 13.76
user 13.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/18788/ltcube_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits outfile=/scratch/kocevski/18788/expmap_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.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/18788/ltcube_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits
.....................!
real 191.95
user 186.46
sys 4.96

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 146 point sources and 1 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits outfile=/scratch/kocevski/18788/cmap_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.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=60.4867 yref=-20.5804 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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits outfile=/scratch/kocevski/18788/cmap_HighResolution_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.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=60.4867 yref=-20.5804 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 1.40
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18788/Model_4FGL_J0401.9-2034_daily_bin1710.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits.....................!
real 127.05
user 125.10
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits', '/scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits', expMap='/scratch/kocevski/18788/expmap_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits', expCube='/scratch/kocevski/18788/ltcube_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18788/Model_4FGL_J0401.9-2034_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/18788/ft1_filtered_4FGL_J0401.9-2034_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/18788/ft2_4FGL_J0401.9-2034_daily_bin1710.fits
Exposure map: /scratch/kocevski/18788/expmap_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits
Exposure cube: /scratch/kocevski/18788/ltcube_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18788/Model_4FGL_J0401.9-2034_daily_bin1710.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) = 5474.56303333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    203.79       1.0000          .0000       .10000E+07
     2 'Prefactor '    .81712E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.8950       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24543E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .34110E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12823E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .65749E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7489       1.0000          .0000       .10000E+07
     9 'norm      '    2.6282       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.318       1.0000          .0000       .10000E+07
    11 'norm      '    .21771E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29494       1.0000          .0000       .10000E+07
    13 'Prefactor '    .77110E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .24960E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    26.685       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.875       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17305E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11241E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18368E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .48792E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .87856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5474.549     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1707 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     203.77        2.5718       -.15991E-06    .12950    
   2  Prefactor     .88818E-09    1.4777        .76134E-06** at limit **
   3  Prefactor     8.8285        1.3751        .18652E-06   -.10339E-02
   4  Prefactor     .85321E-07    8.2846        .12646E-05** at limit **
   5  Prefactor     .38692E-05    10.815        .89434E-06** at limit **
   6  Prefactor      .0000        .67836       -.21308E-06** at limit **
   7  Prefactor     .55511E-10    2.2115        .50953E-07** at limit **
   8  Prefactor     3.7474        4.1104       -.21837E-06   -.31968E-02
   9  norm          2.6272        1.0520       -.34494E-07   -.98690E-02
  10  Prefactor     15.741        20.989        .39200E-05   -.86785E-01
  11  norm           .0000        .53072       -.79843E-07** at limit **
  12  Prefactor     .32740E-06    3.4475       -.12846E-05** at limit **
  13  Prefactor     .14988E-08    6.8809        .17258E-06** at limit **
  14  norm          .39903E-05    14.374        .61231E-06** at limit **
  15  Prefactor     26.833        10.964        .12054E-05    .19682E-01
  16  Prefactor     23.910        10.364       -.22064E-05   -.84875E-01
  17  Prefactor     .27756E-09    1.3648        .12640E-06** at limit **
  18  Prefactor     .50532E-06    10.412       -.25518E-05** at limit **
  19  Prefactor     .55511E-10    25.478        .10424E-06** at limit **
  20  Prefactor     .16598E-07    30.491       -.40115E-05** at limit **
  21  Normalizat    .87848        .20999        .10798E-04   -.35929E-03
  22  Prefactor     1.0674        .17464       -.67156E-05   -.59373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 203.774
  Prefactor  = 8.88178e-10
  Prefactor  = 8.82849
  Prefactor  = 8.53206e-08
  Prefactor  = 3.86924e-06
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.74744
  norm       = 2.62717
  Prefactor  = 15.7411
  norm       = 0
  Prefactor  = 3.27405e-07
  Prefactor  = 1.4988e-09
  norm       = 3.99025e-06
  Prefactor  = 26.8326
  Prefactor  = 23.9095
  Prefactor  = 2.77556e-10
  Prefactor  = 5.05318e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 1.65978e-08
  Normalizat = 0.87848
  Prefactor  = 1.06743
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.549     FROM HESSE     STATUS=OK           376 CALLS     2083 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     203.77        190.76        .70057E-04   -1.5422    
   2  Prefactor     .88818E-09    1.4789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8285        19.856        .33583E-03   -1.5649    
   4  Prefactor     .85321E-07    8.3718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38692E-05    15.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .67760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    2.2097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7474        4.1223        .52121E-03   -1.5669    
   9  norm          2.6272        1.0528        .62878E-04   -1.5676    
  10  Prefactor     15.741        30.068        .25564E-03   -1.5629    
  11  norm           .0000        .53097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32740E-06    65.324        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14988E-08    6.6368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .39903E-05    19.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.833        24.491        .19362E-03   -1.5604    
  16  Prefactor     23.910        10.567        .20470E-03   -1.5610    
  17  Prefactor     .27756E-09    1.3657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50532E-06    11.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    25.192        .17146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16598E-07    30.278        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87848        .19266        .44627E-01   -.97220    
  22  Prefactor     1.0674        .15626        .38972E-01   -.90514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93835e-06
Minuit parameter uncertainties:
  1  190.763
  2  7.27181e-05
  3  19.8559
  4  0.00169007
  5  0.0155365
  6  4.57945e-06
  7  1.85209e-05
  8  4.12235
  9  1.05277
  10  30.0681
  11  1.13245e-06
  12  0.00924902
  13  0.000198293
  14  0.0176617
  15  24.4912
  16  10.5671
  17  3.69561e-05
  18  0.00482165
  19  7.26882e-05
  20  0.00141753
  21  0.192814
  22  0.156324
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.499e-09  1.983e-04  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.067e+00  1.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.785e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18788/likelihoodResults_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.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) = 5474.54939618
delta logL = -3.38156687576e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5474.54936267
delta logL = -3.02331500279e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89806E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8255       1.0000          .0000       10.000    
     3 'Normalizat'    .87840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5474.549     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      235 TOTAL
                     EDM=   .79E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.0669        .19109E-06** at limit **
   2  Index         2.1510        1.1658       -.24466E-05     .0000    
   3  Normalizat    .87848        .20188        .33284E-05    .32377E-05
   4  Prefactor     1.0674        .17413       -.41740E-05   -.15997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.15104
  Normalizat = 0.87848
  Prefactor  = 1.06743
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5474.549     FROM HESSE     STATUS=FAILED        11 CALLS      246 TOTAL
                     EDM=   .79E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.8450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .50769        1.7458       -.24466E-05   -.60625    
   3  Normalizat    .87848        1.2147        .33284E-05   -.97220    
   4  Prefactor     1.0674        1.1733       -.41740E-05   -.90514    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.87982e-13
Minuit parameter uncertainties:
  1  6.93351e-06
  2  1.10535
  3  1.256
  4  1.20353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18788': 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): 101
logL (Free Index) = 5474.54936237
delta logL = 2.69210431725e-10

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  6.934e-06  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.151e+00  1.105e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.067e+00  1.204e+00  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.785e-01  1.256e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.487 -20.580

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/18788/cmap_HighResolution_682560001_682819201_4FGL_J0401.9-2034_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2022-09-16 11:19:13.291127', job_id='18788', GAL2='1.07', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663352353.29', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.69e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1710' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:19:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 18788: <4FGL_J0401.9-2034_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1710> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:05:17 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:06:08 2022
Terminated at Fri Sep 16 11:19:14 2022
Results reported at Fri Sep 16 11:19:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1710 60.4867 -20.5804 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            837 sec.

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

