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


Performing analysis on: 4FGL_J1722.6+6104_daily_bin1693
RA = 260.662, Dec = 61.0734
tmin = 678153601, tmax = 678412801
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='541587', job_status='RUN', time_executed='2022-07-02 02:40:14.737743', time_epoch_executed='1656754814.74' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541587/ft1_4FGL_J1722.6+6104_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541587/ft1_4FGL_J1722.6+6104_daily_bin1693.fits outfile=/scratch/kocevski/541587/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1693.fits ra=260.662 dec=61.0734 rad=12.0 tmin=678153601.0 tmax=678412801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.22
user 3.99
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.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/541587/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1015

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541587/ltcube_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.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/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits
.....................!
real 13.83
user 13.35
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541587/ltcube_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits outfile=/scratch/kocevski/541587/expmap_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.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/541587/ltcube_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits
.....................!
real 191.94
user 185.11
sys 6.18

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J1722.6+6104 @ 260.662 61.0734

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits outfile=/scratch/kocevski/541587/cmap_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.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=260.662 yref=61.0734 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits outfile=/scratch/kocevski/541587/cmap_HighResolution_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.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=260.662 yref=61.0734 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541587/Model_4FGL_J1722.6+6104_daily_bin1693.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits.....................!
real 94.02
user 92.46
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits', '/scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits', expMap='/scratch/kocevski/541587/expmap_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits', expCube='/scratch/kocevski/541587/ltcube_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541587/Model_4FGL_J1722.6+6104_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1722.6+6104'

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.901e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541587/ft1_filtered_4FGL_J1722.6+6104_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541587/ft2_4FGL_J1722.6+6104_daily_bin1693.fits
Exposure map: /scratch/kocevski/541587/expmap_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541587/ltcube_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541587/Model_4FGL_J1722.6+6104_daily_bin1693.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) = 10359.4795193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7859       1.0000         .10000E-03   10000.    
     9 'norm      '    16.227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69207       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.579       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.697       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3533       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8355       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6445       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5873       1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.619       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.3574       1.0000         .10000E-03   10000.    
    31 'norm      '    9.8457       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    3.0460       1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .76975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10359.48     FROM MIGRAD    STATUS=CONVERGED   1124 CALLS     5839 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2941        2.2413        .18761E-07   -.17915E-04
   2  Prefactor     .10000E-03    42.759        .33451E-06** at limit **
   3  Prefactor     .10000E-03    2.6483        .82195E-07** at limit **
   4  norm          .10004E-03    4.8997       -.77002E-06** at limit **
   5  Prefactor     .10000E-03    27.311        .86374E-06** at limit **
   6  norm          6.7797        16.094       -.41133E-06   -.95947E-05
   7  Prefactor     1.1947        3.8339       -.84856E-06   -.47118E-04
   8  Prefactor     8.7835        26.034       -.83471E-06   -.27264E-04
   9  norm          16.227        8.1251       -.59913E-07    .42752E-04
  10  Prefactor     .68752        5.5720        .19474E-06    .24416E-03
  11  Prefactor     .10000E-03    3.0304        .90751E-07** at limit **
  12  norm          .62631        .60205        .12142E-06    .63633E-03
  13  Prefactor     .10000E-03    2.4833        .17553E-06** at limit **
  14  Prefactor     .10000E-03    5.4653        .10458E-06** at limit **
  15  Prefactor     .13608        45.030       -.81026E-05    .20115E-03
  16  Prefactor     .10000E-03    2.5047        .90850E-07** at limit **
  17  Prefactor     .10000E-03    1.1594        .20599E-06** at limit **
  18  Prefactor     20.626        58.811        .10383E-04    .97898E-04
  19  norm          .10000E-03    2.6898        .38868E-06** at limit **
  20  Prefactor     5.0395        3.7802       -.11691E-06   -.49822E-05
  21  Prefactor     .10000E-03    22.068        .28875E-06** at limit **
  22  Prefactor     82.699        72.036        .58537E-06    .35461E-04
  23  norm          5.3533        2.5842       -.32189E-08   -.76346E-04
  24  Prefactor     7.8355        9.5128        .65877E-07    .26293E-05
  25  Prefactor     .10000E-03    8.3520        .67684E-06** at limit **
  26  Prefactor     7.6443        10.933        .28497E-07   -.13384E-05
  27  norm          4.5874        4.0132       -.23710E-06   -.85774E-04
  28  Prefactor     29.619        16.551       -.86481E-08   -.51579E-05
  29  Prefactor     .10000E-03    162.08       -.36745E-06** at limit **
  30  Prefactor     4.3556        5.8139       -.11538E-06   -.18018E-03
  31  norm          9.8459        7.2176        .19931E-07   -.11193E-05
  32  Prefactor     .10000E-03    21.385        .34383E-06** at limit **
  33  Prefactor     .10000E-03    10.434        .63615E-06** at limit **
  34  Prefactor     .10000E-03    21.072       -.27411E-05** at limit **
  35  Prefactor     .10000E-03    28.454        .26415E-06** at limit **
  36  norm          3.0455        2.4873       -.14662E-06   -.38322E-04
  37  Normalizat    1.2481        .17182        .17450E-05   -.17535E-03
  38  Prefactor     .76980        .12862       -.23618E-05   -.84393E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100035
  Prefactor  = 0.0001
  norm       = 6.77971
  Prefactor  = 1.19471
  Prefactor  = 8.78348
  norm       = 16.2266
  Prefactor  = 0.687517
  Prefactor  = 0.0001
  norm       = 0.626307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.136076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6263
  norm       = 0.0001
  Prefactor  = 5.03952
  Prefactor  = 0.0001
  Prefactor  = 82.6995
  norm       = 5.35335
  Prefactor  = 7.83548
  Prefactor  = 0.0001
  Prefactor  = 7.64429
  norm       = 4.58736
  Prefactor  = 29.6188
  Prefactor  = 0.0001
  Prefactor  = 4.35555
  norm       = 9.84593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04547
  Normalizat = 1.24806
  Prefactor  = 0.769798
 **********
 **   18 **HESSE 
 **********

 FCN=   10359.48     FROM HESSE     STATUS=OK           902 CALLS     6741 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2941        2.2522        .14666E-03   -1.5405    
   2  Prefactor     .10000E-03    42.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6520        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10004E-03    16.609        .34327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7797        16.055        .15411E-03   -1.5187    
   7  Prefactor     1.1947        3.7965        .34162E-03   -1.5489    
   8  Prefactor     8.7835        25.820        .13523E-03   -1.5115    
   9  norm          16.227        8.1337        .99427E-04   -1.4902    
  10  Prefactor     .68752        20.234        .44642E-02   -1.5542    
  11  Prefactor     .10000E-03    3.0321        .17304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62631        .57704        .72309E-03   -1.5550    
  13  Prefactor     .10000E-03    2.5059        .15657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13608        73.224        .34181E-02   -1.5634    
  16  Prefactor     .10000E-03    2.5116        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1704        .10710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.626        71.768        .88292E-04   -1.4799    
  19  norm          .10000E-03    2.7259        .16311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0395        3.7770        .16440E-03   -1.5259    
  21  Prefactor     .10000E-03    22.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.699        72.092        .44170E-04   -1.3887    
  23  norm          5.3533        2.5790        .10660E-03   -1.5245    
  24  Prefactor     7.8355        9.5119        .14325E-03   -1.5148    
  25  Prefactor     .10000E-03    8.5069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.6443        10.929        .14504E-03   -1.5155    
  27  norm          4.5874        3.9868        .17201E-03   -1.5280    
  28  Prefactor     29.619        16.549        .73618E-04   -1.4619    
  29  Prefactor     .10000E-03    162.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.3556        5.7662        .19296E-03   -1.5291    
  31  norm          9.8459        7.2164        .12771E-03   -1.5080    
  32  Prefactor     .10000E-03    21.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    21.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    28.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          3.0455        2.4765        .13809E-03   -1.5359    
  37  Normalizat    1.2481        .19154        .27035E-03   -.85130    
  38  Prefactor     .76980        .14286        .25783E-03   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30931e-09
Minuit parameter uncertainties:
  1  2.2523
  2  0.000110747
  3  2.30772e-06
  4  0.00152614
  5  0.000139085
  6  16.0654
  7  3.79723
  8  25.8527
  9  8.13423
  10  7.46171
  11  3.52382e-06
  12  0.57705
  13  1.5948e-06
  14  3.61439e-06
  15  6.31862
  16  7.04185e-06
  17  4.91118e-06
  18  72.0706
  19  1.44142e-05
  20  3.77719
  21  4.34353e-05
  22  72.1687
  23  2.57906
  24  9.5137
  25  3.51014e-05
  26  10.9316
  27  3.98704
  28  16.5517
  29  5.50134e-05
  30  5.7669
  31  7.21708
  32  2.19776e-05
  33  3.34955e-05
  34  0.000171032
  35  0.000173068
  36  2.4766
  37  0.191648
  38  0.142931
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.361e-01  6.319e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  7.698e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.248e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 260.662 61.073
Photon Flux Upper Limit: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541587/likelihoodResults_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.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) = 10359.4605195
delta logL = 0.0157476192235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10359.4507092
delta logL = 0.0255579299719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18642       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3488       1.0000          .0000       10.000    
     3 'Normalizat'    1.2388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77394       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10359.45     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      255 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14649        2.5403        .21437E-01    .29859E-02
   2  Index         4.5224        1.7190        .50000        .16159E-04
   3  Normalizat    1.2387        .10839E-01    .61322E-01   -.92889E-06
   4  Prefactor     .77399        .83712E-02    .43377E-01    .19707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.146486
  Index      = 4.52237
  Normalizat = 1.23872
  Prefactor  = 0.773995
 **********
 **   18 **HESSE 
 **********

 FCN=   10359.45     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14649        125.43        .11784E-02   -1.5631    
   2  Index         4.5224        7.1693        .13035E-01   -.95671E-01
   3  Normalizat    1.2387        .91966E-01    .27122E-03   -.85414    
   4  Prefactor     .77399        .70012E-01    .25720E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75593e-06
Minuit parameter uncertainties:
  1  8.58823
  2  39.9676
  3  0.0919778
  4  0.0700195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541587': 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) = 10359.4504973
delta logL = 0.0257698435598

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.465e-01  8.588e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  4.522e+00  3.997e+01  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  7.740e-01  7.002e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.239e+00  9.198e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 260.662 61.073

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/541587/cmap_HighResolution_678153601_678412801_4FGL_J1722.6+6104_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2022-07-02 03:13:40.116378', job_id='541587', GAL2='0.77', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1656756820.12', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.58e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1693' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 03:13:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 541588: <4FGL_J1722.6+6104_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:57 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:38:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:38:52 2022
Terminated at Sat Jul  2 03:13:01 2022
Results reported at Sat Jul  2 03:13:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1693 260.662 61.0734 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1722.6+6104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1986.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             316.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2056 sec.
    Turnaround time :                            11164 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 541587: <4FGL_J1722.6+6104_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:57 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:38:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:38:51 2022
Terminated at Sat Jul  2 03:13:40 2022
Results reported at Sat Jul  2 03:13:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1693 260.662 61.0734 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1722.6+6104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2001.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2089 sec.
    Turnaround time :                            11203 sec.

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

