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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1343
RA = 349.357, Dec = -45.5623
tmin = 587433601, tmax = 587692801
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='731725', job_status='RUN', time_executed='2021-09-29 10:32:07.162416', time_epoch_executed='1632936727.16' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731725/ft1_4FGL_J2317.4-4533_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731725/ft1_4FGL_J2317.4-4533_daily_bin1343.fits outfile=/scratch/kocevski/731725/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1343.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=587433601.0 tmax=587692801.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.65
user 3.40
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.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/731725/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1343.fits evtable="EVENTS" outfile="/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.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.75
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/731725/ltcube_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.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/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits
.....................!
real 12.65
user 12.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/731725/ltcube_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits outfile=/scratch/kocevski/731725/expmap_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.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/731725/ltcube_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits
.....................!
real 192.79
user 187.50
sys 4.92

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

Setting source of interest to:
4FGL J2317.4-4533 @ 349.357 -45.5623

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits outfile=/scratch/kocevski/731725/cmap_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.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.357 yref=-45.5623 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits outfile=/scratch/kocevski/731725/cmap_HighResolution_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.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.357 yref=-45.5623 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731725/Model_4FGL_J2317.4-4533_daily_bin1343.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/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits.....................!
real 34.44
user 33.14
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits', '/scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits', expMap='/scratch/kocevski/731725/expmap_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits', expCube='/scratch/kocevski/731725/ltcube_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731725/Model_4FGL_J2317.4-4533_daily_bin1343.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.4-4533'

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731725/ft1_filtered_4FGL_J2317.4-4533_daily_bin1343.fits
Spacecraft file(s): /scratch/kocevski/731725/ft2_4FGL_J2317.4-4533_daily_bin1343.fits
Exposure map: /scratch/kocevski/731725/expmap_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits
Exposure cube: /scratch/kocevski/731725/ltcube_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731725/Model_4FGL_J2317.4-4533_daily_bin1343.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) = 4017.89388251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1594       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2108       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23927E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    130.78       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.3167       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.017       1.0000         .10000E-03   10000.    
    26 'norm      '    .96730       1.0000         .10000E-03   10000.    
    27 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4637       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.7878       1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.6781       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1863       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .55391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4017.871     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     5146 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.408        .45793E-05** at limit **
   2  Prefactor     .10000E-03    5.7682        .24337E-06** at limit **
   3  Prefactor     .10000E-03    64.832       -.34920E-05** at limit **
   4  Prefactor     2.1605        9.7424        .71899E-05   -.17988E-05
   5  norm          .10000E-03    3.2106       -.11973E-07** at limit **
   6  Prefactor     6.2546        6.0937        .32895E-06   -.54968E-04
   7  Prefactor     .10000E-03    25.543        .25549E-05** at limit **
   8  Prefactor     7.2105        7.3334        .14207E-06   -.16248E-04
   9  Prefactor     12.288        25.432       -.10218E-06   -.90408E-05
  10  Prefactor     2.2111        70.378        .24336E-05   -.60115E-05
  11  Prefactor     19.350        31.002       -.57645E-06    .60641E-06
  12  Prefactor     .10000E-03    11.300       -.11268E-05** at limit **
  13  Prefactor     130.69        148.03        .88771E-05   -.37118E-05
  14  Prefactor     8.1147        6.9882        .58970E-07   -.27321E-04
  15  Prefactor     .10000E-03    14.924        .48493E-06** at limit **
  16  Prefactor     14.248        48.135        .98204E-06   -.25085E-05
  17  Prefactor     .10000E-03    20.071       -.16391E-05** at limit **
  18  norm          .10000E-03    5.5912        .25201E-06** at limit **
  19  norm          .10000E-03    5.6274       -.40014E-06** at limit **
  20  norm          .10000E-03    1.7329        .96206E-08** at limit **
  21  norm          6.3167        6.8517        .59362E-07   -.13074E-05
  22  Prefactor     .10000E-03    9.1916        .46731E-06** at limit **
  23  Prefactor     .10000E-03    21.598       -.69638E-06** at limit **
  24  norm          .10000E-03    1.4450        .37229E-07** at limit **
  25  Prefactor     30.019        18.639       -.36211E-07   -.36893E-04
  26  norm          .96714        1.3621        .12243E-06    .15384E-03
  27  norm          .10000E-03    2.7847        .81579E-07** at limit **
  28  Prefactor     9.4584        19.996        .26089E-06    .59706E-05
  29  Prefactor     .10000E-03    1.9412        .34390E-07** at limit **
  30  Prefactor     9.7841        25.652        .61328E-06    .15728E-04
  31  norm          .10000E-03    9.5994       -.68556E-06** at limit **
  32  Prefactor     3.6794        6.5325        .90649E-07    .64270E-04
  33  Prefactor     .10000E-03    1.5665        .43225E-07** at limit **
  34  Normalizat    1.1867        .21884       -.16801E-06    .14962E-04
  35  Prefactor     .55349        .21406       -.14332E-05   -.90544E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16048
  norm       = 0.0001
  Prefactor  = 6.2546
  Prefactor  = 0.0001
  Prefactor  = 7.2105
  Prefactor  = 12.2884
  Prefactor  = 2.2111
  Prefactor  = 19.3505
  Prefactor  = 0.000100001
  Prefactor  = 130.686
  Prefactor  = 8.11472
  Prefactor  = 0.0001
  Prefactor  = 14.2478
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.31665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.0186
  norm       = 0.967135
  norm       = 0.0001
  Prefactor  = 9.45837
  Prefactor  = 0.0001
  Prefactor  = 9.78409
  norm       = 0.0001
  Prefactor  = 3.67935
  Prefactor  = 0.0001
  Normalizat = 1.18667
  Prefactor  = 0.553486
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.871     FROM HESSE     STATUS=OK           772 CALLS     5918 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7693        .14869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1605        9.7471        .14016E-02   -1.5414    
   5  norm          .10000E-03    3.2128        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2546        6.1252        .14242E-03   -1.5208    
   7  Prefactor     .10000E-03    25.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2105        7.3178        .14938E-03   -1.5171    
   9  Prefactor     12.288        25.386        .11424E-03   -1.5007    
  10  Prefactor     2.2111        70.444        .27443E-03   -1.5411    
  11  Prefactor     19.350        31.014        .91033E-04   -1.4828    
  12  Prefactor     .10000E-03    11.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     130.69        148.26        .17605E-03   -1.3417    
  14  Prefactor     8.1147        6.9830        .14074E-03   -1.5138    
  15  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.248        48.132        .10610E-03   -1.4953    
  17  Prefactor     .10000E-03    20.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5977        .14639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.6819        .14677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7333        .81492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.3167        6.8509        .15971E-03   -1.5205    
  22  Prefactor     .10000E-03    9.2669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4486        .74403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.019        18.535        .73129E-04   -1.4612    
  26  norm          .96714        1.2954        .80192E-03   -1.5511    
  27  norm          .10000E-03    2.8262        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.4584        19.992        .13027E-03   -1.5093    
  29  Prefactor     .10000E-03    1.9452        .85946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.7841        25.491        .12809E-03   -1.5082    
  31  norm          .10000E-03    9.5985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.6794        6.5289        .19896E-03   -1.5324    
  33  Prefactor     .10000E-03    1.5752        .77456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1867        .25943        .20421E-03   -.87016    
  35  Prefactor     .55349        .24979        .30037E-03   -1.0958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72331e-10
Minuit parameter uncertainties:
  1  8.43628e-07
  2  2.1142e-07
  3  0.000224549
  4  9.18017
  5  4.96032e-07
  6  6.12582
  7  4.41728e-05
  8  7.31875
  9  25.4084
  10  24.9922
  11  31.04
  12  0.000167341
  13  148.681
  14  6.98367
  15  1.91456e-05
  16  48.2632
  17  1.46142e-05
  18  2.21384e-07
  19  8.09451e-06
  20  6.66646e-07
  21  6.85178
  22  5.68901e-06
  23  2.59683e-05
  24  1.79957e-06
  25  18.5389
  26  1.29544
  27  6.14833e-06
  28  20.0063
  29  3.09766e-07
  30  25.5198
  31  8.42299e-06
  32  6.53014
  33  1.49849e-06
  34  0.259716
  35  0.25029
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.214e-07  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  5.535e-01  2.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.187e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 3.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731725/likelihoodResults_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.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) = 4017.87231856
delta logL = -0.000821348797217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4017.87149721
delta logL = 5.51926859771e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7886       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4017.871     FROM MIGRAD    STATUS=FAILED        82 CALLS      223 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03    1062.2        .14650E-02** at limit **
   2  alpha         1.7076        2.6766        .17394        .18372E-05
   3  Normalizat    1.1867        .10272        .20421E-03   -.43980E-05
   4  Prefactor     .55349        .10705        .30037E-03   -.27630E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4017.871     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      375 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03    1062.2        .35177E-03** at limit **
   2  alpha         1.7076        2.6766        .13859E-04    .18372E-05
   3  Normalizat    1.1867        .10272        .83222E-06   -.43980E-05
   4  Prefactor     .55349        .10705        .67763E-06   -.27630E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4017.871     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      409 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6926        .29300E-03** at limit **
   2  alpha         1.6282        3.8146        .34788E-01    .27778E-08
   3  Normalizat    1.1867        .23455        .81686E-05    .25052E-05
   4  Prefactor     .55349        .24423        .12015E-04    .18924E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62822
  Normalizat = 1.18667
  Prefactor  = 0.553486
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.871     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6812        .58600E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6282        3.7811        .13915E-02   -.35620    
   3  Normalizat    1.1867        .23415        .16337E-05   -.87016    
   4  Prefactor     .55349        .24384        .24030E-05   -1.0958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61035e-13
Minuit parameter uncertainties:
  1  2.57142e-06
  2  317.428
  3  0.234356
  4  0.244308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731725': 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): 0
logL (Free Index) = 4017.87149708
delta logL = 1.31019987748e-07

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.571e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.628e+00  3.174e+02  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  5.535e-01  2.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.187e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.357 -45.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731725/cmap_HighResolution_587433601_587692801_4FGL_J2317.4-4533_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', job_status='DONE', photon_flux_upper_limit='3.13e-08', time_completed='2021-09-29 10:44:48.336731', job_id='731725', GAL2='0.55', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632937488.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='1.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1343' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:44:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 731725: <4FGL_J2317.4-4533_daily_bin1343> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1343> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:31:05 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:31:06 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:31:06 2021
Terminated at Wed Sep 29 10:44:49 2021
Results reported at Wed Sep 29 10:44:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1343 349.357 -45.5623 587433601 587692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.4-4533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

