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


Performing analysis on: 4FGL_J1722.6+6104_monthly_bin170
RA = 260.662, Dec = 61.0734
tmin = 677635201, tmax = 680227201
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='110350', job_status='RUN', time_executed='2022-07-23 02:16:38.877863', time_epoch_executed='1658567798.88' WHERE source_name='4FGL J1722.6+6104' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110350

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110350/ft1_4FGL_J1722.6+6104_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110350/ft1_4FGL_J1722.6+6104_monthly_bin170.fits outfile=/scratch/kocevski/110350/ft1_filteredMKT_4FGL_J1722.6+6104_monthly_bin170.fits ra=260.662 dec=61.0734 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.22
user 31.35
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.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/110350/ft1_filteredMKT_4FGL_J1722.6+6104_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/110350/ft1_filtered_4FGL_J1722.6+6104_monthly_bin170.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.83
user 0.64
sys 0.18

Number of photons that the gtmktime cut: 10191

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110350/ft1_filtered_4FGL_J1722.6+6104_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/110350/ltcube_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.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/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits
.....................!
real 110.80
user 110.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110350/ft1_filtered_4FGL_J1722.6+6104_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/110350/ltcube_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.fits outfile=/scratch/kocevski/110350/expmap_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.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/110350/ltcube_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.fits
.....................!
real 190.81
user 186.30
sys 4.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/110350/ft1_filtered_4FGL_J1722.6+6104_monthly_bin170.fits scfile=/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits outfile=/scratch/kocevski/110350/cmap_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110350/ft1_filtered_4FGL_J1722.6+6104_monthly_bin170.fits scfile=/scratch/kocevski/110350/ft2_4FGL_J1722.6+6104_monthly_bin170.fits outfile=/scratch/kocevski/110350/cmap_HighResolution_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.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.78
user 0.61
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6737       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15614E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23979       1.0000         .10000E-03   10000.    
    12 'norm      '    .19924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0320       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17716E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4675       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6796       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9840       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9291       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2715       1.0000         .10000E-03   10000.    
    27 'norm      '    2.7537       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.4735       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.9384       1.0000         .10000E-03   10000.    
    31 'norm      '    7.1728       1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.6074       1.0000         .10000E-03   10000.    
    33 'Prefactor '    6.3720       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    5.3391       1.0000         .10000E-03   10000.    
    37 'Normalizat'    .98870       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.0483       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=   104968.9     FROM MIGRAD    STATUS=CONVERGED   1128 CALLS     5098 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1632        .82148        .10455E-07    .29260E-04
   2  Prefactor     .10000E-03    7.5288       -.12162E-05** at limit **
   3  Prefactor     .10000E-03    .80764        .17851E-08** at limit **
   4  norm          3.6740        1.7419       -.42698E-07   -.26035E-04
   5  Prefactor     .10000E-03    3.2499       -.22352E-06** at limit **
   6  norm          .10000E-03    1.8095       -.18566E-08** at limit **
   7  Prefactor     .10000E-03    .32529        .11940E-07** at limit **
   8  Prefactor     .10000E-03    7.8930       -.12280E-05** at limit **
   9  norm          22.573        2.9678       -.45249E-08   -.18082E-03
  10  Prefactor     4.7099        2.2004        .10178E-07   -.22880E-03
  11  Prefactor     .23797        .92778       -.68237E-08    .22016E-05
  12  norm          .19925        .14470        .14134E-07    .13330E-02
  13  Prefactor     .10000E-03    .28379        .10219E-06** at limit **
  14  Prefactor     .10000E-03    .77690       -.32156E-06** at limit **
  15  Prefactor     1.0369        1.7516       -.12555E-06   -.39840E-03
  16  Prefactor     2.6910        1.7564        .17367E-07   -.90285E-05
  17  Prefactor     1.1690        .62010       -.15022E-08   -.38725E-04
  18  Prefactor     .10000E-03    6.2049        .26030E-06** at limit **
  19  norm          .10000E-03    .31892       -.22804E-07** at limit **
  20  Prefactor     2.4676        1.1424        .36445E-08   -.13396E-03
  21  Prefactor     .10000E-03    6.3224        .14120E-05** at limit **
  22  Prefactor     3.6698        22.829       -.43605E-05   -.53685E-05
  23  norm          2.9840        .66536        .24506E-08    .26510E-03
  24  Prefactor     8.9290        4.0947        .12673E-07    .27045E-05
  25  Prefactor     .10000E-03    1.4315        .47618E-07** at limit **
  26  Prefactor     5.2715        3.2978       -.73058E-07   -.86183E-05
  27  norm          2.7537        1.0503       -.12726E-07    .89954E-04
  28  Prefactor     7.4735        3.8408        .26772E-07   -.32657E-05
  29  Prefactor     .10000E-03    8.6752        .15629E-05** at limit **
  30  Prefactor     5.9386        1.1032        .26415E-07   -.64465E-03
  31  norm          7.1729        2.0366       -.91307E-08   -.61287E-05
  32  Prefactor     7.6074        5.0041       -.77661E-08   -.29012E-06
  33  Prefactor     6.3721        2.9343       -.28840E-07   -.60253E-05
  34  Prefactor     .10000E-03    1.5096       -.36896E-08** at limit **
  35  Prefactor     .10000E-03    7.2187       -.55830E-06** at limit **
  36  norm          5.3392        .92578       -.56175E-08    .90735E-05
  37  Normalizat    .98868        .53545E-01    .63778E-07    .45214E-04
  38  Prefactor     1.0484        .40758E-01    .19164E-07    .12553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.573
  Prefactor  = 4.70985
  Prefactor  = 0.237975
  norm       = 0.199252
  Prefactor  = 0.000100004
  Prefactor  = 0.000100005
  Prefactor  = 1.03689
  Prefactor  = 2.69099
  Prefactor  = 1.16903
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 2.4676
  Prefactor  = 0.0001
  Prefactor  = 3.66979
  norm       = 2.98402
  Prefactor  = 8.929
  Prefactor  = 0.0001
  Prefactor  = 5.27151
  norm       = 2.75374
  Prefactor  = 7.47351
  Prefactor  = 0.0001
  Prefactor  = 5.93856
  norm       = 7.17289
  Prefactor  = 7.60738
  Prefactor  = 6.37206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33916
  Normalizat = 0.988684
  Prefactor  = 1.04835
 **********
 **   18 **HESSE 
 **********

 FCN=   104968.9     FROM HESSE     STATUS=OK           936 CALLS     6034 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1632        .82119        .17599E-03   -1.5414    
   2  Prefactor     .10000E-03    7.5413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .82665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6740        1.7422        .21073E-03   -1.5325    
   5  Prefactor     .10000E-03    3.2722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .39541        .55967E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.573        2.9617        .42153E-03   -1.4757    
  10  Prefactor     4.7099        2.4141        .92709E-03   -1.5274    
  11  Prefactor     .23797        .96528        .95699E-01   -1.5610    
  12  norm          .19925        .13397        .93808E-04   -1.5619    
  13  Prefactor     .10000E-03    3.7337        .31497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0610        .50371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0369        1.8264        .45853E-03   -1.5504    
  16  Prefactor     2.6910        1.7412        .24835E-03   -1.5380    
  17  Prefactor     1.1690        .61772        .18066E-03   -1.5492    
  18  Prefactor     .10000E-03    5.1508        .18639       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .32476        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4676        1.1446        .22599E-03   -1.5394    
  21  Prefactor     .10000E-03    6.3565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6698        22.805        .21056E-03   -1.5325    
  23  norm          2.9840        .66298        .11795E-03   -1.5362    
  24  Prefactor     8.9290        4.0938        .13413E-03   -1.5110    
  25  Prefactor     .10000E-03    1.4820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.2715        3.2953        .17506E-03   -1.5249    
  27  norm          2.7537        1.0600        .24530E-04   -1.5376    
  28  Prefactor     7.4735        3.8402        .14670E-03   -1.5161    
  29  Prefactor     .10000E-03    8.6776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.9386        1.7349        .82391E-03   -1.5221    
  31  norm          7.1729        2.0368        .14977E-03   -1.5172    
  32  Prefactor     7.6074        5.0041        .14540E-03   -1.5156    
  33  Prefactor     6.3721        2.9337        .15901E-03   -1.5203    
  34  Prefactor     .10000E-03    1.5226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    7.2340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          5.3392        .92623        .12451E-03   -1.5246    
  37  Normalizat    .98868        .63326E-01    .30346E-03   -.93410    
  38  Prefactor     1.0484        .47911E-01    .23390E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48213e-09
Minuit parameter uncertainties:
  1  0.821194
  2  5.07426e-07
  3  3.85232e-07
  4  1.74222
  5  6.06054e-08
  6  4.04469e-07
  7  2.1898e-05
  8  3.76345e-06
  9  2.96173
  10  2.41413
  11  0.958391
  12  0.133967
  13  0.000247828
  14  0.000271373
  15  1.8265
  16  1.74128
  17  0.617727
  18  0.000225498
  19  4.48531e-08
  20  1.14465
  21  1.62141e-06
  22  18.3064
  23  0.662979
  24  4.0939
  25  3.00449e-07
  26  3.29539
  27  1.05996
  28  3.84029
  29  2.32634e-06
  30  1.73489
  31  2.03678
  32  5.00436
  33  2.93372
  34  5.98356e-07
  35  2.71785e-08
  36  0.926237
  37  0.0633313
  38  0.0479133
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.037e+00  1.827e+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:  1.048e+00  4.791e-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:  9.887e-01  6.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/110350/likelihoodResults_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 104968.783988
delta logL = 0.1037126023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 104968.766283
delta logL = 0.121417445989

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   104968.8     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      275 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75108        2.8387        .30958E-03    .96232E-03
   2  Index         3.4468        2.6675        .13397E-01    .22484E-04
   3  Normalizat    .98370        .60744E-01    .30416E-03   -.89706E-05
   4  Prefactor     1.0509        .47501E-01    .23365E-03   -.85638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.751085
  Index      = 3.44683
  Normalizat = 0.983699
  Prefactor  = 1.05094
 **********
 **   18 **HESSE 
 **********

 FCN=   104968.8     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75108        1.5063        .61916E-04   -1.5535    
   2  Index         3.4468        1.4759        .53588E-03   -.31586    
   3  Normalizat    .98370        .60645E-01    .12166E-04   -.93579    
   4  Prefactor     1.0509        .47241E-01    .93458E-05   -.91050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3715e-13
Minuit parameter uncertainties:
  1  1.50636
  2  1.50072
  3  0.0606496
  4  0.0472427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110350': 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) = 104968.766283
delta logL = 0.121417711591

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  7.511e-01  1.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  3.447e+00  1.501e+00  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.051e+00  4.724e-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:  9.837e-01  6.065e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/110350/cmap_HighResolution_677635201_680227201_4FGL_J1722.6+6104_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-03', job_status='DONE', photon_flux_upper_limit='2.54e-08', time_completed='2022-07-23 06:43:34.745095', job_id='110350', GAL2='1.05', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1658583814.75', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.21e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='170' AND source_name='4FGL J1722.6+6104' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:43:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 110350: <4FGL_J1722.6+6104_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1722.6+6104_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:15:29 2022
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:15:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:15:30 2022
Terminated at Sat Jul 23 06:43:36 2022
Results reported at Sat Jul 23 06:43:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_monthly_bin170 260.662 61.0734 677635201 680227201 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 :                                   15977.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             468.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16085 sec.
    Turnaround time :                            16087 sec.

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

