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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1074
RA = 260.686, Dec = 10.2346
tmin = 517708801, tmax = 517968001
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='644445', job_status='RUN', time_executed='2021-09-17 07:15:38.997373', time_epoch_executed='1631888139.0' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644445/ft1_4FGL_J1722.7+1014_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644445/ft1_4FGL_J1722.7+1014_daily_bin1074.fits outfile=/scratch/kocevski/644445/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1074.fits ra=260.686 dec=10.2346 rad=12.0 tmin=517708801.0 tmax=517968001.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.72
user 3.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/644445/ltcube_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.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/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits
.....................!
real 12.60
user 12.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/644445/ltcube_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.fits outfile=/scratch/kocevski/644445/expmap_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.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/644445/ltcube_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.fits
.....................!
real 192.36
user 186.33
sys 5.19

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/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits scfile=/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits outfile=/scratch/kocevski/644445/cmap_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=260.686 yref=10.2346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits scfile=/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits outfile=/scratch/kocevski/644445/cmap_HighResolution_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/644445/ft2_4FGL_J1722.7+1014_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644445/Model_4FGL_J1722.7+1014_daily_bin1074.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/644445/ft1_filtered_4FGL_J1722.7+1014_daily_bin1074.fits.....................!
real 112.29
user 110.73
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.172       1.0000         .10000E-03   10000.    
     9 'norm      '    11.555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12409E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10589E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .75324       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83928       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0977       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=   13366.82     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1763 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5358        4.0055        .20052E-05    .69615E-04
   2  Prefactor     8.0505        6.1236        .22661E-06   -.40915E-06
   3  Prefactor     .10000E-03    40.358        .14074E-06** at limit **
   4  Prefactor     .10000E-03    9.3229       -.29105E-06** at limit **
   5  Prefactor     12.180        12.934        .37687E-06   -.14859E-04
   6  Prefactor     .10000E-03    168.07        .61607E-05** at limit **
   7  norm          1.1215        2.2694        .16536E-06   -.74199E-05
   8  Prefactor     21.166        15.527       -.25555E-06   -.15549E-03
   9  norm          11.551        9.0589        .21371E-06   -.12261E-03
  10  Prefactor     6.4052        197.13        .32205E-04   -.78742E-05
  11  Prefactor     .10006E-03    1.4231        .61918E-06** at limit **
  12  norm          .10000E-03    10.821       -.16340E-05** at limit **
  13  norm          .10000E-03    1.4469       -.47695E-07** at limit **
  14  norm          .10000E-03    6.6176       -.11407E-05** at limit **
  15  norm          .10000E-03    139.51       -.67943E-05** at limit **
  16  norm          .75284        .77148       -.16611E-06   -.11425E-02
  17  Normalizat    .83943        .28842       -.28235E-05   -.85142E-04
  18  Prefactor     1.0976        .71253E-01    .26377E-06   -.18237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53579
  Prefactor  = 8.05052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.18
  Prefactor  = 0.0001
  norm       = 1.12148
  Prefactor  = 21.1665
  norm       = 11.5509
  Prefactor  = 6.40516
  Prefactor  = 0.000100056
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.752839
  Normalizat = 0.839431
  Prefactor  = 1.09763
 **********
 **   18 **HESSE 
 **********

 FCN=   13366.82     FROM HESSE     STATUS=OK           250 CALLS     2013 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5358        4.0167        .12820E-02   -1.5389    
   2  Prefactor     8.0505        6.1062        .14131E-03   -1.5140    
   3  Prefactor     .10000E-03    40.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.180        12.909        .11476E-03   -1.5010    
   6  Prefactor     .10000E-03    168.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1215        2.2122        .23814E-03   -1.5496    
   8  Prefactor     21.166        15.217        .87050E-04   -1.4788    
   9  norm          11.551        8.9401        .11785E-03   -1.5028    
  10  Prefactor     6.4052        195.31        .15650E-03   -1.5202    
  11  Prefactor     .10006E-03    11.123        .24178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4792        .13577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.6895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    139.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .75284        .68721        .98521E-03   -1.5534    
  17  Normalizat    .83943        .30422        .60459E-03   -.98622    
  18  Prefactor     1.0976        .77768E-01    .14175E-03   -.89542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07772e-09
Minuit parameter uncertainties:
  1  4.0171
  2  6.10672
  3  2.66408e-07
  4  2.7477e-05
  5  12.9119
  6  0.00014203
  7  2.21235
  8  15.2198
  9  8.94116
  10  70.9942
  11  0.00157464
  12  0.000189914
  13  1.29723e-06
  14  8.59175e-05
  15  8.92943e-05
  16  0.687216
  17  0.30484
  18  0.0777762
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.117e+01  1.522e+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.098e+00  7.778e-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:  8.394e-01  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 2.33e-05

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

Saving results to:
/scratch/kocevski/644445/likelihoodResults_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.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) = 13366.1930243
delta logL = 0.625127692181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13366.1813455
delta logL = 0.63680648934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.240       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7725       1.0000          .0000       10.000    
     3 'Normalizat'    .77889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1051       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=   13366.18     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      290 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.240        15.540        .11450E-03    .54014E-04
   2  Index         2.7726        .65009        .57632E-02    .72597E-04
   3  Normalizat    .77892        .29643        .62524E-03    .58185E-04
   4  Prefactor     1.1051        .77489E-01    .14127E-03    .28312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2403
  Index      = 2.77255
  Normalizat = 0.778918
  Prefactor  = 1.1051
 **********
 **   18 **HESSE 
 **********

 FCN=   13366.18     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.240        12.500        .45799E-05   -1.5008    
   2  Index         2.7726        .52249        .23053E-03   -.46172    
   3  Normalizat    .77892        .29512        .25010E-04   -1.0086    
   4  Prefactor     1.1051        .77269E-01    .56506E-05   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28742e-11
Minuit parameter uncertainties:
  1  12.5024
  2  0.523684
  3  0.295732
  4  0.0772763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644445': 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) = 13366.1813454
delta logL = 0.636806527969

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.224e+01  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.773e+00  5.237e-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.105e+00  7.728e-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:  7.789e-01  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 260.686 10.235
Photon Index (Free Index): 2.77 +/- 0.52
Photon Flux (Free Index): 1.35e-07 +/- 8.69e-08
Energy Flux (Free Index): 3.09e-05 +/- 1.78e-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/644445/cmap_HighResolution_517708801_517968001_4FGL_J1722.7+1014_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='3.09e-05', photon_flux_error='5.27e-08', dlogl='6.37e-01', energy_flux='3.24e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-17 07:30:48.753939', photon_index_error2='0.52', photon_index2='2.77', ts='3.25', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.78e-05', EG='0.84', time_epoch_completed='1631889048.75', return_code='0', job_id='644445', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='8.69e-08', ts2='4.61', photon_index='2.21' WHERE bin_id='1074' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:30:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 644445: <4FGL_J1722.7+1014_daily_bin1074> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin1074> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 07:15:21 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 07:15:23 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:23 2021
Terminated at Fri Sep 17 07:30:49 2021
Results reported at Fri Sep 17 07:30:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1074 260.686 10.2346 517708801 517968001 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 :                                   905.20 sec.
    Max Memory :                                 1186 MB
    Average Memory :                             353.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

