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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1127
RA = 260.686, Dec = 10.2346
tmin = 531446401, tmax = 531705601
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='644527', job_status='RUN', time_executed='2021-09-17 07:15:45.834988', time_epoch_executed='1631888145.84' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644527/ft1_4FGL_J1722.7+1014_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644527/ft1_4FGL_J1722.7+1014_daily_bin1127.fits outfile=/scratch/kocevski/644527/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1127.fits ra=260.686 dec=10.2346 rad=12.0 tmin=531446401.0 tmax=531705601.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.65
user 3.45
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/644527/ltcube_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.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/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits
.....................!
real 11.99
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/644527/ltcube_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.fits outfile=/scratch/kocevski/644527/expmap_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.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/644527/ltcube_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.fits
.....................!
real 191.70
user 187.34
sys 3.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/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits scfile=/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits outfile=/scratch/kocevski/644527/cmap_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits scfile=/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits outfile=/scratch/kocevski/644527/cmap_HighResolution_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/644527/ft2_4FGL_J1722.7+1014_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644527/Model_4FGL_J1722.7+1014_daily_bin1127.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/644527/ft1_filtered_4FGL_J1722.7+1014_daily_bin1127.fits.....................!
real 106.87
user 105.58
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.627       1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.027       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4425       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7520       1.0000         .10000E-03   10000.    
    13 'norm      '    .27757E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1184       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .87359       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0630       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=   12716.19     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1819 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0864        .30822E-07** at limit **
   2  Prefactor     3.4371        5.5789        .17345E-05    .11778E-03
   3  Prefactor     8.4194        128.19       -.10320E-05   -.16548E-06
   4  Prefactor     .10000E-03    4.3946        .16934E-06** at limit **
   5  Prefactor     .10000E-03    3.8429        .26014E-07** at limit **
   6  Prefactor     62.634        162.98       -.19719E-06   -.82166E-06
   7  norm          .10000E-03    1.3669        .76241E-08** at limit **
   8  Prefactor     40.049        19.420       -.69806E-06   -.37040E-05
   9  norm          9.4455        8.3023        .13164E-06    .14941E-04
  10  Prefactor     80.099        84.364        .68999E-05    .22914E-04
  11  Prefactor     1.4361        3.2428        .21221E-06    .14590E-04
  12  norm          3.7487        6.4515       -.18494E-06   -.42935E-04
  13  norm          .10001E-03    1.3726        .56750E-06** at limit **
  14  norm          9.1214        10.704       -.79117E-06   -.14769E-04
  15  norm          .10000E-03    34.935       -.93489E-07** at limit **
  16  norm          .10000E-03    .31709       -.53275E-07** at limit **
  17  Normalizat    .87378        .27966       -.11381E-05   -.45065E-05
  18  Prefactor     1.0629        .71672E-01    .80645E-07   -.92138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.43706
  Prefactor  = 8.41943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.6342
  norm       = 0.0001
  Prefactor  = 40.0485
  norm       = 9.44555
  Prefactor  = 80.0992
  Prefactor  = 1.43605
  norm       = 3.74874
  norm       = 0.000100006
  norm       = 9.12143
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.873779
  Prefactor  = 1.06292
 **********
 **   18 **HESSE 
 **********

 FCN=   12716.19     FROM HESSE     STATUS=OK           248 CALLS     2067 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0899        .11477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4371        5.6065        .10910E-02   -1.5337    
   3  Prefactor     8.4194        127.59        .13822E-03   -1.5128    
   4  Prefactor     .10000E-03    4.4431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.634        163.18        .50706E-04   -1.4123    
   7  norm          .10000E-03    1.3873        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.049        19.231        .63356E-04   -1.4441    
   9  norm          9.4455        8.2609        .13043E-03   -1.5093    
  10  Prefactor     80.099        84.523        .22417E-03   -1.3916    
  11  Prefactor     1.4361        3.1697        .26792E-03   -1.5468    
  12  norm          3.7487        6.4324        .20844E-03   -1.5321    
  13  norm          .10001E-03    5.6403        .24164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1214        10.714        .13273E-03   -1.5104    
  15  norm          .10000E-03    34.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .32988        .12385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .87378        .30458        .58492E-03   -.97388    
  18  Prefactor     1.0629        .79225E-01    .14174E-03   -.90661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10582e-09
Minuit parameter uncertainties:
  1  2.09444e-07
  2  5.60731
  3  65.7183
  4  3.32502e-06
  5  1.17356e-06
  6  164.364
  7  7.17861e-07
  8  19.2338
  9  8.26195
  10  84.6504
  11  3.1701
  12  6.43356
  13  0.000373121
  14  10.7159
  15  1.34295e-06
  16  6.10021e-07
  17  0.305176
  18  0.079234
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  4.005e+01  1.923e+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.063e+00  7.923e-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:  8.738e-01  3.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.15
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 6.14e-05 +/- 2.95e-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) = 12715.2426872
delta logL = 0.946961188589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12715.2361894
delta logL = 0.953458993261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7348       1.0000          .0000       10.000    
     3 'Normalizat'    .79171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0748       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=   12715.24     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.530        21.051        .86325E-04    .15856E-03
   2  Index         2.7347        .50440        .39956E-02    .14226E-03
   3  Normalizat    .79180        .30235        .61083E-03    .59186E-04
   4  Prefactor     1.0748        .79151E-01    .14095E-03    .49208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5304
  Index      = 2.73472
  Normalizat = 0.7918
  Prefactor  = 1.07479
 **********
 **   18 **HESSE 
 **********

 FCN=   12715.24     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.530        17.337        .34530E-05   -1.4780    
   2  Index         2.7347        .41509        .15983E-03   -.47019    
   3  Normalizat    .79180        .30071        .24433E-04   -1.0037    
   4  Prefactor     1.0748        .78841E-01    .28190E-04   -.90276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71706e-11
Minuit parameter uncertainties:
  1  17.3414
  2  0.415691
  3  0.301347
  4  0.0788495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644527': 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) = 12715.2361891
delta logL = 0.953459288765

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.153e+01  1.734e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.735e+00  4.157e-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.075e+00  7.885e-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:  7.918e-01  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.73 +/- 0.42
Photon Flux (Free Index): 2.19e-07 +/- 9.68e-08
Energy Flux (Free Index): 5.14e-05 +/- 2.12e-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/644527/cmap_HighResolution_531446401_531705601_4FGL_J1722.7+1014_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='5.14e-05', photon_flux_error='6.67e-08', dlogl='9.53e-01', energy_flux='6.14e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-17 07:28:59.725726', photon_index_error2='0.42', photon_index2='2.73', ts='7.15', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.87', time_epoch_completed='1631888939.73', return_code='0', job_id='644527', GAL2='1.07', EG2='0.79', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='9.68e-08', ts2='9.26', photon_index='2.21' WHERE bin_id='1127' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:28:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 644527: <4FGL_J1722.7+1014_daily_bin1127> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1127 260.686 10.2346 531446401 531705601 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             359.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

