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


Performing analysis on: 4FGL_J0456.4-4043_daily_bin1709
RA = 74.1111, Dec = -40.7222
tmin = 682300801, tmax = 682560001
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='25776', job_status='RUN', time_executed='2022-09-16 11:32:36.620296', time_epoch_executed='1663353156.62' WHERE source_name='4FGL J0456.4-4043' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25776/ft1_4FGL_J0456.4-4043_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25776/ft1_4FGL_J0456.4-4043_daily_bin1709.fits outfile=/scratch/kocevski/25776/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1709.fits ra=74.1111 dec=-40.7222 rad=12.0 tmin=682300801.0 tmax=682560001.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.82
user 3.57
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.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/25776/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.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.34
sys 0.16

Number of photons that the gtmktime cut: 632

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/25776/ltcube_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.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/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits
.....................!
real 16.14
user 15.66
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/25776/ltcube_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits outfile=/scratch/kocevski/25776/expmap_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.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/25776/ltcube_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits
.....................!
real 194.27
user 187.04
sys 5.60

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 188 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 J0456.4-4043 @ 74.1111 -40.7222

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits outfile=/scratch/kocevski/25776/cmap_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.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=74.1111 yref=-40.7222 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits outfile=/scratch/kocevski/25776/cmap_HighResolution_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.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=74.1111 yref=-40.7222 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25776/Model_4FGL_J0456.4-4043_daily_bin1709.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/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits.....................!
real 147.15
user 144.97
sys 1.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits', '/scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits', expMap='/scratch/kocevski/25776/expmap_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits', expCube='/scratch/kocevski/25776/ltcube_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25776/Model_4FGL_J0456.4-4043_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0456.4-4043'

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  3.383e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
299        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/25776/ft1_filtered_4FGL_J0456.4-4043_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/25776/ft2_4FGL_J0456.4-4043_daily_bin1709.fits
Exposure map: /scratch/kocevski/25776/expmap_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits
Exposure cube: /scratch/kocevski/25776/ltcube_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25776/Model_4FGL_J0456.4-4043_daily_bin1709.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) = 6817.95375081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5990       1.0000          .0000       .10000E+07
     2 'norm      '    .66801       1.0000          .0000       .10000E+07
     3 'Prefactor '    20.992       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32100E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6079       1.0000          .0000       .10000E+07
     6 'norm      '    .96289       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7864       1.0000          .0000       .10000E+07
     8 'norm      '    5.0142       1.0000          .0000       .10000E+07
     9 'norm      '    3.4300       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18799E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22528E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.1815       1.0000          .0000       .10000E+07
    13 'Prefactor '    .65421E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13232E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.5153       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14834E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .86555       1.0000          .0000       .10000E+07
    18 'norm      '    .16244E-02   1.0000          .0000       .10000E+07
    19 'norm      '    8.6821       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.9477       1.0000          .0000       .10000E+07
    21 'Prefactor '    .39488E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.3812       1.0000          .0000       .10000E+07
    23 'Prefactor '    .19890E-02   1.0000          .0000       .10000E+07
    24 'norm      '    4.4843       1.0000          .0000       .10000E+07
    25 'norm      '    .64381E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.5248       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6817.951     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2385 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6001        .53383       -.11240E-07    .20505E-02
   2  norm          .63308        .54330        .78751E-08   -.40819E-03
   3  Prefactor     20.914        5.9475       -.99920E-07    .88095E-01
   4  Prefactor      .0000        20.778        .19846E-06** at limit **
   5  Prefactor     1.5665        12.786       -.32753E-06   -.10195E-01
   6  norm          .96386        .51629       -.24550E-07   -.23739E-02
   7  Prefactor     2.7981        2.9211        .11630E-06   -.66951E-03
   8  norm          4.9579        3.7537        .24911E-07    .15060E-01
   9  norm          3.4332        1.6909       -.84866E-08   -.19937E-02
  10  Prefactor     .14433E-08    1.7458       -.13244E-06** at limit **
  11  Prefactor     .60507E-08    18.654        .10775E-06** at limit **
  12  norm          1.1232        5.9795       -.55079E-06   -.11157E-02
  13  Prefactor     .26268E-06    6.9811        .59141E-06** at limit **
  14  Prefactor     .79547E-07    8.6060        .33810E-06** at limit **
  15  Prefactor     6.5171        2.9851       -.86248E-07    .11325E-04
  16  Prefactor     .31763E-06    6.1686        .12956E-06** at limit **
  17  norm          .86846        1.6714       -.24671E-07    .12893E-04
  18  norm          .12434E-07    4.4755       -.88819E-07** at limit **
  19  norm          8.6849        3.8673        .27315E-07   -.35737E-04
  20  Prefactor     2.9157        4.1702       -.76341E-08   -.40167E-03
  21  Prefactor     .27534E-07    4.4474       -.17811E-06** at limit **
  22  norm          1.4051        4.7904        .54141E-06    .75902E-03
  23  Prefactor     .96034E-08    5.8299        .50465E-06** at limit **
  24  norm          4.4849        1.1541       -.23587E-08    .63906E-03
  25  norm          .58753E-06    5.8899        .23613E-06** at limit **
  26  Normalizat    1.5254        .24079        .63239E-05    .73869E-05
  27  Prefactor     .76313        .21433       -.64001E-05    .12454E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60014
  norm       = 0.63308
  Prefactor  = 20.9136
  Prefactor  = 0
  Prefactor  = 1.56648
  norm       = 0.963862
  Prefactor  = 2.7981
  norm       = 4.95792
  norm       = 3.43319
  Prefactor  = 1.44329e-09
  Prefactor  = 6.05072e-09
  norm       = 1.12322
  Prefactor  = 2.62679e-07
  Prefactor  = 7.95475e-08
  Prefactor  = 6.51709
  Prefactor  = 3.17635e-07
  norm       = 0.868456
  norm       = 1.24345e-08
  norm       = 8.68486
  Prefactor  = 2.91575
  Prefactor  = 2.75335e-08
  norm       = 1.40511
  Prefactor  = 9.60343e-09
  norm       = 4.4849
  norm       = 5.8753e-07
  Normalizat = 1.52536
  Prefactor  = 0.763132
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.951     FROM HESSE     STATUS=OK           558 CALLS     2943 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6001        .57417        .76385E-03   -1.5683    
   2  norm          .63308        28.319        .63344E-03   -1.5692    
   3  Prefactor     20.914        32.295        .21832E-03   -1.5617    
   4  Prefactor      .0000        8.9218        .78644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5665        14.195        .83522E-03   -1.5683    
   6  norm          .96386        .52498        .42447E-03   -1.5688    
   7  Prefactor     2.7981        3.0481        .60931E-03   -1.5675    
   8  norm          4.9579        10.117        .44884E-03   -1.5663    
   9  norm          3.4332        1.7275        .54591E-03   -1.5671    
  10  Prefactor     .14433E-08    1.7491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .60507E-08    19.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1232        6.0975        .10510E-02   -1.5687    
  13  Prefactor     .26268E-06    15.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .79547E-07    9.1128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5171        3.0039        .39294E-03   -1.5657    
  16  Prefactor     .31763E-06    1.8147        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .86846        1.7003        .48171E-03   -1.5689    
  18  norm          .12434E-07    4.6125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.6849        3.8768        .33995E-03   -1.5649    
  20  Prefactor     2.9157        4.2007        .59128E-03   -1.5674    
  21  Prefactor     .27534E-07    4.8963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4051        4.8131        .92572E-03   -1.5684    
  23  Prefactor     .96034E-08    14.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.4849        1.1559        .47523E-03   -1.5666    
  25  norm          .58753E-06    12.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5254        .20607        .57314E-01   -.77068    
  27  Prefactor     .76313        .18415        .72035E-01   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5571e-07
Minuit parameter uncertainties:
  1  0.574174
  2  8.46845
  3  32.295
  4  2.69087e-05
  5  9.431
  6  0.524984
  7  3.04808
  8  10.1172
  9  1.72752
  10  9.98129e-05
  11  0.000688917
  12  5.23405
  13  0.00401372
  14  0.00170261
  15  3.00391
  16  0.00151847
  17  1.70028
  18  0.000479087
  19  3.87683
  20  4.20068
  21  0.000734154
  22  4.81315
  23  0.000739644
  24  1.15588
  25  0.00551331
  26  0.206182
  27  0.184296
Done.

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

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  2.627e-07  4.014e-03  0.000e+00  1.000e+06 ( 1.000e-14)
299        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  7.631e-01  1.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.525e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 74.111 -40.722
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25776/likelihoodResults_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.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) = 6817.98224788
delta logL = -0.0311334930848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6817.95111461
delta logL = -2.21704794967e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6817.951     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      213 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.691        .42118E-03** at limit **
   2  Index         2.3871        1.6073        .32916E-04     .0000    
   3  Normalizat    1.5254        1.0471       -.35906E-06    .50791E-04
   4  Prefactor     .76313        1.1124        .43977E-06   -.34968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38712
  Normalizat = 1.52536
  Prefactor  = 0.763131
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6817.951     FROM HESSE     STATUS=FAILED         9 CALLS      222 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63854        1.9414        .32916E-04   -.54987    
   3  Normalizat    1.5254        1.0471       -.35906E-06   -.77068    
   4  Prefactor     .76313        1.1124        .43977E-06   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03809e-11
Minuit parameter uncertainties:
  1  2.23488e-05
  2  1.64806
  3  1.0626
  4  1.14786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25776': 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) = 6817.95111438
delta logL = 8.55015969137e-09

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  0.000e+00  2.235e-05  0.000e+00  1.000e+06 ( 1.000e-14)
299        Index:  2.387e+00  1.648e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  7.631e-01  1.148e+00  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.525e+00  1.063e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 74.111 -40.722

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/25776/cmap_HighResolution_682300801_682560001_4FGL_J0456.4-4043_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2022-09-16 11:46:37.376632', job_id='25776', GAL2='0.76', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1663353997.38', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.55e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1709' AND source_name='4FGL J0456.4-4043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:46:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 25776: <4FGL_J0456.4-4043_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0456.4-4043_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:30:19 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:31:25 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:31:25 2022
Terminated at Fri Sep 16 11:46:38 2022
Results reported at Fri Sep 16 11:46:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.4-4043_daily_bin1709 74.1111 -40.7222 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0456.4-4043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            979 sec.

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

