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 90 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.
DDone.


Performing analysis on: 4FGL_J1610.7-6648_daily_bin1704
RA = 242.692, Dec = -66.8147
tmin = 681004801, tmax = 681264001
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='365615', job_status='RUN', time_executed='2022-08-04 02:29:34.118310', time_epoch_executed='1659605374.12' WHERE source_name='4FGL J1610.7-6648' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365615/ft1_4FGL_J1610.7-6648_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365615/ft1_4FGL_J1610.7-6648_daily_bin1704.fits outfile=/scratch/kocevski/365615/ft1_filteredMKT_4FGL_J1610.7-6648_daily_bin1704.fits ra=242.692 dec=-66.8147 rad=12.0 tmin=681004801.0 tmax=681264001.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.99
user 2.73
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.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/365615/ft1_filteredMKT_4FGL_J1610.7-6648_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 3489

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/365615/ltcube_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.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/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits
.....................!
real 16.27
user 15.77
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365615/ltcube_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits outfile=/scratch/kocevski/365615/expmap_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.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/365615/ltcube_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits
.....................!
real 195.23
user 188.97
sys 5.32

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 FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source FGES J1553.8-5325 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 HESS J1303-631 in ROI with RadialGaussian 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.
Added 370 point sources and 20 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 J1610.7-6648 @ 242.692 -66.8147

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits outfile=/scratch/kocevski/365615/cmap_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.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=242.692 yref=-66.8147 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits outfile=/scratch/kocevski/365615/cmap_HighResolution_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.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=242.692 yref=-66.8147 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365615/Model_4FGL_J1610.7-6648_daily_bin1704.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 J1409.1-6121
adding source FGES J1553.8-5325
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 FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits.....................!
real 1662.87
user 1654.17
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits', '/scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits', expMap='/scratch/kocevski/365615/expmap_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits', expCube='/scratch/kocevski/365615/ltcube_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365615/Model_4FGL_J1610.7-6648_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1610.7-6648'

4FGL J1610.7-6648
   Spectrum: LogParabola
701         norm:  4.587e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
702        alpha:  1.566e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
703         beta:  1.109e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
704           Eb:  2.584e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365615/ft1_filtered_4FGL_J1610.7-6648_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365615/ft2_4FGL_J1610.7-6648_daily_bin1704.fits
Exposure map: /scratch/kocevski/365615/expmap_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365615/ltcube_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365615/Model_4FGL_J1610.7-6648_daily_bin1704.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) = 31569.8410525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.508       1.0000         .10000E-03   10000.    
     2 'norm      '    10.097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.852       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7047       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9912       1.0000         .10000E-03   10000.    
     9 'norm      '    .40787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.067       1.0000         .10000E-03   10000.    
    14 'norm      '    .13372E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.092       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29708E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1390E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31569.83     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2142 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.509        5.4202        .11677E-06    .21928E-04
   2  norm          10.095        23.244        .68336E-06    .39733E-05
   3  Prefactor     13.857        17.108       -.34139E-05    .64496E-05
   4  norm          .10000E-03    7.5005       -.38138E-07** at limit **
   5  Prefactor     8.4465        21.098        .12775E-05    .24370E-04
   6  Prefactor     1.7053        5.0236       -.58688E-06   -.69049E-05
   7  norm          .10000E-03    1.8617        .91037E-08** at limit **
   8  norm          1.9912        3.2816       -.19719E-06   -.17756E-04
   9  norm          .40814        .78163       -.12207E-06   -.35524E-03
  10  Prefactor     .10000E-03    6.8130        .47006E-08** at limit **
  11  norm          1.4378        .97682        .12387E-06   -.30840E-03
  12  Prefactor     .10000E-03    2.7470       -.13938E-07** at limit **
  13  Prefactor     63.077        76.055        .10056E-04    .27085E-06
  14  norm          .10000E-03    1.0661        .54604E-08** at limit **
  15  norm          14.094        7.2565        .87677E-06    .98757E-05
  16  norm          .10000E-03    24.075       -.42036E-07** at limit **
  17  Prefactor     .10000E-03    3.2031        .33673E-07** at limit **
  18  Prefactor     .10000E-03    10.742        .16108E-06** at limit **
  19  Normalizat    1.0747        .22997       -.13437E-05    .32434E-04
  20  Prefactor     .96288        .29348E-01    .17097E-06    .73527E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5086
  norm       = 10.0947
  Prefactor  = 13.8574
  norm       = 0.0001
  Prefactor  = 8.44652
  Prefactor  = 1.70527
  norm       = 0.0001
  norm       = 1.99123
  norm       = 0.408137
  Prefactor  = 0.0001
  norm       = 1.43777
  Prefactor  = 0.0001
  Prefactor  = 63.0768
  norm       = 0.0001
  norm       = 14.0936
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.07468
  Prefactor  = 0.962885  **********
 **   18 **HESSE 
 **********

 FCN=   31569.83     FROM HESSE     STATUS=OK           305 CALLS     2447 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.509        5.4202        .88445E-04   -1.4802    
   2  norm          10.095        23.313        .12610E-03   -1.5072    
   3  Prefactor     13.857        17.066        .10762E-03   -1.4963    
   4  norm          .10000E-03    7.5416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4465        21.034        .13789E-03   -1.5127    
   6  Prefactor     1.7053        5.0395        .32209E-03   -1.5447    
   7  norm          .10000E-03    1.8639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9912        3.2609        .29360E-03   -1.5426    
   9  norm          .40814        .78314        .20333E-03   -1.5580    
  10  Prefactor     .10000E-03    6.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4378        7.6100        .17987E-02   -1.5468    
  12  Prefactor     .10000E-03    2.7500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.077        75.973        .50530E-04   -1.4118    
  14  norm          .10000E-03    4.9584        .35578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.094        7.2436        .10670E-03   -1.4957    
  16  norm          .10000E-03    24.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.220        .18986       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0747        .22783        .89280E-03   -.90569    
  20  Prefactor     .96288        .29666E-01    .12007E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76563e-10
Minuit parameter uncertainties:
  1  5.42035
  2  23.3337
  3  17.0721
  4  1.4316e-06
  5  21.0521
  6  5.0408
  7  1.27589e-07
  8  3.26115
  9  0.783159
  10  1.7635e-06
  11  6.61667
  12  4.33113e-07
  13  76.0901
  14  1.31071e-05
  15  7.24404
  16  2.97018e-05
  17  5.1503e-07
  18  0.000240371
  19  0.22804
  20  0.0296663DDone.

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

Extracting fit parameters...

4FGL J1610.7-6648
   Spectrum: LogParabola
701         norm:  1.000e-04  1.276e-07  1.000e-04  1.000e+04 ( 1.000e-13)
702        alpha:  1.566e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
703         beta:  1.109e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
704           Eb:  2.584e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1351    Prefactor:  9.629e-01  2.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1352        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1353        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1318   Normalization:  1.075e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.692 -66.815
Photon Flux Upper Limit: 1.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365615/likelihoodResults_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.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) = 31569.8308922
delta logL = -0.00255441922127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 31569.8283378
delta logL = 2.43999238592e-08

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     '    1.5705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1390E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31569.83     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8737       -.52067E-05** at limit **
   2  alpha         1.8705        3.4188        .65387E-02   -.15825E-06
   3  Normalizat    1.0747        .20800        .97609E-06    .35252E-04
   4  Prefactor     .96288        .26800E-01   -.73110E-07    .12008E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87054
  Normalizat = 1.07468
  Prefactor  = 0.962885
 **********
 **   18 **HESSE 
 **********

 FCN=   31569.83     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    116.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8705        3.8800        .50000       -.25452    
   3  Normalizat    1.0747        .58928E-01    .89280E-03   -.90569    
   4  Prefactor     .96288        .76552E-02    .12007E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47201e-07
Minuit parameter uncertainties:
  1  0.000154893
  2  4326.79
  3  0.0589317
  4  0.00765521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365615': 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) = 31569.8283371
delta logL = 6.80774974171e-07

Extracting fit parameters...

4FGL J1610.7-6648
   Spectrum: LogParabola
701         norm:  1.000e-04  1.549e-04  1.000e-04  1.000e+04 ( 1.000e-13)
702        alpha:  1.871e+00  4.327e+03  0.000e+00  5.000e+00 ( 1.000e+00)
703         beta:  1.109e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
704           Eb:  2.584e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1351    Prefactor:  9.629e-01  7.655e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1352        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1353        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1318   Normalization:  1.075e+00  5.893e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.692 -66.815

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/365615/cmap_HighResolution_681004801_681264001_4FGL_J1610.7-6648_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', job_status='DONE', photon_flux_upper_limit='1.85e-08', time_completed='2022-08-04 04:07:20.265631', job_id='365615', GAL2='0.96', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1659611240.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.57' WHERE bin_id='1704' AND source_name='4FGL J1610.7-6648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 04:07:20 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 365666: <4FGL_J1610.7-6648_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1610.7-6648_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:29 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:28:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:28:10 2022
Terminated at Thu Aug  4 04:06:37 2022
Results reported at Thu Aug  4 04:06:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1610.7-6648_daily_bin1704 242.692 -66.8147 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1610.7-6648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5789.00 sec.
    Max Memory :                                 1272 MB
    Average Memory :                             492.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5906 sec.
    Turnaround time :                            14348 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 365615: <4FGL_J1610.7-6648_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1610.7-6648_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:27 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:27:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:27:24 2022
Terminated at Thu Aug  4 04:07:21 2022
Results reported at Thu Aug  4 04:07:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1610.7-6648_daily_bin1704 242.692 -66.8147 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1610.7-6648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5851.00 sec.
    Max Memory :                                 1271 MB
    Average Memory :                             487.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5997 sec.
    Turnaround time :                            14394 sec.

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

