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


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin759
RA = 63.2773, Dec = -53.5483
tmin = 698025601, tmax = 698630401
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='568605', job_status='RUN', time_executed='2023-02-21 02:13:45.982780', time_epoch_executed='1676974425.98' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568605

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568605/ft1_4FGL_J0413.1-5332_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568605/ft1_4FGL_J0413.1-5332_weekly_bin759.fits outfile=/scratch/kocevski/568605/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin759.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.57
user 8.23
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.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/568605/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.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.56
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 2212

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/568605/ltcube_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.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/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits
.....................!
real 26.74
user 26.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/568605/ltcube_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits outfile=/scratch/kocevski/568605/expmap_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.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/568605/ltcube_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits
.....................!
real 192.66
user 188.37
sys 3.90

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 LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
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.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 198 point sources and 5 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 J0413.1-5332 @ 63.2773 -53.5483

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits outfile=/scratch/kocevski/568605/cmap_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.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=63.2773 yref=-53.5483 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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits outfile=/scratch/kocevski/568605/cmap_HighResolution_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.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=63.2773 yref=-53.5483 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/568605/Model_4FGL_J0413.1-5332_weekly_bin759.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits.....................!
real 13244.54
user 13209.64
sys 6.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits', '/scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits', expMap='/scratch/kocevski/568605/expmap_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits', expCube='/scratch/kocevski/568605/ltcube_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/568605/Model_4FGL_J0413.1-5332_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0413.1-5332'

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  4.872e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/568605/ft1_filtered_4FGL_J0413.1-5332_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/568605/ft2_4FGL_J0413.1-5332_weekly_bin759.fits
Exposure map: /scratch/kocevski/568605/expmap_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits
Exposure cube: /scratch/kocevski/568605/ltcube_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/568605/Model_4FGL_J0413.1-5332_weekly_bin759.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) = 23443.056164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3047       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    1.0449       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4778       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10003E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    30.986       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40520E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1335       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.315       1.0000          .0000       .10000E+07
    10 'Prefactor '    .89354       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12135       1.0000          .0000       .10000E+07
    12 'Prefactor '    31.851       1.0000          .0000       .10000E+07
    13 'norm      '    1.0190       1.0000          .0000       .10000E+07
    14 'norm      '    .37836       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.367       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0228       1.0000          .0000       .10000E+07
    17 'norm      '    40.331       1.0000          .0000       .10000E+07
    18 'Prefactor '    27.413       1.0000          .0000       .10000E+07
    19 'norm      '    3.4037       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9170       1.0000          .0000       .10000E+07
    21 'Prefactor '    .45741E-07   1.0000          .0000       .10000E+07
    22 'norm      '    .91677E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    30.679       1.0000          .0000       .10000E+07
    24 'norm      '    .92175       1.0000          .0000       .10000E+07
    25 'Normalizat'    .93320       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0545       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23441.15     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1343 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3071        1.9321        .38259E-08   -.27505E-03
   2  Prefactor     .44409E-09    2.3683       -.34939E-08** at limit **
   3  norm          1.0458        .52622       -.69601E-08   -.82039E-02
   4  Prefactor     6.4497        6.7734       -.34947E-07   -.22366E-02
   5  Prefactor     .62728E-08    2.4529        .13880E-06** at limit **
   6  Prefactor     30.435        11.500       -.13520E-07   -.97258E-01
   7  Prefactor     .12434E-07    19.936        .19873E-06** at limit **
   8  Prefactor     3.1370        3.3695       -.60469E-07   -.26489E-02
   9  Prefactor     17.442        6.7149        .16555E-07   -.44637E-01
  10  Prefactor     .94685        1.2357        .54698E-08   -.18276E-02
  11  Prefactor     .59078E-01    3.0340       -.35995E-07** at limit **
  12  Prefactor     32.065        6.4045        .60823E-08   -.11474    
  13  norm          1.0176        1.0700       -.74420E-07   -.11800E-01
  14  norm          .37538        4.2913       -.40442E-08   -.61856E-03
  15  Prefactor     18.069        22.483        .91274E-07   -.59406E-01
  16  Prefactor     4.0186        1.6431        .36433E-07    .67603E-02
  17  norm          40.398        7.1659        .33793E-08    .10546    
  18  Prefactor     27.490        3.3049        .60165E-10   -.34033E-01
  19  norm          3.4028        .99666        .62133E-08    .30600E-02
  20  Prefactor     3.9145        1.8934       -.17948E-07   -.38026E-02
  21  Prefactor     .80491E-08    4.5533        .24878E-06** at limit **
  22  norm          .76661E-07    7.5372       -.24504E-06** at limit **
  23  Prefactor     30.865        7.9185        .37776E-07    .19961    
  24  norm          .91599        1.4524       -.60497E-07   -.11087E-01
  25  Normalizat    .93268        .10467       -.63368E-06   -.46661E-03
  26  Prefactor     1.0546        .10819       -.14399E-06   -.46503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30715
  Prefactor  = 4.44089e-10
  norm       = 1.04578
  Prefactor  = 6.44973
  Prefactor  = 6.27276e-09
  Prefactor  = 30.4349
  Prefactor  = 1.24345e-08
  Prefactor  = 3.13701
  Prefactor  = 17.4419
  Prefactor  = 0.94685
  Prefactor  = 0.0590777
  Prefactor  = 32.0653
  norm       = 1.01756
  norm       = 0.375381
  Prefactor  = 18.0693
  Prefactor  = 4.01856
  norm       = 40.3984
  Prefactor  = 27.4896
  norm       = 3.4028
  Prefactor  = 3.91451
  Prefactor  = 8.04912e-09
  norm       = 7.66609e-08
  Prefactor  = 30.8654
  norm       = 0.915994
  Normalizat = 0.932676
  Prefactor  = 1.05464
 **********
 **   18 **HESSE 
 **********

 FCN=   23441.15     FROM HESSE     STATUS=OK           536 CALLS     1879 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3071        1.9595        .96614E-03   -1.5685    
   2  Prefactor     .44409E-09    2.3713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0458        .54227        .12181E-02   -1.5688    
   4  Prefactor     6.4497        6.7933        .39409E-03   -1.5657    
   5  Prefactor     .62728E-08    2.3913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.435        22.564        .17967E-03   -1.5598    
   7  Prefactor     .12434E-07    19.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1370        3.3902        .57245E-03   -1.5673    
   9  Prefactor     17.442        14.316        .24042E-03   -1.5624    
  10  Prefactor     .94685        3.5399        .46208E-03   -1.5689    
  11  Prefactor     .59078E-01    3.3430        .93662E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.065        18.230        .17721E-03   -1.5595    
  13  norm          1.0176        1.4256        .36888E-02   -1.5688    
  14  norm          .37538        1.4491        .55438E-02   -1.5696    
  15  Prefactor     18.069        27.344        .24006E-03   -1.5623    
  16  Prefactor     4.0186        1.6676        .50254E-03   -1.5668    
  17  norm          40.398        7.7585        .15748E-03   -1.5581    
  18  Prefactor     27.490        20.199        .19103E-03   -1.5603    
  19  norm          3.4028        .99629        .54811E-03   -1.5671    
  20  Prefactor     3.9145        1.9437        .50951E-03   -1.5668    
  21  Prefactor     .80491E-08    4.5871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .76661E-07    .75789        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.865        9.2451        .18057E-03   -1.5597    
  24  norm          .91599        1.4890        .44268E-03   -1.5689    
  25  Normalizat    .93268        .92997E-01    .45324E-01   -.95321    
  26  Prefactor     1.0546        .93667E-01    .39652E-01   -.90930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48328e-06
Minuit parameter uncertainties:
  1  1.95952
  2  6.51472e-05
  3  0.542274
  4  6.79331
  5  0.000245096
  6  22.5639
  7  0.00099635
  8  3.39022
  9  14.3162
  10  3.53987
  11  0.888809
  12  18.2302
  13  1.42557
  14  1.44911
  15  27.3441
  16  1.66762
  17  7.75848
  18  20.1986
  19  0.996285
  20  1.94369
  21  0.000383863
  22  0.000482023
  23  9.24515
  24  1.48903
  25  0.0930131
  26  0.0936818
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  5.908e-02  8.888e-01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.055e+00  9.368e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  9.327e-01  9.301e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 63.277 -53.548
Photon Flux Upper Limit: 3.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/568605/likelihoodResults_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.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) = 23440.9086735
delta logL = 0.237917891325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23440.857403
delta logL = 0.28918839914

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23440.86     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      290 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32705        28.178        .11067E-04   -.95332E-02
   2  Index         4.1318        6.7514        .10138E-01   -.67297E-04
   3  Normalizat    .90986        .74833E-01    .25257E-03   -.19697E-03
   4  Prefactor     1.0689        .76645E-01    .24593E-03   -.50481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.32705
  Index      = 4.13181
  Normalizat = 0.909864
  Prefactor  = 1.06895
 **********
 **   18 **HESSE 
 **********

 FCN=   23440.86     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32705        3.2949        .44267E-06   -1.5697    
   2  Index         4.1318        2.9872        .40552E-03   -.17452    
   3  Normalizat    .90986        .10628        .10103E-04   -.96114    
   4  Prefactor     1.0689        .10893        .98371E-05   -.90465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40861e-09
Minuit parameter uncertainties:
  1  2.07614
  2  3.20969
  3  0.106308
  4  0.108949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568605': 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) = 23440.8574017
delta logL = 0.289189785166

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  3.271e-01  2.076e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  4.132e+00  3.210e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.069e+00  1.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  9.099e-01  1.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 63.277 -53.548

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/568605/cmap_HighResolution_698025601_698630401_4FGL_J0413.1-5332_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-03', job_status='DONE', photon_flux_upper_limit='3.03e-08', time_completed='2023-02-21 06:17:56.830135', job_id='568605', GAL2='1.07', fit_tolerance='1e-08', EG2='0.91', EG='0.93', time_epoch_completed='1676989076.83', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.89e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='759' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 06:17:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 568605: <4FGL_J0413.1-5332_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 02:10:30 2023
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:10:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:10:31 2023
Terminated at Tue Feb 21 06:17:57 2023
Results reported at Tue Feb 21 06:17:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin759 63.2773 -53.5483 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0413.1-5332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14628.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             587.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14846 sec.
    Turnaround time :                            14847 sec.

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

