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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin503
RA = 260.686, Dec = 10.2346
tmin = 369705601, tmax = 369964801
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='639742', job_status='RUN', time_executed='2021-09-17 07:00:40.925657', time_epoch_executed='1631887240.93' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639742

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639742/ft1_4FGL_J1722.7+1014_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639742/ft1_4FGL_J1722.7+1014_daily_bin503.fits outfile=/scratch/kocevski/639742/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin503.fits ra=260.686 dec=10.2346 rad=12.0 tmin=369705601.0 tmax=369964801.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.80
user 3.58
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639742/ft1_filtered_4FGL_J1722.7+1014_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/639742/ltcube_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.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/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639742/ft1_filtered_4FGL_J1722.7+1014_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/639742/ltcube_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.fits outfile=/scratch/kocevski/639742/expmap_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.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/639742/ltcube_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.fits
.....................!
real 191.83
user 187.09
sys 4.17

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/639742/ft1_filtered_4FGL_J1722.7+1014_daily_bin503.fits scfile=/scratch/kocevski/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits outfile=/scratch/kocevski/639742/cmap_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639742/ft1_filtered_4FGL_J1722.7+1014_daily_bin503.fits scfile=/scratch/kocevski/639742/ft2_4FGL_J1722.7+1014_daily_bin503.fits outfile=/scratch/kocevski/639742/cmap_HighResolution_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.511       1.0000         .10000E-03   10000.    
     9 'norm      '    14.797       1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.2599       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    61.295       1.0000         .10000E-03   10000.    
    16 'norm      '    .32051       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6569       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89884       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=   12921.76     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1881 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3163       -.88252E-07** at limit **
   2  Prefactor     .10000E-03    2.2085       -.27396E-07** at limit **
   3  Prefactor     23.096        54.827       -.42931E-05   -.50860E-04
   4  Prefactor     7.2001        7.1455        .12505E-05   -.12843E-02
   5  Prefactor     6.2094        14.471        .77384E-06   -.96225E-05
   6  Prefactor     .10000E-03    53.485       -.43289E-06** at limit **
   7  norm          .10000E-03    .94185        .43254E-08** at limit **
   8  Prefactor     33.510        18.228        .10005E-07   -.27422E-03
   9  norm          14.797        11.106       -.19319E-05   -.57296E-03
  10  Prefactor     97.620        87.824       -.32272E-05   -.89636E-04
  11  Prefactor     .10000E-03    1.3636        .38551E-06** at limit **
  12  norm          9.2610        13.295        .24255E-06   -.55804E-04
  13  norm          .10000E-03    .93937        .38268E-08** at limit **
  14  norm          .10000E-03    6.5120        .15908E-06** at limit **
  15  norm          61.298        58.450        .16336E-05    .41231E-04
  16  norm          .32074        .57658        .13069E-06   -.74695E-03
  17  Normalizat    1.6570        .27736        .25495E-07   -.15167E-03
  18  Prefactor     .89880        .66768E-01    .42196E-07   -.33009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0955
  Prefactor  = 7.20011
  Prefactor  = 6.20935
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.5105
  norm       = 14.7975
  Prefactor  = 97.6203
  Prefactor  = 0.000100002
  norm       = 9.26101
  norm       = 0.0001
  norm       = 0.0001
  norm       = 61.2978
  norm       = 0.320742
  Normalizat = 1.65699
  Prefactor  = 0.898797
 **********
 **   18 **HESSE 
 **********

 FCN=   12921.76     FROM HESSE     STATUS=OK           242 CALLS     2123 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4493        .33420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2195        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.096        54.551        .83342E-04   -1.4746    
   4  Prefactor     7.2001        10.048        .74739E-03   -1.5171    
   5  Prefactor     6.2094        14.519        .16107E-03   -1.5210    
   6  Prefactor     .10000E-03    53.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .94583        .10771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.510        17.972        .69222E-04   -1.4550    
   9  norm          14.797        11.442        .10412E-03   -1.4938    
  10  Prefactor     97.620        87.944        .40683E-04   -1.3729    
  11  Prefactor     .10000E-03    13.712        .24139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.2610        13.286        .13170E-03   -1.5099    
  13  norm          .10000E-03    .94711        .10757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.5479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          61.298        58.467        .51250E-04   -1.4141    
  16  norm          .32074        .50020        .11360E-02   -1.5595    
  17  Normalizat    1.6570        .32911        .47219E-03   -.73458    
  18  Prefactor     .89880        .79752E-01    .15481E-03   -.96183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01495e-08
Minuit parameter uncertainties:
  1  1.73548e-05
  2  1.04478e-06
  3  54.6693
  4  10.0507
  5  14.5273
  6  4.70464e-05
  7  7.30447e-07
  8  17.9753
  9  11.444
  10  88.0613
  11  0.000317704
  12  13.2906
  13  1.67186e-07
  14  2.25151e-05
  15  58.5221
  16  0.500206
  17  0.329547
  18  0.0797621
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  3.351e+01  1.798e+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:  8.988e-01  7.976e-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.657e+00  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.23e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 2.75e-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) = 12921.6195821
delta logL = 0.141020247636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12921.6096204
delta logL = 0.150981973695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.897       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4583       1.0000          .0000       10.000    
     3 'Normalizat'    1.6185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90397       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=   12921.61     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.900        21.748        .77244E-04   -.39785E-03
   2  Index         2.4582        .52035        .62030E-02   -.72750E-04
   3  Normalizat    1.6185        .31998        .47642E-03   -.12275E-03
   4  Prefactor     .90396        .78817E-01    .15438E-03    .97209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8998
  Index      = 2.4582
  Normalizat = 1.61855
  Prefactor  = 0.903964
 **********
 **   18 **HESSE 
 **********

 FCN=   12921.61     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.900        19.523        .15449E-04   -1.4670    
   2  Index         2.4582        .46612        .24812E-03   -.53328    
   3  Normalizat    1.6185        .31836        .19057E-04   -.74500    
   4  Prefactor     .90396        .78648E-01    .30875E-04   -.96003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31116e-10
Minuit parameter uncertainties:
  1  19.5275
  2  0.467038
  3  0.318761
  4  0.0786584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639742': 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) = 12921.6096203
delta logL = 0.150981990302

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.690e+01  1.953e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.458e+00  4.670e-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.040e-01  7.866e-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.619e+00  3.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.17
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.46 +/- 0.47
Photon Flux (Free Index): 1.53e-07 +/- 9.81e-08
Energy Flux (Free Index): 4.66e-05 +/- 2.36e-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/639742/cmap_HighResolution_369705601_369964801_4FGL_J1722.7+1014_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='4.66e-05', photon_flux_error='6.23e-08', dlogl='1.51e-01', energy_flux='5.14e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-17 07:14:13.850595', photon_index_error2='0.47', photon_index2='2.46', ts='7.81', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='1.66', time_epoch_completed='1631888053.85', return_code='0', job_id='639742', GAL2='0.90', EG2='1.62', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='9.81e-08', ts2='8.17', photon_index='2.21' WHERE bin_id='503' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:14:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 639742: <4FGL_J1722.7+1014_daily_bin503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin503 260.686 10.2346 369705601 369964801 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 :                                   807.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

