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


Performing analysis on: 4FGL_J1719.2+1745_daily_bin1060
RA = 259.806, Dec = 17.7533
tmin = 514080001, tmax = 514339201
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='610860', job_status='RUN', time_executed='2021-09-17 05:15:43.087299', time_epoch_executed='1631880943.09' WHERE source_name='4FGL J1719.2+1745' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610860/ft1_4FGL_J1719.2+1745_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610860/ft1_4FGL_J1719.2+1745_daily_bin1060.fits outfile=/scratch/kocevski/610860/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin1060.fits ra=259.806 dec=17.7533 rad=12.0 tmin=514080001.0 tmax=514339201.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.61
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610860/ft1_filtered_4FGL_J1719.2+1745_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/610860/ltcube_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.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/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits
.....................!
real 12.48
user 12.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610860/ft1_filtered_4FGL_J1719.2+1745_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/610860/ltcube_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.fits outfile=/scratch/kocevski/610860/expmap_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.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/610860/ltcube_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.fits
.....................!
real 192.04
user 186.62
sys 4.75

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/610860/ft1_filtered_4FGL_J1719.2+1745_daily_bin1060.fits scfile=/scratch/kocevski/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits outfile=/scratch/kocevski/610860/cmap_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610860/ft1_filtered_4FGL_J1719.2+1745_daily_bin1060.fits scfile=/scratch/kocevski/610860/ft2_4FGL_J1719.2+1745_daily_bin1060.fits outfile=/scratch/kocevski/610860/cmap_HighResolution_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.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.54
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18021E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4044       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.871       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    101.31       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88409       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.812       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61490       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0774       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=   9695.753     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2083 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.884        20.717        .81032E-06    .16930E-04
   2  Prefactor     .10000E-03    53.468        .78799E-05** at limit **
   3  Prefactor     13.239        10.706        .19856E-07    .65011E-04
   4  Prefactor     5.4435        20.871        .21856E-05    .16060E-04
   5  Prefactor     .10000E-03    17.334        .28762E-06** at limit **
   6  Prefactor     .10000E-03    65.155       -.23579E-05** at limit **
   7  Prefactor     7.2928        9.5760       -.22772E-05    .76266E-05
   8  Prefactor     1.4013        32.053       -.18440E-05    .18325E-04
   9  norm          2.7036        2.6244        .17834E-06    .14817E-03
  10  Prefactor     10.872        15.343        .12967E-05    .18366E-03
  11  norm          .10000E-03    5.8076        .89940E-07** at limit **
  12  Prefactor     101.30        81.436        .10683E-05    .48631E-04
  13  Prefactor     .88452        2.0403       -.67517E-06    .73698E-04
  14  norm          .10000E-03    3.7352       -.75186E-06** at limit **
  15  norm          .10000E-03    21.243       -.16852E-06** at limit **
  16  Prefactor     29.771        57.957       -.39710E-07    .27984E-05
  17  norm          1.4392        .83213        .37743E-07    .41973E-03
  18  Prefactor     .10000E-03    3.0655       -.26028E-05** at limit **
  19  Normalizat    .61488        .26036       -.44884E-05    .12001E-03
  20  Prefactor     1.0774        .91408E-01    .12910E-05    .44869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8836
  Prefactor  = 0.0001
  Prefactor  = 13.2385
  Prefactor  = 5.44349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.29282
  Prefactor  = 1.40131
  norm       = 2.70357
  Prefactor  = 10.8725
  norm       = 0.0001
  Prefactor  = 101.298
  Prefactor  = 0.884518
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.7713
  norm       = 1.43919
  Prefactor  = 0.0001
  Normalizat = 0.614879
  Prefactor  = 1.0774
 **********
 **   18 **HESSE 
 **********

 FCN=   9695.753     FROM HESSE     STATUS=OK           305 CALLS     2388 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.884        20.664        .78726E-04   -1.4690    
   2  Prefactor     .10000E-03    4.2749        .53567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.239        10.676        .11009E-03   -1.4980    
   4  Prefactor     5.4435        20.781        .17194E-03   -1.5241    
   5  Prefactor     .10000E-03    17.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2928        9.5327        .14851E-03   -1.5168    
   8  Prefactor     1.4013        32.176        .18296E-02   -1.5471    
   9  norm          2.7036        2.6169        .15119E-03   -1.5379    
  10  Prefactor     10.872        15.192        .12152E-03   -1.5048    
  11  norm          .10000E-03    5.8224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     101.30        81.513        .39944E-04   -1.3692    
  13  Prefactor     .88452        1.9560        .19416E-03   -1.5520    
  14  norm          .10000E-03    3.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    21.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.771        57.933        .73380E-04   -1.4616    
  17  norm          1.4392        .83061        .65931E-04   -1.5468    
  18  Prefactor     .10000E-03    3.1023        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61488        .26985        .50658E-03   -1.0736    
  20  Prefactor     1.0774        .97877E-01    .14637E-03   -.90192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63593e-10
Minuit parameter uncertainties:
  1  20.6696
  2  4.47784e-05
  3  10.6773
  4  20.8088
  5  2.07369e-05
  6  0.000136442
  7  9.53467
  8  13.4372
  9  2.617
  10  15.1974
  11  5.23358e-06
  12  81.6035
  13  1.9561
  14  1.09974e-05
  15  2.22927e-05
  16  58.0423
  17  0.830612
  18  1.96341e-05
  19  0.270427
  20  0.0978932
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  2.704e+00  2.617e+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:  1.077e+00  9.789e-02  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:  6.149e-01  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 259.806 17.753
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/610860/likelihoodResults_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.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) = 9694.39656181
delta logL = 1.35593856469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9694.21043264
delta logL = 1.54206773189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42473E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9996       1.0000          .0000       5.0000    
     3 'Normalizat'    .43013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1217       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=   9694.210     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      358 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42400E-01    .46844        .21936E-02   -.32601E-02
   2  alpha         5.0000        2.5108        .46277    ** at limit **
   3  Normalizat    .43028        .12536        .13532        .18158E-04
   4  Prefactor     1.1217        .46738E-01    .36814E-01   -.90835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0423996
  alpha      = 5
  Normalizat = 0.430283
  Prefactor  = 1.12168
 **********
 **   18 **HESSE 
 **********

 FCN=   9694.210     FROM HESSE     STATUS=OK            35 CALLS      393 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42400E-01    .27012E-01    .98891E-05   -1.5667    
   2  alpha         5.0000        .48642        .46387        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .43028        .26474        .59961E-03   -1.1576    
   4  Prefactor     1.1217        .96299E-01    .14369E-03   -.88777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48527e-10
Minuit parameter uncertainties:
  1  0.0270116
  2  1.316e-05
  3  0.265511
  4  0.0963135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610860': 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) = 9694.21040386
delta logL = 1.54209651664

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  4.240e-02  2.701e-02  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  5.000e+00  1.316e-05  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:  1.122e+00  9.631e-02  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:  4.303e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 259.806 17.753
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.47e-07 +/- 9.31e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.28e-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/610860/cmap_HighResolution_514080001_514339201_4FGL_J1719.2+1745_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-05', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='2.02e-05', photon_flux_error='2.50e-08', dlogl='1.54e+00', energy_flux='1.83e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-17 05:29:27.607680', photon_index_error2='0.00', photon_index2='5.00', ts='2.01', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.82e-08', energy_flux_error2='1.28e-05', EG='0.61', time_epoch_completed='1631881767.61', return_code='0', job_id='610860', GAL2='1.12', EG2='0.43', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='9.31e-08', ts2='5.64', photon_index='1.94' WHERE bin_id='1060' AND source_name='4FGL J1719.2+1745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 05:29:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 610860: <4FGL_J1719.2+1745_daily_bin1060> in cluster <slac> Done

Job <4FGL_J1719.2+1745_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 05:15:25 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 05:15:26 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:15:26 2021
Terminated at Fri Sep 17 05:29:28 2021
Results reported at Fri Sep 17 05:29:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1719.2+1745_daily_bin1060 259.806 17.7533 514080001 514339201 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 :                                   819.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

