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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1390
RA = 260.686, Dec = 10.2346
tmin = 599616001, tmax = 599875201
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='646065', job_status='RUN', time_executed='2021-09-17 07:20:40.095452', time_epoch_executed='1631888440.1' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646065

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646065/ft1_4FGL_J1722.7+1014_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646065/ft1_4FGL_J1722.7+1014_daily_bin1390.fits outfile=/scratch/kocevski/646065/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1390.fits ra=260.686 dec=10.2346 rad=12.0 tmin=599616001.0 tmax=599875201.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 2.03
user 1.85
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/646065/ltcube_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.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/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits
.....................!
real 9.82
user 9.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/646065/ltcube_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.fits outfile=/scratch/kocevski/646065/expmap_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.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/646065/ltcube_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.fits
.....................!
real 147.08
user 143.34
sys 3.49

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/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits scfile=/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits outfile=/scratch/kocevski/646065/cmap_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits scfile=/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits outfile=/scratch/kocevski/646065/cmap_HighResolution_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.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.45
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/646065/ft2_4FGL_J1722.7+1014_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646065/Model_4FGL_J1722.7+1014_daily_bin1390.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/646065/ft1_filtered_4FGL_J1722.7+1014_daily_bin1390.fits.....................!
real 80.70
user 79.53
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53559E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    104.77       1.0000         .10000E-03   10000.    
     7 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.708       1.0000         .10000E-03   10000.    
     9 'norm      '    .47050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25900E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1044       1.0000         .10000E-03   10000.    
    13 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    38.091       1.0000         .10000E-03   10000.    
    16 'norm      '    .30849       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0471       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=   12666.39     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1819 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2078        .14561E-06** at limit **
   2  Prefactor     .10000E-03    1.9956        .44527E-07** at limit **
   3  Prefactor     61.445        69.722       -.99402E-05    .34036E-04
   4  Prefactor     .10000E-03    6.7487       -.14979E-05** at limit **
   5  Prefactor     .10000E-03    7.8953       -.49601E-06** at limit **
   6  Prefactor     104.75        159.71       -.25689E-04    .22492E-05
   7  norm          .10003E-03    1.1027        .69404E-06** at limit **
   8  Prefactor     23.721        16.714        .80757E-06    .12651E-03
   9  norm          .10005E-03    4.3860        .15698E-05** at limit **
  10  Prefactor     26.691        44.310       -.20878E-04    .15082E-04
  11  Prefactor     .10004E-03    1.1831       -.62099E-06** at limit **
  12  norm          1.1082        1.3325        .17675E-06   -.10008E-02
  13  norm          .10000E-03    5.2726       -.33836E-05** at limit **
  14  norm          .10000E-03    4.5720        .10654E-06** at limit **
  15  norm          38.090        57.523       -.15794E-05   -.12241E-05
  16  norm          .30885        .74267       -.11981E-06   -.33198E-04
  17  Normalizat    1.0583        .25885        .12000E-05    .15895E-03
  18  Prefactor     1.0471        .71135E-01    .65879E-06    .25602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4448
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 104.746
  norm       = 0.000100035
  Prefactor  = 23.7207
  norm       = 0.000100045
  Prefactor  = 26.691
  Prefactor  = 0.000100045
  norm       = 1.10824
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.0901
  norm       = 0.30885
  Normalizat = 1.05829
  Prefactor  = 1.04708
 **********
 **   18 **HESSE 
 **********

 FCN=   12666.39     FROM HESSE     STATUS=OK           248 CALLS     2067 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2270        .16325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0058        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.445        69.649        .51185E-04   -1.4139    
   4  Prefactor     .10000E-03    6.9278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.273        .58531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     104.75        159.92        .19642E-03   -1.3657    
   7  norm          .10003E-03    5.7022        .22302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.721        16.043        .82267E-04   -1.4734    
   9  norm          .10005E-03    15.712        .44120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.691        44.453        .77522E-04   -1.4674    
  11  Prefactor     .10004E-03    13.265        .21822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1082        11.466        .22554E-02   -1.5497    
  13  norm          .10000E-03    5.4712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.5936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          38.090        57.529        .64940E-04   -1.4473    
  16  norm          .30885        .92940        .13978E-02   -1.5597    
  17  Normalizat    1.0583        .28353        .51630E-03   -.91103    
  18  Prefactor     1.0471        .81728E-01    .14652E-03   -.91176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48161e-08
Minuit parameter uncertainties:
  1  2.3458e-06
  2  9.50547e-07
  3  69.7416
  4  5.34946e-05
  5  0.00104819
  6  160.584
  7  0.000892612
  8  16.0463
  9  0.00168273
  10  44.5082
  11  0.00154445
  12  7.13094
  13  2.26576e-05
  14  1.75365e-05
  15  57.6125
  16  0.929443
  17  0.283939
  18  0.081738
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.372e+01  1.605e+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.047e+00  8.174e-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.058e+00  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.22e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 2.46e-05

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

Saving results to:
/scratch/kocevski/646065/likelihoodResults_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.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) = 12665.2981028
delta logL = 1.09687591475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12665.2753568
delta logL = 1.11962193921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8900       1.0000          .0000       10.000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   12665.28     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.291        15.084        .12493E-03    .95606E-03
   2  Index         2.8903        .67206        .44276E-02    .40323E-03
   3  Normalizat    1.0021        .28143        .52832E-03   -.36547E-03
   4  Prefactor     1.0546        .79450E-01    .14596E-03   -.11549E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2906
  Index      = 2.8903
  Normalizat = 1.00207
  Prefactor  = 1.05456
 **********
 **   18 **HESSE 
 **********

 FCN=   12665.28     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.291        11.416        .49971E-05   -1.5066    
   2  Index         2.8903        .50895        .17710E-03   -.43558    
   3  Normalizat    1.0021        .28100        .21133E-04   -.92961    
   4  Prefactor     1.0546        .79271E-01    .29192E-04   -.90932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50851e-10
Minuit parameter uncertainties:
  1  11.4183
  2  0.51003
  3  0.281418
  4  0.0792801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646065': 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) = 12665.2753539
delta logL = 1.11962484471

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.029e+01  1.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.890e+00  5.100e-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.055e+00  7.928e-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.002e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.89 +/- 0.51
Photon Flux (Free Index): 1.47e-07 +/- 7.92e-08
Energy Flux (Free Index): 3.11e-05 +/- 1.68e-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/646065/cmap_HighResolution_599616001_599875201_4FGL_J1722.7+1014_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='8.22e-08', energy_flux2='3.11e-05', photon_flux_error='5.56e-08', dlogl='1.12e+00', energy_flux='3.63e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-17 07:31:47.889814', photon_index_error2='0.51', photon_index2='2.89', ts='2.87', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.68e-05', EG='1.06', time_epoch_completed='1631889107.89', return_code='0', job_id='646065', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='7.92e-08', ts2='5.18', photon_index='2.21' WHERE bin_id='1390' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 646065: <4FGL_J1722.7+1014_daily_bin1390> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1390> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 07:20:30 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:20:32 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:20:32 2021
Terminated at Fri Sep 17 07:31:48 2021
Results reported at Fri Sep 17 07:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1390 260.686 10.2346 599616001 599875201 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 :                                   662.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

