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


Performing analysis on: 4FGL_J1722.6+6104_monthly_bin169
RA = 260.662, Dec = 61.0734
tmin = 675043201, tmax = 677635201
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='181302', job_status='RUN', time_executed='2022-06-23 02:36:47.818738', time_epoch_executed='1655977007.82' WHERE source_name='4FGL J1722.6+6104' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181302

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181302/ft1_4FGL_J1722.6+6104_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181302/ft1_4FGL_J1722.6+6104_monthly_bin169.fits outfile=/scratch/kocevski/181302/ft1_filteredMKT_4FGL_J1722.6+6104_monthly_bin169.fits ra=260.662 dec=61.0734 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.40
user 27.58
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.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/181302/ft1_filteredMKT_4FGL_J1722.6+6104_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/181302/ft1_filtered_4FGL_J1722.6+6104_monthly_bin169.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.87
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 13372

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181302/ft1_filtered_4FGL_J1722.6+6104_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/181302/ltcube_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.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/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits
.....................!
real 184.88
user 183.40
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181302/ft1_filtered_4FGL_J1722.6+6104_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/181302/ltcube_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.fits outfile=/scratch/kocevski/181302/expmap_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.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/181302/ltcube_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.fits
.....................!
real 192.04
user 186.34
sys 5.33

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/181302/ft1_filtered_4FGL_J1722.6+6104_monthly_bin169.fits scfile=/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits outfile=/scratch/kocevski/181302/cmap_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.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.80
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181302/ft1_filtered_4FGL_J1722.6+6104_monthly_bin169.fits scfile=/scratch/kocevski/181302/ft2_4FGL_J1722.6+6104_monthly_bin169.fits outfile=/scratch/kocevski/181302/cmap_HighResolution_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.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.80
user 0.63
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .95640E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2896       1.0000         .10000E-03   10000.    
     4 'norm      '    .28021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76588E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .45649       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30944E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16771E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82924       1.0000         .10000E-03   10000.    
    12 'norm      '    .59362E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37429E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1281       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.881       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9983       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0023       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39239       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21628E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.8920       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7486       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17452E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.0497       1.0000         .10000E-03   10000.    
    31 'norm      '    7.1316       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.8713       1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.2594       1.0000         .10000E-03   10000.    
    35 'Prefactor '    5.1899       1.0000         .10000E-03   10000.    
    36 'norm      '    1.6346       1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.0425       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.0338       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   138893.8     FROM MIGRAD    STATUS=CONVERGED   1261 CALLS     5351 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5878        .54176         .0000       -.14623E-03
   2  Prefactor     .10003E-03    2.8194         .0000    ** at limit **
   3  Prefactor     2.2912        1.5580         .0000        .47548E-02
   4  norm          .27673        .57930         .0000        .11094E-01
   5  Prefactor     .10000E-03    1.3233         .0000    ** at limit **
   6  norm          .44962        1.2277         .0000        .58613E-02
   7  Prefactor     .36090E-01    .28881         .0000        .30509E-02
   8  Prefactor     .10000E-03    1.0541         .0000    ** at limit **
   9  norm          4.8384        1.7771         .0000        .74908E-01
  10  Prefactor     1.1372        1.2391         .0000        .11422E-01
  11  Prefactor     .83912        1.3546         .0000        .56892E-02
  12  norm          .59347E-01    .72231E-01     .0000        .55679E-01
  13  Prefactor     .10000E-03    .51898         .0000    ** at limit **
  14  Prefactor     .38806        .80307         .0000        .62497E-02
  15  Prefactor     .10000E-03    .41226         .0000    ** at limit **
  16  Prefactor     2.7530        1.6888         .0000        .12910    
  17  Prefactor     2.4321        .63874         .0000       -.64896E-04
  18  Prefactor     .10008E-03    2.2806         .0000    ** at limit **
  19  norm          .10000E-03    .15698         .0000    ** at limit **
  20  Prefactor     4.1269        1.0459         .0000        .10342E-03
  21  Prefactor     13.112        8.0828         .0000        .10874E-02
  22  Prefactor     15.782        12.860         .0000        .33302E-03
  23  norm          2.9983        .56073         .0000        .21935E-02
  24  Prefactor     5.0012        3.0125         .0000        .46399E-03
  25  Prefactor     .38955        .70911         .0000        .47914E-02
  26  Prefactor     .10000E-03    .56732         .0000    ** at limit **
  27  norm          4.8915        1.0720         .0000        .15154E-02
  28  Prefactor     4.7454        3.1578         .0000        .63238E-03
  29  Prefactor     .10000E-03    7.0138         .0000    ** at limit **
  30  Prefactor     3.0510        1.3855         .0000        .24452    
  31  norm          7.1315        1.7680         .0000        .47009E-01
  32  Prefactor     1.8703        2.6679         .0000        .20777E-02
  33  Prefactor     10.523        3.4949         .0000        .13997E-01
  34  Prefactor     2.2618        3.6624         .0000        .54058E-01
  35  Prefactor     5.1392        13.336         .0000       -.66856E-03
  36  norm          1.6346        .57758         .0000        .73252E-02
  37  Normalizat    1.0425        .47161E-01     .0000       -.10761E-03
  38  Prefactor     1.0338        .34960E-01     .0000       -.25122E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58784
  Prefactor  = 0.000100027
  Prefactor  = 2.29121
  norm       = 0.276733
  Prefactor  = 0.000100001
  norm       = 0.449625
  Prefactor  = 0.0360904
  Prefactor  = 0.0001
  norm       = 4.83842
  Prefactor  = 1.13717
  Prefactor  = 0.839119
  norm       = 0.0593469
  Prefactor  = 0.0001
  Prefactor  = 0.38806
  Prefactor  = 0.0001
  Prefactor  = 2.75298
  Prefactor  = 2.43207
  Prefactor  = 0.000100083
  norm       = 0.0001
  Prefactor  = 4.12688
  Prefactor  = 13.1117
  Prefactor  = 15.7823
  norm       = 2.9983
  Prefactor  = 5.00121
  Prefactor  = 0.389546
  Prefactor  = 0.0001
  norm       = 4.89154
  Prefactor  = 4.74543
  Prefactor  = 0.0001
  Prefactor  = 3.05103
  norm       = 7.13147
  Prefactor  = 1.87033
  Prefactor  = 10.5227
  Prefactor  = 2.26178
  Prefactor  = 5.13921
  norm       = 1.63458
  Normalizat = 1.04248
  Prefactor  = 1.03378
 **********
 **   18 **HESSE 
 **********

 FCN=   138893.8     FROM HESSE     STATUS=OK           986 CALLS     6337 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5878        .54099        .15554E-03   -1.5456    
   2  Prefactor     .10003E-03    2.7560        .22022       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2912        1.5710        .27129E-03   -1.5405    
   4  norm          .27673        1.5845        .36802E-02   -1.5603    
   5  Prefactor     .10000E-03    1.4198        .14109       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44962        6.4386        .66012E-02   -1.5574    
   7  Prefactor     .36090E-01    .41485        .54905E-01   -1.5670    
   8  Prefactor     .10000E-03    1.0733        .14075       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8384        1.7755        .91440E-03   -1.5268    
  10  Prefactor     1.1372        1.2096        .42012E-03   -1.5495    
  11  Prefactor     .83912        3.2294        .51296E-02   -1.5525    
  12  norm          .59347E-01    .95162E-01    .10037E-02   -1.5659    
  13  Prefactor     .10000E-03    .54036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38806        3.0794        .43975E-02   -1.5583    
  15  Prefactor     .10000E-03    .42496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7530        1.6813        .12267E-02   -1.5376    
  17  Prefactor     2.4321        .63794        .14822E-03   -1.5396    
  18  Prefactor     .10008E-03    2.1615        .17787       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .36850        .28524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1269        1.0406        .19840E-04   -1.5302    
  21  Prefactor     13.112        8.0801        .55462E-03   -1.4984    
  22  Prefactor     15.782        12.852        .10050E-03   -1.4913    
  23  norm          2.9983        .55922        .11441E-03   -1.5362    
  24  Prefactor     5.0012        3.0103        .17980E-03   -1.5261    
  25  Prefactor     .38955        3.3829        .39671E-02   -1.5583    
  26  Prefactor     .10000E-03    .55333        .93075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.8915        1.0684        .90929E-04   -1.5266    
  28  Prefactor     4.7454        3.1546        .18464E-03   -1.5272    
  29  Prefactor     .10000E-03    7.0277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.0510        1.3664        .11616E-02   -1.5359    
  31  norm          7.1315        1.7668        .75105E-03   -1.5174    
  32  Prefactor     1.8703        2.6487        .30446E-03   -1.5434    
  33  Prefactor     10.523        3.4898        .61761E-03   -1.5059    
  34  Prefactor     2.2618        3.5915        .13665E-02   -1.5407    
  35  Prefactor     5.1392        13.330        .17646E-03   -1.5255    
  36  norm          1.6346        .56782        .15473E-03   -1.5452    
  37  Normalizat    1.0425        .55784E-01    .29411E-03   -.91621    
  38  Prefactor     1.0338        .41471E-01    .23286E-03   -.91612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57911e-06
Minuit parameter uncertainties:
  1  0.54099
  2  0.000549595
  3  1.57106
  4  1.32416
  5  6.44807e-05
  6  3.40296
  7  0.244384
  8  5.27846e-06
  9  1.77549
  10  1.2096
  11  3.23011
  12  0.0951622
  13  7.07805e-08
  14  2.1862
  15  3.81754e-07
  16  1.68132
  17  0.637939
  18  0.000847939
  19  1.10716e-07
  20  1.04059
  21  8.08078
  22  12.8547
  23  0.559218
  24  3.01039
  25  2.29578
  26  4.14276e-08
  27  1.0684
  28  3.15473
  29  1.16174e-05
  30  1.36639
  31  1.76681
  32  2.64883
  33  3.48992
  34  3.59181
  35  13.3376
  36  0.567818
  37  0.0557874
  38  0.0414718
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  3.818e-07  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:  1.034e+00  4.147e-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.042e+00  5.579e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/181302/likelihoodResults_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.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) = 138893.768937
delta logL = -0.0112389123824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 138893.7577
delta logL = -1.83653901331e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8325       1.0000          .0000       10.000    
     3 'Normalizat'    1.0426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0338       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=   138893.8     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7843        .90712E-02** at limit **
   2  Index         2.4499        8.7744        .50000       -.13759E-05
   3  Normalizat    1.0425        .31859E-02    .66486E-01    .57532E-03
   4  Prefactor     1.0338        .25251E-02    .40973E-01    .41570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44992
  Normalizat = 1.04248
  Prefactor  = 1.03378
 **********
 **   18 **HESSE 
 **********

 FCN=   138893.8     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4499        6.0680        .50000       -.53520    
   3  Normalizat    1.0425        .31365E-01    .29411E-03   -.91621    
   4  Prefactor     1.0338        .24879E-01    .23286E-03   -.91612    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02602e-08
Minuit parameter uncertainties:
  1  8.22084e-06
  2  516.356
  3  0.0313654
  4  0.0248795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181302': 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) = 138893.757686
delta logL = 1.1837342754e-05

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  8.221e-06  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.450e+00  5.164e+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:  1.034e+00  2.488e-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.042e+00  3.137e-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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/181302/cmap_HighResolution_675043201_677635201_4FGL_J1722.6+6104_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-04', job_status='DONE', photon_flux_upper_limit='1.07e-08', time_completed='2022-06-23 08:43:00.941836', job_id='181302', GAL2='1.03', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1655998980.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.18e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='169' AND source_name='4FGL J1722.6+6104' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 08:43:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 181302: <4FGL_J1722.6+6104_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1722.6+6104_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 02:35:25 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:35:31 2022
Terminated at Thu Jun 23 08:43:03 2022
Results reported at Thu Jun 23 08:43:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_monthly_bin169 260.662 61.0734 675043201 677635201 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 :                                   21912.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             519.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   22051 sec.
    Turnaround time :                            22058 sec.

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

