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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1094
RA = 349.438, Dec = 28.6589
tmin = 522892801, tmax = 523152001
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='740430', job_status='RUN', time_executed='2021-09-29 10:58:58.987836', time_epoch_executed='1632938338.99' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740430/ft1_4FGL_J2317.7+2839_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740430/ft1_4FGL_J2317.7+2839_daily_bin1094.fits outfile=/scratch/kocevski/740430/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1094.fits ra=349.438 dec=28.6589 rad=12.0 tmin=522892801.0 tmax=523152001.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.78
user 3.51
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.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/740430/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.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.54
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/740430/ltcube_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.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/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits
.....................!
real 12.76
user 12.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/740430/ltcube_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.fits outfile=/scratch/kocevski/740430/expmap_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.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/740430/ltcube_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.fits
.....................!
real 191.20
user 185.87
sys 4.94

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/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits outfile=/scratch/kocevski/740430/cmap_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits outfile=/scratch/kocevski/740430/cmap_HighResolution_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/740430/ft2_4FGL_J2317.7+2839_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740430/Model_4FGL_J2317.7+2839_daily_bin1094.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/740430/ft1_filtered_4FGL_J2317.7+2839_daily_bin1094.fits.....................!
real 79.07
user 77.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3694       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28348E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8972       1.0000         .10000E-03   10000.    
    13 'norm      '    .12772E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84197       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94456       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=   7208.889     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1777 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4316        .98498        .90252E-02    .29452E-03
   2  Prefactor     .10000E-03    6.8360        .90712E-02** at limit **
   3  norm          1.5921        1.2888        .84056E-02   -.30894E-03
   4  Prefactor     .10001E-03    6.4737        .90712E-02** at limit **
   5  Prefactor     .10000E-03    5.1398        .90712E-02** at limit **
   6  Prefactor     6.3685        6.3321        .39760E-02   -.10989E-02
   7  Prefactor     .10002E-03    9.7508        .14638    ** at limit **
   8  norm          3.3180        1.4564        .55554E-02   -.10112E-02
   9  Prefactor     .10000E-03    6.6150        .90712E-02** at limit **
  10  Prefactor     .10002E-03    7.9263        .90712E-02** at limit **
  11  Prefactor     .10001E-03    18.230        .90712E-02** at limit **
  12  Prefactor     1.9140        7.3058        .75500E-02    .17819E-02
  13  norm          .10003E-03    2.9341        .46183E-01** at limit **
  14  Prefactor     .10000E-03    7.2601        .90712E-01** at limit **
  15  norm          3.7567        2.7379        .52076E-02    .17307E-03
  16  Prefactor     .10000E-03    10.987        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.8877        .90712E-02** at limit **
  18  Prefactor     .10001E-03    25.124        .90712E-02** at limit **
  19  Normalizat    .84169        .18924        .74439E-01   -.84139E-04
  20  Prefactor     .94453        .98422E-01    .45570E-01   -.66861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43158
  Prefactor  = 0.000100001
  norm       = 1.59208
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 6.36846
  Prefactor  = 0.00010002
  norm       = 3.31799
  Prefactor  = 0.000100002
  Prefactor  = 0.00010002
  Prefactor  = 0.000100008
  Prefactor  = 1.91403
  norm       = 0.000100033
  Prefactor  = 0.0001
  norm       = 3.75674
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 0.841687
  Prefactor  = 0.944531
 **********
 **   18 **HESSE 
 **********

 FCN=   7208.889     FROM HESSE     STATUS=OK           299 CALLS     2076 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4316        .97814        .67358E-04   -1.5469    
   2  Prefactor     .10000E-03    6.8425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5921        1.2882        .84630E-04   -1.5456    
   4  Prefactor     .10001E-03    6.5269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3685        6.3339        .79520E-03   -1.5203    
   7  Prefactor     .10002E-03    13.738        .10168       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3180        1.4510        .64925E-04   -1.5344    
   9  Prefactor     .10000E-03    6.6280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    8.0493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    18.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9140        7.2953        .30200E-03   -1.5431    
  13  norm          .10003E-03    7.8314        .27442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.479        .42811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7567        2.7388        .11643E-03   -1.5320    
  16  Prefactor     .10000E-03    11.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    25.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .84169        .21783        .32945E-03   -.98541    
  20  Prefactor     .94453        .11479        .16624E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33106e-08
Minuit parameter uncertainties:
  1  0.978147
  2  0.000194626
  3  1.2882
  4  0.000384416
  5  3.05389e-05
  6  6.33455
  7  0.00105339
  8  1.45104
  9  0.000215417
  10  0.000792811
  11  0.000769726
  12  7.2987
  13  0.00101947
  14  0.000133021
  15  2.73889
  16  0.000269598
  17  1.60356e-05
  18  0.000942943
  19  0.218062
  20  0.114823
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  7.697e-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:  9.445e-01  1.148e-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:  8.417e-01  2.181e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740430/likelihoodResults_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.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) = 7208.88914846
delta logL = -0.000257942751887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7208.8888907
delta logL = -1.81935320143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1650       1.0000          .0000       10.000    
     3 'Normalizat'    .84169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94453       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=   7208.889     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91782        .90712E-02** at limit **
   2  Index         2.1732        8.7592        .50000       -.35924E-05
   3  Normalizat    .84168        .10776E-02    .74440E-01    .28889E-04
   4  Prefactor     .94453        .57619E-03    .45570E-01    .53123E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17325
  Normalizat = 0.841684
  Prefactor  = 0.944533
 **********
 **   18 **HESSE 
 **********

 FCN=   7208.889     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    410.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1732        6.5422        .50000       -.60086    
   3  Normalizat    .84168        .23098E-01    .32945E-03   -.98541    
   4  Prefactor     .94453        .12355E-01    .16624E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13756e-07
Minuit parameter uncertainties:
  1  4.08193e-05
  2  386.011
  3  0.023098
  4  0.0123546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740430': 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) = 7208.88889036
delta logL = 1.5236219042e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  4.082e-05  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.173e+00  3.860e+02  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:  9.445e-01  1.235e-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:  8.417e-01  2.310e-02  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/740430/cmap_HighResolution_522892801_523152001_4FGL_J2317.7+2839_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-29 11:10:10.483695', job_id='740430', GAL2='0.94', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632939010.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1094' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 740430: <4FGL_J2317.7+2839_daily_bin1094> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1094> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:32 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:55:34 2021
Terminated at Wed Sep 29 11:10:11 2021
Results reported at Wed Sep 29 11:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1094 349.438 28.6589 522892801 523152001 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

