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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1219
RA = 351.182, Dec = -40.6834
tmin = 555292801, tmax = 555552001
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='853117', job_status='RUN', time_executed='2021-09-29 16:51:02.987398', time_epoch_executed='1632959462.99' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853117/ft1_4FGL_J2324.7-4041_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853117/ft1_4FGL_J2324.7-4041_daily_bin1219.fits outfile=/scratch/kocevski/853117/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1219.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=555292801.0 tmax=555552001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.65
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.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/853117/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1219.fits evtable="EVENTS" outfile="/scratch/kocevski/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.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/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/853117/ltcube_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.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/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/853117/ltcube_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits outfile=/scratch/kocevski/853117/expmap_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.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/853117/ltcube_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits
.....................!
real 190.95
user 185.35
sys 5.17

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/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits scfile=/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits outfile=/scratch/kocevski/853117/cmap_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits scfile=/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits outfile=/scratch/kocevski/853117/cmap_HighResolution_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits', '/scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits', expMap='/scratch/kocevski/853117/expmap_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits', expCube='/scratch/kocevski/853117/ltcube_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853117/Model_4FGL_J2324.7-4041_daily_bin1219.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/853117/ft1_filtered_4FGL_J2324.7-4041_daily_bin1219.fits
Spacecraft file(s): /scratch/kocevski/853117/ft2_4FGL_J2324.7-4041_daily_bin1219.fits
Exposure map: /scratch/kocevski/853117/expmap_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits
Exposure cube: /scratch/kocevski/853117/ltcube_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853117/Model_4FGL_J2324.7-4041_daily_bin1219.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 606.936258386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 604.142791873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71966E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.175       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14605E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56965E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19629E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10851E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43594E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.694       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24884E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39114       1.0000         .10000E-03   10000.    
    14 'norm      '    .13284       1.0000         .10000E-03   10000.    
    15 'norm      '    .61996       1.0000         .10000E-03   10000.    
    16 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32919E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14916E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.722       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19981E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .20794E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    417.66       1.0000         .10000E-03   10000.    
    23 'norm      '    .21603E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .14779E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0050       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.482       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.219       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .50963E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .87608E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .82926       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .46603       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   604.1304     FROM MIGRAD    STATUS=CONVERGED    439 CALLS      898 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    132.64        .93767E-02** at limit **
   2  Prefactor     .46387        9331.5        .26596E-02    .23366E-02
   3  Prefactor     .10000E-03    145.71        .10246E-01** at limit **
   4  Prefactor     .10000E-03    11.266        .90712E-02** at limit **
   5  Prefactor     .10001E-03    200.46        .93040E-02** at limit **
   6  Prefactor     .10000E-03    52.659        .10123E-01** at limit **
   7  Prefactor     .10000E-03    17.961        .90772E-02** at limit **
   8  Prefactor     .10000E-03    35.042        .10612E-01** at limit **
   9  Prefactor     32.607        32.160        .17793E-02    .20399E-02
  10  Prefactor     .10000E-03    12.423        .90712E-02** at limit **
  11  Prefactor     .10000E-03    486.07        .72639E-02** at limit **
  12  Prefactor     .10001E-03    228.48        .91468E-02** at limit **
  13  Prefactor     .10000E-03    599.93        .10818E-01** at limit **
  14  norm          .10000E-03    42.418        .96667E-02** at limit **
  15  norm          .10000E-03    284.21        .11751E-01** at limit **
  16  norm          .10000E-03    12.480        .90712E-02** at limit **
  17  norm          .10000E-03    11.246        .98627E-02** at limit **
  18  Prefactor     .10000E-03    128.95        .90974E-02** at limit **
  19  Prefactor     43.661        162.75        .17785E-02    .66061E-03
  20  Prefactor     .10004E-03    183.27        .91225E-02** at limit **
  21  norm          .10000E-03    24.153        .10097E-01** at limit **
  22  Prefactor     412.26        454.29        .49986E-03   -.49285E-01
  23  norm          .10000E-03    30.719        .91306E-02** at limit **
  24  norm          .10000E-03    18.048        .90712E-02** at limit **
  25  Prefactor     1.5694        1.0628         .0000         .0000    
  26  Prefactor     .10020E-03    .45296       -.45908E-04** at limit **
  27  Prefactor     24.053        1.3885       -.32195E-04    .35949E-05
  28  Prefactor     10.193        .99991        .28331E-06   -.13690E-04
  29  Prefactor     .10000E-03    .27952       -.69220E-06** at limit **
  30  Prefactor     .10000E-03    .22335        .89487E-06** at limit **
  31  Normalizat    .81228        1.1562       -.47572E-05   -.40432E-04
  32  Prefactor     .46866        .80734       -.10629E-06   -.33371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.463873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6067
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100012
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6611
  Prefactor  = 0.000100038
  norm       = 0.0001
  Prefactor  = 412.261
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.5694
  Prefactor  = 0.0001002
  Prefactor  = 24.0525
  Prefactor  = 10.1927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.81228
  Prefactor  = 0.468662
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   604.1304     FROM HESSE     STATUS=FAILED        57 CALLS      955 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    132.64        .93767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .46387        9331.5        .26596E-02   -1.5572    
   3  Prefactor     .10000E-03    145.71        .10246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    200.46        .93040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.659        .10123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.961        .90772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.042        .10612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.607        32.160        .17793E-02   -1.4565    
  10  Prefactor     .10000E-03    12.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    486.07        .72639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    228.48        .91468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    599.93        .10818E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    42.418        .96667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    284.21        .11751E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.480        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.246        .98627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    128.95        .90974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.661        162.75        .17785E-02   -1.4385    
  20  Prefactor     .10004E-03    183.27        .91225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    24.153        .10097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     412.26        454.29        .49986E-03   -1.1619    
  23  norm          .10000E-03    30.719        .91306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    18.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     576.50        574.75         .0000       -1.5457    
  26  Prefactor     .10020E-03    .45296       -.45908E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.053        1.3885       -.32195E-04   -1.4727    
  28  Prefactor     10.193        .99991        .28331E-06   -1.5069    
  29  Prefactor     .10000E-03    .27952       -.69220E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .22335        .89487E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .81228        1.1562       -.47572E-05   -.99615    
  32  Prefactor     .46866        .80734       -.10629E-06   -1.1344    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.49833e-10
Minuit parameter uncertainties:
  1  6.97888e-05
  2  163.895
  3  4.99648e-06
  4  1.87142e-06
  5  0.00347768
  6  5.4777e-05
  7  1.29823e-05
  8  2.66924e-05
  9  32.1775
  10  1.29611e-06
  11  0.00268139
  12  0.00325639
  13  0.00129183
  14  4.55298e-06
  15  0.000283999
  16  1.12563e-05
  17  3.86737e-08
  18  3.63807e-05
  19  164.454
  20  0.00529195
  21  1.97958e-05
  22  458.338
  23  1.04992e-05
  24  1.41632e-06
  25  1.06278
  26  0.000602341
  27  1.38848
  28  0.999911
  29  1.99414e-06
  30  1.41844e-06
  31  1.19435
  32  0.828383
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 604.130360018

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.126e-05  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:  4.687e-01  8.284e-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:  8.123e-01  1.194e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853117/likelihoodResults_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.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) = 604.130685293
delta logL = -0.00032527534313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 604.13036013
delta logL = -1.12433667709e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6135       1.0000          .0000       5.0000    
     3 'Normalizat'    .81230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46869       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=   604.1304     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.607        .90712E-02** at limit **
   2  alpha         1.6060        3.2781        .45023        .26186E-05
   3  Normalizat    .81228        .42858        .43771E-01    .10469E-03
   4  Prefactor     .46866        .41187        .59014E-01    .88733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.60602
  Normalizat = 0.812281
  Prefactor  = 0.468664
 **********
 **   18 **HESSE 
 **********

 FCN=   604.1304     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.487        .85063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6060        3.2769        .50000       -.36569    
   3  Normalizat    .81228        .50865        .21062E-03   -.99615    
   4  Prefactor     .46866        .48773        .26112E-03   -1.1344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97756e-10
Minuit parameter uncertainties:
  1  0.000355395
  2  2.33515
  3  0.511675
  4  0.492161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853117': 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) = 604.130359998
delta logL = 1.99356691155e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.554e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.606e+00  2.335e+00  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:  4.687e-01  4.922e-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:  8.123e-01  5.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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/853117/cmap_HighResolution_555292801_555552001_4FGL_J2324.7-4041_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-04', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-29 16:56:41.812830', job_id='853117', GAL2='0.47', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632959801.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.47', dlogl='1.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1219' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 853117: <4FGL_J2324.7-4041_daily_bin1219> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1219> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:15 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:16 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:16 2021
Terminated at Wed Sep 29 16:56:42 2021
Results reported at Wed Sep 29 16:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1219 351.182 -40.6834 555292801 555552001 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 :                                   336.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             516.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   386 sec.
    Turnaround time :                            387 sec.

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

