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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1660
RA = 351.182, Dec = -40.6834
tmin = 669600001, tmax = 669859201
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='993381', job_status='RUN', time_executed='2022-03-25 00:37:35.948648', time_epoch_executed='1648193855.95' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993381/ft1_4FGL_J2324.7-4041_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993381/ft1_4FGL_J2324.7-4041_daily_bin1660.fits outfile=/scratch/kocevski/993381/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1660.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=669600001.0 tmax=669859201.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 4.55
user 4.27
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.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/993381/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.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.34
sys 0.14

Number of photons that the gtmktime cut: 405

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993381/ltcube_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.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/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993381/ltcube_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits outfile=/scratch/kocevski/993381/expmap_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.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/993381/ltcube_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits
.....................!
real 190.72
user 185.49
sys 4.90

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/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.fits scfile=/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits outfile=/scratch/kocevski/993381/cmap_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.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.55
user 0.39
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.fits', '/scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits', expMap='/scratch/kocevski/993381/expmap_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits', expCube='/scratch/kocevski/993381/ltcube_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993381/Model_4FGL_J2324.7-4041_daily_bin1660.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/993381/ft1_filtered_4FGL_J2324.7-4041_daily_bin1660.fits
Spacecraft file(s): /scratch/kocevski/993381/ft2_4FGL_J2324.7-4041_daily_bin1660.fits
Exposure map: /scratch/kocevski/993381/expmap_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits
Exposure cube: /scratch/kocevski/993381/ltcube_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993381/Model_4FGL_J2324.7-4041_daily_bin1660.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) = 4491.19927323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    84.177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0429       1.0000         .10000E-03   10000.    
    17 'norm      '    13.214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34229E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    114.67       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6746       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.583       1.0000         .10000E-03   10000.    
    23 'norm      '    .97370       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0147       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.434       1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.321       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9792       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.4225       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95320       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99824       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=   4491.194     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4397 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.628        .12029E-05** at limit **
   2  Prefactor     27.753        23.154       -.31745E-06   -.30458E-04
   3  Prefactor     84.175        56.457       -.71503E-06    .12947E-04
   4  Prefactor     1.0174        5.0991        .29622E-05    .14056E-03
   5  Prefactor     .10000E-03    20.244        .33193E-07** at limit **
   6  Prefactor     5.6363        8.8223       -.49155E-06   -.10113E-03
   7  Prefactor     .10000E-03    19.109        .67753E-06** at limit **
   8  Prefactor     28.038        30.805       -.47057E-06   -.45218E-04
   9  Prefactor     30.886        19.871       -.17026E-07   -.20020E-04
  10  Prefactor     6.1342        10.447       -.21646E-06   -.87667E-04
  11  Prefactor     .10000E-03    15.355        .14014E-06** at limit **
  12  Prefactor     .10000E-03    26.759        .22755E-06** at limit **
  13  Prefactor     .10000E-03    16.668        .11310E-05** at limit **
  14  norm          .10000E-03    4.1397        .10061E-06** at limit **
  15  norm          .10000E-03    2.8055       -.82947E-07** at limit **
  16  norm          6.0412        7.3179        .22709E-06   -.17688E-03
  17  norm          13.212        11.168        .17130E-06   -.32411E-04
  18  Prefactor     .10000E-03    3.0174        .14290E-06** at limit **
  19  Prefactor     .10000E-03    109.23        .22834E-05** at limit **
  20  Prefactor     114.65        73.752       -.10729E-05   -.28921E-04
  21  norm          1.6867        6.3256       -.18326E-05   -.37847E-03
  22  Prefactor     27.581        15.869       -.82439E-06   -.12812E-03
  23  norm          .97374        1.3623        .80335E-06    .74199E-03
  24  norm          1.0094        6.3877        .45897E-05    .24463E-03
  25  Prefactor     .10000E-03    3.3139        .38855E-06** at limit **
  26  Prefactor     15.429        26.174       -.14452E-05   -.66141E-04
  27  Prefactor     46.342        65.659       -.12217E-05   -.19300E-04
  28  Prefactor     .10000E-03    4.5634       -.56317E-05** at limit **
  29  Prefactor     2.9789        4.4029        .43358E-06   -.43433E-04
  30  Prefactor     6.2071        193.06       -.20386E-04   -.60091E-04
  31  Normalizat    .95364        .26082        .11700E-04   -.51564E-03
  32  Prefactor     .99790        .26659       -.14785E-04   -.19229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.7532
  Prefactor  = 84.1749
  Prefactor  = 1.01741
  Prefactor  = 0.0001
  Prefactor  = 5.63627
  Prefactor  = 0.0001
  Prefactor  = 28.0376
  Prefactor  = 30.8856
  Prefactor  = 6.13421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.04118
  norm       = 13.212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.649
  norm       = 1.6867
  Prefactor  = 27.5807
  norm       = 0.973736
  norm       = 1.00944
  Prefactor  = 0.0001
  Prefactor  = 15.429
  Prefactor  = 46.3423
  Prefactor  = 0.0001
  Prefactor  = 2.97891
  Prefactor  = 6.20711
  Normalizat = 0.953641
  Prefactor  = 0.997901
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.194     FROM HESSE     STATUS=OK           659 CALLS     5056 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.753        23.125        .76043E-04   -1.4654    
   3  Prefactor     84.175        56.555        .43783E-04   -1.3870    
   4  Prefactor     1.0174        5.1728        .28197E-03   -1.5506    
   5  Prefactor     .10000E-03    20.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6363        8.7965        .16920E-03   -1.5233    
   7  Prefactor     .10000E-03    19.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.038        30.800        .75657E-04   -1.4648    
   9  Prefactor     30.886        19.876        .72093E-04   -1.4596    
  10  Prefactor     6.1342        10.421        .16209E-03   -1.5213    
  11  Prefactor     .10000E-03    15.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1408        .13317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8098        .10960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0412        7.1738        .16333E-03   -1.5216    
  17  norm          13.212        11.162        .11019E-03   -1.4981    
  18  Prefactor     .10000E-03    3.0279        .11359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    110.42        .42667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     114.65        73.796        .18785E-03   -1.3562    
  21  norm          1.6867        5.8995        .24640E-03   -1.5448    
  22  Prefactor     27.581        15.798        .76279E-04   -1.4657    
  23  norm          .97374        1.2762        .85692E-03   -1.5511    
  24  norm          1.0094        6.0190        .29092E-03   -1.5507    
  25  Prefactor     .10000E-03    3.3888        .23742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.429        26.023        .10195E-03   -1.4922    
  27  Prefactor     46.342        65.594        .58912E-04   -1.4345    
  28  Prefactor     .10000E-03    4.6363        .13999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.9789        4.3834        .16077E-03   -1.5363    
  30  Prefactor     6.2071        198.40        .15837E-03   -1.5210    
  31  Normalizat    .95364        .27610        .25556E-03   -.94600    
  32  Prefactor     .99790        .28023        .27376E-03   -.92800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78488e-09
Minuit parameter uncertainties:
  1  0.000271581
  2  23.1325
  3  56.5916
  4  4.5886
  5  1.92288e-05
  6  8.79855
  7  6.39856e-05
  8  30.817
  9  19.8803
  10  10.4241
  11  9.00376e-06
  12  3.1005e-05
  13  1.4287e-05
  14  3.23797e-06
  15  5.71713e-06
  16  7.17485
  17  11.1642
  18  1.44046e-07
  19  0.000390095
  20  73.8549
  21  5.90152
  22  15.8001
  23  1.27627
  24  4.93033
  25  3.09194e-06
  26  26.0423
  27  65.6968
  28  9.58774e-05
  29  4.38386
  30  70.4419
  31  0.276516
  32  0.280642
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.041e+00  7.175e+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:  9.979e-01  2.806e-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:  9.536e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 3.81e-05

TS (Fixed Index): 1.99
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 5.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993381/likelihoodResults_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.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) = 4490.79083456
delta logL = 0.403245239315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4490.78181579
delta logL = 0.412264010933

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4490.782     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      264 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1606        5.4999        .11570E-03   -.62810E-03
   2  alpha         2.1983        .64247        .89095E-02   -.82719E-04
   3  Normalizat    .94864        .24870        .25605E-03    .32131E-03
   4  Prefactor     .99098        .27333        .27435E-03    .39395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16063
  alpha      = 2.19831
  Normalizat = 0.948635
  Prefactor  = 0.99098
 **********
 **   18 **HESSE 
 **********

 FCN=   4490.782     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1606        5.1644        .46278E-05   -1.5300    
   2  alpha         2.1983        .60398        .35638E-03   -.12097    
   3  Normalizat    .94864        .24881        .51210E-04   -.94772    
   4  Prefactor     .99098        .27353        .54869E-04   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16278e-10
Minuit parameter uncertainties:
  1  5.16493
  2  0.610107
  3  0.249115
  4  0.273912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993381': 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) = 4490.7818156
delta logL = 0.412264204231

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.161e+00  5.165e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.198e+00  6.101e-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:  9.910e-01  2.739e-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:  9.486e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.20 +/- 0.61
Photon Flux (Free Index): 3.17e-08 +/- 3.24e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.91e-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/993381/cmap_HighResolution_669600001_669859201_4FGL_J2324.7-4041_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.85e-05', photon_flux_error='1.76e-08', dlogl='4.12e-01', energy_flux='3.21e-05', photon_flux2='3.17e-08', job_status='DONE', time_completed='2022-03-25 00:49:57.941550', photon_index_error2='0.61', photon_index2='2.20', ts='1.99', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.96e-08', energy_flux_error2='1.91e-05', EG='0.95', time_epoch_completed='1648194597.94', return_code='0', job_id='993381', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='3.81e-05', photon_flux_error2='3.24e-08', ts2='2.82', photon_index='1.62' WHERE bin_id='1660' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:49:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 993381: <4FGL_J2324.7-4041_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:53 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:55 2022
Terminated at Fri Mar 25 00:49:58 2022
Results reported at Fri Mar 25 00:49:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1660 351.182 -40.6834 669600001 669859201 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

