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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1517
RA = 349.438, Dec = 28.6589
tmin = 632534401, tmax = 632793601
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='742133', job_status='RUN', time_executed='2021-09-29 11:03:32.905828', time_epoch_executed='1632938612.91' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742133/ft1_4FGL_J2317.7+2839_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742133/ft1_4FGL_J2317.7+2839_daily_bin1517.fits outfile=/scratch/kocevski/742133/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1517.fits ra=349.438 dec=28.6589 rad=12.0 tmin=632534401.0 tmax=632793601.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.59
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.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/742133/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1517.fits evtable="EVENTS" outfile="/scratch/kocevski/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/742133/ltcube_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.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/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits
.....................!
real 12.21
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/742133/ltcube_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.fits outfile=/scratch/kocevski/742133/expmap_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.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/742133/ltcube_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.fits
.....................!
real 191.73
user 185.71
sys 5.63

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/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits outfile=/scratch/kocevski/742133/cmap_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.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.73
user 0.35
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits outfile=/scratch/kocevski/742133/cmap_HighResolution_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.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/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/742133/ft2_4FGL_J2317.7+2839_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742133/Model_4FGL_J2317.7+2839_daily_bin1517.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/742133/ft1_filtered_4FGL_J2317.7+2839_daily_bin1517.fits.....................!
real 87.70
user 86.26
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44199E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20839E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3635       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0486       1.0000         .10000E-03   10000.    
    15 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.429       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91318       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0152       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=   7937.667     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2112 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10301        .46812        .38424E-06   -.17603E-03
   2  Prefactor     .10000E-03    19.104       -.28241E-07** at limit **
   3  norm          3.2134        1.6678       -.44221E-07   -.30424E-03
   4  Prefactor     .10000E-03    14.034        .19128E-06** at limit **
   5  Prefactor     .10000E-03    10.618        .46395E-06** at limit **
   6  Prefactor     .10005E-03    4.6932        .10321E-05** at limit **
   7  Prefactor     .10000E-03    9.9691        .22092E-07** at limit **
   8  norm          1.5085        1.1643        .33639E-07   -.43638E-03
   9  Prefactor     .10000E-03    9.9252       -.62258E-06** at limit **
  10  Prefactor     .10038E-03    13.147        .43948E-05** at limit **
  11  Prefactor     13.859        28.409       -.66061E-06   -.22666E-03
  12  Prefactor     2.3623        5.9299        .19240E-05    .42634E-03
  13  norm          3.6699        3.9803        .13911E-05    .10038E-02
  14  Prefactor     9.0205        19.372       -.18098E-05   -.22678E-03
  15  norm          .10000E-03    1.4104        .16913E-06** at limit **
  16  Prefactor     12.024        16.759       -.72767E-06   -.55642E-04
  17  Prefactor     .10000E-03    5.4423        .78746E-08** at limit **
  18  Prefactor     36.420        36.791       -.25760E-07   -.99200E-04
  19  Normalizat    .91293        .19761        .50011E-06   -.60672E-03
  20  Prefactor     1.0154        .10083       -.99644E-06   -.12413E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103015
  Prefactor  = 0.0001
  norm       = 3.21341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  norm       = 1.50847
  Prefactor  = 0.0001
  Prefactor  = 0.000100383
  Prefactor  = 13.8586
  Prefactor  = 2.36231
  norm       = 3.66985
  Prefactor  = 9.02047
  norm       = 0.000100001
  Prefactor  = 12.0238
  Prefactor  = 0.0001
  Prefactor  = 36.4205
  Normalizat = 0.912928
  Prefactor  = 1.01544
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.667     FROM HESSE     STATUS=OK           293 CALLS     2405 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10301        .76403        .11477E-02   -1.5644    
   2  Prefactor     .10000E-03    19.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2134        1.6687        .80820E-04   -1.5349    
   4  Prefactor     .10000E-03    14.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    43.015        .35899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5085        1.1527        .80860E-04   -1.5462    
   9  Prefactor     .10000E-03    9.9754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10038E-03    38.682        .42215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.859        28.533        .10746E-03   -1.4963    
  12  Prefactor     2.3623        6.0081        .26655E-03   -1.5401    
  13  norm          3.6699        4.0543        .85267E-03   -1.5325    
  14  Prefactor     9.0205        19.315        .13324E-03   -1.5107    
  15  norm          .10000E-03    5.7027        .20499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.024        16.673        .11552E-03   -1.5014    
  17  Prefactor     .10000E-03    5.4460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.420        36.919        .66400E-04   -1.4500    
  19  Normalizat    .91293        .22560        .33572E-03   -.96007    
  20  Prefactor     1.0154        .11552        .17076E-03   -.92217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98132e-08
Minuit parameter uncertainties:
  1  0.560832
  2  3.25454e-05
  3  1.66872
  4  2.22817e-05
  5  0.000108722
  6  0.00301981
  7  1.70007e-05
  8  1.1527
  9  8.75957e-05
  10  0.00769863
  11  28.5609
  12  6.00962
  13  4.05457
  14  19.328
  15  0.000114445
  16  16.6793
  17  1.70211e-06
  18  36.942
  19  0.225835
  20  0.115551
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.386e+01  2.856e+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.015e+00  1.156e-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:  9.129e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742133/likelihoodResults_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.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) = 7936.21208118
delta logL = 1.45516380525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7936.05464384
delta logL = 1.61260114631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14959       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0731       1.0000          .0000       10.000    
     3 'Normalizat'    .80051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0505       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=   7936.055     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      303 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14633        1.0777        .44688E-02    .36156E-02
   2  Index         4.0799        1.3347        .71619E-01    .36571E-03
   3  Normalizat    .80068        .49480E-01    .80365E-01    .35470E-04
   4  Prefactor     1.0503        .26364E-01    .39878E-01   -.36280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.14633
  Index      = 4.07991
  Normalizat = 0.800677
  Prefactor  = 1.05035
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.055     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14633        2.6087        .20187E-04   -1.5631    
   2  Index         4.0799        2.4754        .26728E-02   -.18507    
   3  Normalizat    .80068        .19375        .35579E-03   -1.0004    
   4  Prefactor     1.0503        .10189        .16807E-03   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97549e-10
Minuit parameter uncertainties:
  1  1.23534
  2  2.5942
  3  0.193913
  4  0.101912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742133': 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) = 7936.05463171
delta logL = 1.61261327149

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.463e-01  1.235e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  4.080e+00  2.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.050e+00  1.019e-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.007e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.00
Ra Dec: 349.438 28.659
Photon Index (Free Index): 4.08 +/- 2.59
Photon Flux (Free Index): 1.03e-07 +/- 6.20e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.10e-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/742133/cmap_HighResolution_632534401_632793601_4FGL_J2317.7+2839_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.61e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-29 11:15:42.336335', photon_index_error2='2.59', photon_index2='4.08', ts='0.29', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.10e-05', EG='0.91', time_epoch_completed='1632939342.34', return_code='0', job_id='742133', GAL2='1.05', EG2='0.80', return_code2='102', photon_flux_error2='6.20e-08', ts2='4.00', photon_index='2.00' WHERE bin_id='1517' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 742133: <4FGL_J2317.7+2839_daily_bin1517> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1517 349.438 28.6589 632534401 632793601 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 :                                   702.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

