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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1013
RA = 260.686, Dec = 10.2346
tmin = 501897601, tmax = 502156801
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='643142', job_status='RUN', time_executed='2021-09-17 07:13:07.080712', time_epoch_executed='1631887987.08' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643142/ft1_4FGL_J1722.7+1014_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643142/ft1_4FGL_J1722.7+1014_daily_bin1013.fits outfile=/scratch/kocevski/643142/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1013.fits ra=260.686 dec=10.2346 rad=12.0 tmin=501897601.0 tmax=502156801.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.45
user 3.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/643142/ltcube_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.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/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits
.....................!
real 11.86
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/643142/ltcube_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.fits outfile=/scratch/kocevski/643142/expmap_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.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/643142/ltcube_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.fits
.....................!
real 192.64
user 187.63
sys 4.63

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/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits scfile=/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits outfile=/scratch/kocevski/643142/cmap_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits scfile=/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits outfile=/scratch/kocevski/643142/cmap_HighResolution_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/643142/ft2_4FGL_J1722.7+1014_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643142/Model_4FGL_J1722.7+1014_daily_bin1013.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/643142/ft1_filtered_4FGL_J1722.7+1014_daily_bin1013.fits.....................!
real 88.70
user 87.35
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13569E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
     9 'norm      '    .57689E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6610       1.0000         .10000E-03   10000.    
    12 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15334E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1938       1.0000         .10000E-03   10000.    
    15 'norm      '    40.145       1.0000         .10000E-03   10000.    
    16 'norm      '    .96666       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.7844       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79985       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=   10485.98     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1859 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71631        2.7400        .43931E-06   -.17991E-03
   2  Prefactor     .10000E-03    1.5592       -.42544E-07** at limit **
   3  Prefactor     .10000E-03    16.043       -.49801E-07** at limit **
   4  Prefactor     2.7499        4.0617        .11915E-06    .17021E-04
   5  Prefactor     .10000E-03    4.8112       -.38476E-07** at limit **
   6  Prefactor     .10000E-03    815.00        .28598E-05** at limit **
   7  norm          .10000E-03    1.0752       -.12331E-06** at limit **
   8  Prefactor     10.170        9.2795       -.21969E-06   -.19105E-04
   9  norm          .10002E-03    8.2163       -.16794E-05** at limit **
  10  Prefactor     71.780        79.813       -.35534E-05   -.27993E-05
  11  Prefactor     3.6686        2.9724        .11951E-05   -.19130E-03
  12  norm          .10000E-03    6.7452        .62094E-06** at limit **
  13  norm          .10000E-03    1.4997        .54130E-07** at limit **
  14  norm          3.1940        6.3696        .25863E-05    .82489E-04
  15  norm          40.090        44.067       -.22760E-05    .12642E-04
  16  norm          .96692        .77728        .36934E-07    .14431E-03
  17  Normalizat    1.7842        .26485       -.92130E-06   -.77170E-04
  18  Prefactor     .79979        .68179E-01    .81911E-07   -.64821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.716307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1704
  norm       = 0.000100018
  Prefactor  = 71.7804
  Prefactor  = 3.6686
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.19404
  norm       = 40.0897
  norm       = 0.966924
  Normalizat = 1.78423
  Prefactor  = 0.799789
 **********
 **   18 **HESSE 
 **********

 FCN=   10485.98     FROM HESSE     STATUS=OK           268 CALLS     2127 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71631        11.342        .31339E-02   -1.5539    
   2  Prefactor     .10000E-03    1.5631        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7499        4.0486        .24323E-03   -1.5376    
   5  Prefactor     .10000E-03    4.8236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    817.64        .18181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8809        .20642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.170        9.2701        .12569E-03   -1.5070    
   9  norm          .10002E-03    8.4743        .91256E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.780        80.002        .47412E-04   -1.4011    
  11  Prefactor     3.6686        3.1851        .75060E-03   -1.5325    
  12  norm          .10000E-03    6.8176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4192        .43762E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1940        6.2905        .11337E-02   -1.5351    
  15  norm          40.090        44.009        .63263E-04   -1.4441    
  16  norm          .96692        .75383        .77662E-03   -1.5511    
  17  Normalizat    1.7842        .31293        .41261E-03   -.70076    
  18  Prefactor     .79979        .81141E-01    .15278E-03   -.99736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53116e-08
Minuit parameter uncertainties:
  1  5.70162
  2  1.40045e-06
  3  2.38081e-06
  4  4.04899
  5  4.95873e-06
  6  0.000845605
  7  8.02417e-08
  8  9.27144
  9  0.000783399
  10  80.1221
  11  3.18525
  12  7.90724e-05
  13  3.26622e-05
  14  6.29184
  15  44.0443
  16  0.753834
  17  0.313278
  18  0.0811532
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.017e+01  9.271e+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:  7.998e-01  8.115e-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.784e+00  3.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.42e-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) = 10485.6122793
delta logL = 0.363182141507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10485.6036214
delta logL = 0.371840071373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.453       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5628       1.0000          .0000       10.000    
     3 'Normalizat'    1.8038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79788       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=   10485.60     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.468        596.91        .29594E-02   -.16772E-04
   2  Index         1.5634        5.9027        .29130       -.54198E-04
   3  Normalizat    1.8035        .35341        .92832E-01    .12654E-04
   4  Prefactor     .79780        .57770E-01    .43690E-01    .41796E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4678
  Index      = 1.56342
  Normalizat = 1.80345
  Prefactor  = 0.797795
 **********
 **   18 **HESSE 
 **********

 FCN=   10485.60     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.468        11.724        .11838E-03   -1.5031    
   2  Index         1.5634        .67012        .13561E-01   -.75779    
   3  Normalizat    1.8035        .30354        .41104E-03   -.69574    
   4  Prefactor     .79780        .79977E-01    .15298E-03   -.99810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62206e-09
Minuit parameter uncertainties:
  1  11.726
  2  0.673978
  3  0.303859
  4  0.0799887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643142': 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) = 10485.6036132
delta logL = 0.371848256551

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.147e+01  1.173e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.563e+00  6.740e-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:  7.978e-01  7.999e-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.803e+00  3.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 260.686 10.235
Photon Index (Free Index): 1.56 +/- 0.67
Photon Flux (Free Index): 1.43e-08 +/- 2.06e-08
Energy Flux (Free Index): 3.66e-05 +/- 5.65e-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/643142/cmap_HighResolution_501897601_502156801_4FGL_J1722.7+1014_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='3.66e-05', photon_flux_error='3.21e-08', dlogl='3.72e-01', energy_flux='1.56e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-17 07:25:03.655183', photon_index_error2='0.67', photon_index2='1.56', ts='4.34', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.65e-05', EG='1.78', time_epoch_completed='1631888703.66', return_code='0', job_id='643142', GAL2='0.80', EG2='1.80', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='2.06e-08', ts2='5.08', photon_index='2.21' WHERE bin_id='1013' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 643142: <4FGL_J1722.7+1014_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1013> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 17 07:10:34 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:10:37 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:10:37 2021
Terminated at Fri Sep 17 07:25:04 2021
Results reported at Fri Sep 17 07:25:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1013 260.686 10.2346 501897601 502156801 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            870 sec.

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

