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 227 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 = 17361
number of fields = 31
RA_SUN column already exists. File will not be modifiedDone.


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin754
RA = 63.2773, Dec = -53.5483
tmin = 695001601, tmax = 695606401
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='937890', job_status='RUN', time_executed='2023-01-17 00:19:44.959928', time_epoch_executed='1673943584.96' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937890

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937890/ft1_4FGL_J0413.1-5332_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937890/ft1_4FGL_J0413.1-5332_weekly_bin754.fits outfile=/scratch/kocevski/937890/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin754.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=695001601.0 tmax=695606401.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.73
user 5.37
sys 0.25

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

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

Number of photons that the gtmktime cut: 1779

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/937890/ltcube_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.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/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits
.....................!
real 34.74
user 33.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/937890/ltcube_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits outfile=/scratch/kocevski/937890/expmap_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.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/937890/ltcube_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits
.....................!
real 195.73
user 188.64
sys 5.54

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/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits scfile=/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits outfile=/scratch/kocevski/937890/cmap_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits scfile=/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits outfile=/scratch/kocevski/937890/cmap_HighResolution_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937890/Model_4FGL_J0413.1-5332_weekly_bin754.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/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits.....................!
real 11173.47
user 11128.14
sys 7.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits', '/scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits', expMap='/scratch/kocevski/937890/expmap_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits', expCube='/scratch/kocevski/937890/ltcube_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937890/Model_4FGL_J0413.1-5332_weekly_bin754.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/937890/ft1_filtered_4FGL_J0413.1-5332_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/937890/ft2_4FGL_J0413.1-5332_weekly_bin754.fits
Exposure map: /scratch/kocevski/937890/expmap_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits
Exposure cube: /scratch/kocevski/937890/ltcube_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937890/Model_4FGL_J0413.1-5332_weekly_bin754.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) = 19193.665502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60759       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.4874       1.0000          .0000       .10000E+07
     3 'norm      '    .93802       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12257E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.9818       1.0000          .0000       .10000E+07
     6 'Prefactor '    39.330       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54678E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.8400       1.0000          .0000       .10000E+07
     9 'Prefactor '    .39577E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .57877E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .34597E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13316       1.0000          .0000       .10000E+07
    13 'norm      '    4.4982       1.0000          .0000       .10000E+07
    14 'norm      '    9.7693       1.0000          .0000       .10000E+07
    15 'Prefactor '    53.022       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.4177       1.0000          .0000       .10000E+07
    17 'norm      '    37.701       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2880       1.0000          .0000       .10000E+07
    19 'norm      '    1.2528       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.0271       1.0000          .0000       .10000E+07
    21 'Prefactor '    9.5635       1.0000          .0000       .10000E+07
    22 'norm      '    .72780E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    7.2523       1.0000          .0000       .10000E+07
    24 'norm      '    3.3538       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0563       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0790       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=   19193.66     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2299 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62531        2.4715        .68905E-07    .41574E-03
   2  Prefactor     6.3751        7.0133        .26597E-07   -.26441E-03
   3  norm          .93810        .65647        .21770E-09   -.11999E-03
   4  Prefactor     .86691E-05    191.10        .26084E-05** at limit **
   5  Prefactor     9.0385        4.5781        .24769E-07   -.38557E-03
   6  Prefactor     39.314        11.615        .34259E-07   -.15937    
   7  Prefactor     .11102E-09    2.6395        .10309E-07** at limit **
   8  Prefactor     1.8409        1.8797        .12009E-07    .14350E-03
   9  Prefactor     .97128E-06    72.861        .79591E-06** at limit **
  10  Prefactor     .55511E-10    6.9368       -.47376E-07** at limit **
  11  Prefactor     .55511E-10    2.6129        .81945E-08** at limit **
  12  Prefactor     .28760E-06    36.501        .18801E-06** at limit **
  13  norm          4.4959        1.9938       -.78274E-08   -.26445E-03
  14  norm          9.7585        3.9429       -.26017E-08   -.10807E-02
  15  Prefactor     53.284        31.374        .24324E-06   -.48088E-01
  16  Prefactor     4.4178        1.9181       -.57563E-08   -.63595E-03
  17  norm          37.609        9.0007       -.44337E-08   -.11213E-01
  18  Prefactor     7.2910        12.933        .83529E-07    .19133E-01
  19  norm          1.2546        .89999        .13670E-08    .10004E-03
  20  Prefactor     2.0193        2.2327       -.91749E-08   -.37237E-03
  21  Prefactor     9.7714        9.1399       -.26233E-08    .25868E-02
  22  norm          .55511E-10    1.8300        .12684E-07** at limit **
  23  Prefactor     7.2357        9.5567       -.62696E-07   -.18516E-01
  24  norm          3.3598        3.1282        .13419E-07    .15780E-02
  25  Normalizat    1.0561        .13267       -.58975E-06   -.10840E-04
  26  Prefactor     1.0790        .13226        .29326E-06   -.11367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.625315
  Prefactor  = 6.37508
  norm       = 0.938104
  Prefactor  = 8.66912e-06
  Prefactor  = 9.03853
  Prefactor  = 39.3142
  Prefactor  = 1.11022e-10
  Prefactor  = 1.84088
  Prefactor  = 9.71279e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 2.87603e-07
  norm       = 4.49592
  norm       = 9.75851
  Prefactor  = 53.2835
  Prefactor  = 4.41776
  norm       = 37.609
  Prefactor  = 7.29104
  norm       = 1.25458
  Prefactor  = 2.0193
  Prefactor  = 9.77142
  norm       = 5.55112e-11
  Prefactor  = 7.23565
  norm       = 3.35978
  Normalizat = 1.05614
  Prefactor  = 1.07904
 **********
 **   18 **HESSE 
 **********

 FCN=   19193.66     FROM HESSE     STATUS=OK           528 CALLS     2827 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62531        2.4872        .68551E-03   -1.5692    
   2  Prefactor     6.3751        7.0580        .39379E-03   -1.5657    
   3  norm          .93810        .65989        .43166E-03   -1.5689    
   4  Prefactor     .86691E-05    7.4120        .98611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0385        4.8097        .33419E-03   -1.5648    
   6  Prefactor     39.314        21.317        .15947E-03   -1.5583    
   7  Prefactor     .11102E-09    3.0245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8409        1.8742        .76872E-03   -1.5681    
   9  Prefactor     .97128E-06    74.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    7.0627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    2.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28760E-06    36.149        .13112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4959        1.9964        .47448E-03   -1.5666    
  14  norm          9.7585        3.9468        .32036E-03   -1.5645    
  15  Prefactor     53.284        33.473        .13734E-03   -1.5562    
  16  Prefactor     4.4178        1.9339        .47889E-03   -1.5666    
  17  norm          37.609        9.0781        .16288E-03   -1.5585    
  18  Prefactor     7.2910        13.083        .37130E-03   -1.5654    
  19  norm          1.2546        .90601        .99812E-03   -1.5686    
  20  Prefactor     2.0193        2.3050        .72639E-03   -1.5680    
  21  Prefactor     9.7714        9.8806        .32381E-03   -1.5645    
  22  norm          .55511E-10    4.5962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2357        9.7448        .37222E-03   -1.5654    
  24  norm          3.3598        3.1733        .55237E-03   -1.5671    
  25  Normalizat    1.0561        .10861        .58397E-01   -.91173    
  26  Prefactor     1.0790        .10789        .59003E-01   -.90139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10591e-07
Minuit parameter uncertainties:
  1  2.48717
  2  7.05802
  3  0.659887
  4  0.0160319
  5  4.80972
  6  21.3167
  7  3.4758e-05
  8  1.87421
  9  0.0170275
  10  3.88297e-05
  11  3.08653e-05
  12  0.00644864
  13  1.99644
  14  3.94682
  15  33.4728
  16  1.93389
  17  9.07815
  18  13.0832
  19  0.906009
  20  2.30501
  21  9.88065
  22  2.98109e-05
  23  9.74483
  24  3.17329
  25  0.108629
  26  0.107915
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  3.087e-05  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.079e+00  1.079e-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:  1.056e+00  1.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937890/likelihoodResults_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.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) = 19193.6568449
delta logL = -0.00072030273077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19193.6561261
delta logL = -1.57607064466e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45447E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.9519       1.0000          .0000       10.000    
     3 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0793       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.

 FCN=   19193.66     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      310 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    .54627E-02    .42118E-03** at limit **
   2  Index         3.0748        8.4620        .50000        .27285E-09
   3  Normalizat    1.0561        .14788E-03    .58397E-01    .33401E-03
   4  Prefactor     1.0790        .15155E-03    .59003E-01    .22926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 3.07479
  Normalizat = 1.05614
  Prefactor  = 1.07904
 **********
 **   18 **HESSE 
 **********

 FCN=   19193.66     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      343 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    .45037E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0748        6.2820        .50000       -.39525    
   3  Normalizat    1.0561        .42325E-03    .25825E-03   -.91173    
   4  Prefactor     1.0790        .43380E-03    .26093E-03   -.90139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00592e-12
Minuit parameter uncertainties:
  1  6.62203e-06
  2  5042.49
  3  0.000423253
  4  0.000433805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937890': 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) = 19193.6561246
delta logL = -7.27595761418e-11

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  2.220e-10  6.622e-06  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  3.075e+00  5.042e+03  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.079e+00  4.338e-04  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:  1.056e+00  4.233e-04  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/937890/cmap_HighResolution_695001601_695606401_4FGL_J0413.1-5332_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-03', job_status='DONE', photon_flux_upper_limit='2.51e-08', time_completed='2023-01-17 03:50:35.472586', job_id='937890', GAL2='1.08', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1673956235.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-7.28e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='754' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 03:50:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 937821: <4FGL_J0413.1-5332_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 17 00:06:03 2023
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:18:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:18:33 2023
Terminated at Tue Jan 17 03:07:47 2023
Results reported at Tue Jan 17 03:07:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin754 63.2773 -53.5483 695001601 695606401 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 :                                   9903.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             571.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10154 sec.
    Turnaround time :                            10904 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 937890: <4FGL_J0413.1-5332_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 17 00:06:07 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:19:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:19:35 2023
Terminated at Tue Jan 17 03:50:36 2023
Results reported at Tue Jan 17 03:50:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin754 63.2773 -53.5483 695001601 695606401 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 :                                   12611.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             587.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12660 sec.
    Turnaround time :                            13469 sec.

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

