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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin893
RA = 350.888, Dec = -3.29
tmin = 470793601, tmax = 471052801
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='811127', job_status='RUN', time_executed='2021-09-29 14:36:54.529320', time_epoch_executed='1632951414.53' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811127/ft1_4FGL_J2323.5-0317_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811127/ft1_4FGL_J2323.5-0317_daily_bin893.fits outfile=/scratch/kocevski/811127/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin893.fits ra=350.888 dec=-3.29 rad=12.0 tmin=470793601.0 tmax=471052801.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.50
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.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/811127/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/811127/ltcube_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.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/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits
.....................!
real 12.08
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/811127/ltcube_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits outfile=/scratch/kocevski/811127/expmap_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.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/811127/ltcube_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits
.....................!
real 191.71
user 186.74
sys 4.62

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

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits outfile=/scratch/kocevski/811127/cmap_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.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=350.888 yref=-3.29 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits outfile=/scratch/kocevski/811127/cmap_HighResolution_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.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=350.888 yref=-3.29 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811127/Model_4FGL_J2323.5-0317_daily_bin893.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/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits.....................!
real 58.13
user 56.73
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits', '/scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits', expMap='/scratch/kocevski/811127/expmap_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits', expCube='/scratch/kocevski/811127/ltcube_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811127/Model_4FGL_J2323.5-0317_daily_bin893.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/811127/ft1_filtered_4FGL_J2323.5-0317_daily_bin893.fits
Spacecraft file(s): /scratch/kocevski/811127/ft2_4FGL_J2323.5-0317_daily_bin893.fits
Exposure map: /scratch/kocevski/811127/expmap_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits
Exposure cube: /scratch/kocevski/811127/ltcube_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811127/Model_4FGL_J2323.5-0317_daily_bin893.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) = 6130.03594614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3391       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.164       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.298       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4918       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3070       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    213.59       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1985       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77515       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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=   6130.029     FROM MIGRAD    STATUS=FAILED      1006 CALLS     3320 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0596        .10969E-02** at limit **
   2  Prefactor     26.098        34.284        .78392E-04   -.46407E-05
   3  Prefactor     10.407        21.888        .12420E-03   -.15561E-05
   4  Prefactor     9.3380        9.3797        .13114E-03   -.86691E-05
   5  norm          1.3641        12.534        .37403E-03    .93616E-05
   6  Prefactor     29.152        32.647        .74188E-04   -.91945E-05
   7  Prefactor     6.0564        12.928        .81572E-03   -.21756E-04
   8  Prefactor     12.384        46.839        .11423E-03    .24882E-05
   9  Prefactor     4.4817        7.9655        .18997E-03   -.52184E-04
  10  norm          4.3070        1.1551        .41268E-04   -.17973E-03
  11  norm          .10000E-03    1.6150        .96978E-03** at limit **
  12  Prefactor     .10000E-03    6.1578        .18142E-02** at limit **
  13  Prefactor     1.0513        395.25        .95017E-02    .55277E-03
  14  Prefactor     213.49        172.62        .13833E-03    .28600E-05
  15  Prefactor     .10000E-03    8.8566        .18142E-02** at limit **
  16  Prefactor     .10000E-03    27.804        .18142E-02** at limit **
  17  norm          .10000E-03    7.1425        .18142E-02** at limit **
  18  Prefactor     .10000E-03    24.449        .18142E-02** at limit **
  19  Prefactor     5.1983        3.9976        .12743E-03   -.61381E-04
  20  Prefactor     53.134        38.139        .55025E-04   -.20248E-04
  21  Prefactor     1.0965        53.103        .45958E-03    .61595E-05
  22  Prefactor     2.3524        8.5214        .26724E-03   -.45519E-05
  23  Prefactor     15.825        8.4264        .10068E-03   -.70008E-05
  24  Normalizat    .77520        .20439        .27042E-03   -.79247E-04
  25  Prefactor     .77923        .14445        .19945E-03    .23940E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6130.029     FROM SIMPLEX   STATUS=UNCHANGED   1404 CALLS     4724 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0596        .24661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.098        34.284        .82124E-06   -1.4686    
   3  Prefactor     10.407        21.888        .84245E-06   -1.5063    
   4  Prefactor     9.3380        9.3797        .84411E-06   -1.5097    
   5  norm          1.3641        12.534        .86520E-06   -1.5474    
   6  Prefactor     29.152        32.647        .81791E-06   -1.4628    
   7  Prefactor     6.0564        12.928        .85089E-06   -1.5216    
   8  Prefactor     12.384        46.839        .83889E-06   -1.5004    
   9  Prefactor     4.4817        7.9655        .85468E-06   -1.5285    
  10  norm          4.3070        1.1551        .85518E-06   -1.5293    
  11  norm          .10000E-03    1.6150        .17403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1578        .15042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0513        395.25        .88423E-06   -1.5503    
  14  Prefactor     213.49        172.62        .71489E-06   -1.2775    
  15  Prefactor     .10000E-03    8.8566        .25213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.804        .60513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1425        .37231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.449        .66471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1983        3.9976        .85293E-06   -1.5252    
  20  Prefactor     53.134        38.139        .79708E-06   -1.4249    
  21  Prefactor     1.0965        53.103        .88027E-06   -1.5499    
  22  Prefactor     2.3524        8.5214        .86139E-06   -1.5401    
  23  Prefactor     15.825        8.4264        .83391E-06   -1.4912    
  24  Normalizat    .77520        .20439        .56473E-06   -1.0100    
  25  Prefactor     .77923        .14445        .56202E-06   -1.0050    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6130.029     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     5132 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0596        .21938E-03** at limit **
   2  Prefactor     26.098        34.278        .31357E-05     .0000    
   3  Prefactor     10.406        21.883        .49679E-05    .91538E-07
   4  Prefactor     9.3380        9.3787        .52456E-05    .86691E-07
   5  norm          1.3641        12.523        .14961E-04    .82066E-06
   6  Prefactor     29.152        32.638        .29675E-05     .0000    
   7  Prefactor     6.0564        12.925        .32629E-04    .13937E-06
   8  Prefactor     12.384        46.794        .45691E-05     .0000    
   9  Prefactor     4.4818        7.9591        .75989E-05    .47875E-06
  10  norm          4.3070        1.1548        .82535E-05    .19284E-05
  11  norm          .10000E-03    1.6150        .19396E-03** at limit **
  12  Prefactor     .10000E-03    6.1593        .36285E-03** at limit **
  13  Prefactor     1.0513        406.01        .19003E-02    .22045E-04
  14  Prefactor     213.49        172.62        .27667E-04    .16437E-06
  15  Prefactor     .10000E-03    8.8613        .36285E-03** at limit **
  16  Prefactor     .10000E-03    27.814        .36285E-03** at limit **
  17  norm          .10000E-03    7.1428        .36285E-03** at limit **
  18  Prefactor     .10000E-03    24.450        .36285E-03** at limit **
  19  Prefactor     5.1983        3.9972        .50971E-05    .13382E-05
  20  Prefactor     53.134        38.076        .22010E-05    .20661E-06
  21  Prefactor     1.0965        53.048        .18383E-04    .39579E-06
  22  Prefactor     2.3524        8.5202        .10690E-04    .46795E-06
  23  Prefactor     15.825        8.4253        .40273E-05    .11292E-06
  24  Normalizat    .77520        .20452        .10817E-04    .42041E-06
  25  Prefactor     .77923        .14436        .79779E-05    .85501E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.0977
  Prefactor  = 10.4065
  Prefactor  = 9.33802
  norm       = 1.36413
  Prefactor  = 29.1517
  Prefactor  = 6.05638
  Prefactor  = 12.384
  Prefactor  = 4.48175
  norm       = 4.30698
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05128
  Prefactor  = 213.487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.19825
  Prefactor  = 53.1342
  Prefactor  = 1.09652
  Prefactor  = 2.35243
  Prefactor  = 15.8248
  Normalizat = 0.775201
  Prefactor  = 0.779231
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.029     FROM HESSE     STATUS=OK           403 CALLS     5535 TOTAL
                     EDM=   .97E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0596        .43877E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.098        34.275        .31357E-05   -1.4686    
   3  Prefactor     10.406        21.884        .49679E-05   -1.5063    
   4  Prefactor     9.3380        9.3782        .52456E-05   -1.5097    
   5  norm          1.3641        12.522        .14961E-04   -1.5474    
   6  Prefactor     29.152        32.633        .29675E-05   -1.4628    
   7  Prefactor     6.0564        12.924        .65258E-05   -1.5216    
   8  Prefactor     12.384        46.778        .45691E-05   -1.5004    
   9  Prefactor     4.4818        7.9591        .75989E-05   -1.5285    
  10  norm          4.3070        1.1548        .16507E-05   -1.5293    
  11  norm          .10000E-03    1.6150        .38791E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1593        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0513        405.26        .38007E-03   -1.5503    
  14  Prefactor     213.49        172.60        .55333E-05   -1.2775    
  15  Prefactor     .10000E-03    8.8614        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.815        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1428        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.450        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1983        3.9966        .10194E-05   -1.5252    
  20  Prefactor     53.134        38.068        .22010E-05   -1.4249    
  21  Prefactor     1.0965        53.047        .18383E-04   -1.5499    
  22  Prefactor     2.3524        8.5200        .10690E-04   -1.5401    
  23  Prefactor     15.825        8.4247        .40273E-05   -1.4912    
  24  Normalizat    .77520        .20392        .21634E-05   -1.0100    
  25  Prefactor     .77923        .14387        .15956E-05   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70773e-15
Minuit parameter uncertainties:
  1  1.20187e-08
  2  34.3013
  3  21.9005
  4  9.37972
  5  8.26812
  6  32.6534
  7  12.9295
  8  46.9172
  9  7.96102
  10  1.15479
  11  2.49317e-08
  12  3.53508e-09
  13  41.566
  14  173.008
  15  4.15286e-07
  16  6.20786e-08
  17  5.9918e-08
  18  4.05375e-07
  19  3.99681
  20  38.0857
  21  15.2671
  22  8.52441
  23  8.4253
  24  0.204117
  25  0.143943
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.307e+00  1.155e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.792e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.752e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.17
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.47e-08
Energy Flux (Fixed Index): 6.83e-05 +/- 1.83e-05

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) = 6128.18347048
delta logL = 1.84583175147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.14843101
delta logL = 1.88087121973

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6128.148     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0941        1.1665        .49810E-02   -.25660E-03
   2  alpha         1.6344        .22920        .17252       -.31685E-04
   3  Normalizat    .83132        .16488        .44018E-01    .24794E-04
   4  Prefactor     .75819        .12176        .43171E-01    .35072E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09407
  alpha      = 1.63438
  Normalizat = 0.831322
  Prefactor  = 0.758191
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.148     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0941        1.2850        .43254E-04   -1.5303    
   2  alpha         1.6344        .26157        .73567E-02   -.35357    
   3  Normalizat    .83132        .18935        .26237E-03   -.98917    
   4  Prefactor     .75819        .13968        .20214E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70333e-10
Minuit parameter uncertainties:
  1  1.28501
  2  0.262119
  3  0.189504
  4  0.139742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811127': 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) = 6128.148431
delta logL = 1.88087122772

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.094e+00  1.285e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.634e+00  2.621e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.582e-01  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.313e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.10
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.63 +/- 0.26
Photon Flux (Free Index): 1.08e-07 +/- 4.13e-08
Energy Flux (Free Index): 1.12e-04 +/- 4.87e-05

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/811127/cmap_HighResolution_470793601_471052801_4FGL_J2323.5-0317_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='1.12e-04', photon_flux_error='4.47e-08', dlogl='1.88e+00', energy_flux='6.83e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-29 14:49:16.563533', photon_index_error2='0.26', photon_index2='1.63', ts='58.17', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='0.78', time_epoch_completed='1632952156.56', return_code='0', job_id='811127', GAL2='0.76', EG2='0.83', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.13e-08', ts2='62.10', photon_index='2.16' WHERE bin_id='893' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 811127: <4FGL_J2323.5-0317_daily_bin893> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin893> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:38 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:35:40 2021
Terminated at Wed Sep 29 14:49:17 2021
Results reported at Wed Sep 29 14:49:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin893 350.888 -3.29 470793601 471052801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

