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


Performing analysis on: 4FGL_J1722.7+1014_daily_bin1037
RA = 260.686, Dec = 10.2346
tmin = 508118401, tmax = 508377601
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='643183', job_status='RUN', time_executed='2021-09-17 07:14:07.033363', time_epoch_executed='1631888047.03' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643183/ft1_4FGL_J1722.7+1014_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643183/ft1_4FGL_J1722.7+1014_daily_bin1037.fits outfile=/scratch/kocevski/643183/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1037.fits ra=260.686 dec=10.2346 rad=12.0 tmin=508118401.0 tmax=508377601.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 4.60
user 2.58
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.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/643183/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/643183/ltcube_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.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/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits
.....................!
real 9.45
user 9.06
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/643183/ltcube_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.fits outfile=/scratch/kocevski/643183/expmap_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.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/643183/ltcube_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.fits
.....................!
real 144.09
user 140.57
sys 3.27

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/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits outfile=/scratch/kocevski/643183/cmap_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits outfile=/scratch/kocevski/643183/cmap_HighResolution_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=260.686 yref=10.2346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/643183/ft2_4FGL_J1722.7+1014_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643183/Model_4FGL_J1722.7+1014_daily_bin1037.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/643183/ft1_filtered_4FGL_J1722.7+1014_daily_bin1037.fits.....................!
real 88.69
user 87.51
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.521       1.0000         .10000E-03   10000.    
     9 'norm      '    22.496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2336       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.180       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9052       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5898       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93919       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=   13735.05     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1737 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6414        6.1276        .14859E-05    .18519E-03
   2  Prefactor     .75893        3.5522       -.37077E-05    .35280E-03
   3  Prefactor     .10000E-03    28.587        .25457E-06** at limit **
   4  Prefactor     .10000E-03    5.7367        .37517E-07** at limit **
   5  Prefactor     .10000E-03    12.099        .43836E-07** at limit **
   6  Prefactor     .10000E-03    56.106       -.41643E-06** at limit **
   7  norm          .10000E-03    .96498       -.18138E-07** at limit **
   8  Prefactor     21.521        11.912       -.16617E-06    .38631E-04
   9  norm          22.496        10.938        .80387E-07    .10218E-04
  10  Prefactor     57.349        69.117        .70330E-05    .21809E-04
  11  Prefactor     .10000E-03    .77387        .80859E-08** at limit **
  12  norm          5.2336        7.5614       -.95887E-06   -.15022E-03
  13  norm          .10000E-03    .93107       -.43770E-09** at limit **
  14  norm          .10000E-03    4.0546       -.16071E-06** at limit **
  15  norm          10.171        159.05       -.26788E-04   -.12537E-05
  16  norm          3.9052        1.0645       -.30429E-07   -.24323E-03
  17  Normalizat    1.5898        .27120        .15740E-06    .35572E-03
  18  Prefactor     .93919        .67845E-01    .87880E-07    .79868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64139
  Prefactor  = 0.758928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5207
  norm       = 22.4958
  Prefactor  = 57.3495
  Prefactor  = 0.0001
  norm       = 5.23363
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.1712
  norm       = 3.9052
  Normalizat = 1.58976
  Prefactor  = 0.939187
 **********
 **   18 **HESSE 
 **********

 FCN=   13735.05     FROM HESSE     STATUS=OK           244 CALLS     1981 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6414        6.1053        .16913E-03   -1.5233    
   2  Prefactor     .75893        8.6209        .40018E-02   -1.5534    
   3  Prefactor     .10000E-03    28.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .98699        .11241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.521        11.916        .86341E-04   -1.4780    
   9  norm          22.496        10.928        .84451E-04   -1.4759    
  10  Prefactor     57.349        69.113        .52977E-04   -1.4192    
  11  Prefactor     .10000E-03    .78354        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2336        7.5973        .17571E-03   -1.5250    
  13  norm          .10000E-03    .94089        .11041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.171        161.49        .12558E-03   -1.5070    
  16  norm          3.9052        1.0652        .60476E-04   -1.5313    
  17  Normalizat    1.5898        .31388        .47816E-03   -.75287    
  18  Prefactor     .93919        .79284E-01    .15449E-03   -.94785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12816e-09
Minuit parameter uncertainties:
  1  6.106
  2  5.11633
  3  7.07774e-06
  4  1.15181e-05
  5  1.68102e-06
  6  7.23253e-06
  7  1.70868e-07
  8  11.9173
  9  10.9289
  10  69.2094
  11  1.05938e-06
  12  7.59867
  13  4.74445e-07
  14  1.81769e-05
  15  81.318
  16  1.0652
  17  0.314273
  18  0.0792936
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.152e+01  1.192e+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:  9.392e-01  7.929e-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.590e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.76
Ra Dec: 260.686 10.235
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.83e-05

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) = 13734.7785489
delta logL = 0.269047971191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13734.7781574
delta logL = 0.2694393853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.488       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8280       1.0000          .0000       10.000    
     3 'Normalizat'    1.6203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93540       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.

 FCN=   13734.78     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.480        407.34        .19837E-02    .34398E-04
   2  Index         1.8276        5.6460        .19157        .12899E-04
   3  Normalizat    1.6204        .28089        .10711        .21305E-03
   4  Prefactor     .93539        .38662E-01    .45455E-01    .63800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4797
  Index      = 1.82759
  Normalizat = 1.62045
  Prefactor  = 0.935387
 **********
 **   18 **HESSE 
 **********

 FCN=   13734.78     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.480        14.993        .79347E-04   -1.4698    
   2  Index         1.8276        .50016        .11062E-01   -.68734    
   3  Normalizat    1.6204        .30366        .47467E-03   -.74448    
   4  Prefactor     .93539        .78304E-01    .15483E-03   -.94915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19231e-10
Minuit parameter uncertainties:
  1  14.9949
  2  0.501566
  3  0.304005
  4  0.078313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643183': 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) = 13734.778157
delta logL = 0.269439867556

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  2.548e+01  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.828e+00  5.016e-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:  9.354e-01  7.831e-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.620e+00  3.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 260.686 10.235
Photon Index (Free Index): 1.83 +/- 0.50
Photon Flux (Free Index): 4.54e-08 +/- 4.29e-08
Energy Flux (Free Index): 5.00e-05 +/- 4.69e-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/643183/cmap_HighResolution_508118401_508377601_4FGL_J1722.7+1014_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='5.00e-05', photon_flux_error='4.13e-08', dlogl='2.69e-01', energy_flux='3.30e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-17 07:24:29.773471', photon_index_error2='0.50', photon_index2='1.83', ts='8.76', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.69e-05', EG='1.59', time_epoch_completed='1631888669.77', return_code='0', job_id='643183', GAL2='0.94', EG2='1.62', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.29e-08', ts2='9.30', photon_index='2.21' WHERE bin_id='1037' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:24:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 643183: <4FGL_J1722.7+1014_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin1037 260.686 10.2346 508118401 508377601 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 :                                   616.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

