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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1296
RA = 260.686, Dec = 10.2346
tmin = 575251201, tmax = 575510401
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='644797', job_status='RUN', time_executed='2021-09-17 07:16:09.019036', time_epoch_executed='1631888169.02' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644797/ft1_4FGL_J1722.7+1014_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644797/ft1_4FGL_J1722.7+1014_daily_bin1296.fits outfile=/scratch/kocevski/644797/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1296.fits ra=260.686 dec=10.2346 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.39
user 5.06
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/644797/ltcube_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.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/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits
.....................!
real 11.76
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/644797/ltcube_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.fits outfile=/scratch/kocevski/644797/expmap_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.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/644797/ltcube_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.fits
.....................!
real 191.21
user 185.81
sys 4.95

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/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits scfile=/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits outfile=/scratch/kocevski/644797/cmap_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits scfile=/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits outfile=/scratch/kocevski/644797/cmap_HighResolution_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/644797/ft2_4FGL_J1722.7+1014_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644797/Model_4FGL_J1722.7+1014_daily_bin1296.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/644797/ft1_filtered_4FGL_J1722.7+1014_daily_bin1296.fits.....................!
real 105.03
user 103.51
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16210E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44229E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15939E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.269       1.0000         .10000E-03   10000.    
     9 'norm      '    12.299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18588E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.1037       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.832       1.0000         .10000E-03   10000.    
    16 'norm      '    .65740       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0685       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=   12610.68     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     1895 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.067        .32729E-02** at limit **
   2  Prefactor     .10000E-03    7.8030        .36285E-03** at limit **
   3  Prefactor     28.016        62.760        .75845E-04    .67152E-05
   4  Prefactor     .10023E-03    38.826        .37980E-02** at limit **
   5  Prefactor     9.4528        8.6891        .13034E-03   -.25643E-04
   6  Prefactor     .10000E-03    77.698        .18142E-02** at limit **
   7  norm          .10000E-03    1.9479        .22313E-02** at limit **
   8  Prefactor     16.270        12.434        .99299E-04   -.57245E-05
   9  norm          12.295        9.4080        .11423E-03    .25221E-03
  10  Prefactor     .10004E-03    42.968        .21493    ** at limit **
  11  Prefactor     .10000E-03    2.7763        .24060E-02** at limit **
  12  norm          6.1000        8.2027        .16251E-03    .93464E-04
  13  norm          .10000E-03    1.2644        .12241E-02** at limit **
  14  norm          .10000E-03    4.8326        .18142E-02** at limit **
  15  norm          30.838        46.040        .72159E-04    .10272E-04
  16  norm          .65739        .73663        .10553E-02    .93463E-02
  17  Normalizat    1.2404        .30561        .50597E-03    .21885E-04
  18  Prefactor     1.0686        .82717E-01    .14747E-03   -.36649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0159
  Prefactor  = 0.000100226
  Prefactor  = 9.45278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2698
  norm       = 12.2949
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  norm       = 6.10004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.8384
  norm       = 0.657386
  Normalizat = 1.24039
  Prefactor  = 1.06857
 **********
 **   18 **HESSE 
 **********

 FCN=   12610.68     FROM HESSE     STATUS=OK           238 CALLS     2133 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.233        .65458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8034        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.016        62.730        .15169E-04   -1.4649    
   4  Prefactor     .10023E-03    39.975        .15192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4528        8.6887        .52137E-05   -1.5093    
   6  Prefactor     .10000E-03    77.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9547        .44626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.270        12.433        .39719E-05   -1.4901    
   9  norm          12.295        9.4018        .45690E-05   -1.5007    
  10  Prefactor     .10004E-03    44.425        .20956       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7889        .48120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.1000        8.2021        .65003E-05   -1.5214    
  13  norm          .10000E-03    1.2647        .24482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.838        46.038        .14432E-04   -1.4597    
  16  norm          .65739        .73608        .21107E-03   -1.5546    
  17  Normalizat    1.2404        .30555        .20239E-04   -.85364    
  18  Prefactor     1.0686        .82747E-01    .29494E-04   -.90478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94537e-09
Minuit parameter uncertainties:
  1  4.25905e-05
  2  3.50804e-05
  3  62.8777
  4  0.00601688
  5  8.68986
  6  0.000106575
  7  2.81741e-05
  8  12.4346
  9  9.40294
  10  0.002559
  11  9.26983e-06
  12  8.20356
  13  3.36943e-06
  14  5.61253e-06
  15  46.0911
  16  0.736087
  17  0.305994
  18  0.0827571
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.627e+01  1.243e+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.069e+00  8.276e-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.240e+00  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.91e-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) = 12610.6685136
delta logL = 0.012930680572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12610.6642168
delta logL = 0.0172274623783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.158       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3237       1.0000          .0000       10.000    
     3 'Normalizat'    1.2314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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=   12610.66     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      267 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.159        14.020        .10287E-03   -.84209E-04
   2  Index         2.3241        .65393        .89446E-02    .79230E-03
   3  Normalizat    1.2313        .30176        .50752E-03   -.10528E-03
   4  Prefactor     1.0695        .81752E-01    .14740E-03   -.33119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1594
  Index      = 2.3241
  Normalizat = 1.23135
  Prefactor  = 1.06954
 **********
 **   18 **HESSE 
 **********

 FCN=   12610.66     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.159        13.234        .41150E-05   -1.4929    
   2  Index         2.3241        .61701        .17889E-02   -.56472    
   3  Normalizat    1.2313        .30140        .20301E-04   -.85640    
   4  Prefactor     1.0695        .81753E-01    .29480E-04   -.90446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0549e-11
Minuit parameter uncertainties:
  1  13.2361
  2  0.61923
  3  0.301823
  4  0.0817621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644797': 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) = 12610.6642164
delta logL = 0.0172278348527

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.516e+01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.324e+00  6.192e-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:  1.070e+00  8.176e-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.231e+00  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.32 +/- 0.62
Photon Flux (Free Index): 6.58e-08 +/- 6.79e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.80e-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/644797/cmap_HighResolution_575251201_575510401_4FGL_J1722.7+1014_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='2.40e-05', photon_flux_error='4.31e-08', dlogl='1.72e-02', energy_flux='2.49e-05', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-17 07:29:53.727235', photon_index_error2='0.62', photon_index2='2.32', ts='4.60', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.24', time_epoch_completed='1631888993.73', return_code='0', job_id='644797', GAL2='1.07', EG2='1.23', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='6.79e-08', ts2='4.64', photon_index='2.21' WHERE bin_id='1296' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:29:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 644797: <4FGL_J1722.7+1014_daily_bin1296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1296 260.686 10.2346 575251201 575510401 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 :                                   812.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

