/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7648
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1258
RA = 260.686, Dec = 10.2346
tmin = 565401601, tmax = 565660801
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='644739', job_status='RUN', time_executed='2021-09-17 07:16:45.097514', time_epoch_executed='1631888205.1' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644739/ft1_4FGL_J1722.7+1014_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644739/ft1_4FGL_J1722.7+1014_daily_bin1258.fits outfile=/scratch/kocevski/644739/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1258.fits ra=260.686 dec=10.2346 rad=12.0 tmin=565401601.0 tmax=565660801.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.59
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.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/644739/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1258.fits evtable="EVENTS" outfile="/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/644739/ltcube_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.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/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/644739/ltcube_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits outfile=/scratch/kocevski/644739/expmap_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.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/644739/ltcube_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits
.....................!
real 191.58
user 186.06
sys 5.19

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 179 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1722.7+1014 @ 260.686 10.2346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits outfile=/scratch/kocevski/644739/cmap_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.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.686 yref=10.2346 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits outfile=/scratch/kocevski/644739/cmap_HighResolution_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.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.686 yref=10.2346 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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644739/Model_4FGL_J1722.7+1014_daily_bin1258.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits.....................!
real 90.48
user 88.98
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits', '/scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits', expMap='/scratch/kocevski/644739/expmap_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits', expCube='/scratch/kocevski/644739/ltcube_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644739/Model_4FGL_J1722.7+1014_daily_bin1258.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1722.7+1014'

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  5.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.209e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/644739/ft1_filtered_4FGL_J1722.7+1014_daily_bin1258.fits
Spacecraft file(s): /scratch/kocevski/644739/ft2_4FGL_J1722.7+1014_daily_bin1258.fits
Exposure map: /scratch/kocevski/644739/expmap_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits
Exposure cube: /scratch/kocevski/644739/ltcube_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644739/Model_4FGL_J1722.7+1014_daily_bin1258.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) = 10705.7076156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.431       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0063       1.0000         .10000E-03   10000.    
     9 'norm      '    .36527E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    112.46       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28761       1.0000         .10000E-03   10000.    
    12 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1551       1.0000         .10000E-03   10000.    
    14 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13408E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3115       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5611       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10705.71     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     2357 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6918        .34584E-07** at limit **
   2  Prefactor     2.0700        4.2866        .12368E-06   -.35050E-03
   3  Prefactor     .10000E-03    15.753       -.65640E-07** at limit **
   4  Prefactor     .10000E-03    3.5359       -.44773E-07** at limit **
   5  Prefactor     4.7364        8.2667        .41931E-05   -.30565E-03
   6  Prefactor     38.348        239.33       -.14432E-04   -.53246E-04
   7  norm          .10000E-03    1.4664        .56850E-07** at limit **
   8  Prefactor     1.0077        7.1001        .47814E-06   -.12896E-03
   9  norm          .10000E-03    6.3510       -.20733E-06** at limit **
  10  Prefactor     112.42        74.692       -.35639E-05   -.26466E-03
  11  Prefactor     .28534        1.6134        .41810E-06   -.48504E-03
  12  norm          .10000E-03    11.535       -.56894E-06** at limit **
  13  norm          1.1559        3.1945        .13911E-05   -.12499E-03
  14  norm          .10000E-03    9.4814       -.92375E-06** at limit **
  15  norm          .10000E-03    83.355        .86825E-07** at limit **
  16  norm          1.3116        .92056        .82219E-07   -.86642E-04
  17  Normalizat    1.5611        .27424       -.77436E-06   -.78287E-04
  18  Prefactor     .92321        .74409E-01   -.17864E-07   -.26064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.06996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73645
  Prefactor  = 38.3483
  norm       = 0.0001
  Prefactor  = 1.00768
  norm       = 0.000100003
  Prefactor  = 112.419
  Prefactor  = 0.28534
  norm       = 0.0001
  norm       = 1.15588
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.31159
  Normalizat = 1.56115
  Prefactor  = 0.923206
 **********
 **   18 **HESSE 
 **********

 FCN=   10705.71     FROM HESSE     STATUS=OK           248 CALLS     2605 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7240        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0700        4.3102        .28719E-03   -1.5420    
   3  Prefactor     .10000E-03    15.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7364        8.3920        .92431E-03   -1.5273    
   6  Prefactor     38.348        252.61        .64653E-04   -1.4469    
   7  norm          .10000E-03    1.5086        .24460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0077        23.955        .50997E-02   -1.5507    
   9  norm          .10000E-03    35.509        .46035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     112.42        76.732        .18967E-03   -1.3583    
  11  Prefactor     .28534        2.7682        .22411E-02   -1.5601    
  12  norm          .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1559        3.1968        .29732E-03   -1.5493    
  14  norm          .10000E-03    9.5408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    83.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3116        .90921        .79339E-04   -1.5479    
  17  Normalizat    1.5611        .31751        .43986E-03   -.76074    
  18  Prefactor     .92321        .86899E-01    .14996E-03   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02596e-07
Minuit parameter uncertainties:
  1  3.87671e-06
  2  4.31083
  3  1.31746e-05
  4  3.00447e-06
  5  8.39413
  6  198.074
  7  3.29952e-06
  8  9.83015
  9  0.000657577
  10  76.7995
  11  1.7773
  12  6.98245e-05
  13  3.19724
  14  6.37408e-05
  15  2.44042e-05
  16  0.90922
  17  0.317917
  18  0.0869126
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.008e+00  9.830e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.209e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
609    Prefactor:  9.232e-01  8.691e-02  0.000e+00  1.000e+01 ( 1.000e+00)
610        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
611        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.561e+00  3.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644739/likelihoodResults_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.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) = 10705.6332023
delta logL = 0.0736341279353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10705.6291935
delta logL = 0.0776428942827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1485       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9954       1.0000          .0000       10.000    
     3 'Normalizat'    1.5453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10705.63     FROM MIGRAD    STATUS=FAILED        95 CALLS      259 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1550        107.15        .27215E-03   -.16400E-03
   2  Index         2.9970        5.9753        .10304E-01    .31228E-03
   3  Normalizat    1.5454        .31792        .44160E-03   -.10936E-03
   4  Prefactor     .92460        .86775E-01    .14984E-03   -.98116E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10705.63     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      349 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1550        107.15        .24887E-03   -1.5493    
   2  Index         2.9970        5.9753        .19542E-02   -.41218    
   3  Normalizat    1.5454        .31792        .18276E-03   -.76509    
   4  Prefactor     .92460        .86775E-01    .68526E-04   -.95287    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10705.63     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      378 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1550        6.8441        .10886E-04   -.17043E-03
   2  Index         2.9970        2.0296        .20607E-02   -.11938E-04
   3  Normalizat    1.5454        .31361        .17664E-04   -.84956E-04
   4  Prefactor     .92460        .85011E-01    .29968E-04   -.77844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15503
  Index      = 2.99699
  Normalizat = 1.54544
  Prefactor  = 0.924597
 **********
 **   18 **HESSE 
 **********

 FCN=   10705.63     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1550        5.8889        .21772E-05   -1.5493    
   2  Index         2.9970        1.8916        .82429E-04   -.41217    
   3  Normalizat    1.5454        .31348        .35328E-05   -.76509    
   4  Prefactor     .92460        .84979E-01    .59937E-05   -.95287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73596e-11
Minuit parameter uncertainties:
  1  5.21664
  2  1.94998
  3  0.313881
  4  0.0849916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644739': 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) = 10705.6291869
delta logL = 0.0776495206683

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.155e+00  5.217e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.997e+00  1.950e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
609    Prefactor:  9.246e-01  8.499e-02  0.000e+00  1.000e+01 ( 1.000e+00)
610        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
611        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.545e+00  3.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 260.686 10.235

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/644739/cmap_HighResolution_565401601_565660801_4FGL_J1722.7+1014_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-17 07:31:32.726623', job_id='644739', GAL2='0.92', fit_tolerance='1e-08', EG2='1.55', EG='1.56', time_epoch_completed='1631889092.73', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.76e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1258' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 644739: <4FGL_J1722.7+1014_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1258> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 07:15:50 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 07:15:51 2021
Terminated at Fri Sep 17 07:31:33 2021
Results reported at Fri Sep 17 07:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1258 260.686 10.2346 565401601 565660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1722.7+1014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             363.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

