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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1342
RA = 349.357, Dec = -45.5623
tmin = 587174401, tmax = 587433601
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='731723', job_status='RUN', time_executed='2021-09-29 10:31:38.079152', time_epoch_executed='1632936698.08' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731723/ft1_4FGL_J2317.4-4533_daily_bin1342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731723/ft1_4FGL_J2317.4-4533_daily_bin1342.fits outfile=/scratch/kocevski/731723/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1342.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=587174401.0 tmax=587433601.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.60
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.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/731723/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1342.fits evtable="EVENTS" outfile="/scratch/kocevski/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.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 1.02
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits" evtable="EVENTS" scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits sctable="SC_DATA" outfile=/scratch/kocevski/731723/ltcube_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.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/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits
.....................!
real 12.10
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits sctable="SC_DATA" expcube=/scratch/kocevski/731723/ltcube_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits outfile=/scratch/kocevski/731723/expmap_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.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/731723/ltcube_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits
.....................!
real 190.35
user 185.92
sys 4.06

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/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits outfile=/scratch/kocevski/731723/cmap_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.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/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits outfile=/scratch/kocevski/731723/cmap_HighResolution_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731723/Model_4FGL_J2317.4-4533_daily_bin1342.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/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits.....................!
real 37.05
user 35.68
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits', '/scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits', expMap='/scratch/kocevski/731723/expmap_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits', expCube='/scratch/kocevski/731723/ltcube_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731723/Model_4FGL_J2317.4-4533_daily_bin1342.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/731723/ft1_filtered_4FGL_J2317.4-4533_daily_bin1342.fits
Spacecraft file(s): /scratch/kocevski/731723/ft2_4FGL_J2317.4-4533_daily_bin1342.fits
Exposure map: /scratch/kocevski/731723/expmap_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits
Exposure cube: /scratch/kocevski/731723/ltcube_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731723/Model_4FGL_J2317.4-4533_daily_bin1342.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) = 4462.59067818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.410       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9476       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15981E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.203       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7522       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4926       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.569       1.0000         .10000E-03   10000.    
    24 'norm      '    .15692E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8698       1.0000         .10000E-03   10000.    
    27 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    53.693       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2472       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.3001       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.0854       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3700       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .76971       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=   4462.580     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     5050 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.792        .12368E-04** at limit **
   2  Prefactor     .10000E-03    9.4091        .20094E-05** at limit **
   3  Prefactor     42.089        47.498        .75884E-05    .26342E-04
   4  Prefactor     13.409        17.089       -.14502E-05   -.99999E-05
   5  norm          5.9472        7.0145       -.14093E-06    .12954E-04
   6  Prefactor     4.2913        4.8873        .20412E-06   -.25755E-03
   7  Prefactor     .10000E-03    49.539        .84385E-05** at limit **
   8  Prefactor     .10006E-03    5.9673        .12418E-05** at limit **
   9  Prefactor     34.207        30.657        .25421E-05    .80324E-05
  10  Prefactor     2.7467        39.436       -.49184E-05   -.61234E-04
  11  Prefactor     .10000E-03    66.964       -.43230E-05** at limit **
  12  Prefactor     .44483        10.406       -.18110E-05   -.14659E-03
  13  Prefactor     .10000E-03    42.762       -.10596E-04** at limit **
  14  Prefactor     .10000E-03    5.7117        .74250E-06** at limit **
  15  Prefactor     .10000E-03    12.871       -.54351E-05** at limit **
  16  Prefactor     .10000E-03    19.448       -.64454E-05** at limit **
  17  Prefactor     .10000E-03    14.372        .27990E-05** at limit **
  18  norm          5.4872        15.286       -.13916E-06   -.43536E-04
  19  norm          .10000E-03    5.5135        .14620E-05** at limit **
  20  norm          .10000E-03    2.0661        .19761E-06** at limit **
  21  norm          .10000E-03    8.2537        .15896E-05** at limit **
  22  Prefactor     .10000E-03    3.1511        .19076E-06** at limit **
  23  Prefactor     22.536        41.010       -.38031E-04   -.32194E-04
  24  norm          .10001E-03    5.2754        .10053E-05** at limit **
  25  Prefactor     .10000E-03    8.0459       -.17040E-05** at limit **
  26  norm          2.8702        1.6648        .13778E-06   -.52261E-04
  27  norm          .10000E-03    2.4218        .83659E-06** at limit **
  28  Prefactor     53.702        30.600        .25333E-05    .51611E-04
  29  Prefactor     2.2533        5.5895        .34770E-05   -.54454E-04
  30  Prefactor     9.2719        31.189       -.32361E-04   -.46099E-04
  31  norm          .10000E-03    18.002        .19436E-05** at limit **
  32  Prefactor     .10000E-03    3.1069       -.99581E-06** at limit **
  33  Prefactor     5.0901        6.5698        .21906E-06   -.23034E-03
  34  Normalizat    1.3691        .23132        .44209E-05   -.20722E-03
  35  Prefactor     .77060        .23149        .69659E-07    .89150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0892
  Prefactor  = 13.4093
  norm       = 5.94715
  Prefactor  = 4.29126
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 34.2074
  Prefactor  = 2.74672
  Prefactor  = 0.0001
  Prefactor  = 0.444834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.48717
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5357
  norm       = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.87016
  norm       = 0.000100001
  Prefactor  = 53.7018
  Prefactor  = 2.25327
  Prefactor  = 9.27193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09006
  Normalizat = 1.36914
  Prefactor  = 0.770597
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.580     FROM HESSE     STATUS=OK           770 CALLS     5820 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.089        47.450        .61796E-04   -1.4410    
   4  Prefactor     13.409        17.078        .10938E-03   -1.4975    
   5  norm          5.9472        7.0119        .16465E-03   -1.5220    
   6  Prefactor     4.2913        4.8836        .14961E-03   -1.5294    
   7  Prefactor     .10000E-03    49.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    16.835        .31087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.207        30.658        .68520E-04   -1.4538    
  10  Prefactor     2.7467        39.473        .24538E-03   -1.5376    
  11  Prefactor     .10000E-03    67.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44483        53.443        .41069E-02   -1.5575    
  13  Prefactor     .10000E-03    42.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7393        .15588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4872        15.282        .17144E-03   -1.5239    
  19  norm          .10000E-03    5.5597        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0675        .93783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.3502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1595        .11578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.536        41.215        .84315E-04   -1.4758    
  24  norm          .10001E-03    5.4749        .29954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.0825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8702        1.6565        .61521E-04   -1.5369    
  27  norm          .10000E-03    2.4405        .10160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     53.702        30.596        .54738E-04   -1.4241    
  29  Prefactor     2.2533        5.3957        .20309E-03   -1.5408    
  30  Prefactor     9.2719        30.559        .13142E-03   -1.5099    
  31  norm          .10000E-03    18.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    5.7890        .22689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     5.0901        6.5966        .17830E-03   -1.5257    
  34  Normalizat    1.3691        .28000        .22898E-03   -.81525    
  35  Prefactor     .77060        .27873        .30848E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34777e-09
Minuit parameter uncertainties:
  1  5.53402e-05
  2  6.44838e-06
  3  47.4921
  4  17.084
  5  7.01282
  6  4.88406
  7  8.14088e-05
  8  0.00193009
  9  30.672
  10  20.8413
  11  0.000263242
  12  9.75936
  13  1.31873e-05
  14  8.62798e-06
  15  6.98492e-06
  16  3.79778e-06
  17  3.7453e-05
  18  15.293
  19  1.09956e-05
  20  2.47266e-05
  21  1.403e-06
  22  5.65424e-06
  23  41.2671
  24  0.000465261
  25  3.20229e-05
  26  1.6565
  27  9.05406e-05
  28  30.6052
  29  5.39689
  30  30.6109
  31  2.62833e-05
  32  5.09729e-05
  33  6.5975
  34  0.28031
  35  0.279242
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  5.487e+00  1.529e+01  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:  7.706e-01  2.792e-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.369e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731723/likelihoodResults_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.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) = 4462.43092015
delta logL = 0.149043684888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4462.43065443
delta logL = 0.149309413688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6186       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4803       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76915       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.

 FCN=   4462.431     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6225        12.470        .16948E-03   -.42751E-03
   2  alpha         2.4810        1.2015        .16235E-01   -.59969E-04
   3  Normalizat    1.3619        .26209        .22945E-03    .10071E-02
   4  Prefactor     .76891        .27366        .30860E-03    .90490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.62251
  alpha      = 2.48095
  Normalizat = 1.36193
  Prefactor  = 0.768912
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.431     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6225        11.647        .67791E-05   -1.5234    
   2  alpha         2.4810        1.1280        .64938E-03   -.76191E-02
   3  Normalizat    1.3619        .26209        .45889E-04   -.81736    
   4  Prefactor     .76891        .27372        .61720E-04   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80622e-09
Minuit parameter uncertainties:
  1  11.6521
  2  1.17023
  3  0.262347
  4  0.274206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731723': 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) = 4462.43065278
delta logL = 0.14931106321

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  5.623e+00  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.481e+00  1.170e+00  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:  7.689e-01  2.742e-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.362e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/731723/cmap_HighResolution_587174401_587433601_4FGL_J2317.4-4533_daily_bin1342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-05', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-29 10:44:48.336043', job_id='731723', GAL2='0.77', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1632937488.34', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.49e-01', ts2='0.45', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1342' 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@bullet0263>
Subject: Job 731723: <4FGL_J2317.4-4533_daily_bin1342> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1342> 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) <bullet0263>, 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_bin1342 349.357 -45.5623 587174401 587433601 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 :                                   781.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.72 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.

