/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 145 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1722.6+6104_daily_bin1229
RA = 260.662, Dec = 61.0734
tmin = 557884801, tmax = 558144001
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='628802', job_status='RUN', time_executed='2021-09-17 06:28:02.959174', time_epoch_executed='1631885282.96' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628802/ft1_4FGL_J1722.6+6104_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits


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

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

Done.
real 4.04
user 3.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.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/628802/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/628802/ft1_filtered_4FGL_J1722.6+6104_daily_bin1229.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628802/ft1_filtered_4FGL_J1722.6+6104_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/628802/ltcube_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.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/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits
.....................!
real 11.79
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628802/ft1_filtered_4FGL_J1722.6+6104_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/628802/ltcube_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.fits outfile=/scratch/kocevski/628802/expmap_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.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/628802/ltcube_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.fits
.....................!
real 190.37
user 184.77
sys 5.28

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/628802/ft1_filtered_4FGL_J1722.6+6104_daily_bin1229.fits scfile=/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits outfile=/scratch/kocevski/628802/cmap_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628802/ft1_filtered_4FGL_J1722.6+6104_daily_bin1229.fits scfile=/scratch/kocevski/628802/ft2_4FGL_J1722.6+6104_daily_bin1229.fits outfile=/scratch/kocevski/628802/cmap_HighResolution_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91876E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    723.39       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17916E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14336E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    849.20       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    93.004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19868E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    91.440       1.0000         .10000E-03   10000.    
    28 'Prefactor '    679.14       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    .64945       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .94948E-05   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=   106.5296     FROM MIGRAD    STATUS=CONVERGED   1041 CALLS     6616 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    233.42       -.12885E-03** at limit **
   2  Prefactor     .10000E-03    6650.2       -.11473E-02** at limit **
   3  Prefactor     .10003E-03    1414.1       -.34128E-04** at limit **
   4  norm          724.13        833.73        .27905E-03    .12598E-04
   5  Prefactor     .10002E-03    6159.1       -.84860E-03** at limit **
   6  norm          .10000E-03    1818.3       -.61127E-03** at limit **
   7  Prefactor     .10000E-03    329.45        .14578E-04** at limit **
   8  Prefactor     .10000E-03    677.84        .21170E-03** at limit **
   9  norm          .10000E-03    175.66       -.10224E-04** at limit **
  10  Prefactor     849.05        898.97       -.51448E-04    .33404E-05
  11  Prefactor     .10000E-03    379.74        .10793E-03** at limit **
  12  norm          .10000E-03    9.8953       -.10262E-06** at limit **
  13  Prefactor     .10000E-03    109.72        .39627E-04** at limit **
  14  Prefactor     .10000E-03    182.61       -.38863E-04** at limit **
  15  Prefactor     .10000E-03    102.85       -.66007E-04** at limit **
  16  Prefactor     .10000E-03    180.29       -.29668E-04** at limit **
  17  Prefactor     .10001E-03    63.360        .10838E-04** at limit **
  18  Prefactor     .10000E-03    951.84        .10192E-04** at limit **
  19  norm          92.782        83.711       -.39384E-04   -.25132E-03
  20  Prefactor     .10103E-03    600.46        .11808E-03** at limit **
  21  Prefactor     .10000E-03    992.28       -.23949E-04** at limit **
  22  Prefactor     .10000E-03    1508.5       -.42328E-03** at limit **
  23  norm          .10000E-03    36.426        .21643E-06** at limit **
  24  Prefactor     .10000E-03    571.44        .24367E-03** at limit **
  25  Prefactor     .10000E-03    130.33        .16280E-03** at limit **
  26  Prefactor     .10000E-03    293.14       -.55861E-04** at limit **
  27  norm          91.429        92.654       -.34525E-05    .22677E-05
  28  Prefactor     679.12        682.11       -.69103E-05    .10167E-05
  29  Prefactor     .10000E-03    1953.8       -.68224E-03** at limit **
  30  Prefactor     .10000E-03    54.802       -.37470E-05** at limit **
  31  norm          .10000E-03    104.55       -.36671E-04** at limit **
  32  Prefactor     .10000E-03    587.21        .24221E-03** at limit **
  33  Prefactor     .10000E-03    360.01        .74305E-04** at limit **
  34  Prefactor     .10000E-03    185.63       -.50139E-04** at limit **
  35  Prefactor     .10000E-03    1359.2       -.31841E-03** at limit **
  36  norm          .10000E-03    34.756       -.22860E-06** at limit **
  37  Normalizat    .65019        .71886        .40360E-05    .47365E-05
  38  Prefactor     .58093E-09    1.4612       -.13308E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 724.127
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 849.054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 92.7817
  Prefactor  = 0.000101028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 91.4286
  Prefactor  = 679.118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.650192
  Prefactor  = 5.80927e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   106.5296     FROM HESSE     STATUS=OK           862 CALLS     7478 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    233.39        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6649.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    1413.2        .20817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          724.13        833.09        .77205E-04   -1.0259    
   5  Prefactor     .10002E-03    6158.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1817.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    329.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    677.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    175.66        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     849.05        898.89        .71746E-04   -.97945    
  11  Prefactor     .10000E-03    379.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.8953        .31786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    109.72        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    182.61        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    102.84        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    180.28        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    63.432        .80489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    951.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          92.782        83.437        .20836E-03   -1.3779    
  20  Prefactor     .10103E-03    605.52        .20235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    992.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1508.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    36.426        .61012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    571.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    130.28        .11557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    293.13        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          91.429        92.649        .42024E-04   -1.3793    
  28  Prefactor     679.12        682.07        .79492E-04   -1.0435    
  29  Prefactor     .10000E-03    1953.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    54.801        .74859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    104.55        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    587.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    360.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    185.63        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    1359.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    34.756        .59596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .65019        .63320        .25931E-03   -1.0589    
  38  Prefactor     .58093E-09    1.7078        .68723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69205e-09
Minuit parameter uncertainties:
  1  0.000102138
  2  0.00013098
  3  0.014296
  4  848.153
  5  0.0127125
  6  3.01192e-05
  7  0.00241232
  8  2.91488e-06
  9  6.63484e-06
  10  915.244
  11  1.02104e-05
  12  3.04886e-08
  13  4.03656e-07
  14  3.09647e-07
  15  3.47637e-06
  16  1.26354e-05
  17  0.00141834
  18  7.87036e-06
  19  83.5425
  20  0.0504269
  21  3.99669e-05
  22  2.14154e-05
  23  1.65564e-05
  24  8.83441e-06
  25  1.52474e-06
  26  3.18179e-06
  27  92.7961
  28  690.714
  29  1.73185e-05
  30  1.06315e-07
  31  2.57539e-07
  32  4.21963e-06
  33  3.63643e-05
  34  4.07694e-07
  35  7.90916e-06
  36  7.48599e-09
  37  0.640492
  38  6.49422e-05
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  3.476e-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:  5.809e-10  6.494e-05  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:  6.502e-01  6.405e-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: 3.91e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628802/likelihoodResults_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.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) = 106.529617013
delta logL = -4.48458821438e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 106.529572877
delta logL = -7.10026952788e-07

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 'Index     '    3.6124       1.0000          .0000       10.000    
     3 'Normalizat'    .65030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34765E-06   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=   106.5296     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11687E-03    287.84        .69740E-02** at limit **
   2  Index         3.2962        7.9938        .50000        .45002E-05
   3  Normalizat    .65018        .59307E-01    .25931E-03   -.47005E-04
   4  Prefactor     .20569E-08    .16153E-01    .68723E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000116868
  Index      = 3.29616
  Normalizat = 0.650183
  Prefactor  = 2.05693e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   106.5296     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11687E-03    1869.6        .81900E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2962        6.1473        .50000       -.34773    
   3  Normalizat    .65018        .15969        .51862E-04   -1.0589    
   4  Prefactor     .20569E-08    .11695        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67923e-08
Minuit parameter uncertainties:
  1  0.367288
  2  2926.75
  3  0.159805
  4  3.10813e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628802': 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) = 106.529572572
delta logL = -4.05152221106e-07

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.169e-04  3.673e-01  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  3.296e+00  2.927e+03  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:  2.057e-09  3.108e-05  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:  6.502e-01  1.598e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/628802/cmap_HighResolution_557884801_558144001_4FGL_J1722.6+6104_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-01', job_status='DONE', photon_flux_upper_limit='3.91e-06', time_completed='2021-09-17 06:34:41.916224', job_id='628802', GAL2='0.00', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1631885681.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-4.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1229' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 06:34:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 628802: <4FGL_J1722.6+6104_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 06:25:26 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:25:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 06:25:28 2021
Terminated at Fri Sep 17 06:34:42 2021
Results reported at Fri Sep 17 06:34:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1229 260.662 61.0734 557884801 558144001 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 :                                   355.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            556 sec.

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

