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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1129
RA = 260.686, Dec = 10.2346
tmin = 531964801, tmax = 532224001
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='644530', job_status='RUN', time_executed='2021-09-17 07:15:46.231497', time_epoch_executed='1631888146.23' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644530/ft1_4FGL_J1722.7+1014_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644530/ft1_4FGL_J1722.7+1014_daily_bin1129.fits outfile=/scratch/kocevski/644530/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1129.fits ra=260.686 dec=10.2346 rad=12.0 tmin=531964801.0 tmax=532224001.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.54
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.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/644530/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/644530/ltcube_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.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/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/644530/ltcube_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.fits outfile=/scratch/kocevski/644530/expmap_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.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/644530/ltcube_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.fits
.....................!
real 190.28
user 185.29
sys 4.68

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/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits outfile=/scratch/kocevski/644530/cmap_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.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/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits outfile=/scratch/kocevski/644530/cmap_HighResolution_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/644530/ft2_4FGL_J1722.7+1014_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644530/Model_4FGL_J1722.7+1014_daily_bin1129.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/644530/ft1_filtered_4FGL_J1722.7+1014_daily_bin1129.fits.....................!
real 102.52
user 101.14
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.282       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.801       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6227       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    96.656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93083       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10786E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    52.228       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4812       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6773       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90682       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=   11930.14     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1738 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8888        .68768E-06** at limit **
   2  Prefactor     .10000E-03    5.5787        .45958E-06** at limit **
   3  Prefactor     5.7746        40.094       -.79631E-05   -.13436E-04
   4  Prefactor     .10000E-03    3.8943        .11320E-05** at limit **
   5  Prefactor     26.277        16.418       -.66814E-05    .10274E-04
   6  Prefactor     59.999        123.39        .25474E-03    .49344E-05
   7  norm          .10000E-03    1.0260        .49835E-07** at limit **
   8  Prefactor     3.6221        9.7905        .13154E-06   -.93264E-04
   9  norm          8.6222        9.8711        .22460E-05    .24526E-04
  10  Prefactor     96.625        89.942       -.30496E-04    .11197E-04
  11  Prefactor     .92594        2.8299       -.33719E-06   -.57457E-03
  12  norm          .10000E-03    5.0001       -.98858E-06** at limit **
  13  norm          .10000E-03    1.9286       -.28252E-06** at limit **
  14  norm          .10000E-03    3.4579       -.11959E-06** at limit **
  15  norm          52.220        52.542       -.10336E-04   -.16589E-05
  16  norm          1.4813        .87611        .11347E-06   -.46923E-03
  17  Normalizat    1.6779        .28233        .81020E-05   -.32718E-03
  18  Prefactor     .90665        .70712E-01   -.27630E-05    .13344E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77456
  Prefactor  = 0.0001
  Prefactor  = 26.2772
  Prefactor  = 59.9995
  norm       = 0.0001
  Prefactor  = 3.62211
  norm       = 8.62219
  Prefactor  = 96.6252
  Prefactor  = 0.925937
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 52.2199
  norm       = 1.48133
  Normalizat = 1.67793
  Prefactor  = 0.906648
 **********
 **   18 **HESSE 
 **********

 FCN=   11930.14     FROM HESSE     STATUS=OK           246 CALLS     1984 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7746        40.090        .16711E-03   -1.5227    
   4  Prefactor     .10000E-03    3.9209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.277        16.468        .78141E-04   -1.4682    
   6  Prefactor     59.999        123.24        .25941E-03   -1.4157    
   7  norm          .10000E-03    1.0353        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6221        9.6893        .21227E-03   -1.5327    
   9  norm          8.6222        9.8642        .13653E-03   -1.5121    
  10  Prefactor     96.625        89.886        .40885E-04   -1.3739    
  11  Prefactor     .92594        3.6453        .26970E-02   -1.5516    
  12  norm          .10000E-03    5.0231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1748        .29295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          52.220        52.543        .55497E-04   -1.4261    
  16  norm          1.4813        .87351        .75365E-04   -1.5465    
  17  Normalizat    1.6779        .33360        .46255E-03   -.72894    
  18  Prefactor     .90665        .84229E-01    .15582E-03   -.95909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65106e-09
Minuit parameter uncertainties:
  1  7.8982e-05
  2  1.67919e-05
  3  30.4595
  4  1.57212e-05
  5  16.4708
  6  123.771
  7  5.30515e-06
  8  9.69353
  9  9.86604
  10  90.0127
  11  3.64621
  12  7.49127e-05
  13  0.000126415
  14  5.08377e-05
  15  52.5894
  16  0.873519
  17  0.334045
  18  0.0842409
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  3.622e+00  9.694e+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.066e-01  8.424e-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.678e+00  3.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/644530/likelihoodResults_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.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) = 11930.13492
delta logL = 0.00872132611585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11930.1335316
delta logL = 0.0101097459283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1584       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9604       1.0000          .0000       10.000    
     3 'Normalizat'    1.6818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90611       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=   11930.13     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1593        10.638        .19765E-03    .69713E-04
   2  Index         1.9603        1.5229        .80645E-02    .11422E-03
   3  Normalizat    1.6819        .31954        .46212E-03    .16325E-03
   4  Prefactor     .90609        .83124E-01    .15587E-03    .51228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15928
  Index      = 1.96033
  Normalizat = 1.68187
  Prefactor  = 0.906094
 **********
 **   18 **HESSE 
 **********

 FCN=   11930.13     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1593        10.582        .79060E-05   -1.5300    
   2  Index         1.9603        1.5152        .32258E-03   -.65346    
   3  Normalizat    1.6819        .31973        .18485E-04   -.72788    
   4  Prefactor     .90609        .83184E-01    .31174E-04   -.95928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99002e-09
Minuit parameter uncertainties:
  1  10.5872
  2  1.55461
  3  0.320127
  4  0.0831957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644530': 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) = 11930.1335316
delta logL = 0.0101097633778

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  4.159e+00  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.960e+00  1.555e+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.061e-01  8.320e-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.682e+00  3.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/644530/cmap_HighResolution_531964801_532224001_4FGL_J1722.7+1014_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-17 07:29:26.423402', job_id='644530', GAL2='0.91', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1631888966.42', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.01e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1129' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 644530: <4FGL_J1722.7+1014_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1129 260.686 10.2346 531964801 532224001 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 :                                   815.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

