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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1120
RA = 260.686, Dec = 10.2346
tmin = 529632001, tmax = 529891201
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='644517', job_status='RUN', time_executed='2021-09-17 07:15:45.558091', time_epoch_executed='1631888145.56' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644517

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644517/ft1_4FGL_J1722.7+1014_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644517/ft1_4FGL_J1722.7+1014_daily_bin1120.fits outfile=/scratch/kocevski/644517/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1120.fits ra=260.686 dec=10.2346 rad=12.0 tmin=529632001.0 tmax=529891201.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/644517/ltcube_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.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/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits
.....................!
real 12.20
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/644517/ltcube_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.fits outfile=/scratch/kocevski/644517/expmap_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.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/644517/ltcube_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.fits
.....................!
real 190.38
user 185.08
sys 4.94

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/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits scfile=/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits outfile=/scratch/kocevski/644517/cmap_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits scfile=/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits outfile=/scratch/kocevski/644517/cmap_HighResolution_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.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/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/644517/ft2_4FGL_J1722.7+1014_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644517/Model_4FGL_J1722.7+1014_daily_bin1120.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/644517/ft1_filtered_4FGL_J1722.7+1014_daily_bin1120.fits.....................!
real 100.28
user 98.92
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13052E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31199E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5447       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44293       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .90899       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0688       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=   11633.13     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     1234 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.254        5.6417        .57344E-05   -.21157E-02
   2  Prefactor     .10000E-03    6.4257       -.22368E-06** at limit **
   3  Prefactor     .10002E-03    34.157       -.22171E-04** at limit **
   4  Prefactor     .10000E-03    21.756       -.28701E-06** at limit **
   5  Prefactor     3.4283        1.0760        .12917E-06   -.50201E-04
   6  Prefactor     .10895E-03    405.11       -.31971E-04** at limit **
   7  norm          .10000E-03    1.6828        .10937E-06** at limit **
   8  Prefactor     11.785        3.2351        .15814E-05    .21674E-02
   9  norm          .10000E-03    2.9563       -.48135E-07** at limit **
  10  Prefactor     .16842E-03    25.678        .98004E-05** at limit **
  11  Prefactor     .10000E-03    1.0444        .92879E-07** at limit **
  12  norm          .10000E-03    5.5722       -.60477E-07** at limit **
  13  norm          .10000E-03    1.5908        .60209E-07** at limit **
  14  norm          2.5450        3.9362        .11000E-04    .23564E-02
  15  norm          .10002E-03    35.412        .22676E-04** at limit **
  16  norm          .44245        .50781       -.60447E-07   -.98682E-05
  17  Normalizat    .90937        .29543       -.46712E-05   -.10643E-04
  18  Prefactor     1.0688        .80050E-01    .15081E-05    .66559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2536
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 3.42826
  Prefactor  = 0.000108947
  norm       = 0.0001
  Prefactor  = 11.7851
  norm       = 0.0001
  Prefactor  = 0.000168418
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.54498
  norm       = 0.000100018
  norm       = 0.442453
  Normalizat = 0.909373
  Prefactor  = 1.06882
 **********
 **   18 **HESSE 
 **********

 FCN=   11633.13     FROM HESSE     STATUS=OK           284 CALLS     1518 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.254        7.1391        .26523E-02   -1.4953    
   2  Prefactor     .10000E-03    6.3158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    35.958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5189        .10288       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4283        14.024        .54589E-02   -1.5338    
   6  Prefactor     .10895E-03    436.70        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.785        11.461        .29178E-02   -1.5021    
   9  norm          .10000E-03    2.9544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16842E-03    277.42        .10687E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5450        6.1520        .63997E-02   -1.5389    
  15  norm          .10002E-03    37.171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44245        .61131        .19454E-01   -1.5575    
  17  Normalizat    .90937        .28024        .12726       -.96132    
  18  Prefactor     1.0688        .72270E-01    .38914E-01   -.90469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17546e-07
Minuit parameter uncertainties:
  1  7.13953
  2  1.56214e-05
  3  0.00151605
  4  3.35584e-05
  5  13.8732
  6  0.125944
  7  3.41598e-06
  8  11.4635
  9  1.4996e-06
  10  0.276833
  11  1.11883e-06
  12  3.76996e-06
  13  7.40361e-07
  14  6.15355
  15  0.00162906
  16  0.61132
  17  0.280686
  18  0.0722768
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.179e+01  1.146e+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.069e+00  7.228e-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:  9.094e-01  2.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/644517/likelihoodResults_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.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) = 11633.0594402
delta logL = 0.0710033062605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11633.0567269
delta logL = 0.0737166471172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.556       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9867       1.0000          .0000       10.000    
     3 'Normalizat'    .91660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0683       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=   11633.06     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.556        13.736        .10879E-03    .35740E-03
   2  Index         1.9865        .58675        .93754E-02    .11638E-03
   3  Normalizat    .91661        .29538        .56271E-03   -.55479E-04
   4  Prefactor     1.0683        .79880E-01    .14070E-03   -.24984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5559
  Index      = 1.98648
  Normalizat = 0.916605
  Prefactor  = 1.06826
 **********
 **   18 **HESSE 
 **********

 FCN=   11633.06     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.556        13.635        .21758E-04   -1.4971    
   2  Index         1.9865        .58254        .37502E-03   -.64688    
   3  Normalizat    .91661        .29546        .22508E-04   -.95879    
   4  Prefactor     1.0683        .79912E-01    .56278E-05   -.90487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95138e-10
Minuit parameter uncertainties:
  1  13.6383
  2  0.584633
  3  0.29598
  4  0.0799209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644517': 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) = 11633.0567268
delta logL = 0.0737167223888

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.356e+01  1.364e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.986e+00  5.846e-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.068e+00  7.992e-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:  9.166e-01  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 260.686 10.235
Photon Index (Free Index): 1.99 +/- 0.58
Photon Flux (Free Index): 3.13e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.59e-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/644517/cmap_HighResolution_529632001_529891201_4FGL_J1722.7+1014_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='2.24e-05', photon_flux_error='3.97e-08', dlogl='7.37e-02', energy_flux='1.81e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-09-17 07:28:24.296982', photon_index_error2='0.58', photon_index2='1.99', ts='2.13', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.59e-05', EG='0.91', time_epoch_completed='1631888904.3', return_code='0', job_id='644517', GAL2='1.07', EG2='0.92', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='4.16e-08', ts2='2.27', photon_index='2.21' WHERE bin_id='1120' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:28:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 644517: <4FGL_J1722.7+1014_daily_bin1120> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1120> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 07:15:27 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:15: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 07:15:29 2021
Terminated at Fri Sep 17 07:28:25 2021
Results reported at Fri Sep 17 07:28:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1120 260.686 10.2346 529632001 529891201 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 :                                   753.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             366.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

