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


Performing analysis on: 4FGL_J0530.9+1332_weekly_bin715
RA = 82.7364, Dec = 13.5402
tmin = 671414401, tmax = 672019201
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='934026', job_status='RUN', time_executed='2022-04-19 02:23:49.988426', time_epoch_executed='1650360229.99' WHERE source_name='4FGL J0530.9+1332' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934026

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934026/ft1_4FGL_J0530.9+1332_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934026/ft1_4FGL_J0530.9+1332_weekly_bin715.fits outfile=/scratch/kocevski/934026/ft1_filteredMKT_4FGL_J0530.9+1332_weekly_bin715.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.57
user 7.24
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.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/934026/ft1_filteredMKT_4FGL_J0530.9+1332_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.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.59
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 5247

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934026/ltcube_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.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/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits
.....................!
real 28.45
user 28.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934026/ltcube_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits outfile=/scratch/kocevski/934026/expmap_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.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/934026/ltcube_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits
.....................!
real 191.82
user 185.96
sys 5.50

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 166 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 J0530.9+1332 @ 82.7364 13.5402

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits outfile=/scratch/kocevski/934026/cmap_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.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=82.7364 yref=13.5402 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.60
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits outfile=/scratch/kocevski/934026/cmap_HighResolution_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.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=82.7364 yref=13.5402 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934026/Model_4FGL_J0530.9+1332_weekly_bin715.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 IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits.....................!
real 1179.62
user 1175.65
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits', '/scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits', expMap='/scratch/kocevski/934026/expmap_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits', expCube='/scratch/kocevski/934026/ltcube_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934026/Model_4FGL_J0530.9+1332_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0530.9+1332'

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  4.749e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934026/ft1_filtered_4FGL_J0530.9+1332_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934026/ft2_4FGL_J0530.9+1332_weekly_bin715.fits
Exposure map: /scratch/kocevski/934026/expmap_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934026/ltcube_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934026/Model_4FGL_J0530.9+1332_weekly_bin715.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) = 49843.3346355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3467       1.0000         .10000E-03   10000.    
     6 'norm      '    .73787       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7086       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4993       1.0000         .10000E-03   10000.    
    13 'norm      '    .10494E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0569       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5386       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3886       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .79906       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   49843.32     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2976 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5239        1.7953         .0000        .17717E-02
   2  Prefactor     41.113        23.165         .0000        .42398E-03
   3  Prefactor     3.3462        23.413         .0000        .18405E-02
   4  Prefactor     .10000E-03    1.5487         .0000    ** at limit **
   5  norm          1.3468        .52506         .0000        .16459E-02
   6  norm          .73801        2.0377         .0000        .26434    
   7  Prefactor     .10000E-03    .96932         .0000    ** at limit **
   8  norm          3.8404        2.6541         .0000        .20510E-02
   9  Prefactor     1.7084        1.5722         .0000       -.40406E-03
  10  Prefactor     .10000E-03    45.177         .0000    ** at limit **
  11  norm          4.8409        1.5580         .0000        .45065E-03
  12  Prefactor     7.4991        9.2822         .0000        .16092E-03
  13  norm          .10000E-03    .98162         .0000    ** at limit **
  14  norm          .74521        .61874         .0000        .55882E-02
  15  Prefactor     1.0569        .94465E-01     .0000        .37916E-02
  16  norm          8.5386        2.7385         .0000        .31757E-01
  17  Prefactor     2.8451        .57924         .0000        .36098E-02
  18  Prefactor     .10000E-03    7.0920         .0000    ** at limit **
  19  Prefactor     .10000E-03    29.004         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.0324         .0000    ** at limit **
  21  Prefactor     2.3891        3.0734         .0000        .27865E-02
  22  norm          .10000E-03    11.162         .0000    ** at limit **
  23  Prefactor     .79568        1.9844         .0000        .32244E-02
  24  Normalizat    1.0581        .22472         .0000        .26877E-03
  25  Prefactor     .99216        .30847E-01     .0000        .42402E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.52392
  Prefactor  = 41.1132
  Prefactor  = 3.34624
  Prefactor  = 0.0001
  norm       = 1.34681
  norm       = 0.738005
  Prefactor  = 0.0001
  norm       = 3.84036
  Prefactor  = 1.70844
  Prefactor  = 0.0001
  norm       = 4.84092
  Prefactor  = 7.49911
  norm       = 0.0001
  norm       = 0.745207
  Prefactor  = 1.05687
  norm       = 8.53858
  Prefactor  = 2.84507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38915
  norm       = 0.0001
  Prefactor  = 0.795684
  Normalizat = 1.05808
  Prefactor  = 0.992161
 **********
 **   18 **HESSE 
 **********

 FCN=   49843.32     FROM HESSE     STATUS=OK           437 CALLS     3413 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5239        1.7893        .14896E-03   -1.5197    
   2  Prefactor     41.113        23.015        .62517E-04   -1.4425    
   3  Prefactor     3.3462        22.940        .11069E-02   -1.5342    
   4  Prefactor     .10000E-03    1.5550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3468        .51246        .86294E-04   -1.5476    
   6  norm          .73801        1.9837        .23865E-02   -1.5536    
   7  Prefactor     .10000E-03    .99251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8404        2.6461        .20594E-03   -1.5316    
   9  Prefactor     1.7084        1.5762        .26126E-03   -1.5447    
  10  Prefactor     .10000E-03    45.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8409        1.5572        .15308E-03   -1.5268    
  12  Prefactor     7.4991        9.2748        .14645E-03   -1.5160    
  13  norm          .10000E-03    3.8531        .41619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74521        .61113        .15168E-03   -1.5535    
  15  Prefactor     1.0569        .10799        .12702E-04   -1.5502    
  16  norm          8.5386        3.0333        .68592E-03   -1.5123    
  17  Prefactor     2.8451        .62078        .55603E-04   -1.5371    
  18  Prefactor     .10000E-03    7.1230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3891        2.9897        .26501E-03   -1.5399    
  22  norm          .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .79568        4.4372        .47804E-02   -1.5530    
  24  Normalizat    1.0581        .21844        .89593E-03   -.91109    
  25  Prefactor     .99216        .31223E-01    .13983E-03   -.92991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66701e-07
Minuit parameter uncertainties:
  1  1.78933
  2  23.0204
  3  17.5322
  4  1.03741e-05
  5  0.512466
  6  1.98383
  7  1.74146e-05
  8  2.64619
  9  1.57628
  10  0.00027117
  11  1.55722
  12  9.27659
  13  2.5391e-05
  14  0.611131
  15  0.107991
  16  3.0334
  17  0.620782
  18  6.49692e-05
  19  0.00021211
  20  1.15224e-05
  21  2.98989
  22  1.53108e-05
  23  3.75815
  24  0.218627
  25  0.0312236
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  2.539e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.922e-01  3.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.058e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934026/likelihoodResults_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.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) = 49843.3230352
delta logL = -0.00122738965001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 49843.3218078
delta logL = 1.90630089492e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5821       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   49843.32     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      225 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .15150        .90712E-01** at limit **
   2  alpha         2.5798        3.6634        .41180        .28687E-05
   3  Normalizat    1.0581        .22871E-02    .20100        .21356E-03
   4  Prefactor     .99216        .34858E-03    .31642E-01   -.19986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57975
  Normalizat = 1.05808
  Prefactor  = 0.992161
 **********
 **   18 **HESSE 
 **********

 FCN=   49843.32     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    352.71        .41725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5798        3.7868        .16472        .31906E-01
   3  Normalizat    1.0581        .60459E-01    .89593E-03   -.91109    
   4  Prefactor     .99216        .92977E-02    .13983E-03   -.92991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06551e-05
Minuit parameter uncertainties:
  1  0.000202491
  2  2861.22
  3  0.0604634
  4  0.00929767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934026': 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) = 49843.3218078
delta logL = 5.58065949008e-09

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  2.025e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.580e+00  2.861e+03  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.922e-01  9.298e-03  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.058e+00  6.046e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 82.736 13.540

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/934026/cmap_HighResolution_671414401_672019201_4FGL_J0530.9+1332_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2022-04-19 03:42:16.818750', job_id='934026', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1650364936.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.58e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='715' AND source_name='4FGL J0530.9+1332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:42:16 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 930317: <4FGL_J0530.9+1332_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0530.9+1332_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:57 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:11:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:11:05 2022
Terminated at Tue Apr 19 03:31:57 2022
Results reported at Tue Apr 19 03:31:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_weekly_bin715 82.7364 13.5402 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0530.9+1332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4690.52 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             430.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3409 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   4852 sec.
    Turnaround time :                            12360 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 934026: <4FGL_J0530.9+1332_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0530.9+1332_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:55 2022
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:23:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:23:23 2022
Terminated at Tue Apr 19 03:42:17 2022
Results reported at Tue Apr 19 03:42:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_weekly_bin715 82.7364 13.5402 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0530.9+1332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4699.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             433.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4734 sec.
    Turnaround time :                            12322 sec.

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

