/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 3 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 = 7372
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1722.7+1014_daily_bin289
RA = 260.686, Dec = 10.2346
tmin = 314236801, tmax = 314496001
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='636540', job_status='RUN', time_executed='2021-09-17 06:55:33.844233', time_epoch_executed='1631886933.84' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636540

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636540/ft1_4FGL_J1722.7+1014_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636540/ft1_4FGL_J1722.7+1014_daily_bin289.fits outfile=/scratch/kocevski/636540/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin289.fits ra=260.686 dec=10.2346 rad=12.0 tmin=314236801.0 tmax=314496001.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.40
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.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/636540/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin289.fits evtable="EVENTS" outfile="/scratch/kocevski/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/636540/ltcube_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.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/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits
.....................!
real 12.07
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/636540/ltcube_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.fits outfile=/scratch/kocevski/636540/expmap_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.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/636540/ltcube_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.fits
.....................!
real 190.15
user 185.05
sys 4.70

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/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits outfile=/scratch/kocevski/636540/cmap_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits outfile=/scratch/kocevski/636540/cmap_HighResolution_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/636540/ft2_4FGL_J1722.7+1014_daily_bin289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636540/Model_4FGL_J1722.7+1014_daily_bin289.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/636540/ft1_filtered_4FGL_J1722.7+1014_daily_bin289.fits.....................!
real 107.26
user 105.84
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14646E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    97.469       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .34559       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1463       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1351       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=   13040.28     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1805 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    2.8363       -.43301E-06** at limit **
   2  Prefactor     .10000E-03    4.2312        .10057E-07** at limit **
   3  Prefactor     .10000E-03    22.775        .12223E-05** at limit **
   4  Prefactor     .10000E-03    4.9841       -.12091E-06** at limit **
   5  Prefactor     .10000E-03    4.0544       -.68817E-07** at limit **
   6  Prefactor     97.684        167.37        .20768E-03    .18502E-06
   7  norm          1.6354        1.6760        .94589E-07    .16912E-03
   8  Prefactor     .10000E-03    5.7495        .14166E-06** at limit **
   9  norm          10.482        8.7706       -.10161E-05   -.29165E-04
  10  Prefactor     16.135        62.017       -.33228E-04   -.13147E-04
  11  Prefactor     .10000E-03    2.1781        .28932E-06** at limit **
  12  norm          .10000E-03    5.0203        .31853E-06** at limit **
  13  norm          .10000E-03    1.2305        .70652E-07** at limit **
  14  norm          .10000E-03    3.2696        .17120E-06** at limit **
  15  norm          .10000E-03    21.146       -.10067E-05** at limit **
  16  norm          .34525        .64660        .78483E-08   -.17099E-02
  17  Normalizat    1.1466        .27943        .26382E-05   -.17902E-03
  18  Prefactor     1.1351        .73750E-01   -.22347E-05    .77133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.6843
  norm       = 1.63538
  Prefactor  = 0.0001
  norm       = 10.4819
  Prefactor  = 16.1353
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.345249
  Normalizat = 1.14664
  Prefactor  = 1.13507
 **********
 **   18 **HESSE 
 **********

 FCN=   13040.28     FROM HESSE     STATUS=OK           252 CALLS     2057 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    5.6627        .57714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     97.684        167.15        .20358E-03   -1.3728    
   7  norm          1.6354        1.6802        .14576E-03   -1.5452    
   8  Prefactor     .10000E-03    5.7637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.482        8.7584        .12376E-03   -1.5060    
  10  Prefactor     16.135        62.044        .99647E-04   -1.4904    
  11  Prefactor     .10000E-03    2.2724        .32828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.0449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7518        .24524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    21.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .34525        .58555        .11906E-02   -1.5590    
  17  Normalizat    1.1466        .31356        .55899E-03   -.88268    
  18  Prefactor     1.1351        .82899E-01    .14752E-03   -.88353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71655e-09
Minuit parameter uncertainties:
  1  0.00441594
  2  1.21407e-05
  3  1.91653e-05
  4  2.49479e-05
  5  4.90959e-06
  6  167.968
  7  1.6802
  8  3.57702e-05
  9  8.75947
  10  62.2941
  11  3.97171e-05
  12  4.59426e-05
  13  6.83709e-05
  14  4.09865e-05
  15  3.9741e-06
  16  0.585558
  17  0.314071
  18  0.0829088
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.577e-05  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.135e+00  8.291e-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.147e+00  3.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636540/likelihoodResults_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.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): 0
logL (Free Index) = 13040.278973
delta logL = -0.000826898351079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13040.2781461
delta logL = 1.54614099301e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2087       1.0000          .0000       10.000    
     3 'Normalizat'    1.1466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1351       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=   13040.28     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    176.78        .90712E-02** at limit **
   2  Index         2.2087        5.8766        .24712        .80233E-07
   3  Normalizat    1.1466        .40861E-01    .12598        .37170E-04
   4  Prefactor     1.1351        .10783E-01    .36384E-01   -.50146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20865
  Normalizat = 1.14665
  Prefactor  = 1.13507
 **********
 **   18 **HESSE 
 **********

 FCN=   13040.28     FROM HESSE     STATUS=OK            27 CALLS      222 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2087        8.8753        .98847E-02   -.59230    
   3  Normalizat    1.1466        .30803        .55899E-03   -.88268    
   4  Prefactor     1.1351        .81760E-01    .14752E-03   -.88353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46694e-11
Minuit parameter uncertainties:
  1  8.46818e-07
  2  381.465
  3  0.308519
  4  0.0817686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636540': 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) = 13040.2781461
delta logL = 6.5665517468e-10

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  8.468e-07  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.209e+00  3.815e+02  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.135e+00  8.177e-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.147e+00  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 260.686 10.235

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/636540/cmap_HighResolution_314236801_314496001_4FGL_J1722.7+1014_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-17 07:10:13.091735', job_id='636540', GAL2='1.14', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631887813.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.57e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='289' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 636540: <4FGL_J1722.7+1014_daily_bin289> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin289> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 06:55:20 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 06:55:22 2021
Terminated at Fri Sep 17 07:10:13 2021
Results reported at Fri Sep 17 07:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin289 260.686 10.2346 314236801 314496001 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 :                                   873.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

