/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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1722.7+1014_daily_bin161
RA = 260.686, Dec = 10.2346
tmin = 281059201, tmax = 281318401
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='634865', job_status='RUN', time_executed='2021-09-17 06:50:32.209122', time_epoch_executed='1631886632.21' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634865/ft1_4FGL_J1722.7+1014_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634865/ft1_4FGL_J1722.7+1014_daily_bin161.fits outfile=/scratch/kocevski/634865/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin161.fits ra=260.686 dec=10.2346 rad=12.0 tmin=281059201.0 tmax=281318401.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.46
user 4.21
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.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/634865/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/634865/ltcube_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.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/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits
.....................!
real 12.45
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/634865/ltcube_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits outfile=/scratch/kocevski/634865/expmap_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.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/634865/ltcube_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits
.....................!
real 190.65
user 185.03
sys 5.25

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/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits outfile=/scratch/kocevski/634865/cmap_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits outfile=/scratch/kocevski/634865/cmap_HighResolution_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634865/Model_4FGL_J1722.7+1014_daily_bin161.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/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits.....................!
real 86.59
user 85.17
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits', '/scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits', expMap='/scratch/kocevski/634865/expmap_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits', expCube='/scratch/kocevski/634865/ltcube_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634865/Model_4FGL_J1722.7+1014_daily_bin161.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/634865/ft1_filtered_4FGL_J1722.7+1014_daily_bin161.fits
Spacecraft file(s): /scratch/kocevski/634865/ft2_4FGL_J1722.7+1014_daily_bin161.fits
Exposure map: /scratch/kocevski/634865/expmap_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits
Exposure cube: /scratch/kocevski/634865/ltcube_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634865/Model_4FGL_J1722.7+1014_daily_bin161.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10018.1679576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14994E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.745       1.0000         .10000E-03   10000.    
     9 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16905E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3474       1.0000         .10000E-03   10000.    
    12 'norm      '    11.406       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0749       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28998       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3946       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96116       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=   10018.09     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1545 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8963        .89343E-07** at limit **
   2  Prefactor     11.578        8.0223        .40813E-06   -.29605E-04
   3  Prefactor     .10000E-03    50.044        .20920E-06** at limit **
   4  Prefactor     .10000E-03    6.7443       -.21718E-06** at limit **
   5  Prefactor     .10000E-03    3.8084        .10529E-06** at limit **
   6  Prefactor     .10003E-03    257.18        .38536E-05** at limit **
   7  norm          4.9248        2.7062        .88011E-07   -.17432E-04
   8  Prefactor     79.697        22.600       -.10351E-05   -.33890E-03
   9  norm          .10000E-03    9.6671       -.96552E-07** at limit **
  10  Prefactor     .10011E-03    1013.4       -.77387E-04** at limit **
  11  Prefactor     3.3523        3.8730        .47277E-06    .68456E-04
  12  norm          11.411        12.707       -.46684E-05   -.21091E-04
  13  norm          6.0756        4.8097        .35546E-05    .27243E-03
  14  norm          .10000E-03    6.4820       -.81660E-06** at limit **
  15  norm          .10000E-03    22.828        .28592E-07** at limit **
  16  norm          .28976        .73566        .95257E-06    .59125E-03
  17  Normalizat    1.3946        .29850       -.21686E-05   -.10466E-03
  18  Prefactor     .96119        .80010E-01   -.11376E-05   -.15699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.5779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  norm       = 4.9248
  Prefactor  = 79.6974
  norm       = 0.0001
  Prefactor  = 0.000100113
  Prefactor  = 3.35229
  norm       = 11.4105
  norm       = 6.07559
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.289763
  Normalizat = 1.39458
  Prefactor  = 0.961188
 **********
 **   18 **HESSE 
 **********

 FCN=   10018.09     FROM HESSE     STATUS=OK           244 CALLS     1789 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9028        .13460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.578        8.0491        .11778E-03   -1.5027    
   3  Prefactor     .10000E-03    50.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    259.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9248        2.7062        .11870E-03   -1.5264    
   8  Prefactor     79.697        22.545        .22487E-03   -1.3920    
   9  norm          .10000E-03    9.7327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10011E-03    1022.7        .36429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3523        3.8478        .19139E-03   -1.5342    
  12  norm          11.411        12.564        .11862E-03   -1.5032    
  13  norm          6.0756        4.8872        .81448E-03   -1.5215    
  14  norm          .10000E-03    6.5032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .28976        .73140        .13122E-03   -1.5600    
  17  Normalizat    1.3946        .34245        .47796E-03   -.80786    
  18  Prefactor     .96119        .92191E-01    .15217E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80711e-10
Minuit parameter uncertainties:
  1  5.70619e-06
  2  8.0499
  3  0.000118153
  4  5.01417e-05
  5  7.76819e-06
  6  0.00571361
  7  2.70626
  8  22.5478
  9  1.11497e-05
  10  0.0219221
  11  3.84806
  12  12.5671
  13  4.8875
  14  5.38937e-05
  15  2.03955e-06
  16  0.731427
  17  0.343016
  18  0.0922065
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  7.970e+01  2.255e+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:  9.612e-01  9.221e-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.395e+00  3.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.57
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.76e-07 +/- 7.81e-08
Energy Flux (Fixed Index): 1.22e-04 +/- 3.46e-05

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) = 10018.0903402
delta logL = 0.000809764645965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10018.089399
delta logL = 0.00175093600774

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10018.09     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      270 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.407        31.798        .45353E-04   -.15131E-03
   2  Index         2.2230        .24922        .34851E-02   -.63807E-04
   3  Normalizat    1.3914        .33451        .47839E-03   -.79231E-04
   4  Prefactor     .96167        .89970E-01    .15214E-03    .66955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.4069
  Index      = 2.22295
  Normalizat = 1.3914
  Prefactor  = 0.961672
 **********
 **   18 **HESSE 
 **********

 FCN=   10018.09     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.407        30.627        .90706E-05   -1.3935    
   2  Index         2.2230        .23989        .13940E-03   -.58885    
   3  Normalizat    1.3914        .33442        .19135E-04   -.80878    
   4  Prefactor     .96167        .89992E-01    .60855E-05   -.94018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5559e-11
Minuit parameter uncertainties:
  1  30.6332
  2  0.240024
  3  0.33495
  4  0.0900057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634865': 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) = 10018.089399
delta logL = 0.00175094638871

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  7.841e+01  3.063e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.223e+00  2.400e-01  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.617e-01  9.001e-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.391e+00  3.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.62
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.22 +/- 0.24
Photon Flux (Free Index): 2.79e-07 +/- 9.10e-08
Energy Flux (Free Index): 1.20e-04 +/- 4.43e-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/634865/cmap_HighResolution_281059201_281318401_4FGL_J1722.7+1014_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-07', energy_flux2='1.20e-04', photon_flux_error='7.81e-08', dlogl='1.75e-03', energy_flux='1.22e-04', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-09-17 07:01:50.342427', photon_index_error2='0.24', photon_index2='2.22', ts='33.57', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='1.39', time_epoch_completed='1631887310.34', return_code='0', job_id='634865', GAL2='0.96', EG2='1.39', return_code2='0', energy_flux_error='3.46e-05', photon_flux_error2='9.10e-08', ts2='33.62', photon_index='2.21' WHERE bin_id='161' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:01:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 634865: <4FGL_J1722.7+1014_daily_bin161> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin161> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 06:50:15 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:50:17 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:50:17 2021
Terminated at Fri Sep 17 07:01:51 2021
Results reported at Fri Sep 17 07:01:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin161 260.686 10.2346 281059201 281318401 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 :                                   675.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            696 sec.

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

