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


Performing analysis on: 4FGL_J0532.0-4827_daily_bin1773
RA = 83.0022, Dec = -48.4607
tmin = 698889601, tmax = 699148801
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='655783', job_status='RUN', time_executed='2023-02-27 08:57:53.482937', time_epoch_executed='1677517073.48' WHERE source_name='4FGL J0532.0-4827' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655783/ft1_4FGL_J0532.0-4827_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655783/ft1_4FGL_J0532.0-4827_daily_bin1773.fits outfile=/scratch/kocevski/655783/ft1_filteredMKT_4FGL_J0532.0-4827_daily_bin1773.fits ra=83.0022 dec=-48.4607 rad=12.0 tmin=698889601.0 tmax=699148801.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.91
user 2.72
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.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/655783/ft1_filteredMKT_4FGL_J0532.0-4827_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 967

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/655783/ltcube_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.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/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits
.....................!
real 12.30
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/655783/ltcube_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits outfile=/scratch/kocevski/655783/expmap_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.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/655783/ltcube_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits
.....................!
real 189.84
user 185.05
sys 4.48

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-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.
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.
Added 202 point sources and 4 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.0-4827 @ 83.0022 -48.4607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits outfile=/scratch/kocevski/655783/cmap_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.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.0022 yref=-48.4607 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits outfile=/scratch/kocevski/655783/cmap_HighResolution_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.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.0022 yref=-48.4607 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655783/Model_4FGL_J0532.0-4827_daily_bin1773.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
Working on...
/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits.....................!
real 5562.03
user 5551.41
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits', '/scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits', expMap='/scratch/kocevski/655783/expmap_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits', expCube='/scratch/kocevski/655783/ltcube_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/655783/Model_4FGL_J0532.0-4827_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.0-4827'

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  5.537e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  7.777e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/655783/ft1_filtered_4FGL_J0532.0-4827_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/655783/ft2_4FGL_J0532.0-4827_daily_bin1773.fits
Exposure map: /scratch/kocevski/655783/expmap_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits
Exposure cube: /scratch/kocevski/655783/ltcube_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/655783/Model_4FGL_J0532.0-4827_daily_bin1773.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) = 10336.2782359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57965E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.713       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6865       1.0000          .0000       .10000E+07
     4 'norm      '    66.885       1.0000          .0000       .10000E+07
     5 'norm      '    1.6608       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2980       1.0000          .0000       .10000E+07
     7 'Prefactor '    .51803E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .16794E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .44288       1.0000          .0000       .10000E+07
    10 'Prefactor '    .62029E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1031       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29328E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .78110E-06   1.0000          .0000       .10000E+07
    14 'norm      '    2.6667       1.0000          .0000       .10000E+07
    15 'Prefactor '    .24386E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15212E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .50973E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .75640       1.0000          .0000       .10000E+07
    19 'Prefactor '    .41665E-04   1.0000          .0000       .10000E+07
    20 'norm      '    7.1366       1.0000          .0000       .10000E+07
    21 'norm      '    .31555       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.439       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.9847       1.0000          .0000       .10000E+07
    24 'Prefactor '    .60979E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .59427E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .28591E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    .99410       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10336.23     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     2545 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-09    1.4439       -.63163E-06** at limit **
   2  Prefactor     23.589        50.682        .53089E-09    .68068E-01
   3  Prefactor     1.6873        2.1432        .36076E-07    .71647E-02
   4  norm          66.921        2.7398       -.14226E-06   -.86224E-01
   5  norm          1.6601        1.3533        .52843E-07    .78729E-02
   6  Prefactor     3.3091        2.7952        .12626E-08    .11135E-01
   7  Prefactor     .81934E-07    9.6590       -.18494E-05** at limit **
   8  norm          .24392E-04    65.193        .13595E-04** at limit **
   9  Prefactor     .48676E-05    183.27        .10936E-04** at limit **
  10  Prefactor     .86597E-08    12.724       -.36283E-05** at limit **
  11  Prefactor     2.1149        2.1686        .78686E-07    .69140E-02
  12  Prefactor     .41261E-04    25.580       -.67335E-05** at limit **
  13  norm          .11102E-09    1.1146       -.87066E-07** at limit **
  14  norm          2.6740        2.5940       -.12893E-07   -.64646E-04
  15  Prefactor     .66613E-09    1.7058        .20245E-06** at limit **
  16  Prefactor     .11491E-07    8.4112       -.33074E-06** at limit **
  17  Prefactor     .24003E-06    13.218       -.16726E-05** at limit **
  18  norm          .75905        .71988        .16970E-06   -.40990E-02
  19  Prefactor     .63838E-08    3.1199        .46639E-06** at limit **
  20  norm          7.1802        5.1188        .22129E-06    .33832E-02
  21  norm          .31842        25.151        .73869E-05    .74251E-02
  22  Prefactor     10.674        9.4458       -.78354E-06    .17931E-01
  23  Prefactor     5.9622        5.9114       -.47825E-06    .33332E-01
  24  Prefactor     .76022E-02    98.991       -.52551E-05** at limit **
  25  Prefactor     .12268E-07    7.5161        .15605E-06** at limit **
  26  Prefactor     .15543E-08    28.291        .50482E-06** at limit **
  27  Normalizat    .98968        .19982        .63392E-05    .46122E-03
  28  Prefactor     1.1525        .14507       -.96544E-05    .33816E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-10
  Prefactor  = 23.5885
  Prefactor  = 1.68734
  norm       = 66.9215
  norm       = 1.66008
  Prefactor  = 3.30911
  Prefactor  = 8.19345e-08
  norm       = 2.43918e-05
  Prefactor  = 4.86761e-06
  Prefactor  = 8.65974e-09
  Prefactor  = 2.11489
  Prefactor  = 4.12607e-05
  norm       = 1.11022e-10
  norm       = 2.67402
  Prefactor  = 6.66134e-10
  Prefactor  = 1.14908e-08
  Prefactor  = 2.4003e-07
  norm       = 0.75905
  Prefactor  = 6.38378e-09
  norm       = 7.1802
  norm       = 0.318422
  Prefactor  = 10.6743
  Prefactor  = 5.96225
  Prefactor  = 0.00760225
  Prefactor  = 1.2268e-08
  Prefactor  = 1.55431e-09
  Normalizat = 0.989683
  Prefactor  = 1.15246
 **********
 **   18 **HESSE 
 **********

 FCN=   10336.23     FROM HESSE     STATUS=OK           595 CALLS     3140 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-09    1.4407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.589        53.523        .22530E-03   -1.5611    
   3  Prefactor     1.6873        2.2363        .81050E-03   -1.5682    
   4  norm          66.921        15.307        .12228E-03   -1.5544    
   5  norm          1.6601        1.3466        .81832E-03   -1.5682    
   6  Prefactor     3.3091        2.9249        .55724E-03   -1.5672    
   7  Prefactor     .81934E-07    9.7582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24392E-04    3.0839        .54554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .48676E-05    210.68        .84677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .86597E-08    13.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1149        2.1968        .71128E-03   -1.5679    
  12  Prefactor     .41261E-04    1.8224        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    1.1161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6740        2.6114        .62386E-03   -1.5675    
  15  Prefactor     .66613E-09    1.7077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11491E-07    8.4520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .24003E-06    13.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .75905        .73151        .56243E-03   -1.5691    
  19  Prefactor     .63838E-08    3.0958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1802        5.1314        .37526E-03   -1.5654    
  21  norm          .31842        3.8807        .10001E-01   -1.5697    
  22  Prefactor     10.674        11.678        .30986E-03   -1.5643    
  23  Prefactor     5.9622        10.872        .41021E-03   -1.5659    
  24  Prefactor     .76022E-02    13.724        .60922E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .12268E-07    7.5645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .15543E-08    28.325        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .98968        .17477        .68809E-01   -.93377    
  28  Prefactor     1.1525        .12556        .35912E-01   -.87807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28299e-07
Minuit parameter uncertainties:
  1  5.78872e-05
  2  53.5239
  3  2.23628
  4  15.3066
  5  1.3466
  6  2.92495
  7  0.00178825
  8  0.0173461
  9  0.0640493
  10  0.000671717
  11  2.19677
  12  0.0173428
  13  2.22391e-05
  14  2.61145
  15  6.7448e-05
  16  0.000622534
  17  0.00361001
  18  0.73151
  19  0.000281745
  20  5.13136
  21  2.22325
  22  11.6777
  23  10.8717
  24  0.64602
  25  0.000609484
  26  0.000420048
  27  0.17487
  28  0.125591DDone.

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

Extracting fit parameters...

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  2.674e+00  2.611e+00  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  7.777e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.152e+00  1.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.897e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 83.002 -48.461
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.08e-05

TS (Fixed Index): 1.72
Ra Dec: 83.002 -48.461
Photon Flux Upper Limit: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/655783/likelihoodResults_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.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): 0
logL (Free Index) = 10335.9264169
delta logL = 0.299336449378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10335.9090002
delta logL = 0.316753084033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2568       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6315       1.0000          .0000       5.0000    
     3 'Normalizat'    .97097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10335.91     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2553        32.668        .68358E-03    .75881E-02
   2  alpha         2.6321        3.8069        .41224        .69187E-04
   3  Normalizat    .97097        .49877E-01    .69381E-01    .28129E-04
   4  Prefactor     1.1584        .35330E-01    .35699E-01    .37614E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.25529
  alpha      = 2.6321
  Normalizat = 0.970971
  Prefactor  = 1.15839
 **********
 **   18 **HESSE 
 **********

 FCN=   10335.91     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2553        2.4552        .11594E-04   -1.5678    
   2  alpha         2.6321        .71668        .15215E-01    .52863E-01
   3  Normalizat    .97097        .18342        .30694E-03   -.94009    
   4  Prefactor     1.1584        .14042        .21834E-03   -.87621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50139e-09
Minuit parameter uncertainties:
  1  2.45525
  2  0.726903
  3  0.183541
  4  0.140463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655783': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10335.9089994
delta logL = 0.316753943447

Extracting fit parameters...

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  2.255e+00  2.455e+00  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  2.632e+00  7.269e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  7.777e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.158e+00  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.710e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 83.002 -48.461
Photon Index (Free Index): 2.63 +/- 0.73
Photon Flux (Free Index): 3.96e-08 +/- 3.49e-08
Energy Flux (Free Index): 1.07e-05 +/- 8.69e-06

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/655783/cmap_HighResolution_698889601_699148801_4FGL_J0532.0-4827_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.07e-05', photon_flux_error='2.11e-08', dlogl='3.17e-01', energy_flux='1.11e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2023-02-27 10:46:57.477134', photon_index_error2='0.73', photon_index2='2.63', ts='1.72', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='7.08e-08', energy_flux_error2='8.69e-06', EG='0.99', time_epoch_completed='1677523617.48', return_code='0', job_id='655783', GAL2='1.16', EG2='0.97', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.49e-08', ts2='2.36', photon_index='2.09' WHERE bin_id='1773' AND source_name='4FGL J0532.0-4827' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:46:57 PST 2023

------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 655814: <4FGL_J0532.0-4827_daily_bin1773> in cluster <slac> Done

Job <4FGL_J0532.0-4827_daily_bin1773> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 27 00:10:45 2023
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 08:44:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 08:44:35 2023
Terminated at Mon Feb 27 10:44:44 2023
Results reported at Mon Feb 27 10:44:44 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.0-4827_daily_bin1773 83.0022 -48.4607 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.0-4827 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6620.00 sec.
    Max Memory :                                 625 MB
    Average Memory :                             526.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   7208 sec.
    Turnaround time :                            38039 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 655783: <4FGL_J0532.0-4827_daily_bin1773> in cluster <slac> Done

Job <4FGL_J0532.0-4827_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 00:10:43 2023
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 08:44:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 08:44:35 2023
Terminated at Mon Feb 27 10:47:04 2023
Results reported at Mon Feb 27 10:47:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.0-4827_daily_bin1773 83.0022 -48.4607 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.0-4827 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6539.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             521.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   7349 sec.
    Turnaround time :                            38190 sec.

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

