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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1376
RA = 351.182, Dec = -40.6834
tmin = 595987201, tmax = 596246401
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='853367', job_status='RUN', time_executed='2021-09-29 16:51:29.424489', time_epoch_executed='1632959489.42' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853367/ft1_4FGL_J2324.7-4041_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853367/ft1_4FGL_J2324.7-4041_daily_bin1376.fits outfile=/scratch/kocevski/853367/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1376.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=595987201.0 tmax=596246401.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.14
user 2.93
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.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/853367/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/853367/ltcube_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.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/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits
.....................!
real 12.35
user 12.02
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/853367/ltcube_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits outfile=/scratch/kocevski/853367/expmap_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.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/853367/ltcube_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits
.....................!
real 191.21
user 185.89
sys 5.00

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

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits outfile=/scratch/kocevski/853367/cmap_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.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=351.182 yref=-40.6834 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits outfile=/scratch/kocevski/853367/cmap_HighResolution_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.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=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853367/Model_4FGL_J2324.7-4041_daily_bin1376.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/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits.....................!
real 42.51
user 41.23
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits', '/scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits', expMap='/scratch/kocevski/853367/expmap_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits', expCube='/scratch/kocevski/853367/ltcube_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853367/Model_4FGL_J2324.7-4041_daily_bin1376.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/853367/ft1_filtered_4FGL_J2324.7-4041_daily_bin1376.fits
Spacecraft file(s): /scratch/kocevski/853367/ft2_4FGL_J2324.7-4041_daily_bin1376.fits
Exposure map: /scratch/kocevski/853367/expmap_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits
Exposure cube: /scratch/kocevski/853367/ltcube_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853367/Model_4FGL_J2324.7-4041_daily_bin1376.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) = 5481.22955507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.942       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49656       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2502       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3415       1.0000         .10000E-03   10000.    
    17 'norm      '    17.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.357       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
    21 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2512       1.0000         .10000E-03   10000.    
    23 'norm      '    .66472       1.0000         .10000E-03   10000.    
    24 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8490       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.501       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3377       1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.812       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0726       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5481.223     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4338 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.408        44.261        .50918E-06   -.10918E-04
   2  Prefactor     .10000E-03    10.662       -.26733E-07** at limit **
   3  Prefactor     .10000E-03    11.345       -.24790E-06** at limit **
   4  Prefactor     1.8117        4.4204       -.26379E-06   -.73943E-05
   5  Prefactor     32.419        50.283       -.41857E-07   -.64873E-05
   6  Prefactor     .10000E-03    5.2645       -.11072E-06** at limit **
   7  Prefactor     91.936        30.674        .14269E-06   -.19067E-04
   8  Prefactor     .10000E-03    12.851       -.39395E-06** at limit **
   9  Prefactor     4.5212        8.8017       -.13243E-06   -.78891E-05
  10  Prefactor     .10000E-03    2.2288       -.20911E-07** at limit **
  11  Prefactor     .10000E-03    13.859        .48343E-08** at limit **
  12  Prefactor     .10000E-03    84.972        .25422E-05** at limit **
  13  Prefactor     .38588        112.17        .61532E-05   -.11133E-04
  14  norm          5.2482        15.405        .39903E-07   -.70613E-05
  15  norm          .10000E-03    2.2920        .19666E-07** at limit **
  16  norm          3.3421        4.2178        .56781E-06   -.19293E-03
  17  norm          17.321        10.898        .13704E-07   -.41793E-04
  18  Prefactor     14.513        8.3090        .11006E-06    .12389E-05
  19  Prefactor     25.397        44.955        .22260E-05   -.10265E-03
  20  Prefactor     16.549        43.396        .16703E-06   -.58502E-05
  21  norm          .10000E-03    4.7947        .56509E-06** at limit **
  22  Prefactor     5.2529        13.541        .18084E-06    .76919E-05
  23  norm          .66541        1.0424       -.56192E-06   -.94723E-03
  24  norm          .10000E-03    3.7540        .60664E-06** at limit **
  25  Prefactor     2.8553        6.2579       -.99946E-06   -.15133E-04
  26  Prefactor     25.470        37.108        .28738E-05    .17474E-04
  27  Prefactor     .10000E-03    19.560        .18815E-06** at limit **
  28  Prefactor     .10000E-03    2.8644       -.62673E-06** at limit **
  29  Prefactor     2.3385        3.8568       -.14211E-06   -.37718E-04
  30  Prefactor     19.781        53.397        .22994E-05   -.66257E-05
  31  Normalizat    1.0723        .21118        .10006E-05   -.11184E-03
  32  Prefactor     1.0245        .21830       -.46236E-06   -.27710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81175
  Prefactor  = 32.4189
  Prefactor  = 0.0001
  Prefactor  = 91.9359
  Prefactor  = 0.0001
  Prefactor  = 4.52123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.385879
  norm       = 5.24817
  norm       = 0.0001
  norm       = 3.34205
  norm       = 17.321
  Prefactor  = 14.5131
  Prefactor  = 25.397
  Prefactor  = 16.5489
  norm       = 0.0001
  Prefactor  = 5.25288
  norm       = 0.665411
  norm       = 0.0001
  Prefactor  = 2.85526
  Prefactor  = 25.47
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33855
  Prefactor  = 19.7812
  Normalizat = 1.07225
  Prefactor  = 1.02453
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.223     FROM HESSE     STATUS=OK           663 CALLS     5001 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.408        44.260        .68309E-04   -1.4534    
   2  Prefactor     .10000E-03    10.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8117        4.3961        .11264E-02   -1.5439    
   5  Prefactor     32.419        50.216        .70377E-04   -1.4569    
   6  Prefactor     .10000E-03    5.3131        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.936        30.662        .41910E-04   -1.3787    
   8  Prefactor     .10000E-03    12.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5212        8.7906        .94648E-03   -1.5283    
  10  Prefactor     .10000E-03    2.2319        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    84.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .38588        111.52        .42873E-02   -1.5584    
  14  norm          5.2482        15.413        .17542E-03   -1.5250    
  15  norm          .10000E-03    2.2932        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3421        4.1820        .16224E-03   -1.5342    
  17  norm          17.321        10.896        .96230E-04   -1.4875    
  18  Prefactor     14.513        8.2676        .10516E-03   -1.4946    
  19  Prefactor     25.397        45.110        .79552E-04   -1.4700    
  20  Prefactor     16.549        43.405        .98446E-04   -1.4894    
  21  norm          .10000E-03    4.8859        .31419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2529        13.458        .17541E-03   -1.5250    
  23  norm          .66541        .97112        .90983E-03   -1.5545    
  24  norm          .10000E-03    3.8451        .27781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8553        6.2021        .10115E-02   -1.5370    
  26  Prefactor     25.470        37.065        .79328E-04   -1.4698    
  27  Prefactor     .10000E-03    19.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.8901        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.3385        3.8360        .17762E-03   -1.5402    
  30  Prefactor     19.781        53.285        .89984E-04   -1.4818    
  31  Normalizat    1.0723        .25044        .24770E-03   -.90648    
  32  Prefactor     1.0245        .26010        .27789E-03   -.91916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29534e-08
Minuit parameter uncertainties:
  1  44.3026
  2  1.9436e-05
  3  1.91387e-06
  4  4.39692
  5  50.282
  6  7.67391e-06
  7  30.6669
  8  3.02226e-06
  9  8.7931
  10  1.32673e-06
  11  2.22092e-06
  12  0.000257555
  13  13.1429
  14  15.4251
  15  1.34849e-06
  16  4.18232
  17  10.8972
  18  8.26826
  19  45.1705
  20  43.4877
  21  3.73845e-05
  22  13.4654
  23  0.971147
  24  1.97077e-05
  25  6.20353
  26  37.0985
  27  1.83174e-05
  28  1.06322e-05
  29  3.83636
  30  53.4133
  31  0.250713
  32  0.260424
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.342e+00  4.182e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.025e+00  2.604e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.072e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.19e-09 +/- 1.03e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 2.22e-05

TS (Fixed Index): 1.54
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 4.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853367/likelihoodResults_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.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) = 5481.20566637
delta logL = 0.0174248832718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.20557419
delta logL = 0.0175170660423

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5481.206     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3888        225.50        .55152E-02   -.97552E-04
   2  alpha         1.4462        4.2765        .47220       -.30688E-05
   3  Normalizat    1.0727        .15057        .39237E-01    .86376E-05
   4  Prefactor     1.0253        .11404        .62812E-01    .10224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38876
  alpha      = 1.44622
  Normalizat = 1.07274
  Prefactor  = 1.02533
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.206     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3888        4.1794        .81994E-03   -1.5340    
   2  alpha         1.4462        .90144        .23200E-01   -.43511    
   3  Normalizat    1.0727        .23213        .24765E-03   -.90632    
   4  Prefactor     1.0253        .25640        .27780E-03   -.91890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62727e-14
Minuit parameter uncertainties:
  1  4.17979
  2  0.927059
  3  0.232349
  4  0.256703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853367': 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) = 5481.20553857
delta logL = 0.0175526839066

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.389e+00  4.180e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.446e+00  9.271e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.025e+00  2.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.073e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.45 +/- 0.93
Photon Flux (Free Index): 6.51e-09 +/- 1.09e-08
Energy Flux (Free Index): 2.28e-05 +/- 4.24e-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/853367/cmap_HighResolution_595987201_596246401_4FGL_J2324.7-4041_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-05', comment='SUCCESS', photon_flux='8.19e-09', energy_flux2='2.28e-05', photon_flux_error='1.03e-08', dlogl='1.76e-02', energy_flux='1.77e-05', photon_flux2='6.51e-09', job_status='DONE', time_completed='2021-09-29 17:05:23.151275', photon_index_error2='0.93', photon_index2='1.45', ts='1.54', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.17e-08', energy_flux_error2='4.24e-05', EG='1.07', time_epoch_completed='1632960323.15', return_code='0', job_id='853367', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='1.09e-08', ts2='1.58', photon_index='1.62' WHERE bin_id='1376' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 853367: <4FGL_J2324.7-4041_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1376> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:34 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:50:35 2021
Terminated at Wed Sep 29 17:05:23 2021
Results reported at Wed Sep 29 17:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1376 351.182 -40.6834 595987201 596246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

