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


Performing analysis on: 4FGL_J1719.2+1745_daily_bin1446
RA = 259.806, Dec = 17.7533
tmin = 614131201, tmax = 614390401
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='614550', job_status='RUN', time_executed='2021-09-17 05:30:44.091942', time_epoch_executed='1631881844.09' WHERE source_name='4FGL J1719.2+1745' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614550

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614550/ft1_4FGL_J1719.2+1745_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614550/ft1_4FGL_J1719.2+1745_daily_bin1446.fits outfile=/scratch/kocevski/614550/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin1446.fits ra=259.806 dec=17.7533 rad=12.0 tmin=614131201.0 tmax=614390401.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.65
user 4.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.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/614550/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/614550/ltcube_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits outfile=/scratch/kocevski/614550/expmap_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.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/614550/ltcube_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits
.....................!
real 189.99
user 185.64
sys 4.01

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/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits scfile=/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits outfile=/scratch/kocevski/614550/cmap_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits scfile=/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits outfile=/scratch/kocevski/614550/cmap_HighResolution_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614550/Model_4FGL_J1719.2+1745_daily_bin1446.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/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits.....................!
real 72.66
user 71.31
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits', '/scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits', expMap='/scratch/kocevski/614550/expmap_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits', expCube='/scratch/kocevski/614550/ltcube_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614550/Model_4FGL_J1719.2+1745_daily_bin1446.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/614550/ft1_filtered_4FGL_J1719.2+1745_daily_bin1446.fits
Spacecraft file(s): /scratch/kocevski/614550/ft2_4FGL_J1719.2+1745_daily_bin1446.fits
Exposure map: /scratch/kocevski/614550/expmap_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits
Exposure cube: /scratch/kocevski/614550/ltcube_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614550/Model_4FGL_J1719.2+1745_daily_bin1446.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) = 8452.55982191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7874       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    257.77       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1731       1.0000         .10000E-03   10000.    
    14 'norm      '    .10878E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12480E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    122.65       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4581       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89880       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=   8452.516     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2123 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.414        24.865       -.49315E-05    .37667E-04
   2  Prefactor     .10000E-03    3.3856       -.24470E-07** at limit **
   3  Prefactor     .10000E-03    3.0467       -.98499E-08** at limit **
   4  Prefactor     4.9938        48.297       -.44817E-05   -.11029E-04
   5  Prefactor     .10000E-03    364.05       -.16193E-04** at limit **
   6  Prefactor     .10000E-03    28.290       -.43285E-06** at limit **
   7  Prefactor     2.6942        9.2413       -.42710E-05   -.31951E-03
   8  Prefactor     .10000E-03    5.7029       -.36400E-07** at limit **
   9  norm          .10000E-03    1.4878       -.18373E-06** at limit **
  10  Prefactor     4.8018        28.892        .31881E-04    .40160E-04
  11  norm          .10000E-03    13.558       -.90921E-07** at limit **
  12  Prefactor     257.73        135.29       -.18001E-04   -.36537E-04
  13  Prefactor     3.1738        4.3317       -.32857E-05   -.12779E-02
  14  norm          .10000E-03    30.716        .18922E-05** at limit **
  15  norm          .10000E-03    178.95        .13440E-04** at limit **
  16  Prefactor     122.60        85.001       -.25718E-04    .42731E-05
  17  norm          3.3128        1.3085       -.12515E-07   -.11898E-03
  18  Prefactor     .10000E-03    5.6817        .33505E-06** at limit **
  19  Normalizat    1.4582        .27756        .64086E-05   -.10983E-03
  20  Prefactor     .89874        .95374E-01   -.78025E-06    .40983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.99378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.69419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.80181
  norm       = 0.0001
  Prefactor  = 257.733
  Prefactor  = 3.17381
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 122.6
  norm       = 3.31284
  Prefactor  = 0.0001
  Normalizat = 1.45819
  Prefactor  = 0.89874
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.516     FROM HESSE     STATUS=OK           289 CALLS     2412 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.414        24.927        .77936E-04   -1.4680    
   2  Prefactor     .10000E-03    3.4064        .16510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0534        .15670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9938        48.426        .17994E-03   -1.5261    
   5  Prefactor     .10000E-03    370.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6942        9.2539        .24826E-03   -1.5380    
   8  Prefactor     .10000E-03    5.7098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1083        .21787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8018        28.809        .18388E-03   -1.5270    
  11  norm          .10000E-03    13.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     257.73        135.02        .12621E-03   -1.2483    
  13  Prefactor     3.1738        4.3372        .19857E-03   -1.5352    
  14  norm          .10000E-03    30.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    179.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     122.60        84.587        .18171E-03   -1.3489    
  17  norm          3.3128        1.3119        .63646E-04   -1.5344    
  18  Prefactor     .10000E-03    5.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4582        .33237        .39959E-03   -.78960    
  20  Prefactor     .89874        .11564        .17156E-03   -.96185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3333e-09
Minuit parameter uncertainties:
  1  24.937
  2  5.74396e-08
  3  2.52374e-07
  4  31.1344
  5  0.00011201
  6  1.48683e-05
  7  9.25878
  8  1.03741e-05
  9  3.07066e-05
  10  23.5399
  11  2.89664e-05
  12  135.188
  13  4.33763
  14  0.000783483
  15  0.000245568
  16  84.6701
  17  1.31187
  18  7.66825e-05
  19  0.332868
  20  0.115674
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.000e-04  3.071e-05  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:  8.987e-01  1.157e-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.458e+00  3.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 259.806 17.753
Photon Flux Upper Limit: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614550/likelihoodResults_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.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) = 8452.51778483
delta logL = -0.00153163798313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8452.13646772
delta logL = 0.379785471569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43770       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4586       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90651       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.

 FCN=   8452.136     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      278 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43769        6.1221        .17121E-01    .16649E-02
   2  alpha         3.4586        3.8571        .45837        .45856E-04
   3  Normalizat    1.4000        .41965E-01    .91763E-01   -.18834E-03
   4  Prefactor     .90651        .14647E-01    .45088E-01   -.56512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.437688
  alpha      = 3.45856
  Normalizat = 1.39998
  Prefactor  = 0.906509
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.136     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43769        34.515        .76905E-03   -1.5576    
   2  alpha         3.4586        2.6182        .18211E-01    .39350    
   3  Normalizat    1.4000        .32661        .40640E-03   -.80629    
   4  Prefactor     .90651        .11339        .17086E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.07466e-09
Minuit parameter uncertainties:
  1  7.77724
  2  9.31302
  3  0.327101
  4  0.113417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614550': 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): 102
logL (Free Index) = 8452.13646772
delta logL = 0.379785472653

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  4.377e-01  7.777e+00  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  3.459e+00  9.313e+00  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.065e-01  1.134e-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.400e+00  3.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 259.806 17.753

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/614550/cmap_HighResolution_614131201_614390401_4FGL_J1719.2+1745_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-17 05:43:28.710641', job_id='614550', GAL2='0.91', fit_tolerance='1e-08', EG2='1.40', EG='1.46', time_epoch_completed='1631882608.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.80e-01', ts2='0.78', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1446' AND source_name='4FGL J1719.2+1745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 05:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 614550: <4FGL_J1719.2+1745_daily_bin1446> in cluster <slac> Done

Job <4FGL_J1719.2+1745_daily_bin1446> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 17 05:30:28 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 05:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 05:30:30 2021
Terminated at Fri Sep 17 05:43:29 2021
Results reported at Fri Sep 17 05:43:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1719.2+1745_daily_bin1446 259.806 17.7533 614131201 614390401 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 :                                   746.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

