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


Performing analysis on: 4FGL_J0532.8-3941_daily_bin1711
RA = 83.2, Dec = -39.6853
tmin = 682819201, tmax = 683078401
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='29996', job_status='RUN', time_executed='2022-09-16 11:47:43.214896', time_epoch_executed='1663354063.21' WHERE source_name='4FGL J0532.8-3941' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29996/ft1_4FGL_J0532.8-3941_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29996/ft1_4FGL_J0532.8-3941_daily_bin1711.fits outfile=/scratch/kocevski/29996/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin1711.fits ra=83.2 dec=-39.6853 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.72
user 4.46
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.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/29996/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.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.53
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 753

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/29996/ltcube_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.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/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits
.....................!
real 15.48
user 15.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/29996/ltcube_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits outfile=/scratch/kocevski/29996/expmap_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.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/29996/ltcube_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits
.....................!
real 194.37
user 188.71
sys 4.65

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
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J0532.8-3941 @ 83.2 -39.6853

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits scfile=/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits outfile=/scratch/kocevski/29996/cmap_HighResolution_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.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.2 yref=-39.6853 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29996/Model_4FGL_J0532.8-3941_daily_bin1711.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
Working on...
/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits.....................!
real 83.72
user 82.10
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits', '/scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits', expMap='/scratch/kocevski/29996/expmap_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits', expCube='/scratch/kocevski/29996/ltcube_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29996/Model_4FGL_J0532.8-3941_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.8-3941'

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/29996/ft1_filtered_4FGL_J0532.8-3941_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/29996/ft2_4FGL_J0532.8-3941_daily_bin1711.fits
Exposure map: /scratch/kocevski/29996/expmap_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits
Exposure cube: /scratch/kocevski/29996/ltcube_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29996/Model_4FGL_J0532.8-3941_daily_bin1711.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8021.09803333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3897       1.0000          .0000       .10000E+07
     2 'norm      '    16.343       1.0000          .0000       .10000E+07
     3 'norm      '    .92072       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8608       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31933E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.7652       1.0000          .0000       .10000E+07
     7 'Prefactor '    .91150E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .99768E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.3763       1.0000          .0000       .10000E+07
    10 'Prefactor '    .56843E-06   1.0000          .0000       .10000E+07
    11 'norm      '    4.0015       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22842       1.0000          .0000       .10000E+07
    13 'norm      '    .12307E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .19246E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .33862E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    9.2538       1.0000          .0000       .10000E+07
    17 'norm      '    1.5877       1.0000          .0000       .10000E+07
    18 'Prefactor '    .74146E-04   1.0000          .0000       .10000E+07
    19 'norm      '    5.7415       1.0000          .0000       .10000E+07
    20 'norm      '    2.9294       1.0000          .0000       .10000E+07
    21 'norm      '    .29838E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .11314E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    26.938       1.0000          .0000       .10000E+07
    24 'norm      '    .42056E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    48.297       1.0000          .0000       .10000E+07
    26 'Normalizat'    .84451       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8018.937     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1378 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3898        2.0707       -.15241E-07   -.10256E-02
   2  norm          16.363        3.4147       -.37844E-09    .96203E-01
   3  norm          .91819        1.3965        .15523E-07    .10736E-02
   4  Prefactor     4.8767        2.9559        .80711E-07    .21641E-02
   5  Prefactor     .21982E-06    3.9786       -.44058E-07** at limit **
   6  norm          1.7007        4.6357       -.52579E-07    .34774E-03
   7  Prefactor     .12712E-07    24.592       -.89197E-07** at limit **
   8  Prefactor     .84432E-07    11.857       -.69512E-08** at limit **
   9  Prefactor     5.3765        2.2977       -.40872E-07   -.28133E-02
  10  Prefactor      .0000        .60779        .19008E-07** at limit **
  11  norm          4.0056        2.0183       -.99352E-08   -.18347E-02
  12  Prefactor     .67996E-06    6.2333       -.33043E-08** at limit **
  13  norm           .0000        1.0697        .61254E-07** at limit **
  14  norm           .0000        1.6787        .52846E-07** at limit **
  15  Prefactor      .0000        1.1781        .14483E-07** at limit **
  16  Prefactor     9.3314        9.5392       -.16512E-07    .10732E-01
  17  norm          1.4995        4.4464       -.19923E-06   -.12049E-02
  18  Prefactor     .33307E-09    5.9476       -.15130E-08** at limit **
  19  norm          5.7401        1.1811        .49830E-08    .12224E-02
  20  norm          2.9335        1.9208        .18527E-07    .11438E-02
  21  norm           .0000        3.2117       -.12701E-06** at limit **
  22  Prefactor     .24841E-06    4.1353       -.33832E-07** at limit **
  23  Prefactor     26.907        1.2202        .12350E-08   -.10511E-01
  24  norm          .85265E-07    16.254        .53040E-08** at limit **
  25  Prefactor     48.318        1.0233       -.52749E-10    .32805E-02
  26  Normalizat    .84561        .19668        .14792E-05   -.28434E-04
  27  Prefactor     .91714        .14739       -.13458E-05   -.74852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38985
  norm       = 16.3633
  norm       = 0.91819
  Prefactor  = 4.87671
  Prefactor  = 2.19824e-07
  norm       = 1.7007
  Prefactor  = 1.27121e-08
  Prefactor  = 8.44325e-08
  Prefactor  = 5.37649
  Prefactor  = 0
  norm       = 4.00564
  Prefactor  = 6.79956e-07
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 9.33138
  norm       = 1.49952
  Prefactor  = 3.33067e-10
  norm       = 5.74007
  norm       = 2.93349
  norm       = 0
  Prefactor  = 2.48412e-07
  Prefactor  = 26.9072
  norm       = 8.52651e-08
  Prefactor  = 48.3178
  Normalizat = 0.845606
  Prefactor  = 0.917141
 **********
 **   18 **HESSE 
 **********

 FCN=   8018.937     FROM HESSE     STATUS=OK           544 CALLS     1922 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3898        2.0796        .66226E-03   -1.5677    
   2  norm          16.363        9.0373        .24748E-03   -1.5627    
   3  norm          .91819        1.4081        .44338E-03   -1.5689    
   4  Prefactor     4.8767        3.0145        .45602E-03   -1.5664    
   5  Prefactor     .21982E-06    7.4120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7007        4.7389        .78814E-03   -1.5682    
   7  Prefactor     .12712E-07    24.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84432E-07    12.958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3765        2.2999        .43317E-03   -1.5662    
  10  Prefactor      .0000        .60834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0056        2.0300        .50392E-03   -1.5668    
  12  Prefactor     .67996E-06    80.434        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.0696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.6629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.1784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3314        10.314        .32921E-03   -1.5647    
  17  norm          1.4995        4.5047        .84203E-03   -1.5683    
  18  Prefactor     .33307E-09    5.9846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.7401        1.1822        .41894E-03   -1.5660    
  20  norm          2.9335        1.9248        .59324E-03   -1.5674    
  21  norm           .0000        3.2098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .24841E-06    7.7197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.907        12.592        .19271E-03   -1.5604    
  24  norm          .85265E-07    16.959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.318        28.599        .14390E-03   -1.5569    
  26  Normalizat    .84561        .17263        .66565E-01   -.98399    
  27  Prefactor     .91714        .12898        .45228E-01   -.95545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33832e-07
Minuit parameter uncertainties:
  1  2.07964
  2  9.03726
  3  1.40807
  4  3.01447
  5  0.00255299
  6  4.73889
  7  0.00112128
  8  0.00209212
  9  2.29993
  10  9.97178e-07
  11  2.03001
  12  0.0147909
  13  4.33276e-06
  14  4.86091e-06
  15  3.68983e-07
  16  10.3144
  17  4.50474
  18  8.92121e-05
  19  1.18218
  20  1.92477
  21  1.61149e-05
  22  0.00276947
  23  12.592
  24  0.00240512
  25  28.599
  26  0.172741
  27  0.129024
Done.

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

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  3.690e-07  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.171e-01  1.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  8.456e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29996/likelihoodResults_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.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) = 8018.93806043
delta logL = -0.0012235402537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8018.93683748
delta logL = -5.91657226323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .84960       1.0000          .0000       10.000    
     3 'Normalizat'    .84578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91698       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8018.937     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      241 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .94952        .42118E-03** at limit **
   2  Index         3.0392        1.9740        .12365E-04     .0000    
   3  Normalizat    .84560        1.1832       -.12593E-04   -.36985E-04
   4  Prefactor     .91714        1.2612        .27267E-04    .12773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.03918
  Normalizat = 0.845604
  Prefactor  = 0.917142
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8018.937     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .94952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0433        2.1856        .12365E-04   -.40298    
   3  Normalizat    .84560        1.1832       -.12593E-04   -.98399    
   4  Prefactor     .91714        1.2612        .27267E-04   -.95545    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.98452e-11
Minuit parameter uncertainties:
  1  8.41502e-07
  2  2.0403
  3  1.2226
  4  1.30518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29996': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8018.93683689
delta logL = -3.36513039656e-11

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  8.415e-07  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  3.039e+00  2.040e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.171e-01  1.305e+00  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  8.456e-01  1.223e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 83.200 -39.685

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/29996/cmap_HighResolution_682819201_683078401_4FGL_J0532.8-3941_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.21e-08', time_completed='2022-09-16 12:00:06.927265', job_id='29996', GAL2='0.92', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1663354806.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1711' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 12:00:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 29996: <4FGL_J0532.8-3941_daily_bin1711> in cluster <slac> Done

Job <4FGL_J0532.8-3941_daily_bin1711> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 11:45:19 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:46:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:46:00 2022
Terminated at Fri Sep 16 12:00:07 2022
Results reported at Fri Sep 16 12:00:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.8-3941_daily_bin1711 83.2 -39.6853 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.8-3941 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            888 sec.

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

