/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1722.7+1014_daily_bin910
RA = 260.686, Dec = 10.2346
tmin = 475200001, tmax = 475459201
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='642992', job_status='RUN', time_executed='2021-09-17 07:10:58.753248', time_epoch_executed='1631887858.75' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642992/ft1_4FGL_J1722.7+1014_daily_bin910.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642992/ft1_4FGL_J1722.7+1014_daily_bin910.fits outfile=/scratch/kocevski/642992/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin910.fits ra=260.686 dec=10.2346 rad=12.0 tmin=475200001.0 tmax=475459201.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.53
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits" evtable="EVENTS" scfile=/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits sctable="SC_DATA" outfile=/scratch/kocevski/642992/ltcube_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.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/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits
.....................!
real 11.69
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits sctable="SC_DATA" expcube=/scratch/kocevski/642992/ltcube_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.fits outfile=/scratch/kocevski/642992/expmap_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.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/642992/ltcube_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.fits
.....................!
real 193.15
user 187.30
sys 5.46

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/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits scfile=/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits outfile=/scratch/kocevski/642992/cmap_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits scfile=/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits outfile=/scratch/kocevski/642992/cmap_HighResolution_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.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/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/642992/ft2_4FGL_J1722.7+1014_daily_bin910.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642992/Model_4FGL_J1722.7+1014_daily_bin910.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/642992/ft1_filtered_4FGL_J1722.7+1014_daily_bin910.fits.....................!
real 123.88
user 121.80
sys 1.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88253E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1231       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.108       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2850       1.0000         .10000E-03   10000.    
    12 'norm      '    21.113       1.0000         .10000E-03   10000.    
    13 'norm      '    .56060       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5128       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2913       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14720.47     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1291 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2496        .32066E-05** at limit **
   2  Prefactor     .10407E-03    28.030        .16667E-04** at limit **
   3  Prefactor     .10000E-03    18.009        .12927E-04** at limit **
   4  Prefactor     .10000E-03    2.4453        .27166E-05** at limit **
   5  Prefactor     5.5554        1.0197        .58995E-06    .72447E-04
   6  Prefactor     .10084E-03    126.98       -.23806E-03** at limit **
   7  norm          8.1231        3.5479        .12358E-05    .30697E-03
   8  Prefactor     12.111        1.1036        .99093E-06    .15662E-02
   9  norm          .10000E-03    4.3401        .59407E-05** at limit **
  10  Prefactor     .10183E-03    39.759        .82711E-04** at limit **
  11  Prefactor     1.2830        2.9701       -.14302E-05    .16340E-04
  12  norm          21.111        1.0940       -.13139E-05   -.16012E-02
  13  norm          .56399        5.9861       -.71769E-05   -.13585E-03
  14  norm          2.5122        6.4134       -.34153E-04   -.10744E-03
  15  norm          .10000E-03    33.318       -.32888E-04** at limit **
  16  norm          .10000E-03    .78665       -.43460E-05** at limit **
  17  Normalizat    1.2913        .29950       -.25642E-04   -.62337E-04
  18  Prefactor     1.0785        .79590E-01    .91243E-05   -.30352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000104068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.55544
  Prefactor  = 0.000100845
  norm       = 8.12312
  Prefactor  = 12.1113
  norm       = 0.0001
  Prefactor  = 0.000101828
  Prefactor  = 1.28297
  norm       = 21.1112
  norm       = 0.56399
  norm       = 2.51223
  norm       = 0.000100002
  norm       = 0.0001
  Normalizat = 1.29131
  Prefactor  = 1.07848
 **********
 **   18 **HESSE 
 **********

 FCN=   14720.47     FROM HESSE     STATUS=OK           294 CALLS     1585 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10407E-03    2.2027        .91521E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5554        13.808        .42616E-02   -1.5237    
   6  Prefactor     .10084E-03    135.20        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1231        3.5642        .35168E-02   -1.5138    
   8  Prefactor     12.111        10.925        .28780E-02   -1.5012    
   9  norm          .10000E-03    4.3345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10183E-03    58.917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2830        3.0549        .97791E-02   -1.5481    
  12  norm          21.111        10.289        .21792E-02   -1.4789    
  13  norm          .56399        1.7650        .78575E-01   -1.5558    
  14  norm          2.5122        6.4774        .64437E-02   -1.5391    
  15  norm          .10000E-03    33.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .35517        .24524E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2913        .26998        .11985       -.83826    
  18  Prefactor     1.0785        .69091E-01    .38469E-01   -.90157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86569e-07
Minuit parameter uncertainties:
  1  1.11023e-05
  2  0.00598704
  3  1.26824e-05
  4  1.43555e-05
  5  13.8161
  6  0.0214214
  7  3.5643
  8  10.9267
  9  2.24386e-05
  10  0.0207757
  11  3.05523
  12  10.2902
  13  1.76514
  14  6.47916
  15  0.000560115
  16  5.32624e-07
  17  0.270273
  18  0.0690971
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.211e+01  1.093e+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.078e+00  6.910e-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.291e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/642992/likelihoodResults_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.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) = 14720.3136412
delta logL = 0.160250454162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14720.3070257
delta logL = 0.166865920381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.306       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8162       1.0000          .0000       10.000    
     3 'Normalizat'    1.3092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       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=   14720.31     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      235 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.307        12.562        .10981E-03   -.13355E-02
   2  Index         1.8164        .64738        .13760E-01   -.36265E-03
   3  Normalizat    1.3092        .29319        .52855E-03    .18287E-03
   4  Prefactor     1.0767        .77442E-01    .15096E-03    .69661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3068
  Index      = 1.81645
  Normalizat = 1.30922
  Prefactor  = 1.07672
 **********
 **   18 **HESSE 
 **********

 FCN=   14720.31     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.307        12.657        .21962E-04   -1.4978    
   2  Index         1.8164        .65226        .55042E-03   -.69022    
   3  Normalizat    1.3092        .29329        .21142E-04   -.83291    
   4  Prefactor     1.0767        .77484E-01    .30192E-04   -.90214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18619e-09
Minuit parameter uncertainties:
  1  12.6598
  2  0.655411
  3  0.293664
  4  0.0774923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642992': 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) = 14720.3070256
delta logL = 0.166866018339

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.331e+01  1.266e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.816e+00  6.554e-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.077e+00  7.749e-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.309e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 260.686 10.235
Photon Index (Free Index): 1.82 +/- 0.66
Photon Flux (Free Index): 2.33e-08 +/- 3.50e-08
Energy Flux (Free Index): 2.65e-05 +/- 3.21e-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/642992/cmap_HighResolution_475200001_475459201_4FGL_J1722.7+1014_daily_bin910.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='2.65e-05', photon_flux_error='3.79e-08', dlogl='1.67e-01', energy_flux='1.86e-05', photon_flux2='2.33e-08', job_status='DONE', time_completed='2021-09-17 07:25:42.534921', photon_index_error2='0.66', photon_index2='1.82', ts='2.92', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='3.21e-05', EG='1.29', time_epoch_completed='1631888742.53', return_code='0', job_id='642992', GAL2='1.08', EG2='1.31', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.50e-08', ts2='3.25', photon_index='2.21' WHERE bin_id='910' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 642992: <4FGL_J1722.7+1014_daily_bin910> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin910> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 17 07:10:24 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:10:25 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:10:25 2021
Terminated at Fri Sep 17 07:25:43 2021
Results reported at Fri Sep 17 07:25:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin910 260.686 10.2346 475200001 475459201 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 :                                   881.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

