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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1400
RA = 349.438, Dec = 28.6589
tmin = 602208001, tmax = 602467201
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='741940', job_status='RUN', time_executed='2021-09-29 11:04:14.003835', time_epoch_executed='1632938654.0' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741940/ft1_4FGL_J2317.7+2839_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741940/ft1_4FGL_J2317.7+2839_daily_bin1400.fits outfile=/scratch/kocevski/741940/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1400.fits ra=349.438 dec=28.6589 rad=12.0 tmin=602208001.0 tmax=602467201.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.24
user 5.01
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/741940/ltcube_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.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/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits
.....................!
real 11.97
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/741940/ltcube_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits outfile=/scratch/kocevski/741940/expmap_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.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/741940/ltcube_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits
.....................!
real 191.49
user 186.00
sys 4.37

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/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits scfile=/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits outfile=/scratch/kocevski/741940/cmap_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits scfile=/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits outfile=/scratch/kocevski/741940/cmap_HighResolution_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741940/Model_4FGL_J2317.7+2839_daily_bin1400.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/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits.....................!
real 76.39
user 75.01
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits', '/scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits', expMap='/scratch/kocevski/741940/expmap_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits', expCube='/scratch/kocevski/741940/ltcube_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741940/Model_4FGL_J2317.7+2839_daily_bin1400.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/741940/ft1_filtered_4FGL_J2317.7+2839_daily_bin1400.fits
Spacecraft file(s): /scratch/kocevski/741940/ft2_4FGL_J2317.7+2839_daily_bin1400.fits
Exposure map: /scratch/kocevski/741940/expmap_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits
Exposure cube: /scratch/kocevski/741940/ltcube_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741940/Model_4FGL_J2317.7+2839_daily_bin1400.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) = 6843.28312063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1812       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21379E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .15181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1948       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0694       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.650       1.0000         .10000E-03   10000.    
    15 'norm      '    .97861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.720       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82400       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=   6843.261     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2111 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1830        1.5952       -.24295E-07   -.43210E-04
   2  Prefactor     .10000E-03    76.248        .72022E-06** at limit **
   3  norm          2.2107        1.6845       -.26465E-07    .59401E-04
   4  Prefactor     .10000E-03    11.744       -.79746E-06** at limit **
   5  Prefactor     .10000E-03    12.097        .11653E-05** at limit **
   6  Prefactor     .12788        6.3587       -.69832E-06    .20774E-03
   7  Prefactor     .10000E-03    7.9663        .21598E-06** at limit **
   8  norm          .15145        .96867        .10900E-05   -.56644E-03
   9  Prefactor     3.1938        18.059        .81449E-06    .39083E-04
  10  Prefactor     .10000E-03    4.2450        .59612E-07** at limit **
  11  Prefactor     .10000E-03    17.048        .10467E-06** at limit **
  12  Prefactor     3.0702        4.9107        .50338E-05   -.98481E-03
  13  norm          7.5598        5.7246       -.35000E-06   -.48293E-03
  14  Prefactor     20.674        20.682       -.31769E-06   -.81643E-04
  15  norm          .97742        2.5187        .83439E-06   -.19796E-03
  16  Prefactor     4.6432        25.817       -.52515E-05   -.56608E-04
  17  Prefactor     .10000E-03    7.6985       -.27354E-06** at limit **
  18  Prefactor     31.614        51.921       -.10865E-04   -.51611E-03
  19  Normalizat    1.1945        .22908        .37219E-05   -.22642E-03
  20  Prefactor     .82444        .10701       -.21160E-05    .25246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18299
  Prefactor  = 0.0001
  norm       = 2.21075
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.12788
  Prefactor  = 0.0001
  norm       = 0.151445
  Prefactor  = 3.19384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07022
  norm       = 7.55976
  Prefactor  = 20.6736
  norm       = 0.977419
  Prefactor  = 4.64316
  Prefactor  = 0.0001
  Prefactor  = 31.6138
  Normalizat = 1.1945
  Prefactor  = 0.824441
 **********
 **   18 **HESSE 
 **********

 FCN=   6843.261     FROM HESSE     STATUS=OK           301 CALLS     2412 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1830        1.5894        .70138E-04   -1.5351    
   2  Prefactor     .10000E-03    78.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2107        1.6859        .91377E-04   -1.5411    
   4  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12788        7.9340        .73609E-01   -1.5636    
   7  Prefactor     .10000E-03    7.9704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .15145        .99732        .15644E-03   -1.5630    
   9  Prefactor     3.1938        18.022        .22669E-03   -1.5351    
  10  Prefactor     .10000E-03    4.2560        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0702        5.0669        .11382E-02   -1.5358    
  13  norm          7.5598        5.7276        .14586E-03   -1.5158    
  14  Prefactor     20.674        20.716        .88142E-04   -1.4798    
  15  norm          .97742        2.5066        .20251E-03   -1.5510    
  16  Prefactor     4.6432        25.816        .18702E-03   -1.5277    
  17  Prefactor     .10000E-03    7.7063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.614        55.721        .71144E-04   -1.4583    
  19  Normalizat    1.1945        .26548        .31817E-03   -.86773    
  20  Prefactor     .82444        .12392        .18407E-03   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72752e-09
Minuit parameter uncertainties:
  1  1.58946
  2  6.75484e-06
  3  1.68596
  4  0.00015741
  5  0.000163678
  6  2.01404
  7  1.91984e-05
  8  0.777039
  9  15.1801
  10  5.32561e-06
  11  1.27501e-05
  12  5.06765
  13  5.72804
  14  20.7228
  15  2.50686
  16  21.9112
  17  4.77413e-06
  18  55.8129
  19  0.265782
  20  0.123966
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.275e-05  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:  8.244e-01  1.240e-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:  1.194e+00  2.658e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741940/likelihoodResults_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.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) = 6843.26113295
delta logL = -0.000278827820694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6843.26085459
delta logL = -4.70590748591e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0988       1.0000          .0000       10.000    
     3 'Normalizat'    1.1945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82444       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=   6843.261     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.810        .90712E-02** at limit **
   2  Index         2.0615        5.6352        .50000        .20046E-04
   3  Normalizat    1.1945        .12401E-01    .71900E-01   -.96721E-04
   4  Prefactor     .82444        .61132E-02    .44034E-01   -.21133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06145
  Normalizat = 1.19451
  Prefactor  = 0.824437
 **********
 **   18 **HESSE 
 **********

 FCN=   6843.261     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6369.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0615        5.7493        .50000       -.62822    
   3  Normalizat    1.1945        .12143        .31816E-03   -.86773    
   4  Prefactor     .82444        .59904E-01    .18407E-03   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97231e-08
Minuit parameter uncertainties:
  1  0.00254343
  2  56.5864
  3  0.121463
  4  0.0599089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741940': 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) = 6843.26085441
delta logL = -2.8134763852e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.543e-03  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.061e+00  5.659e+01  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:  8.244e-01  5.991e-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:  1.195e+00  1.215e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/741940/cmap_HighResolution_602208001_602467201_4FGL_J2317.7+2839_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-29 11:15:00.844349', job_id='741940', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632939300.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1400' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 741940: <4FGL_J2317.7+2839_daily_bin1400> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1400> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:23 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:24 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:24 2021
Terminated at Wed Sep 29 11:15:01 2021
Results reported at Wed Sep 29 11:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1400 349.438 28.6589 602208001 602467201 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 :                                   639.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

