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


Performing analysis on: 4FGL_J1719.2+1745_daily_bin460
RA = 259.806, Dec = 17.7533
tmin = 358560001, tmax = 358819201
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='602959', job_status='RUN', time_executed='2021-09-17 04:45:46.002405', time_epoch_executed='1631879146.0' WHERE source_name='4FGL J1719.2+1745' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602959

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602959/ft1_4FGL_J1719.2+1745_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602959/ft1_4FGL_J1719.2+1745_daily_bin460.fits outfile=/scratch/kocevski/602959/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin460.fits ra=259.806 dec=17.7533 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.22
user 4.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.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/602959/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/602959/ft1_filtered_4FGL_J1719.2+1745_daily_bin460.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/602959/ft1_filtered_4FGL_J1719.2+1745_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/602959/ltcube_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.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/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602959/ft1_filtered_4FGL_J1719.2+1745_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/602959/ltcube_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.fits outfile=/scratch/kocevski/602959/expmap_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.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/602959/ltcube_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.fits
.....................!
real 189.53
user 183.94
sys 5.23

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/602959/ft1_filtered_4FGL_J1719.2+1745_daily_bin460.fits scfile=/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits outfile=/scratch/kocevski/602959/cmap_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602959/ft1_filtered_4FGL_J1719.2+1745_daily_bin460.fits scfile=/scratch/kocevski/602959/ft2_4FGL_J1719.2+1745_daily_bin460.fits outfile=/scratch/kocevski/602959/cmap_HighResolution_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15652       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4030       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .88359       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67331       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1768       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95759       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=   8829.878     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2091 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.524        19.418        .61492E-05   -.16583E-04
   2  Prefactor     .10000E-03    3.4230       -.11047E-06** at limit **
   3  Prefactor     .10011E-03    4.7277       -.21791E-05** at limit **
   4  Prefactor     8.8563        13.031       -.32320E-07   -.19217E-04
   5  Prefactor     33.538        29.474       -.19870E-05   -.36449E-05
   6  Prefactor     31.813        62.993       -.15658E-04    .13250E-04
   7  Prefactor     13.545        9.2836        .20237E-05    .22130E-03
   8  Prefactor     .10024E-03    9.1996        .52047E-06** at limit **
   9  norm          .10000E-03    1.2752        .51484E-07** at limit **
  10  Prefactor     .10000E-03    24.848        .43520E-06** at limit **
  11  norm          .10000E-03    7.6510        .17035E-06** at limit **
  12  Prefactor     .10000E-03    49.734       -.65243E-06** at limit **
  13  Prefactor     3.4043        3.3708       -.23357E-06   -.78231E-03
  14  norm          .10000E-03    6.0447       -.41138E-07** at limit **
  15  norm          .10000E-03    37.185        .54846E-07** at limit **
  16  Prefactor     .10000E-03    13.478        .74834E-06** at limit **
  17  norm          .88354        .81941       -.10165E-06   -.11092E-02
  18  Prefactor     .67106        5.2137       -.10601E-06   -.67324E-03
  19  Normalizat    1.1773        .24623       -.17442E-05    .14880E-03
  20  Prefactor     .95750        .88310E-01    .57459E-06    .86839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.524
  Prefactor  = 0.0001
  Prefactor  = 0.000100108
  Prefactor  = 8.85633
  Prefactor  = 33.5378
  Prefactor  = 31.8135
  Prefactor  = 13.5452
  Prefactor  = 0.000100243
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40433
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.883545
  Prefactor  = 0.671063
  Normalizat = 1.17731
  Prefactor  = 0.957496
 **********
 **   18 **HESSE 
 **********

 FCN=   8829.878     FROM HESSE     STATUS=OK           303 CALLS     2394 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.524        19.236        .98487E-04   -1.4895    
   2  Prefactor     .10000E-03    3.4889        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    18.667        .38280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8563        13.029        .13468E-03   -1.5113    
   5  Prefactor     33.538        29.514        .69188E-04   -1.4549    
   6  Prefactor     31.813        62.826        .71000E-04   -1.4579    
   7  Prefactor     13.545        9.1911        .10883E-03   -1.4972    
   8  Prefactor     .10024E-03    12.502        .79939E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2982        .10359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.6712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4043        3.3840        .16251E-03   -1.5339    
  14  norm          .10000E-03    6.0829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    37.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88354        .79120        .79322E-03   -1.5520    
  18  Prefactor     .67106        16.770        .41740E-02   -1.5544    
  19  Normalizat    1.1773        .29511        .38946E-03   -.87307    
  20  Prefactor     .95750        .10725        .15697E-03   -.94160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17209e-09
Minuit parameter uncertainties:
  1  19.2434
  2  1.98982e-05
  3  0.0028353
  4  13.0331
  5  29.5267
  6  62.9574
  7  9.19203
  8  0.00348961
  9  7.62804e-07
  10  1.16609e-06
  11  9.52106e-06
  12  2.76297e-07
  13  3.38424
  14  6.00184e-07
  15  1.06038e-06
  16  1.21271e-06
  17  0.791208
  18  6.71096
  19  0.295532
  20  0.107275
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.000e-04  7.628e-07  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.575e-01  1.073e-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.177e+00  2.955e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/602959/likelihoodResults_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.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): 102
logL (Free Index) = 8829.87864593
delta logL = -0.000699832586179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8829.87794042
delta logL = 5.67853203393e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5439       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95750       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8829.878     FROM MIGRAD    STATUS=FAILED        90 CALLS      291 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    69.278        .16266E-02** at limit **
   2  alpha         2.5018        3.5271        .50000        .44664E-05
   3  Normalizat    1.1773        .43123E-01    .38946E-03   -.41118E-03
   4  Prefactor     .95750        .15968E-01    .15697E-03   -.79920E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8829.878     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      427 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    69.278        .23416E-03** at limit **
   2  alpha         2.5018        3.5271        .67869E-04    .44664E-05
   3  Normalizat    1.1773        .43123E-01    .12861E-05   -.41118E-03
   4  Prefactor     .95750        .15968E-01    .45292E-06   -.79920E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8829.878     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      472 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    271.20        .32531E-03** at limit **
   2  alpha         2.4678        3.7089        .50000        .79626E-07
   3  Normalizat    1.1773        .11584        .15579E-04   -.25104E-04
   4  Prefactor     .95750        .42860E-01    .31394E-04    .68224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46778
  Normalizat = 1.17731
  Prefactor  = 0.957497
 **********
 **   18 **HESSE 
 **********

 FCN=   8829.878     FROM HESSE     STATUS=OK            29 CALLS      501 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7593        .65062E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4678        3.6563        .50000       -.12889E-01
   3  Normalizat    1.1773        .28123        .31157E-05   -.87307    
   4  Prefactor     .95750        .10425        .62789E-05   -.94160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54533e-11
Minuit parameter uncertainties:
  1  1.25883e-06
  2  112.956
  3  0.281596
  4  0.104274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602959': 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) = 8829.87794023
delta logL = 5.86794340052e-06

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.000e-04  1.259e-06  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  2.468e+00  1.130e+02  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.575e-01  1.043e-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.177e+00  2.816e-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/602959/cmap_HighResolution_358560001_358819201_4FGL_J1719.2+1745_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-17 04:59:08.267162', job_id='602959', GAL2='0.96', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631879948.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='460' AND source_name='4FGL J1719.2+1745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 04:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 602959: <4FGL_J1719.2+1745_daily_bin460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1719.2+1745_daily_bin460 259.806 17.7533 358560001 358819201 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 :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            824 sec.

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

