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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1291
RA = 260.686, Dec = 10.2346
tmin = 573955201, tmax = 574214401
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='644790', job_status='RUN', time_executed='2021-09-17 07:16:12.338508', time_epoch_executed='1631888172.34' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644790/ft1_4FGL_J1722.7+1014_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644790/ft1_4FGL_J1722.7+1014_daily_bin1291.fits outfile=/scratch/kocevski/644790/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1291.fits ra=260.686 dec=10.2346 rad=12.0 tmin=573955201.0 tmax=574214401.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.64
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.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/644790/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/644790/ltcube_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.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/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits
.....................!
real 12.22
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/644790/ltcube_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits outfile=/scratch/kocevski/644790/expmap_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.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/644790/ltcube_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits
.....................!
real 192.12
user 187.75
sys 3.97

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/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits outfile=/scratch/kocevski/644790/cmap_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits outfile=/scratch/kocevski/644790/cmap_HighResolution_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644790/Model_4FGL_J1722.7+1014_daily_bin1291.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/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits.....................!
real 102.27
user 100.40
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits', '/scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits', expMap='/scratch/kocevski/644790/expmap_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits', expCube='/scratch/kocevski/644790/ltcube_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644790/Model_4FGL_J1722.7+1014_daily_bin1291.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/644790/ft1_filtered_4FGL_J1722.7+1014_daily_bin1291.fits
Spacecraft file(s): /scratch/kocevski/644790/ft2_4FGL_J1722.7+1014_daily_bin1291.fits
Exposure map: /scratch/kocevski/644790/expmap_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits
Exposure cube: /scratch/kocevski/644790/ltcube_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644790/Model_4FGL_J1722.7+1014_daily_bin1291.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) = 12194.7991411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1897       1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9430       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8812       1.0000         .10000E-03   10000.    
    12 'norm      '    19.685       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8319       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3902       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0522       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=   12194.80     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1743 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4326        5.1160        .30287E-05   -.30396E-03
   2  Prefactor     4.1895        5.8592        .21459E-05   -.25133E-03
   3  Prefactor     64.558        58.636       -.55807E-05   -.90038E-04
   4  Prefactor     4.2788        6.8859       -.17368E-05   -.44683E-03
   5  Prefactor     .10000E-03    14.869       -.19169E-06** at limit **
   6  Prefactor     .10000E-03    55.028       -.90206E-06** at limit **
   7  norm          2.9383        2.2777        .91990E-08   -.21831E-03
   8  Prefactor     3.9427        14.050       -.96790E-07   -.99544E-04
   9  norm          .10000E-03    4.7551        .33547E-07** at limit **
  10  Prefactor     79.312        77.061       -.86191E-06   -.15502E-04
  11  Prefactor     3.8818        3.3030        .23266E-08   -.94380E-03
  12  norm          19.685        10.719        .31000E-07   -.31206E-04
  13  norm          2.8319        3.0197       -.23593E-06   -.70443E-03
  14  norm          .10000E-03    2.6626       -.12586E-06** at limit **
  15  norm          .10000E-03    25.825        .98372E-06** at limit **
  16  norm          1.3901        .82850       -.51347E-07   -.12812E-02
  17  Normalizat    1.0594        .27679       -.34859E-06   -.75927E-04
  18  Prefactor     1.0522        .72392E-01   -.97201E-07   -.73295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43261
  Prefactor  = 4.18947
  Prefactor  = 64.558
  Prefactor  = 4.27878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9383
  Prefactor  = 3.94267
  norm       = 0.0001
  Prefactor  = 79.3117
  Prefactor  = 3.88178
  norm       = 19.685
  norm       = 2.83195
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.39014
  Normalizat = 1.05941
  Prefactor  = 1.05216
 **********
 **   18 **HESSE 
 **********

 FCN=   12194.80     FROM HESSE     STATUS=OK           248 CALLS     1991 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4326        4.8245        .21831E-03   -1.5337    
   2  Prefactor     4.1895        5.6900        .19689E-03   -1.5299    
   3  Prefactor     64.558        58.629        .49944E-04   -1.4099    
   4  Prefactor     4.2788        6.9841        .19478E-03   -1.5294    
   5  Prefactor     .10000E-03    15.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9383        2.2747        .14235E-03   -1.5365    
   8  Prefactor     3.9427        13.947        .20315E-03   -1.5311    
   9  norm          .10000E-03    4.7636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.312        76.968        .45095E-04   -1.3924    
  11  Prefactor     3.8818        3.2770        .16894E-03   -1.5314    
  12  norm          19.685        10.718        .90275E-04   -1.4820    
  13  norm          2.8319        3.0352        .19272E-03   -1.5371    
  14  norm          .10000E-03    2.6698        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3901        .81889        .74536E-04   -1.5472    
  17  Normalizat    1.0594        .30717        .53029E-03   -.91066    
  18  Prefactor     1.0522        .81795E-01    .14707E-03   -.91010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2572e-10
Minuit parameter uncertainties:
  1  4.82509
  2  5.69078
  3  58.6819
  4  6.98547
  5  2.99508e-05
  6  5.39977e-05
  7  2.27476
  8  13.9581
  9  4.01768e-06
  10  77.0649
  11  3.27714
  12  10.7187
  13  3.03538
  14  3.24801e-07
  15  3.91182e-05
  16  0.818897
  17  0.307688
  18  0.0818049
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  3.943e+00  1.396e+01  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:  1.052e+00  8.180e-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.059e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644790/likelihoodResults_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.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) = 12193.5983334
delta logL = 1.19672572062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12193.4846132
delta logL = 1.31044592382

Fit tolerance = 1e-08

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

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

 FCN=   12193.48     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32375        2.3025        .88671E-02    .27567E-02
   2  Index         4.3408        1.7003        .90074E-01    .35192E-03
   3  Normalizat    .92754        .59370E-01    .12652        .42901E-04
   4  Prefactor     1.0707        .16500E-01    .38827E-01   -.10857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.323748
  Index      = 4.34078
  Normalizat = 0.927543
  Prefactor  = 1.07073
 **********
 **   18 **HESSE 
 **********

 FCN=   12193.48     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      317 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32375        6.5385        .40289E-03   -1.5594    
   2  Index         4.3408        3.3384        .46481E-02   -.13223    
   3  Normalizat    .92754        .21878        .56130E-03   -.95499    
   4  Prefactor     1.0707        .60144E-01    .14575E-03   -.90407    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33202e-07
Minuit parameter uncertainties:
  1  2.90977
  2  3.66285
  3  0.21899
  4  0.0601476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644790': 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) = 12193.4846124
delta logL = 1.31044678154

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  3.237e-01  2.910e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  4.341e+00  3.663e+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:  1.071e+00  6.015e-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:  9.275e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 260.686 10.235
Photon Index (Free Index): 4.34 +/- 3.66
Photon Flux (Free Index): 1.39e-07 +/- 8.64e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.60e-05

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/644790/cmap_HighResolution_573955201_574214401_4FGL_J1722.7+1014_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='1.31e+00', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-17 07:30:40.978709', photon_index_error2='3.66', photon_index2='4.34', ts='0.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.60e-05', EG='1.06', time_epoch_completed='1631889040.98', return_code='0', job_id='644790', GAL2='1.07', EG2='0.93', return_code2='102', photon_flux_error2='8.64e-08', ts2='2.92', photon_index='2.21' WHERE bin_id='1291' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:30:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 644790: <4FGL_J1722.7+1014_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1291> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 07:15:54 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:15:56 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:56 2021
Terminated at Fri Sep 17 07:30:41 2021
Results reported at Fri Sep 17 07:30:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1291 260.686 10.2346 573955201 574214401 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 :                                   861.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

