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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1375
RA = 349.438, Dec = 28.6589
tmin = 595728001, tmax = 595987201
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='741889', job_status='RUN', time_executed='2021-09-29 11:03:45.073527', time_epoch_executed='1632938625.07' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741889

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741889/ft1_4FGL_J2317.7+2839_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741889/ft1_4FGL_J2317.7+2839_daily_bin1375.fits outfile=/scratch/kocevski/741889/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1375.fits ra=349.438 dec=28.6589 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.84
user 2.42
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.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/741889/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1375.fits evtable="EVENTS" outfile="/scratch/kocevski/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.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.57
user 0.36
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/741889/ltcube_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.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/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits
.....................!
real 13.09
user 12.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/741889/ltcube_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.fits outfile=/scratch/kocevski/741889/expmap_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.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/741889/ltcube_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.fits
.....................!
real 191.58
user 185.33
sys 5.78

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/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits outfile=/scratch/kocevski/741889/cmap_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits outfile=/scratch/kocevski/741889/cmap_HighResolution_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J2317.7+2839_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741889/Model_4FGL_J2317.7+2839_daily_bin1375.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/741889/ft1_filtered_4FGL_J2317.7+2839_daily_bin1375.fits.....................!
real 80.04
user 78.57
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.163       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.694       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.541       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9619       1.0000         .10000E-03   10000.    
    13 'norm      '    12.354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2652       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65748       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0731       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=   6973.837     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2043 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7775        1.3968        .59289E-07   -.31474E-04
   2  Prefactor     39.162        26.005        .12967E-06   -.87268E-05
   3  norm          2.6412        1.9907        .29125E-07   -.66297E-05
   4  Prefactor     86.808        20.029        .44678E-07   -.13661E-04
   5  Prefactor     17.380        15.659        .15946E-06   -.96104E-05
   6  Prefactor     19.394        12.446        .98475E-07   -.11057E-04
   7  Prefactor     16.690        19.114        .17193E-06   -.13016E-04
   8  norm          .10000E-03    .42340        .59520E-07** at limit **
   9  Prefactor     28.514        34.830        .80437E-06   -.30967E-05
  10  Prefactor     25.566        16.476       -.17146E-06   -.96487E-04
  11  Prefactor     15.714        39.927        .29383E-06    .79026E-05
  12  Prefactor     1.9650        4.6453        .80650E-06    .18329E-04
  13  norm          12.355        6.5105        .13939E-06   -.59587E-04
  14  Prefactor     .10000E-03    24.885        .19074E-05** at limit **
  15  norm          .10000E-03    2.6461        .60938E-06** at limit **
  16  Prefactor     .10000E-03    14.648       -.19785E-06** at limit **
  17  Prefactor     .10000E-03    8.2758       -.16411E-06** at limit **
  18  Prefactor     1.2133        311.83       -.15727E-04    .44204E-05
  19  Normalizat    .65734        .25521        .70199E-06   -.59619E-04
  20  Prefactor     1.0732        .12577       -.11411E-05   -.79939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7775
  Prefactor  = 39.1624
  norm       = 2.64124
  Prefactor  = 86.8084
  Prefactor  = 17.3795
  Prefactor  = 19.3936
  Prefactor  = 16.6902
  norm       = 0.0001
  Prefactor  = 28.5137
  Prefactor  = 25.5664
  Prefactor  = 15.7138
  Prefactor  = 1.96501
  norm       = 12.3551
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21332
  Normalizat = 0.657344
  Prefactor  = 1.07318
 **********
 **   18 **HESSE 
 **********

 FCN=   6973.837     FROM HESSE     STATUS=OK           301 CALLS     2344 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7775        1.3927        .63065E-04   -1.5375    
   2  Prefactor     39.162        26.002        .64049E-04   -1.4456    
   3  norm          2.6412        1.9893        .97879E-04   -1.5383    
   4  Prefactor     86.808        20.001        .43120E-04   -1.3842    
   5  Prefactor     17.380        15.676        .96067E-04   -1.4874    
   6  Prefactor     19.394        12.440        .90948E-04   -1.4827    
   7  Prefactor     16.690        19.119        .98026E-04   -1.4891    
   8  norm          .10000E-03    .42888        .53075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.514        34.781        .75031E-04   -1.4639    
  10  Prefactor     25.566        16.358        .79264E-04   -1.4696    
  11  Prefactor     15.714        39.933        .10121E-03   -1.4915    
  12  Prefactor     1.9650        4.6379        .26878E-03   -1.5428    
  13  norm          12.355        6.4966        .11397E-03   -1.5005    
  14  Prefactor     .10000E-03    25.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5857        .25502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2133        314.15        .39608E-02   -1.5488    
  19  Normalizat    .65734        .27311        .44364E-03   -1.0560    
  20  Prefactor     1.0732        .13625        .18153E-03   -.90328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53401e-10
Minuit parameter uncertainties:
  1  1.39269
  2  26.0095
  3  1.98934
  4  20.0028
  5  15.6793
  6  12.4412
  7  19.1258
  8  7.5702e-07
  9  34.8054
  10  16.361
  11  40.0006
  12  4.63873
  13  6.49694
  14  4.96733e-05
  15  0.000140721
  16  1.05333e-05
  17  3.99022e-06
  18  39.2551
  19  0.273677
  20  0.136292
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.571e+01  4.000e+01  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.073e+00  1.363e-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:  6.573e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741889/likelihoodResults_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.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) = 6972.99250417
delta logL = 0.844738764871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6972.98408735
delta logL = 0.853155587916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4522       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9080       1.0000          .0000       10.000    
     3 'Normalizat'    .58989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0848       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=   6972.984     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4462        93.824        .43022E-02    .77288E-03
   2  Index         2.9084        2.1962        .75871E-01    .24342E-03
   3  Normalizat    .58984        .84833E-01    .10515        .50813E-04
   4  Prefactor     1.0848        .40701E-01    .38196E-01   -.81280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4462
  Index      = 2.90836
  Normalizat = 0.589842
  Prefactor  = 1.08479
 **********
 **   18 **HESSE 
 **********

 FCN=   6972.984     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4462        158.99        .14607E-03   -1.5241    
   2  Index         2.9084        3.2307        .37879E-02   -.43160    
   3  Normalizat    .58984        .28101        .46615E-03   -1.0842    
   4  Prefactor     1.0848        .14512        .18046E-03   -.89954    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29307e-07
Minuit parameter uncertainties:
  1  59.025
  2  3.59439
  3  0.281692
  4  0.145168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741889': 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) = 6972.98408718
delta logL = 0.853155753948

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  5.446e+00  5.903e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.908e+00  3.594e+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.085e+00  1.452e-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:  5.898e-01  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.91 +/- 3.59
Photon Flux (Free Index): 9.33e-08 +/- 7.64e-08
Energy Flux (Free Index): 1.96e-05 +/- 3.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/741889/cmap_HighResolution_595728001_595987201_4FGL_J2317.7+2839_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', comment='SUCCESS', energy_flux2='1.96e-05', dlogl='8.53e-01', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-09-29 11:15:02.854588', photon_index_error2='3.59', photon_index2='2.91', ts='0.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='3.98e-05', EG='0.66', time_epoch_completed='1632939302.85', return_code='0', job_id='741889', GAL2='1.08', EG2='0.59', return_code2='102', photon_flux_error2='7.64e-08', ts2='2.06', photon_index='2.00' WHERE bin_id='1375' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 741889: <4FGL_J2317.7+2839_daily_bin1375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1375 349.438 28.6589 595728001 595987201 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

