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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin732
RA = 350.916, Dec = -6.2953
tmin = 429062401, tmax = 429321601
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='817596', job_status='RUN', time_executed='2021-09-29 14:58:58.052839', time_epoch_executed='1632952738.05' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817596/ft1_4FGL_J2323.6-0617_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817596/ft1_4FGL_J2323.6-0617_daily_bin732.fits outfile=/scratch/kocevski/817596/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin732.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.31
user 6.05
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.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/817596/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/817596/ltcube_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.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/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits
.....................!
real 11.75
user 11.35
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/817596/ltcube_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits outfile=/scratch/kocevski/817596/expmap_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.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/817596/ltcube_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits
.....................!
real 190.79
user 186.36
sys 4.11

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

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits outfile=/scratch/kocevski/817596/cmap_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.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.916 yref=-6.2953 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits outfile=/scratch/kocevski/817596/cmap_HighResolution_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.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.916 yref=-6.2953 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817596/Model_4FGL_J2323.6-0617_daily_bin732.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/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits....................!
real 40.21
user 38.98
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits', '/scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits', expMap='/scratch/kocevski/817596/expmap_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits', expCube='/scratch/kocevski/817596/ltcube_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817596/Model_4FGL_J2323.6-0617_daily_bin732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817596/ft1_filtered_4FGL_J2323.6-0617_daily_bin732.fits
Spacecraft file(s): /scratch/kocevski/817596/ft2_4FGL_J2323.6-0617_daily_bin732.fits
Exposure map: /scratch/kocevski/817596/expmap_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits
Exposure cube: /scratch/kocevski/817596/ltcube_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817596/Model_4FGL_J2323.6-0617_daily_bin732.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) = 3694.177798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40272E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    92.084       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15771E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.440       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.121       1.0000         .10000E-03   10000.    
    24 'norm      '    .16412       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4276       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8344       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4879       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57898       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3694.173     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     4716 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9397        11.576       -.37573E-07    .53088E-04
   2  Prefactor     .10000E-03    24.194       -.54088E-06** at limit **
   3  Prefactor     .10000E-03    18.440       -.20688E-05** at limit **
   4  norm          .10000E-03    .49815       -.62134E-06** at limit **
   5  Prefactor     .10000E-03    68.665       -.47925E-05** at limit **
   6  Prefactor     .10000E-03    3.2429       -.16394E-06** at limit **
   7  Prefactor     .10000E-03    7.7787       -.71987E-06** at limit **
   8  norm          23.220        20.793       -.11029E-05   -.59798E-04
   9  Prefactor     4.6069        38.993       -.21933E-05   -.34078E-05
  10  Prefactor     .10000E-03    31.031       -.17182E-05** at limit **
  11  Prefactor     11.279        25.759        .11372E-05    .37845E-04
  12  Prefactor     .10000E-03    3.9935       -.58110E-06** at limit **
  13  norm          .16432E-01    23.763        .33438E-04    .39528E-04
  14  norm          3.7260        6.3529       -.36098E-05   -.21014E-03
  15  Prefactor     .10000E-03    31.687       -.13603E-05** at limit **
  16  Prefactor     .10000E-03    84.538       -.30726E-05** at limit **
  17  Prefactor     .10000E-03    34.676       -.14738E-05** at limit **
  18  Prefactor     91.445        251.16       -.66279E-04    .23870E-04
  19  Prefactor     .10000E-03    39.431       -.76075E-05** at limit **
  20  norm          22.463        30.783        .56039E-05    .36751E-03
  21  Prefactor     .10000E-03    17.322       -.36931E-06** at limit **
  22  Prefactor     .10000E-03    4.7322        .60117E-06** at limit **
  23  Prefactor     15.125        46.896        .14570E-05    .14876E-04
  24  norm          .16394        .51393        .20734E-06    .16523E-02
  25  norm          .10000E-03    4.4366       -.10858E-06** at limit **
  26  Prefactor     7.4308        17.602        .55697E-06    .23456E-04
  27  Prefactor     2.8350        5.5499        .13423E-06    .93592E-04
  28  Normalizat    1.4877        .23281       -.17970E-05    .22012E-03
  29  Prefactor     .57903        .18123        .80846E-07    .30128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93968
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2203
  Prefactor  = 4.60695
  Prefactor  = 0.000100001
  Prefactor  = 11.2794
  Prefactor  = 0.0001
  norm       = 0.0164325
  norm       = 3.72598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.4449
  Prefactor  = 0.0001
  norm       = 22.4631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1247
  norm       = 0.163944
  norm       = 0.0001
  Prefactor  = 7.43079
  Prefactor  = 2.83499
  Normalizat = 1.48775
  Prefactor  = 0.579035
 **********
 **   18 **HESSE 
 **********

 FCN=   3694.173     FROM HESSE     STATUS=OK           547 CALLS     5263 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9397        11.553        .18100E-03   -1.5263    
   2  Prefactor     .10000E-03    24.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .50774        .83479E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2434        .10690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7924        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.220        20.802        .83131E-04   -1.4744    
   9  Prefactor     4.6069        39.151        .18755E-03   -1.5279    
  10  Prefactor     .10000E-03    31.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.279        25.766        .11920E-03   -1.5036    
  12  Prefactor     .10000E-03    4.0028        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16432E-01    24.085        .94285E-03   -1.5682    
  14  norm          3.7260        6.3482        .18886E-03   -1.5322    
  15  Prefactor     .10000E-03    31.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    84.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     91.445        254.49        .20939E-03   -1.3793    
  19  Prefactor     .10000E-03    41.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.463        31.366        .84555E-04   -1.4760    
  21  Prefactor     .10000E-03    17.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8831        .12980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.125        46.902        .10300E-03   -1.4930    
  24  norm          .16394        .59720        .72189E-03   -1.5627    
  25  norm          .10000E-03    4.4575        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4308        17.616        .14716E-03   -1.5163    
  27  Prefactor     2.8350        5.5235        .18983E-03   -1.5371    
  28  Normalizat    1.4877        .27014        .21749E-03   -.78123    
  29  Prefactor     .57903        .20946        .25924E-03   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87964e-09
Minuit parameter uncertainties:
  1  11.558
  2  3.28839e-05
  3  0.000283437
  4  1.14638e-05
  5  0.00113615
  6  4.05009e-06
  7  1.85179e-05
  8  20.8089
  9  26.8837
  10  0.000251639
  11  25.7913
  12  6.11189e-05
  13  1.25487
  14  6.34937
  15  5.51086e-05
  16  0.000306624
  17  0.00016992
  18  257.621
  19  2.74767e-05
  20  31.3887
  21  4.08272e-05
  22  2.00318e-05
  23  47.0171
  24  0.597221
  25  3.90776e-05
  26  17.628
  27  5.52444
  28  0.270398
  29  0.209742
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  3.726e+00  6.349e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  5.790e-01  2.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.488e+00  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817596/likelihoodResults_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.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) = 3694.1645184
delta logL = 0.00838805038165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3694.16392115
delta logL = 0.00898529250389

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3694.164     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9138        487.80        .50952E-02    .24464E-03
   2  alpha         2.0628        2.6222        .41972        .13778E-06
   3  Normalizat    1.4912        .17471        .49151E-01   -.32094E-04
   4  Prefactor     .57728        .12528        .58684E-01   -.82886E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.91383
  alpha      = 2.06277
  Normalizat = 1.49119
  Prefactor  = 0.57728
 **********
 **   18 **HESSE 
 **********

 FCN=   3694.164     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9138        6.5377        .19221E-03   -1.5312    
   2  alpha         2.0628        1.2298        .26619E-01   -.17580    
   3  Normalizat    1.4912        .25891        .21728E-03   -.78026    
   4  Prefactor     .57728        .20286        .25959E-03   -1.0855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5247e-12
Minuit parameter uncertainties:
  1  6.53886
  2  1.28775
  3  0.259144
  4  0.20312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817596': 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) = 3694.16392026
delta logL = 0.00898618570363

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  3.914e+00  6.539e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.063e+00  1.288e+00  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  5.773e-01  2.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.491e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 350.916 -6.295

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/817596/cmap_HighResolution_429062401_429321601_4FGL_J2323.6-0617_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 15:09:35.869781', job_id='817596', GAL2='0.58', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632953375.87', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.99e-03', ts2='0.48', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='732' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:09:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 817596: <4FGL_J2323.6-0617_daily_bin732> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin732> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:55:23 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:55:25 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:55:25 2021
Terminated at Wed Sep 29 15:09:36 2021
Results reported at Wed Sep 29 15:09:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin732 350.916 -6.2953 429062401 429321601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

