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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1157
RA = 260.686, Dec = 10.2346
tmin = 539222401, tmax = 539481601
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='644574', job_status='RUN', time_executed='2021-09-17 07:18:39.874506', time_epoch_executed='1631888319.87' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644574/ft1_4FGL_J1722.7+1014_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644574/ft1_4FGL_J1722.7+1014_daily_bin1157.fits outfile=/scratch/kocevski/644574/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1157.fits ra=260.686 dec=10.2346 rad=12.0 tmin=539222401.0 tmax=539481601.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.60
user 5.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/644574/ltcube_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.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/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits
.....................!
real 11.53
user 11.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/644574/ltcube_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.fits outfile=/scratch/kocevski/644574/expmap_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.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/644574/ltcube_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.fits
.....................!
real 189.51
user 184.58
sys 4.60

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/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits scfile=/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits outfile=/scratch/kocevski/644574/cmap_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits scfile=/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits outfile=/scratch/kocevski/644574/cmap_HighResolution_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/644574/ft2_4FGL_J1722.7+1014_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644574/Model_4FGL_J1722.7+1014_daily_bin1157.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/644574/ft1_filtered_4FGL_J1722.7+1014_daily_bin1157.fits.....................!
real 65.34
user 64.07
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17757E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5770       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7045       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6187       1.0000         .10000E-03   10000.    
    12 'norm      '    11.310       1.0000         .10000E-03   10000.    
    13 'norm      '    .10230E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13386E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5793       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0031       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95571       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=   6575.710     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1804 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8850        7.3172        .13142E-05   -.19598E-03
   2  Prefactor     10.975        9.5883       -.10708E-05   -.10881E-03
   3  Prefactor     16.436        163.43        .83579E-04   -.75510E-05
   4  Prefactor     .10000E-03    4.1800       -.21998E-06** at limit **
   5  Prefactor     .10000E-03    11.504       -.18256E-06** at limit **
   6  Prefactor     .10000E-03    448.28       -.21573E-04** at limit **
   7  norm          .10000E-03    1.4139        .27160E-07** at limit **
   8  Prefactor     8.5252        33.578        .27145E-04   -.58466E-04
   9  norm          4.7125        15.386        .18198E-05   -.89337E-04
  10  Prefactor     65.855        122.70        .26024E-03    .25779E-04
  11  Prefactor     3.6208        5.3765       -.48067E-05   -.10874E-02
  12  norm          11.311        11.699       -.11561E-04   -.16841E-03
  13  norm          .10000E-03    2.4859        .74957E-06** at limit **
  14  norm          .10001E-03    6.8490       -.19088E-05** at limit **
  15  norm          .10000E-03    73.201       -.23038E-05** at limit **
  16  norm          3.5795        1.5035        .14428E-06   -.51231E-04
  17  Normalizat    1.0032        .40945       -.48344E-04   -.72755E-04
  18  Prefactor     .95565        .95488E-01    .19926E-05   -.67934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.88501
  Prefactor  = 10.9747
  Prefactor  = 16.4361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.52523
  norm       = 4.71251
  Prefactor  = 65.8554
  Prefactor  = 3.62083
  norm       = 11.3109
  norm       = 0.000100002
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 3.57946
  Normalizat = 1.00323
  Prefactor  = 0.955652
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.710     FROM HESSE     STATUS=OK           248 CALLS     2052 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8850        7.3078        .16556E-03   -1.5223    
   2  Prefactor     10.975        9.5852        .12094E-03   -1.5045    
   3  Prefactor     16.436        163.43        .98917E-04   -1.4897    
   4  Prefactor     .10000E-03    4.1865        .16188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    448.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4196        .94163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5252        33.104        .13687E-03   -1.5124    
   9  norm          4.7125        15.284        .18553E-03   -1.5274    
  10  Prefactor     65.855        122.33        .24775E-03   -1.4083    
  11  Prefactor     3.6208        5.3177        .19822E-03   -1.5327    
  12  norm          11.311        11.697        .11912E-03   -1.5035    
  13  norm          .10000E-03    14.968        .24359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    6.8659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    73.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5795        1.5010        .61536E-04   -1.5330    
  17  Normalizat    1.0032        .44538        .56386E-03   -.92922    
  18  Prefactor     .95565        .10447        .14209E-03   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46472e-09
Minuit parameter uncertainties:
  1  7.30894
  2  9.58653
  3  104.027
  4  7.99829e-05
  5  9.87538e-05
  6  0.00171331
  7  1.53076e-05
  8  33.1757
  9  15.2962
  10  122.804
  11  5.3184
  12  11.6997
  13  0.000358926
  14  0.000434466
  15  0.000181793
  16  1.50101
  17  0.447046
  18  0.104496
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  8.525e+00  3.318e+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:  9.557e-01  1.045e-01  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.003e+00  4.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 2.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644574/likelihoodResults_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6575.07136961
delta logL = 0.638604350806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6575.0681106
delta logL = 0.641863359071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0212       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6508       1.0000          .0000       10.000    
     3 'Normalizat'    .87350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97306       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=   6575.068     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      256 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0005        40.451        .72771E-02   -.76390E-03
   2  Index         3.6549        2.8609        .97205E-01   -.34173E-04
   3  Normalizat    .87346        .11113        .13497        .17716E-04
   4  Prefactor     .97307        .27070E-01    .31866E-01    .17675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00055
  Index      = 3.65489
  Normalizat = 0.873464
  Prefactor  = 0.973074
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.068     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0005        81.938        .10162E-03   -1.5425    
   2  Index         3.6549        6.7814        .50728E-02   -.27238    
   3  Normalizat    .87346        .36821        .59905E-03   -.97399    
   4  Prefactor     .97307        .91412E-01    .14081E-03   -.93633    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94564e-09
Minuit parameter uncertainties:
  1  25.6434
  2  5.327
  3  0.369273
  4  0.0914268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644574': 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): 102
logL (Free Index) = 6575.06810719
delta logL = 0.641866774487

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.001e+00  2.564e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  3.655e+00  5.327e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
609    Prefactor:  9.731e-01  9.143e-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.735e-01  3.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 260.686 10.235
Photon Index (Free Index): 3.65 +/- 5.33
Photon Flux (Free Index): 1.65e-07 +/- 1.57e-07
Energy Flux (Free Index): 2.64e-05 +/- 4.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/644574/cmap_HighResolution_539222401_539481601_4FGL_J1722.7+1014_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', energy_flux2='2.64e-05', dlogl='6.42e-01', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-17 07:29:12.915271', photon_index_error2='5.33', photon_index2='3.65', ts='0.09', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.57e-07', energy_flux_error2='4.52e-05', EG='1.00', time_epoch_completed='1631888952.92', return_code='0', job_id='644574', GAL2='0.97', EG2='0.87', return_code2='102', photon_flux_error2='1.57e-07', ts2='1.48', photon_index='2.21' WHERE bin_id='1157' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:29:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 644574: <4FGL_J1722.7+1014_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1157 260.686 10.2346 539222401 539481601 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 :                                   605.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

