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


Performing analysis on: 4FGL_J0532.9-8325_weekly_bin730
RA = 83.2454, Dec = -83.4324
tmin = 680486401, tmax = 681091201
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='657848', job_status='RUN', time_executed='2022-08-02 00:45:11.884287', time_epoch_executed='1659426311.88' WHERE source_name='4FGL J0532.9-8325' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657848

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657848/ft1_4FGL_J0532.9-8325_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657848/ft1_4FGL_J0532.9-8325_weekly_bin730.fits outfile=/scratch/kocevski/657848/ft1_filteredMKT_4FGL_J0532.9-8325_weekly_bin730.fits ra=83.2454 dec=-83.4324 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.32
user 5.96
sys 0.30

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

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

Number of photons that the gtmktime cut: 3226

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/657848/ltcube_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.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/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits
.....................!
real 37.74
user 37.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/657848/ltcube_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits outfile=/scratch/kocevski/657848/expmap_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.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/657848/ltcube_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits
.....................!
real 195.50
user 189.90
sys 5.01

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/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits scfile=/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits outfile=/scratch/kocevski/657848/cmap_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.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.61
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits scfile=/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits outfile=/scratch/kocevski/657848/cmap_HighResolution_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.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.61
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657848/Model_4FGL_J0532.9-8325_weekly_bin730.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/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits.....................!
real 28105.71
user 28004.43
sys 3.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits', '/scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits', expMap='/scratch/kocevski/657848/expmap_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits', expCube='/scratch/kocevski/657848/ltcube_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657848/Model_4FGL_J0532.9-8325_weekly_bin730.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/657848/ft1_filtered_4FGL_J0532.9-8325_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/657848/ft2_4FGL_J0532.9-8325_weekly_bin730.fits
Exposure map: /scratch/kocevski/657848/expmap_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits
Exposure cube: /scratch/kocevski/657848/ltcube_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657848/Model_4FGL_J0532.9-8325_weekly_bin730.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) = 33583.157843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50579E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .15384E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .22758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6438       1.0000         .10000E-03   10000.    
    13 'norm      '    13.287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3850       1.0000         .10000E-03   10000.    
    19 'norm      '    .93724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67577E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4300       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90531       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33583.08     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     2504 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4627        .36285E-02** at limit **
   2  Prefactor     20.874        27.274        .88221E-04    .33237E-03
   3  Prefactor     .10000E-03    3.7727        .35151E-02** at limit **
   4  Prefactor     .10000E-03    3.6091        .18142E-02** at limit **
   5  Prefactor     3.7460        3.0507        .20861E-03   -.66704E-04
   6  Prefactor     .10000E-03    1.9324        .18142E-02** at limit **
   7  Prefactor     .10005E-03    6.6577        .15636    ** at limit **
   8  norm          .10000E-03    5.7776        .18142E-02** at limit **
   9  Prefactor     .10000E-03    .63014        .14055E-02** at limit **
  10  Prefactor     .10000E-03    2.1724        .18142E-02** at limit **
  11  norm          .22625        2.4969        .30152E-02    .21479E-02
  12  Prefactor     8.6088        25.527        .13634E-03    .12074E-03
  13  norm          13.297        6.4605        .10988E-03    .26982E-03
  14  Prefactor     .10000E-03    13.014        .18142E-02** at limit **
  15  norm          2.0027        1.5640        .19679E-03   -.60544E-04
  16  Prefactor     6.2418        3.1563        .16068E-03    .11321E-04
  17  Prefactor     .10000E-03    10.050        .18142E-02** at limit **
  18  Prefactor     3.3849        2.7002        .10996E-02    .28883E-03
  19  norm          .93613        2.6438        .47754E-03    .17160E-03
  20  Prefactor     .10000E-03    41.547        .20999E-02** at limit **
  21  Normalizat    1.4298        .13675        .35963E-03    .10288E-02
  22  Prefactor     .90534        .50057E-01    .15977E-03    .30036E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 20.8738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.746
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.226245
  Prefactor  = 8.60883
  norm       = 13.2973
  Prefactor  = 0.000100001
  norm       = 2.00272
  Prefactor  = 6.24178
  Prefactor  = 0.0001
  Prefactor  = 3.38494
  norm       = 0.936133
  Prefactor  = 0.0001
  Normalizat = 1.42984
  Prefactor  = 0.905341
 **********
 **   18 **HESSE 
 **********

 FCN=   33583.08     FROM HESSE     STATUS=OK           334 CALLS     2838 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4896        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.874        27.266        .17644E-04   -1.4794    
   3  Prefactor     .10000E-03    3.8121        .70303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7460        3.0505        .83444E-05   -1.5321    
   6  Prefactor     .10000E-03    1.9325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    6.6531        .15645       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .63047        .28110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22625        2.4992        .12061E-03   -1.5613    
  12  Prefactor     8.6088        25.436        .54536E-05   -1.5121    
  13  norm          13.297        6.4581        .43954E-05   -1.4978    
  14  Prefactor     .10000E-03    13.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0027        1.5640        .78716E-05   -1.5425    
  16  Prefactor     6.2418        3.1556        .64272E-05   -1.5208    
  17  Prefactor     .10000E-03    10.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3849        2.6992        .43984E-04   -1.5340    
  19  norm          .93613        2.6430        .19101E-04   -1.5514    
  20  Prefactor     .10000E-03    41.561        .41999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4298        .13679        .14385E-04   -.79770    
  22  Prefactor     .90534        .50020E-01    .31955E-04   -.95955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17733e-09
Minuit parameter uncertainties:
  1  8.48529e-05
  2  27.2826
  3  5.81601e-05
  4  2.32427e-05
  5  3.05063
  6  6.74494e-06
  7  0.00115293
  8  2.24036e-05
  9  6.49805e-06
  10  3.3833e-05
  11  1.50366
  12  25.468
  13  6.45842
  14  0.00018216
  15  1.56399
  16  3.15564
  17  8.48251e-05
  18  2.69934
  19  2.64337
  20  0.000104741
  21  0.136826
  22  0.0500227
Done.

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

Extracting fit parameters...

4FGL J0532.9-8325
   Spectrum: PowerLaw
184    Prefactor:  1.000e-04  6.745e-06  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:  9.053e-01  5.002e-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.430e+00  1.368e-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: 1.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657848/likelihoodResults_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.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) = 33583.0854174
delta logL = -0.00246630280162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 33583.0829508
delta logL = 3.18737875205e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0450       1.0000          .0000       10.000    
     3 'Normalizat'    1.4299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90533       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33583.08     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10088E-03    8.8180        .18142E-02** at limit **
   2  Index         1.9978        5.0679        .50000        .11277E-03
   3  Normalizat    1.4298        .63863E-02    .35963E-03   -.16843E-03
   4  Prefactor     .90534        .23370E-02    .15977E-03   -.38663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100877
  Index      = 1.99784
  Normalizat = 1.42984
  Prefactor  = 0.90534
 **********
 **   18 **HESSE 
 **********

 FCN=   33583.08     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10088E-03    43.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9978        6.9103        .50000       -.64404    
   3  Normalizat    1.4298        .14410E-01    .14385E-04   -.79769    
   4  Prefactor     .90534        .52730E-02    .31955E-04   -.95955    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68783e-08
Minuit parameter uncertainties:
  1  0.0123398
  2  111.134
  3  0.0144102
  4  0.00527302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657848': 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) = 33583.0829489
delta logL = 2.21611117013e-06

Extracting fit parameters...

4FGL J0532.9-8325
   Spectrum: PowerLaw
184    Prefactor:  1.009e-04  1.234e-02  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  1.998e+00  1.111e+02  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:  9.053e-01  5.273e-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.430e+00  1.441e-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/657848/cmap_HighResolution_680486401_681091201_4FGL_J0532.9-8325_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-03', job_status='DONE', photon_flux_upper_limit='1.69e-08', time_completed='2022-08-02 09:08:11.865428', job_id='657848', GAL2='0.91', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1659456491.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='730' AND source_name='4FGL J0532.9-8325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 09:08:11 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 657654: <4FGL_J0532.9-8325_weekly_bin730> in cluster <slac> Done

Job <4FGL_J0532.9-8325_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:19 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 00:40:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 00:40:00 2022
Terminated at Tue Aug  2 09:07:52 2022
Results reported at Tue Aug  2 09:07:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.9-8325_weekly_bin730 83.2454 -83.4324 680486401 681091201 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 :                                   30354.00 sec.
    Max Memory :                                 1104 MB
    Average Memory :                             611.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   30471 sec.
    Turnaround time :                            32553 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 657848: <4FGL_J0532.9-8325_weekly_bin730> in cluster <slac> Done

Job <4FGL_J0532.9-8325_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:28 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 00:42:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 00:42:18 2022
Terminated at Tue Aug  2 09:08:12 2022
Results reported at Tue Aug  2 09:08:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.9-8325_weekly_bin730 83.2454 -83.4324 680486401 681091201 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 :                                   30099.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             606.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   30354 sec.
    Turnaround time :                            32564 sec.

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

