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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1531
RA = 349.438, Dec = 28.6589
tmin = 636163201, tmax = 636422401
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='742155', job_status='RUN', time_executed='2021-09-29 11:02:58.638281', time_epoch_executed='1632938578.64' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742155/ft1_4FGL_J2317.7+2839_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742155/ft1_4FGL_J2317.7+2839_daily_bin1531.fits outfile=/scratch/kocevski/742155/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1531.fits ra=349.438 dec=28.6589 rad=12.0 tmin=636163201.0 tmax=636422401.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.72
user 3.48
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.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/742155/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1531.fits evtable="EVENTS" outfile="/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/742155/ltcube_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.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/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits
.....................!
real 14.14
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/742155/ltcube_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits outfile=/scratch/kocevski/742155/expmap_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.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/742155/ltcube_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits
.....................!
real 192.58
user 187.32
sys 4.89

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

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits outfile=/scratch/kocevski/742155/cmap_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.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=349.438 yref=28.6589 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits outfile=/scratch/kocevski/742155/cmap_HighResolution_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.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=349.438 yref=28.6589 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/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742155/Model_4FGL_J2317.7+2839_daily_bin1531.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/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits.....................!
real 83.67
user 82.23
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits', '/scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits', expMap='/scratch/kocevski/742155/expmap_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits', expCube='/scratch/kocevski/742155/ltcube_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/742155/Model_4FGL_J2317.7+2839_daily_bin1531.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/742155/ft1_filtered_4FGL_J2317.7+2839_daily_bin1531.fits
Spacecraft file(s): /scratch/kocevski/742155/ft2_4FGL_J2317.7+2839_daily_bin1531.fits
Exposure map: /scratch/kocevski/742155/expmap_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits
Exposure cube: /scratch/kocevski/742155/ltcube_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/742155/Model_4FGL_J2317.7+2839_daily_bin1531.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) = 8189.63171884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1271       1.0000         .10000E-03   10000.    
    13 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1340       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5895       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.727       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .42926       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8189.577     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2073 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49523        .83180E-08** at limit **
   2  Prefactor     .10000E-03    5.7634       -.26636E-06** at limit **
   3  norm          3.7191        2.0118       -.58084E-08    .66713E-04
   4  Prefactor     .10000E-03    5.9502       -.12082E-05** at limit **
   5  Prefactor     .10000E-03    5.2118        .18443E-05** at limit **
   6  Prefactor     .10000E-03    16.022        .12406E-05** at limit **
   7  Prefactor     .10000E-03    6.6011       -.11246E-05** at limit **
   8  norm          1.4720        1.1870        .78855E-08   -.43939E-03
   9  Prefactor     12.679        19.078       -.34584E-06   -.37798E-04
  10  Prefactor     .10000E-03    10.186       -.18718E-05** at limit **
  11  Prefactor     .10000E-03    35.828       -.85761E-06** at limit **
  12  Prefactor     4.1270        3.9883       -.34019E-06   -.36320E-03
  13  norm          .10002E-03    3.2381       -.28649E-06** at limit **
  14  Prefactor     6.1311        12.397        .48208E-05   -.72902E-03
  15  norm          1.5895        1.3515       -.11445E-07    .10153E-03
  16  Prefactor     .10000E-03    7.0201        .14173E-06** at limit **
  17  Prefactor     .10000E-03    4.9024       -.69797E-06** at limit **
  18  Prefactor     22.717        28.533       -.52844E-05   -.46849E-03
  19  Normalizat    .42932        .21404        .67493E-07   -.27424E-04
  20  Prefactor     1.2713        .11386        .11894E-06   -.36083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71909
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47195
  Prefactor  = 12.6786
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.12697
  norm       = 0.000100018
  Prefactor  = 6.13112
  norm       = 1.5895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7173
  Normalizat = 0.429316
  Prefactor  = 1.27132
 **********
 **   18 **HESSE 
 **********

 FCN=   8189.577     FROM HESSE     STATUS=OK           291 CALLS     2364 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9952        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7191        2.0117        .92026E-04   -1.5322    
   4  Prefactor     .10000E-03    6.0197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4720        1.1692        .84715E-04   -1.5465    
   9  Prefactor     12.679        19.028        .11249E-03   -1.4996    
  10  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1270        4.0000        .17305E-03   -1.5302    
  13  norm          .10002E-03    7.7357        .30071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1311        14.118        .81050E-03   -1.5213    
  15  norm          1.5895        1.3572        .94652E-04   -1.5456    
  16  Prefactor     .10000E-03    7.0319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.717        29.781        .84020E-04   -1.4754    
  19  Normalizat    .42932        .21565        .47243E-03   -1.1581    
  20  Prefactor     1.2713        .11689        .15789E-03   -.84164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14902e-09
Minuit parameter uncertainties:
  1  2.24505e-05
  2  2.45638e-05
  3  2.01177
  4  0.000104309
  5  0.000143786
  6  0.000125087
  7  0.00010054
  8  1.16927
  9  19.037
  10  0.000206466
  11  0.000222193
  12  4.00021
  13  0.000738371
  14  14.1259
  15  1.3572
  16  1.30028e-05
  17  4.99486e-05
  18  29.8007
  19  0.216074
  20  0.11691
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.222e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.271e+00  1.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  4.293e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742155/likelihoodResults_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.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) = 8189.57665298
delta logL = -0.00013131724063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8189.57652127
delta logL = 3.95316419599e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11688E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0722       1.0000          .0000       10.000    
     3 'Normalizat'    .42931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8189.218     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      300 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35356        7.3360        .90712E-02    .19703E-02
   2  Index         3.5126        1.9879        .92753E-01    .23131E-03
   3  Normalizat    .38635        .37199E-01    .11217        .39313E-04
   4  Prefactor     1.2812        .20589E-01    .33129E-01   -.16617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.353565
  Index      = 3.51263
  Normalizat = 0.38635
  Prefactor  = 1.28121
 **********
 **   18 **HESSE 
 **********

 FCN=   8189.218     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      333 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35356        26.880        .65919E-04   -1.5589    
   2  Index         3.5126        6.7449        .52249E-02   -.30205    
   3  Normalizat    .38635        .17858        .49701E-03   -1.1801    
   4  Prefactor     1.2812        .95842E-01    .15729E-03   -.83868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49879e-06
Minuit parameter uncertainties:
  1  6.16766
  2  5.59942
  3  0.178841
  4  0.0958553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742155': 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) = 8189.21811048
delta logL = 0.358411181378

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.536e-01  6.168e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.513e+00  5.599e+00  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.281e+00  9.586e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  3.864e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.438 28.659

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/742155/cmap_HighResolution_636163201_636422401_4FGL_J2317.7+2839_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-29 11:15:15.129824', job_id='742155', GAL2='1.28', fit_tolerance='1e-08', EG2='0.39', EG='0.43', time_epoch_completed='1632939315.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.58e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1531' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 742155: <4FGL_J2317.7+2839_daily_bin1531> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1531> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:45 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:00:46 2021
Terminated at Wed Sep 29 11:15:15 2021
Results reported at Wed Sep 29 11:15:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1531 349.438 28.6589 636163201 636422401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

