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


Performing analysis on: 4FGL_J1719.2+1745_daily_bin643
RA = 259.806, Dec = 17.7533
tmin = 405993601, tmax = 406252801
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='605499', job_status='RUN', time_executed='2021-09-17 04:58:42.338427', time_epoch_executed='1631879922.34' WHERE source_name='4FGL J1719.2+1745' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605499/ft1_4FGL_J1719.2+1745_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605499/ft1_4FGL_J1719.2+1745_daily_bin643.fits outfile=/scratch/kocevski/605499/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin643.fits ra=259.806 dec=17.7533 rad=12.0 tmin=405993601.0 tmax=406252801.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.38
user 3.17
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.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/605499/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin643.fits evtable="EVENTS" outfile="/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/605499/ltcube_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.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/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits
.....................!
real 12.11
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/605499/ltcube_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits outfile=/scratch/kocevski/605499/expmap_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.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/605499/ltcube_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits
.....................!
real 189.91
user 185.27
sys 4.33

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
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1719.2+1745 @ 259.806 17.7533

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits outfile=/scratch/kocevski/605499/cmap_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.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=259.806 yref=17.7533 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits outfile=/scratch/kocevski/605499/cmap_HighResolution_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.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=259.806 yref=17.7533 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605499/Model_4FGL_J1719.2+1745_daily_bin643.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 GAL_V02
Working on...
/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits.....................!
real 77.03
user 75.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits', '/scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits', expMap='/scratch/kocevski/605499/expmap_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits', expCube='/scratch/kocevski/605499/ltcube_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605499/Model_4FGL_J1719.2+1745_daily_bin643.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1719.2+1745'

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.764e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/605499/ft1_filtered_4FGL_J1719.2+1745_daily_bin643.fits
Spacecraft file(s): /scratch/kocevski/605499/ft2_4FGL_J1719.2+1745_daily_bin643.fits
Exposure map: /scratch/kocevski/605499/expmap_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits
Exposure cube: /scratch/kocevski/605499/ltcube_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605499/Model_4FGL_J1719.2+1745_daily_bin643.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) = 9569.20683667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1344       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13743E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.961       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.172       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2230       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9569.158     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2064 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.245       -.52086E-06** at limit **
   2  Prefactor     .10000E-03    3.7511       -.73002E-07** at limit **
   3  Prefactor     1.7290        11.474       -.66853E-05   -.30715E-03
   4  Prefactor     .10000E-03    7.7609        .26667E-07** at limit **
   5  Prefactor     44.372        41.971       -.27473E-05    .45795E-04
   6  Prefactor     .10000E-03    26.478       -.77946E-05** at limit **
   7  Prefactor     8.2033        10.644       -.94890E-06    .35384E-04
   8  Prefactor     .10000E-03    6.8171       -.48328E-07** at limit **
   9  norm          3.1342        2.5319       -.10908E-06   -.71227E-04
  10  Prefactor     .10000E-03    30.894        .50101E-05** at limit **
  11  norm          10.405        9.8287       -.31421E-06   -.34814E-04
  12  Prefactor     .10000E-03    22.870        .37219E-05** at limit **
  13  Prefactor     .10000E-03    2.0108       -.33514E-07** at limit **
  14  norm          .10000E-03    4.4155       -.76842E-07** at limit **
  15  norm          .10000E-03    23.722       -.47702E-06** at limit **
  16  Prefactor     84.938        71.369       -.20443E-04    .18035E-03
  17  norm          1.6628        .94983       -.69906E-07   -.51363E-03
  18  Prefactor     11.171        11.174        .17805E-05   -.44816E-04
  19  Normalizat    1.2239        .24355        .31072E-05    .10049E-04
  20  Prefactor     .95522        .85368E-01   -.50000E-07    .25547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72904
  Prefactor  = 0.0001
  Prefactor  = 44.3719
  Prefactor  = 0.0001
  Prefactor  = 8.20328
  Prefactor  = 0.0001
  norm       = 3.13423
  Prefactor  = 0.0001
  norm       = 10.4051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 84.9381
  norm       = 1.66279
  Prefactor  = 11.1712
  Normalizat = 1.2239
  Prefactor  = 0.955222
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.158     FROM HESSE     STATUS=OK           291 CALLS     2355 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.631        .62810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7290        12.065        .31818E-03   -1.5445    
   4  Prefactor     .10000E-03    7.7664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.372        41.961        .60184E-04   -1.4375    
   6  Prefactor     .10000E-03    26.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2033        10.558        .14006E-03   -1.5135    
   8  Prefactor     .10000E-03    6.8404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1342        2.5320        .13567E-03   -1.5354    
  10  Prefactor     .10000E-03    31.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.405        9.8254        .12426E-03   -1.5063    
  12  Prefactor     .10000E-03    22.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0715        .27022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.682        .40073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     84.938        70.566        .43582E-04   -1.3862    
  17  norm          1.6628        .94916        .69385E-04   -1.5450    
  18  Prefactor     11.171        11.144        .11986E-03   -1.5039    
  19  Normalizat    1.2239        .28613        .40376E-03   -.85867    
  20  Prefactor     .95522        .10226        .16057E-03   -.94237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25827e-10
Minuit parameter uncertainties:
  1  0.000102672
  2  1.30584e-05
  3  9.13717
  4  6.91737e-06
  5  41.9886
  6  0.00022279
  7  10.5605
  8  1.13595e-05
  9  2.5321
  10  0.000232339
  11  9.8269
  12  0.000100469
  13  8.07179e-06
  14  3.65843e-05
  15  8.46275e-06
  16  70.6357
  17  0.94917
  18  11.1457
  19  0.286493
  20  0.102276
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  3.134e+00  2.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  9.552e-01  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.224e+00  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 259.806 17.753
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.71e-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) = 9569.15527989
delta logL = 0.00251819026198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9569.15509745
delta logL = 0.00270062526579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1021       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8738       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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=   9569.155     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1020        2.5733        .13671E-03    .15350E-02
   2  alpha         1.8737        .86701        .24580E-01    .96862E-04
   3  Normalizat    1.2267        .28102        .40337E-03   -.23449E-04
   4  Prefactor     .95490        .10016        .16060E-03   -.63201E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.102
  alpha      = 1.87369
  Normalizat = 1.22665
  Prefactor  = 0.954901
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.155     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1020        2.5996        .27341E-04   -1.5356    
   2  alpha         1.8737        .87510        .98321E-03   -.25322    
   3  Normalizat    1.2267        .28109        .16135E-04   -.85783    
   4  Prefactor     .95490        .10022        .32120E-04   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24612e-09
Minuit parameter uncertainties:
  1  2.59968
  2  0.895384
  3  0.281434
  4  0.100244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605499': 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) = 9569.15509744
delta logL = 0.0027006354303

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  3.102e+00  2.600e+00  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  1.874e+00  8.954e-01  0.000e+00  5.000e+00 ( 1.000e+00)
273         beta:  9.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  9.549e-01  1.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.227e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.07
Ra Dec: 259.806 17.753
Photon Index (Free Index): 1.87 +/- 0.90
Photon Flux (Free Index): 2.73e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.16e-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/605499/cmap_HighResolution_405993601_406252801_4FGL_J1719.2+1745_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='2.20e-05', photon_flux_error='2.42e-08', dlogl='2.70e-03', energy_flux='2.12e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-17 05:10:26.793590', photon_index_error2='0.90', photon_index2='1.87', ts='5.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.22', time_epoch_completed='1631880626.79', return_code='0', job_id='605499', GAL2='0.95', EG2='1.23', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.16e-08', ts2='5.07', photon_index='1.94' WHERE bin_id='643' AND source_name='4FGL J1719.2+1745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 05:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 605499: <4FGL_J1719.2+1745_daily_bin643> in cluster <slac> Done

Job <4FGL_J1719.2+1745_daily_bin643> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 04:55:27 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 04: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 04:55:29 2021
Terminated at Fri Sep 17 05:10:27 2021
Results reported at Fri Sep 17 05:10:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1719.2+1745_daily_bin643 259.806 17.7533 405993601 406252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1719.2+1745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

