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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin334
RA = 260.686, Dec = 10.2346
tmin = 325900801, tmax = 326160001
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='636618', job_status='RUN', time_executed='2021-09-17 06:55:43.308998', time_epoch_executed='1631886943.31' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636618/ft1_4FGL_J1722.7+1014_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636618/ft1_4FGL_J1722.7+1014_daily_bin334.fits outfile=/scratch/kocevski/636618/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin334.fits ra=260.686 dec=10.2346 rad=12.0 tmin=325900801.0 tmax=326160001.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.46
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/636618/ltcube_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.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/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits
.....................!
real 12.34
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/636618/ltcube_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.fits outfile=/scratch/kocevski/636618/expmap_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.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/636618/ltcube_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.fits
.....................!
real 193.89
user 188.32
sys 5.21

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/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits scfile=/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits outfile=/scratch/kocevski/636618/cmap_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits scfile=/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits outfile=/scratch/kocevski/636618/cmap_HighResolution_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/636618/ft2_4FGL_J1722.7+1014_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636618/Model_4FGL_J1722.7+1014_daily_bin334.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/636618/ft1_filtered_4FGL_J1722.7+1014_daily_bin334.fits....................!
real 98.21
user 93.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    101.15       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6769       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5932       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8866       1.0000         .10000E-03   10000.    
    14 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .31589       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2784       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95510       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=   11288.39     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1722 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7390        1.5035        .47884E-06   -.31149E-02
   2  Prefactor     7.6837        5.5418       -.25614E-05   -.50006E-04
   3  Prefactor     .10000E-03    65.452        .96828E-05** at limit **
   4  Prefactor     .10000E-03    3.7766       -.21136E-06** at limit **
   5  Prefactor     11.196        14.342       -.48761E-05   -.15094E-04
   6  Prefactor     101.16        100.53        .27675E-05    .52396E-05
   7  norm          .10000E-03    1.1112        .12370E-07** at limit **
   8  Prefactor     .10000E-03    5.3409       -.48190E-07** at limit **
   9  norm          26.524        12.470       -.33171E-06    .10087E-04
  10  Prefactor     50.077        62.780       -.18986E-04    .19339E-05
  11  Prefactor     1.6763        2.8269        .32986E-09   -.44410E-04
  12  norm          3.5928        7.8499       -.73201E-05   -.36905E-04
  13  norm          6.8877        4.3244        .43065E-07   -.68907E-03
  14  norm          .10000E-03    3.5218       -.89943E-08** at limit **
  15  norm          .10000E-03    79.679       -.13440E-04** at limit **
  16  norm          .31621        .81599       -.26730E-06   -.49842E-03
  17  Normalizat    1.2788        .27600        .36603E-05    .41420E-04
  18  Prefactor     .95500        .73014E-01    .40195E-06    .21107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73903
  Prefactor  = 7.68374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1957
  Prefactor  = 101.157
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.5241
  Prefactor  = 50.0775
  Prefactor  = 1.6763
  norm       = 3.59279
  norm       = 6.88767
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.31621
  Normalizat = 1.27876
  Prefactor  = 0.954997
 **********
 **   18 **HESSE 
 **********

 FCN=   11288.39     FROM HESSE     STATUS=OK           244 CALLS     1966 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7390        4.5322        .15909E-02   -1.5444    
   2  Prefactor     7.6837        5.5484        .14466E-03   -1.5154    
   3  Prefactor     .10000E-03    65.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.196        14.407        .11969E-03   -1.5039    
   6  Prefactor     101.16        100.54        .39974E-04   -1.3693    
   7  norm          .10000E-03    1.1188        .10933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.524        12.403        .77784E-04   -1.4677    
  10  Prefactor     50.077        62.632        .56659E-04   -1.4291    
  11  Prefactor     1.6763        2.7925        .21188E-03   -1.5449    
  12  norm          3.5928        7.8332        .21317E-03   -1.5329    
  13  norm          6.8877        4.3741        .76443E-03   -1.5183    
  14  norm          .10000E-03    3.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    79.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .31621        .81687        .14538E-03   -1.5596    
  17  Normalizat    1.2788        .31511        .48060E-03   -.84203    
  18  Prefactor     .95500        .83936E-01    .14738E-03   -.94245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15047e-08
Minuit parameter uncertainties:
  1  4.53312
  2  5.5488
  3  4.64153e-05
  4  8.33353e-06
  5  14.4116
  6  100.708
  7  1.6035e-06
  8  1.35078e-05
  9  12.4043
  10  62.7145
  11  2.79268
  12  7.83544
  13  4.37434
  14  3.79746e-05
  15  0.000145492
  16  0.816899
  17  0.315588
  18  0.0839477
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.351e-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:  9.550e-01  8.395e-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.279e+00  3.156e-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: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636618/likelihoodResults_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.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) = 11288.3930262
delta logL = -0.000889281431228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11288.3921371
delta logL = -2.07390257856e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1728       1.0000          .0000       10.000    
     3 'Normalizat'    1.2786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95504       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=   11288.39     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.5700        .18142E-02** at limit **
   2  Index         2.1377        6.0582        .50000        .48929E-04
   3  Normalizat    1.2788        .29707        .48060E-03    .25075E-04
   4  Prefactor     .95500        .80921E-01    .14738E-03    .14764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.13767
  Normalizat = 1.27876
  Prefactor  = 0.954997
 **********
 **   18 **HESSE 
 **********

 FCN=   11288.39     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.9574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1377        6.0666        .50000       -.60951    
   3  Normalizat    1.2788        .29725        .19224E-04   -.84203    
   4  Prefactor     .95500        .80969E-01    .29477E-04   -.94245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23322e-09
Minuit parameter uncertainties:
  1  0.00058409
  2  4.11336
  3  0.297646
  4  0.0809797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636618': 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) = 11288.392136
delta logL = 8.96998244571e-07

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.841e-04  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.138e+00  4.113e+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.550e-01  8.098e-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.279e+00  2.976e-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/636618/cmap_HighResolution_325900801_326160001_4FGL_J1722.7+1014_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-17 07:09:23.012216', job_id='636618', GAL2='0.95', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631887763.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='334' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 636618: <4FGL_J1722.7+1014_daily_bin334> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin334> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 06:55:27 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:55:29 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:29 2021
Terminated at Fri Sep 17 07:09:23 2021
Results reported at Fri Sep 17 07:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin334 260.686 10.2346 325900801 326160001 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 :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

