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


Performing analysis on: 4FGL_J1656.3-3301_daily_bin1670
RA = 254.095, Dec = -33.0189
tmin = 672192001, tmax = 672451201
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='865012', job_status='RUN', time_executed='2022-04-24 00:30:24.912181', time_epoch_executed='1650785424.91' WHERE source_name='4FGL J1656.3-3301' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865012/ft1_4FGL_J1656.3-3301_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865012/ft1_4FGL_J1656.3-3301_daily_bin1670.fits outfile=/scratch/kocevski/865012/ft1_filteredMKT_4FGL_J1656.3-3301_daily_bin1670.fits ra=254.095 dec=-33.0189 rad=12.0 tmin=672192001.0 tmax=672451201.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 5.10
user 4.82
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.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/865012/ft1_filteredMKT_4FGL_J1656.3-3301_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.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.55
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 8914

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/865012/ltcube_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.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/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/865012/ltcube_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits outfile=/scratch/kocevski/865012/expmap_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.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/865012/ltcube_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits
.....................!
real 191.17
user 185.58
sys 5.10

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 RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Added 564 point sources and 17 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 J1656.3-3301 @ 254.095 -33.0189

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits outfile=/scratch/kocevski/865012/cmap_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.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=254.095 yref=-33.0189 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits outfile=/scratch/kocevski/865012/cmap_HighResolution_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.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=254.095 yref=-33.0189 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865012/Model_4FGL_J1656.3-3301_daily_bin1670.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1626.9-2431
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source RX J1713.7-3946
adding source W 28
adding source W 30
Working on...
/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits.....................!
real 2618.04
user 2596.34
sys 16.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits', '/scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits', expMap='/scratch/kocevski/865012/expmap_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits', expCube='/scratch/kocevski/865012/ltcube_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865012/Model_4FGL_J1656.3-3301_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1656.3-3301'

4FGL J1656.3-3301
   Spectrum: LogParabola
609         norm:  3.361e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
610        alpha:  2.915e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
611         beta:  2.976e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
612           Eb:  8.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/865012/ft1_filtered_4FGL_J1656.3-3301_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/865012/ft2_4FGL_J1656.3-3301_daily_bin1670.fits
Exposure map: /scratch/kocevski/865012/expmap_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits
Exposure cube: /scratch/kocevski/865012/ltcube_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865012/Model_4FGL_J1656.3-3301_daily_bin1670.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) = 73046.2030097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15596E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .71477E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .63496       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14404E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
     8 'norm      '    14.813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.3119       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2107E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   73046.18     FROM MIGRAD    STATUS=CONVERGED    245 CALLS      937 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2288        .65418E-06** at limit **
   2  norm          .10000E-03    54.215        .35166E-04** at limit **
   3  norm          .65451        1.7030       -.46753E-06   -.14335E-03
   4  norm          3.3963        .28114        .43510E-07   -.12493E-02
   5  Prefactor     .10000E-03    .54379       -.23673E-07** at limit **
   6  norm          .10013E-03    1.3995       -.29039E-05** at limit **
   7  Prefactor     11.395        7.3557        .63663E-06    .61278E-03
   8  norm          14.805        19.539        .18006E-05   -.92419E-04
   9  Prefactor     .10000E-03    15.127        .23987E-06** at limit **
  10  norm          .10000E-03    5.5172       -.12203E-08** at limit **
  11  Normalizat    1.3121        .37088        .71966E-06    .13445E-03
  12  Prefactor     1.0015        .18068E-01    .13819E-07    .27518E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.654507
  norm       = 3.39625
  Prefactor  = 0.0001
  norm       = 0.000100129
  Prefactor  = 11.395
  norm       = 14.8054
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31207
  Prefactor  = 1.00147  **********
 **   18 **HESSE 
 **********

 FCN=   73046.18     FROM HESSE     STATUS=OK           151 CALLS     1088 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.990        .57094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8783        .21141       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65451        7.0731        .53443E-02   -1.5546    
   4  norm          3.3963        1.7064        .10976E-02   -1.5339    
   5  Prefactor     .10000E-03    .54440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10013E-03    1.4246        .10566       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.395        7.3737        .11868E-03   -1.5033    
   8  norm          14.805        19.500        .10407E-03   -1.4938    
   9  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    1.3121        .34815        .19314E-02   -.83207    
  12  Prefactor     1.0015        .17256E-01    .11202E-03   -.92681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07044e-07
Minuit parameter uncertainties:
  1  4.41937e-05
  2  5.14127e-05
  3  4.30352
  4  1.70646
  5  2.25936e-07
  6  0.000857655
  7  7.37433
  8  19.5083
  9  8.97101e-07
  10  7.20181e-06
  11  0.348774
  12  0.0172559Done.

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

Extracting fit parameters...

4FGL J1656.3-3301
   Spectrum: LogParabola
609         norm:  1.001e-04  8.577e-04  1.000e-04  1.000e+04 ( 1.000e-12)
610        alpha:  2.915e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
611         beta:  2.976e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
612           Eb:  8.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2074    Prefactor:  1.001e+00  1.726e-02  0.000e+00  1.000e+01 ( 1.000e+00)
2075        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2076        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2043   Normalization:  1.312e+00  3.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 254.095 -33.019
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865011/likelihoodResults_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.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) = 73046.1789663
delta logL = -9.57191223279e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 73046.1789662
delta logL = -9.55680152401e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96175E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9153       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2107E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   73046.18     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      239 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .10530        .15154    ** at limit **
   2  alpha         2.8962        3.8256        .41893        .13612E-05
   3  Normalizat    1.3121        .35523E-02    .32596        .34114E-03
   4  Prefactor     1.0015        .18389E-03    .25347E-01    .91063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.89619
  Normalizat = 1.31207
  Prefactor  = 1.00147
  **********
 **   18 **HESSE 
 **********

 FCN=   73046.18     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      276 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .87726        .10678       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8962        3.6541        .16757E-01    .15915    
   3  Normalizat    1.3121        .86445E-02    .19314E-02   -.83207    
   4  Prefactor     1.0015        .45487E-03    .11202E-03   -.92681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73907e-08
Minuit parameter uncertainties:
  1  6.70294e-06
  2  238.64
  3  0.00864447
  4  0.000454867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865012': 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) = 73046.1788706
delta logL = 1.39407347888e-08

Extracting fit parameters...

4FGL J1656.3-3301
   Spectrum: LogParabola
609         norm:  1.000e-04  6.703e-06  1.000e-04  1.000e+04 ( 1.000e-12)
610        alpha:  2.896e+00  2.386e+02  0.000e+00  5.000e+00 ( 1.000e+00)
611         beta:  2.976e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
612           Eb:  8.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2074    Prefactor:  1.001e+00  4.549e-04  0.000e+00  1.000e+01 ( 1.000e+00)
2075        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2076        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2043   Normalization:  1.312e+00  8.644e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 254.095 -33.019

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/865012/cmap_HighResolution_672192001_672451201_4FGL_J1656.3-3301_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-04-24 03:17:19.505907', job_id='865012', GAL2='1.00', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1650795439.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1670' AND source_name='4FGL J1656.3-3301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:17:19 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 865011: <4FGL_J1656.3-3301_daily_bin1670> in cluster <slac> Done

Job <4FGL_J1656.3-3301_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:10:30 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:29:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:29:23 2022
Terminated at Sun Apr 24 03:17:02 2022
Results reported at Sun Apr 24 03:17:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.3-3301_daily_bin1670 254.095 -33.0189 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1656.3-3301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9977.00 sec.
    Max Memory :                                 1289 MB
    Average Memory :                             724.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10058 sec.
    Turnaround time :                            11192 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 865012: <4FGL_J1656.3-3301_daily_bin1670> in cluster <slac> Done

Job <4FGL_J1656.3-3301_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:10:30 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:29:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:29:23 2022
Terminated at Sun Apr 24 03:17:21 2022
Results reported at Sun Apr 24 03:17:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.3-3301_daily_bin1670 254.095 -33.0189 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1656.3-3301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10008.00 sec.
    Max Memory :                                 1289 MB
    Average Memory :                             726.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10078 sec.
    Turnaround time :                            11211 sec.

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

