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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin485
RA = 260.686, Dec = 10.2346
tmin = 365040001, tmax = 365299201
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='639715', job_status='RUN', time_executed='2021-09-17 07:00:39.282826', time_epoch_executed='1631887239.28' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639715/ft1_4FGL_J1722.7+1014_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639715/ft1_4FGL_J1722.7+1014_daily_bin485.fits outfile=/scratch/kocevski/639715/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin485.fits ra=260.686 dec=10.2346 rad=12.0 tmin=365040001.0 tmax=365299201.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.61
user 3.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/639715/ltcube_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.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/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits
.....................!
real 12.18
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/639715/ltcube_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.fits outfile=/scratch/kocevski/639715/expmap_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.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/639715/ltcube_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.fits
.....................!
real 191.64
user 185.47
sys 5.80

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/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits scfile=/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits outfile=/scratch/kocevski/639715/cmap_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits scfile=/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits outfile=/scratch/kocevski/639715/cmap_HighResolution_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.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/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/639715/ft2_4FGL_J1722.7+1014_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639715/Model_4FGL_J1722.7+1014_daily_bin485.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/639715/ft1_filtered_4FGL_J1722.7+1014_daily_bin485.fits.....................!
real 105.10
user 103.66
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32835E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3378       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8158       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5337       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5637       1.0000         .10000E-03   10000.    
    14 'norm      '    .10554E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    137.12       1.0000         .10000E-03   10000.    
    16 'norm      '    .69308       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4888       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92558       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=   12409.91     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     2110 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36662        22.370        .40679E-02    .80442E-03
   2  Prefactor     .10000E-03    4.5149        .18142E-02** at limit **
   3  Prefactor     .10000E-03    30.233        .18142E-02** at limit **
   4  Prefactor     9.4645        10.222        .13023E-03    .67569E-04
   5  Prefactor     .10007E-03    13.603        .99424E-01** at limit **
   6  Prefactor     .10000E-03    148.51        .18142E-02** at limit **
   7  norm          .10000E-03    1.5624        .13462E-02** at limit **
   8  Prefactor     5.3366        10.449        .17395E-03    .10588E-04
   9  norm          .10000E-03    3.6033        .18142E-02** at limit **
  10  Prefactor     73.862        65.583        .23349E-03    .34570E-04
  11  Prefactor     3.8147        3.2196        .17203E-03   -.19905E-03
  12  norm          2.5344        5.5621        .25659E-03   -.63003E-04
  13  norm          1.5638        2.7781        .23940E-03   -.43613E-03
  14  norm          .10000E-03    6.1454        .18142E-02** at limit **
  15  norm          137.11        109.48        .17198E-03    .11634E-04
  16  norm          .69328        .61992        .88660E-03    .18382E-02
  17  Normalizat    1.4893        .32088        .47720E-03    .18830E-03
  18  Prefactor     .92550        .78210E-01    .15038E-03   -.22287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.366615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.46455
  Prefactor  = 0.000100067
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 5.33663
  norm       = 0.0001
  Prefactor  = 73.8623
  Prefactor  = 3.81467
  norm       = 2.53443
  norm       = 1.56379
  norm       = 0.0001
  norm       = 137.106
  norm       = 0.693283
  Normalizat = 1.48932
  Prefactor  = 0.925501
 **********
 **   18 **HESSE 
 **********

 FCN=   12409.91     FROM HESSE     STATUS=OK           240 CALLS     2350 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36662        22.527        .16271E-03   -1.5587    
   2  Prefactor     .10000E-03    4.5177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4645        10.221        .52091E-05   -1.5093    
   5  Prefactor     .10007E-03    12.744        .10367       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    148.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5630        .26923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3366        10.448        .69581E-05   -1.5246    
   9  norm          .10000E-03    3.6035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     73.862        65.569        .93397E-05   -1.3987    
  11  Prefactor     3.8147        3.2183        .68813E-05   -1.5317    
  12  norm          2.5344        5.5617        .10264E-04   -1.5390    
  13  norm          1.5638        2.7777        .95760E-05   -1.5458    
  14  norm          .10000E-03    6.1500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          137.11        109.49        .68792E-05   -1.3361    
  16  norm          .69328        .61962        .35464E-04   -1.5541    
  17  Normalizat    1.4893        .32044        .19088E-04   -.78079    
  18  Prefactor     .92550        .78261E-01    .30076E-04   -.95256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77139e-09
Minuit parameter uncertainties:
  1  5.74905
  2  1.22522e-05
  3  2.18271e-05
  4  10.2233
  5  0.00185165
  6  0.00157102
  7  1.09242e-06
  8  10.4514
  9  3.87901e-06
  10  65.6336
  11  3.21841
  12  5.56287
  13  2.77797
  14  5.81966e-05
  15  109.648
  16  0.619621
  17  0.320875
  18  0.0782708
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  5.337e+00  1.045e+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.255e-01  7.827e-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.489e+00  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639715/likelihoodResults_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.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) = 12408.9120926
delta logL = 1.00220733764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12408.8615611
delta logL = 1.05273884678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11425       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8419       1.0000          .0000       10.000    
     3 'Normalizat'    1.3424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94720       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=   12408.86     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      299 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11406        .81244        .54428E-02    .52089E-02
   2  Index         4.8432        1.6703        .89973E-01    .37197E-03
   3  Normalizat    1.3424        .59798E-01    .11216        .11391E-03
   4  Prefactor     .94720        .15406E-01    .33652E-01    .30573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.114064
  Index      = 4.84323
  Normalizat = 1.34235
  Prefactor  = 0.947204
 **********
 **   18 **HESSE 
 **********

 FCN=   12408.86     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      330 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11406        2.4565        .24648E-04   -1.5640    
   2  Index         4.8432        3.3737        .46595E-02   -.31358E-01
   3  Normalizat    1.3424        .25316        .49726E-03   -.82311    
   4  Prefactor     .94720        .63814E-01    .14870E-03   -.94511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48e-06
Minuit parameter uncertainties:
  1  1.05827
  2  3.7035
  3  0.253397
  4  0.0638189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639715': 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) = 12408.8615579
delta logL = 1.05274200508

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.141e-01  1.058e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  4.843e+00  3.704e+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.472e-01  6.382e-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.342e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 260.686 10.235
Photon Index (Free Index): 4.84 +/- 3.70
Photon Flux (Free Index): 1.68e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.26e-05 +/- 1.79e-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/639715/cmap_HighResolution_365040001_365299201_4FGL_J1722.7+1014_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', energy_flux2='2.26e-05', dlogl='1.05e+00', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-17 07:15:56.740781', photon_index_error2='3.70', photon_index2='4.84', ts='0.38', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.79e-05', EG='1.49', time_epoch_completed='1631888156.74', return_code='0', job_id='639715', GAL2='0.95', EG2='1.34', return_code2='102', photon_flux_error2='1.12e-07', ts2='2.71', photon_index='2.21' WHERE bin_id='485' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:15:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 639715: <4FGL_J1722.7+1014_daily_bin485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin485 260.686 10.2346 365040001 365299201 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 :                                   912.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             374.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

