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


Performing analysis on: 4FGL_J1722.6+6104_daily_bin1667
RA = 260.662, Dec = 61.0734
tmin = 671414401, tmax = 671673601
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='478412', job_status='RUN', time_executed='2022-04-15 03:32:31.894529', time_epoch_executed='1650018751.89' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478412/ft1_4FGL_J1722.6+6104_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478412/ft1_4FGL_J1722.6+6104_daily_bin1667.fits outfile=/scratch/kocevski/478412/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1667.fits ra=260.662 dec=61.0734 rad=12.0 tmin=671414401.0 tmax=671673601.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 3.57
user 3.30
sys 0.23

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

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

Number of photons that the gtmktime cut: 965

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478412/ltcube_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.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/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits
.....................!
real 13.31
user 12.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478412/ltcube_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits outfile=/scratch/kocevski/478412/expmap_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.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/478412/ltcube_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits
.....................!
real 197.78
user 192.42
sys 4.99

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/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits scfile=/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits outfile=/scratch/kocevski/478412/cmap_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits scfile=/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits outfile=/scratch/kocevski/478412/cmap_HighResolution_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478412/Model_4FGL_J1722.6+6104_daily_bin1667.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/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits.....................!
real 89.01
user 87.63
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits', '/scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits', expMap='/scratch/kocevski/478412/expmap_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits', expCube='/scratch/kocevski/478412/ltcube_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478412/Model_4FGL_J1722.6+6104_daily_bin1667.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/478412/ft1_filtered_4FGL_J1722.6+6104_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478412/ft2_4FGL_J1722.6+6104_daily_bin1667.fits
Exposure map: /scratch/kocevski/478412/expmap_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478412/ltcube_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478412/Model_4FGL_J1722.6+6104_daily_bin1667.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) = 9948.21539132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0827       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.361       1.0000         .10000E-03   10000.    
     6 'norm      '    44.647       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6503       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.211       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7648       1.0000         .10000E-03   10000.    
    23 'norm      '    3.4483       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3605       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.374       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.959       1.0000         .10000E-03   10000.    
    27 'norm      '    9.8480       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.5117       1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.167       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    31 'norm      '    5.2753       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.7529       1.0000         .10000E-03   10000.    
    34 'Prefactor '    31.103       1.0000         .10000E-03   10000.    
    35 'Prefactor '    4.4627       1.0000         .10000E-03   10000.    
    36 'norm      '    .12135E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .83633       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=   9948.191     FROM MIGRAD    STATUS=CONVERGED   1086 CALLS     5806 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0824        3.2624        .23235E-07   -.83851E-04
   2  Prefactor     .10000E-03    43.086        .31707E-06** at limit **
   3  Prefactor     .10000E-03    2.2686       -.97728E-07** at limit **
   4  norm          .10000E-03    2.0705       -.44893E-07** at limit **
   5  Prefactor     13.356        23.223        .55162E-06   -.57648E-05
   6  norm          44.644        21.259        .16306E-06   -.29225E-04
   7  Prefactor     8.9865        6.5749        .67556E-06   -.36497E-04
   8  Prefactor     .10000E-03    12.274        .89628E-06** at limit **
   9  norm          .10000E-03    2.3657        .82407E-07** at limit **
  10  Prefactor     .10000E-03    6.1901        .11031E-06** at limit **
  11  Prefactor     .10000E-03    4.3781       -.92769E-07** at limit **
  12  norm          .23144        .47330       -.10951E-06   -.22192E-03
  13  Prefactor     2.9797        6.3816        .42310E-05   -.24459E-03
  14  Prefactor     .10000E-03    3.8941        .72102E-07** at limit **
  15  Prefactor     .10000E-03    2.8226        .30458E-08** at limit **
  16  Prefactor     2.6503        4.8940        .24593E-06    .20439E-04
  17  Prefactor     .10000E-03    1.2393        .15525E-07** at limit **
  18  Prefactor     25.211        28.443        .34012E-07    .44325E-05
  19  norm          2.2868        3.2402        .10733E-05    .11765E-03
  20  Prefactor     .10000E-03    2.0654        .11841E-05** at limit **
  21  Prefactor     .10000E-03    19.524       -.57077E-06** at limit **
  22  Prefactor     7.7647        141.21        .17773E-05    .39503E-05
  23  norm          3.4483        2.0177       -.65681E-07   -.14820E-03
  24  Prefactor     5.3598        13.533        .13745E-05    .23045E-04
  25  Prefactor     10.372        10.705        .76326E-06    .16187E-05
  26  Prefactor     17.959        15.586        .34154E-06    .57298E-04
  27  norm          9.8479        5.0983        .39250E-06   -.59949E-04
  28  Prefactor     7.5121        11.730        .54790E-07   -.82204E-05
  29  Prefactor     12.158        116.39        .23136E-05    .15829E-05
  30  Prefactor     13.426        8.4875       -.11293E-06   -.10987E-03
  31  norm          5.2744        7.1954        .34042E-06    .66541E-04
  32  Prefactor     .10000E-03    9.8469       -.71305E-06** at limit **
  33  Prefactor     2.7544        21.554        .94704E-06    .10163E-04
  34  Prefactor     31.103        22.247        .16681E-06   -.61533E-04
  35  Prefactor     4.4761        105.52       -.30551E-05   -.11082E-04
  36  norm          .10000E-03    1.9065        .56882E-06** at limit **
  37  Normalizat    1.0991        .17463       -.12341E-05   -.47783E-04
  38  Prefactor     .83617        .12679       -.52061E-06   -.31775E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.08239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3564
  norm       = 44.6436
  Prefactor  = 8.98649
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.231437
  Prefactor  = 2.97967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65027
  Prefactor  = 0.0001
  Prefactor  = 25.2107
  norm       = 2.28683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76466
  norm       = 3.44833
  Prefactor  = 5.35978
  Prefactor  = 10.3718
  Prefactor  = 17.9585
  norm       = 9.84793
  Prefactor  = 7.5121
  Prefactor  = 12.1582
  Prefactor  = 13.4257
  norm       = 5.27438
  Prefactor  = 0.0001
  Prefactor  = 2.75436
  Prefactor  = 31.1029
  Prefactor  = 4.47609
  norm       = 0.0001
  Normalizat = 1.09907
  Prefactor  = 0.836169
 **********
 **   18 **HESSE 
 **********

 FCN=   9948.191     FROM HESSE     STATUS=OK           902 CALLS     6708 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0824        3.2634        .14033E-03   -1.5257    
   2  Prefactor     .10000E-03    43.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2727        .14672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0894        .14014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.356        23.241        .10958E-03   -1.4977    
   6  norm          44.644        21.258        .60002E-04   -1.4371    
   7  Prefactor     8.9865        6.6374        .66841E-03   -1.5108    
   8  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3741        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .23144        .45140        .90499E-04   -1.5612    
  13  Prefactor     2.9797        6.4809        .11755E-02   -1.5363    
  14  Prefactor     .10000E-03    3.9033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8600        .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6503        4.8690        .25041E-03   -1.5382    
  17  Prefactor     .10000E-03    1.2587        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.211        28.436        .79781E-04   -1.4703    
  19  norm          2.2868        3.2062        .10328E-02   -1.5406    
  20  Prefactor     .10000E-03    4.3104        .26988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7647        140.88        .14390E-03   -1.5151    
  23  norm          3.4483        2.0170        .51820E-03   -1.5337    
  24  Prefactor     5.3598        13.508        .86788E-03   -1.5245    
  25  Prefactor     10.372        10.713        .62199E-03   -1.5064    
  26  Prefactor     17.959        15.570        .94509E-04   -1.4860    
  27  norm          9.8479        5.0902        .63846E-03   -1.5080    
  28  Prefactor     7.5121        11.724        .14633E-03   -1.5160    
  29  Prefactor     12.158        116.91        .11484E-03   -1.5010    
  30  Prefactor     13.426        8.4699        .10932E-03   -1.4975    
  31  norm          5.2744        7.1850        .17500E-03   -1.5249    
  32  Prefactor     .10000E-03    9.8498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.7544        21.465        .24535E-03   -1.5376    
  34  Prefactor     31.103        22.122        .71844E-04   -1.4592    
  35  Prefactor     4.4761        105.55        .19061E-03   -1.5285    
  36  norm          .10000E-03    1.9862        .26943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    1.0991        .20734        .28778E-03   -.89782    
  38  Prefactor     .83617        .15092        .24966E-03   -.98409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38874e-10
Minuit parameter uncertainties:
  1  3.26356
  2  2.81807e-06
  3  2.36172e-06
  4  6.4498e-06
  5  23.257
  6  21.2615
  7  6.63795
  8  9.03839e-06
  9  3.44167e-07
  10  1.28945e-05
  11  1.3354e-06
  12  0.451409
  13  6.48239
  14  1.21017e-05
  15  4.21215e-06
  16  4.86977
  17  8.54299e-07
  18  28.4508
  19  3.20644
  20  8.78155e-05
  21  1.3507e-06
  22  66.3295
  23  2.017
  24  13.5161
  25  10.7151
  26  15.5735
  27  5.09043
  28  11.7272
  29  75.5967
  30  8.4707
  31  7.1862
  32  5.48268e-06
  33  15.3856
  34  22.128
  35  43.5591
  36  5.52815e-05
  37  0.207497
  38  0.150998
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  4.212e-06  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:  8.362e-01  1.510e-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.099e+00  2.075e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478412/likelihoodResults_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.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) = 9948.19292276
delta logL = -0.00166575189542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9948.19125701
delta logL = -5.11317921337e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8296       1.0000          .0000       10.000    
     3 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83623       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9948.191     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      261 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.495        .16493E-01** at limit **
   2  Index         2.1313        5.3242        .50000       -.16362E-06
   3  Normalizat    1.0991        .11821E-01    .28778E-03    .17793E-03
   4  Prefactor     .83617        .91240E-02    .24966E-03    .22987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13132
  Normalizat = 1.09907
  Prefactor  = 0.836171
 **********
 **   18 **HESSE 
 **********

 FCN=   9948.191     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4726        .37065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1313        8.3545        .50000       -.61106    
   3  Normalizat    1.0991        .18804        .11511E-04   -.89782    
   4  Prefactor     .83617        .14516        .99863E-05   -.98408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12701e-11
Minuit parameter uncertainties:
  1  1.15744e-05
  2  122.566
  3  0.188154
  4  0.145222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478412': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9948.19125293
delta logL = 4.07835614169e-06

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  1.157e-05  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.131e+00  1.226e+02  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:  8.362e-01  1.452e-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.099e+00  1.882e-01  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/478412/cmap_HighResolution_671414401_671673601_4FGL_J1722.6+6104_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2022-04-15 04:03:30.732744', job_id='478412', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1650020610.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1667' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 04:03:30 PDT 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 478416: <4FGL_J1722.6+6104_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:49 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:24 2022
Terminated at Fri Apr 15 04:03:27 2022
Results reported at Fri Apr 15 04:03:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1667 260.662 61.0734 671414401 671673601 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 :                                   1882.03 sec.
    Max Memory :                                 813 MB
    Average Memory :                             324.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1923 sec.
    Turnaround time :                            14138 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 478412: <4FGL_J1722.6+6104_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:49 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:21 2022
Terminated at Fri Apr 15 04:03:31 2022
Results reported at Fri Apr 15 04:03:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1667 260.662 61.0734 671414401 671673601 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 :                                   1859.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1930 sec.
    Turnaround time :                            14142 sec.

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

