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 120 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0532.9-8325_daily_bin1674
RA = 83.2454, Dec = -83.4324
tmin = 673228801, tmax = 673488001
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='669086', job_status='RUN', time_executed='2022-05-06 02:09:40.299867', time_epoch_executed='1651828180.3' WHERE source_name='4FGL J0532.9-8325' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669086/ft1_4FGL_J0532.9-8325_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669086/ft1_4FGL_J0532.9-8325_daily_bin1674.fits outfile=/scratch/kocevski/669086/ft1_filteredMKT_4FGL_J0532.9-8325_daily_bin1674.fits ra=83.2454 dec=-83.4324 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.78
user 2.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.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/669086/ft1_filteredMKT_4FGL_J0532.9-8325_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.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: 1372

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669086/ltcube_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.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/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits
.....................!
real 16.66
user 16.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669086/ltcube_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits outfile=/scratch/kocevski/669086/expmap_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.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/669086/ltcube_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits
.....................!
real 193.65
user 186.99
sys 5.12

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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_archive_v18/Templates/LMC-Galaxy.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_archive_v18/Templates/LMC-30DorWest.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_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 167 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 J0532.9-8325 @ 83.2454 -83.4324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits outfile=/scratch/kocevski/669086/cmap_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.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=83.2454 yref=-83.4324 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits outfile=/scratch/kocevski/669086/cmap_HighResolution_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.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=83.2454 yref=-83.4324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669086/Model_4FGL_J0532.9-8325_daily_bin1674.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits.....................!
real 11617.96
user 11581.55
sys 4.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits', '/scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits', expMap='/scratch/kocevski/669086/expmap_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits', expCube='/scratch/kocevski/669086/ltcube_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669086/Model_4FGL_J0532.9-8325_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.9-8325'

4FGL J0532.9-8325
   Spectrum: PowerLaw
184    Prefactor:  1.856e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  3.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669086/ft1_filtered_4FGL_J0532.9-8325_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/669086/ft2_4FGL_J0532.9-8325_daily_bin1674.fits
Exposure map: /scratch/kocevski/669086/expmap_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits
Exposure cube: /scratch/kocevski/669086/ltcube_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669086/Model_4FGL_J0532.9-8325_daily_bin1674.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) = 14356.2370059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.904       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .88623E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.514       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3643       1.0000         .10000E-03   10000.    
    19 'norm      '    8.5985       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2811       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14356.13     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1709 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0875        1.8949       -.38509E-06    .39964E-02
   2  Prefactor     10.868        9.2688       -.60404E-06   -.57031E-02
   3  Prefactor     .10000E-03    3.2876       -.16796E-06** at limit **
   4  Prefactor     4.3058        1.8239        .33796E-06   -.20306E-02
   5  Prefactor     3.0349        5.7844       -.10076E-05   -.78500E-03
   6  Prefactor     .10001E-03    14.318       -.12023E-05** at limit **
   7  Prefactor     .10000E-03    16.006        .26130E-05** at limit **
   8  norm          .10800E-03    1366.0       -.26947E-05** at limit **
   9  Prefactor     .10000E-03    2.8407       -.14752E-06** at limit **
  10  Prefactor     .10000E-03    5.1778       -.15320E-06** at limit **
  11  norm          4.8697        3.3495       -.28851E-08    .66212E-03
  12  Prefactor     .10000E-03    24.864       -.18946E-05** at limit **
  13  norm          .10000E-03    3.8774       -.39034E-07** at limit **
  14  Prefactor     .10000E-03    11.579       -.81667E-06** at limit **
  15  norm          8.4060        3.9318        .70281E-07    .32673E-03
  16  Prefactor     11.517        2.9220        .12002E-06    .10409E-01
  17  Prefactor     18.328        22.360       -.16336E-05    .25493E-02
  18  Prefactor     6.3643        3.9602        .29680E-06    .18886E-02
  19  norm          8.5978        4.3838       -.28895E-06    .34394E-02
  20  Prefactor     .10001E-03    12.449       -.26900E-06** at limit **
  21  Normalizat    1.2812        .19948        .37052E-05    .69075E-03
  22  Prefactor     .89418        .73921E-01   -.11186E-06    .13318E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08749
  Prefactor  = 10.8683
  Prefactor  = 0.0001
  Prefactor  = 4.30576
  Prefactor  = 3.03489
  Prefactor  = 0.000100014
  Prefactor  = 0.000100003
  norm       = 0.000107998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.86975
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.40596
  Prefactor  = 11.5165
  Prefactor  = 18.328
  Prefactor  = 6.36435
  norm       = 8.59777
  Prefactor  = 0.000100008
  Normalizat = 1.28115
  Prefactor  = 0.894178
 **********
 **   18 **HESSE 
 **********

 FCN=   14356.13     FROM HESSE     STATUS=OK           396 CALLS     2105 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0875        4.4715        .71439E-02   -1.5419    
   2  Prefactor     10.868        29.999        .30333E-02   -1.5049    
   3  Prefactor     .10000E-03    3.2192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3058        18.832        .48510E-02   -1.5293    
   5  Prefactor     3.0349        5.8369        .58379E-02   -1.5360    
   6  Prefactor     .10001E-03    15.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10800E-03    23.523        .15742       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8697        3.3562        .45570E-02   -1.5267    
  12  Prefactor     .10000E-03    24.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4060        3.9336        .34571E-02   -1.5128    
  16  Prefactor     11.517        5.3811        .29515E-02   -1.5029    
  17  Prefactor     18.328        23.446        .23374E-02   -1.4851    
  18  Prefactor     6.3643        4.1193        .39776E-02   -1.5203    
  19  norm          8.5978        4.8804        .34176E-02   -1.5121    
  20  Prefactor     .10001E-03    12.751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2812        .17496        .82939E-01   -.84131    
  22  Prefactor     .89418        .63429E-01    .44931E-01   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47852e-07
Minuit parameter uncertainties:
  1  4.47224
  2  30.0406
  3  2.10208e-06
  4  18.0187
  5  5.83799
  6  0.000914635
  7  0.000475811
  8  0.027443
  9  2.95777e-06
  10  1.61108e-05
  11  3.35635
  12  0.000232081
  13  1.07395e-05
  14  0.000206727
  15  3.93376
  16  5.38134
  17  23.4575
  18  4.1195
  19  4.8806
  20  0.000621829
  21  0.175036
  22  0.0634341
Done.

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

Extracting fit parameters...

4FGL J0532.9-8325
   Spectrum: PowerLaw
184    Prefactor:  1.000e-04  9.146e-04  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  3.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  8.942e-01  6.343e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.281e+00  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.245 -83.432
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669086/likelihoodResults_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.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) = 14356.1313066
delta logL = -0.000309237533656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14356.1309977
delta logL = -2.94603523798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11684E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1178       1.0000          .0000       10.000    
     3 'Normalizat'    1.2812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14356.13     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.579        .90712E-02** at limit **
   2  Index         2.1717        3.4026        .50000       -.33319E-04
   3  Normalizat    1.2811        .45333E-02    .82939E-01   -.25550E-04
   4  Prefactor     .89418        .16789E-02    .44931E-01   -.12079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.17169
  Normalizat = 1.28115
  Prefactor  = 0.894178
 **********
 **   18 **HESSE 
 **********

 FCN=   14356.13     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    212.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1717        8.2314        .50000       -.60124    
   3  Normalizat    1.2811        .15800E-01    .36718E-03   -.84131    
   4  Prefactor     .89418        .58606E-02    .15859E-03   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96038e-08
Minuit parameter uncertainties:
  1  0.00231592
  2  13.8299
  3  0.0158
  4  0.00586058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669086': 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) = 14356.1309967
delta logL = 6.36364347884e-07

Extracting fit parameters...

4FGL J0532.9-8325
   Spectrum: PowerLaw
184    Prefactor:  1.000e-04  2.316e-03  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.172e+00  1.383e+01  0.000e+00  1.000e+01 (-1.000e+00)
186        Scale:  3.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  8.942e-01  5.861e-03  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.281e+00  1.580e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.245 -83.432

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/669086/cmap_HighResolution_673228801_673488001_4FGL_J0532.9-8325_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2022-05-06 05:38:28.473282', job_id='669086', GAL2='0.89', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1651840708.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1674' AND source_name='4FGL J0532.9-8325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 05:38:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 668996: <4FGL_J0532.9-8325_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0532.9-8325_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:06:13 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:06:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:06:00 2022
Terminated at Fri May  6 05:38:11 2022
Results reported at Fri May  6 05:38:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.9-8325_daily_bin1674 83.2454 -83.4324 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.9-8325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12663.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             599.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12730 sec.
    Turnaround time :                            19918 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 669086: <4FGL_J0532.9-8325_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0532.9-8325_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:06:20 2022
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:07:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:07:30 2022
Terminated at Fri May  6 05:38:29 2022
Results reported at Fri May  6 05:38:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.9-8325_daily_bin1674 83.2454 -83.4324 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.9-8325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12505.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             594.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12658 sec.
    Turnaround time :                            19929 sec.

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

