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


Performing analysis on: 4FGL_J1719.2+1745_daily_bin1452
RA = 259.806, Dec = 17.7533
tmin = 615686401, tmax = 615945601
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='614559', job_status='RUN', time_executed='2021-09-17 05:30:44.674498', time_epoch_executed='1631881844.67' WHERE source_name='4FGL J1719.2+1745' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614559/ft1_4FGL_J1719.2+1745_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614559/ft1_4FGL_J1719.2+1745_daily_bin1452.fits outfile=/scratch/kocevski/614559/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin1452.fits ra=259.806 dec=17.7533 rad=12.0 tmin=615686401.0 tmax=615945601.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.40
user 3.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.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/614559/ft1_filteredMKT_4FGL_J1719.2+1745_daily_bin1452.fits evtable="EVENTS" outfile="/scratch/kocevski/614559/ft1_filtered_4FGL_J1719.2+1745_daily_bin1452.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614559/ft1_filtered_4FGL_J1719.2+1745_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/614559/ltcube_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.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/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits
.....................!
real 11.94
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614559/ft1_filtered_4FGL_J1719.2+1745_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/614559/ltcube_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.fits outfile=/scratch/kocevski/614559/expmap_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.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/614559/ltcube_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.fits
.....................!
real 189.97
user 185.00
sys 4.64

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/614559/ft1_filtered_4FGL_J1719.2+1745_daily_bin1452.fits scfile=/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits outfile=/scratch/kocevski/614559/cmap_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614559/ft1_filtered_4FGL_J1719.2+1745_daily_bin1452.fits scfile=/scratch/kocevski/614559/ft2_4FGL_J1719.2+1745_daily_bin1452.fits outfile=/scratch/kocevski/614559/cmap_HighResolution_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.070       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.169       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    126.01       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9774       1.0000         .10000E-03   10000.    
    14 'norm      '    10.279       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65927       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1891       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=   9905.365     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2062 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.787        17.701        .85730E-07    .50021E-05
   2  Prefactor     .10000E-03    3.4345       -.70844E-06** at limit **
   3  Prefactor     .22808        4.5757        .23919E-06   -.80732E-04
   4  Prefactor     16.568        25.557        .33916E-05    .12366E-03
   5  Prefactor     17.537        29.599        .90648E-06    .21380E-04
   6  Prefactor     .10000E-03    56.648       -.76187E-06** at limit **
   7  Prefactor     .10000E-03    7.1326        .89542E-07** at limit **
   8  Prefactor     15.069        9.7867        .56383E-09    .95721E-06
   9  norm          .10000E-03    .91019       -.12540E-06** at limit **
  10  Prefactor     18.169        13.619       -.29063E-06    .22145E-04
  11  norm          6.2802        6.5261       -.35649E-06    .94585E-05
  12  Prefactor     126.01        99.845        .80377E-07    .16611E-04
  13  Prefactor     2.9771        2.8553        .15900E-05   -.40512E-03
  14  norm          10.279        14.305        .51253E-06   -.14024E-04
  15  norm          .10000E-03    17.179       -.23982E-07** at limit **
  16  Prefactor     .10000E-03    34.902        .39597E-06** at limit **
  17  norm          2.6111        .94771        .64739E-08    .88784E-04
  18  Prefactor     .10000E-03    4.9570        .98637E-07** at limit **
  19  Normalizat    .65938        .26071       -.10219E-05   -.22257E-04
  20  Prefactor     1.1891        .96861E-01   -.22820E-06   -.79600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7874
  Prefactor  = 0.0001
  Prefactor  = 0.228084
  Prefactor  = 16.5683
  Prefactor  = 17.5365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0695
  norm       = 0.0001
  Prefactor  = 18.1693
  norm       = 6.28018
  Prefactor  = 126.007
  Prefactor  = 2.97714
  norm       = 10.279
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61106
  Prefactor  = 0.0001
  Normalizat = 0.659379
  Prefactor  = 1.18909
 **********
 **   18 **HESSE 
 **********

 FCN=   9905.365     FROM HESSE     STATUS=OK           299 CALLS     2361 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.787        17.716        .94953E-04   -1.4864    
   2  Prefactor     .10000E-03    3.5265        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22808        48.570        .40538E-02   -1.5612    
   4  Prefactor     16.568        25.683        .98311E-04   -1.4894    
   5  Prefactor     17.537        29.598        .95629E-04   -1.4870    
   6  Prefactor     .10000E-03    56.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.069        9.7808        .10317E-03   -1.4931    
   9  norm          .10000E-03    1.8654        .18468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.169        13.626        .93961E-04   -1.4855    
  11  norm          6.2802        6.5306        .16018E-03   -1.5207    
  12  Prefactor     126.01        99.794        .35860E-04   -1.3458    
  13  Prefactor     2.9771        2.8680        .77562E-03   -1.5363    
  14  norm          10.279        14.294        .62487E-03   -1.5067    
  15  norm          .10000E-03    17.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6111        .94850        .56621E-04   -1.5385    
  18  Prefactor     .10000E-03    4.9940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65938        .27915        .52044E-03   -1.0552    
  20  Prefactor     1.1891        .10478        .15208E-03   -.86668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59215e-08
Minuit parameter uncertainties:
  1  17.7211
  2  7.27802e-05
  3  6.66078
  4  25.7003
  5  29.6227
  6  3.86466e-05
  7  1.60768e-05
  8  9.78179
  9  1.92652e-06
  10  13.6279
  11  6.53133
  12  99.9279
  13  2.86817
  14  14.2992
  15  2.93131e-08
  16  5.85041e-05
  17  0.948503
  18  1.18495e-05
  19  0.279751
  20  0.104799
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.000e-04  1.927e-06  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.189e+00  1.048e-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:  6.594e-01  2.798e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614559/likelihoodResults_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.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) = 9905.36755531
delta logL = -0.00255413851482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9905.36500547
delta logL = -4.29103420174e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11365E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9692       1.0000          .0000       5.0000    
     3 'Normalizat'    .65942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1890       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=   9905.365     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      271 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14283E-03    .18276        .18392E-01** at limit **
   2  alpha         3.1735        2.6881        .50000        .10735E-05
   3  Normalizat    .65938        .45663E-02    .52043E-03    .93880E-03
   4  Prefactor     1.1891        .17606E-02    .15208E-03    .27080E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000142825
  alpha      = 3.17353
  Normalizat = 0.659376
  Prefactor  = 1.18909
 **********
 **   18 **HESSE 
 **********

 FCN=   9905.365     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      310 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14283E-03    .21714        .17147E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1735        3.2545        .50000        .27278    
   3  Normalizat    .65938        .47587E-02    .20817E-04   -1.0552    
   4  Prefactor     1.1891        .18348E-02    .30416E-04   -.86668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.79816e-12
Minuit parameter uncertainties:
  1  0.00609885
  2  56.157
  3  0.00475874
  4  0.00183476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614559': 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) = 9905.36497379
delta logL = 2.73855039268e-05

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.428e-04  6.099e-03  1.000e-04  1.000e+04 ( 1.000e-12)
272        alpha:  3.174e+00  5.616e+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:  1.189e+00  1.835e-03  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.594e-01  4.759e-03  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/614559/cmap_HighResolution_615686401_615945601_4FGL_J1719.2+1745_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2021-09-17 05:44:52.382075', job_id='614559', GAL2='1.19', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631882692.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.74e-05', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1452' AND source_name='4FGL J1719.2+1745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 05:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 614559: <4FGL_J1719.2+1745_daily_bin1452> in cluster <slac> Done

Job <4FGL_J1719.2+1745_daily_bin1452> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 17 05:30:29 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 05:30:32 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:32 2021
Terminated at Fri Sep 17 05:44:53 2021
Results reported at Fri Sep 17 05:44:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1719.2+1745_daily_bin1452 259.806 17.7533 615686401 615945601 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 :                                   833.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            864 sec.

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

