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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1107
RA = 351.182, Dec = -40.6834
tmin = 526262401, tmax = 526521601
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='851869', job_status='RUN', time_executed='2021-09-29 16:46:27.027197', time_epoch_executed='1632959187.03' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851869/ft1_4FGL_J2324.7-4041_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851869/ft1_4FGL_J2324.7-4041_daily_bin1107.fits outfile=/scratch/kocevski/851869/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1107.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=526262401.0 tmax=526521601.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.99
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/851869/ltcube_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.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/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits
.....................!
real 11.81
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/851869/ltcube_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.fits outfile=/scratch/kocevski/851869/expmap_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.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/851869/ltcube_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.fits
.....................!
real 190.90
user 185.52
sys 4.99

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/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits scfile=/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits outfile=/scratch/kocevski/851869/cmap_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits scfile=/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits outfile=/scratch/kocevski/851869/cmap_HighResolution_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2324.7-4041_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851869/Model_4FGL_J2324.7-4041_daily_bin1107.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/851869/ft1_filtered_4FGL_J2324.7-4041_daily_bin1107.fits.....................!
real 38.13
user 36.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5469       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    100.20       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3822       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .87022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    67.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1544       1.0000         .10000E-03   10000.    
    21 'norm      '    .32262E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4243       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5079       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13395E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.8674       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77270       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93908       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=   4750.370     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     4351 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.190        .12589E-05** at limit **
   2  Prefactor     .10000E-03    8.7487        .30570E-06** at limit **
   3  Prefactor     11.435        32.330        .69262E-05    .10807E-03
   4  Prefactor     .10000E-03    1.2760       -.10216E-06** at limit **
   5  Prefactor     .10000E-03    10.152       -.76236E-06** at limit **
   6  Prefactor     1.5464        6.4792        .14298E-05   -.12272E-03
   7  Prefactor     .10000E-03    17.135        .65379E-06** at limit **
   8  Prefactor     .10000E-03    8.5706        .38363E-07** at limit **
   9  Prefactor     3.3369        12.870        .24331E-05    .15965E-04
  10  Prefactor     .10000E-03    5.2800        .35843E-08** at limit **
  11  Prefactor     29.969        32.815        .30131E-05    .12806E-03
  12  Prefactor     100.23        66.433        .27227E-05    .34584E-04
  13  Prefactor     .10000E-03    4.7873       -.48787E-07** at limit **
  14  norm          5.3819        5.8075       -.29325E-07   -.68771E-05
  15  norm          .10000E-03    1.7209       -.26010E-08** at limit **
  16  norm          .10000E-03    1.7592        .83697E-07** at limit **
  17  norm          .10000E-03    7.9334        .72275E-06** at limit **
  18  Prefactor     8.3854        4.7299        .56306E-07   -.81044E-04
  19  Prefactor     68.039        46.177       -.20817E-05   -.68177E-03
  20  Prefactor     7.1554        55.777        .17556E-05   -.34397E-04
  21  norm          .10002E-03    4.6392        .47148E-05** at limit **
  22  Prefactor     .10000E-03    3.5380        .26411E-07** at limit **
  23  norm          .10000E-03    .44109       -.58562E-07** at limit **
  24  norm          6.4316        6.4322       -.88314E-06   -.12728E-02
  25  Prefactor     4.5073        3.5853        .18670E-06   -.49399E-04
  26  Prefactor     .10000E-03    12.171        .27628E-06** at limit **
  27  Prefactor     .10000E-03    19.987       -.13602E-05** at limit **
  28  Prefactor     .10007E-03    5.2401       -.92012E-06** at limit **
  29  Prefactor     2.8672        3.2233        .20131E-06   -.11401E-03
  30  Prefactor     .10000E-03    17.695        .11976E-06** at limit **
  31  Normalizat    .77242        .18290       -.34843E-05   -.43948E-03
  32  Prefactor     .93958        .19360        .10688E-05   -.59326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33687
  Prefactor  = 0.0001
  Prefactor  = 29.9689
  Prefactor  = 100.228
  Prefactor  = 0.0001
  norm       = 5.38194
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.38545
  Prefactor  = 68.0392
  Prefactor  = 7.15535
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.43165
  Prefactor  = 4.50729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 2.8672
  Prefactor  = 0.0001
  Normalizat = 0.772421
  Prefactor  = 0.939579
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.370     FROM HESSE     STATUS=OK           651 CALLS     5002 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.435        32.519        .11833E-03   -1.5032    
   4  Prefactor     .10000E-03    1.2921        .75982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5464        6.4147        .33148E-03   -1.5459    
   7  Prefactor     .10000E-03    17.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3369        12.828        .22139E-03   -1.5343    
  10  Prefactor     .10000E-03    5.3713        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.969        32.956        .73157E-04   -1.4613    
  12  Prefactor     100.23        66.433        .20081E-03   -1.3702    
  13  Prefactor     .10000E-03    4.7964        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3819        5.8101        .16849E-03   -1.5244    
  15  norm          .10000E-03    1.7211        .88301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7603        .89274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    29.221        .36813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3854        4.7266        .10933E-03   -1.5129    
  19  Prefactor     68.039        47.662        .48701E-04   -1.4056    
  20  Prefactor     7.1554        54.567        .14997E-03   -1.5173    
  21  norm          .10002E-03    7.4903        .25735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5418        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .45850        .89143E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4316        6.4312        .14749E-03   -1.5201    
  25  Prefactor     4.5073        3.5787        .11211E-03   -1.5283    
  26  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10007E-03    20.529        .30123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.8672        3.2161        .12632E-03   -1.5369    
  30  Prefactor     .10000E-03    17.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .77242        .21384        .22944E-03   -1.0110    
  32  Prefactor     .93958        .23156        .23613E-03   -.94772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38295e-09
Minuit parameter uncertainties:
  1  0.000111799
  2  2.68318e-05
  3  32.5697
  4  4.96101e-06
  5  3.51698e-05
  6  6.29999
  7  7.91014e-05
  8  2.00443e-05
  9  12.8381
  10  2.74019e-05
  11  32.976
  12  66.4821
  13  6.47274e-06
  14  5.81067
  15  5.70863e-07
  16  1.51775e-06
  17  0.000388399
  18  4.72686
  19  47.6891
  20  39.5695
  21  0.000679747
  22  4.60833e-06
  23  3.25206e-06
  24  6.43188
  25  3.57885
  26  4.03492e-05
  27  9.70631e-05
  28  0.00244052
  29  3.2163
  30  3.39686e-05
  31  0.214068
  32  0.231807
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.518e-06  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.396e-01  2.318e-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:  7.724e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851869/likelihoodResults_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.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) = 4750.37273676
delta logL = -0.00247295669305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4750.37026375
delta logL = 6.02140062256e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6145       1.0000          .0000       5.0000    
     3 'Normalizat'    .77240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93958       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=   4750.370     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      221 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3079        .89590E-03** at limit **
   2  alpha         1.3645        2.9297        .18005       -.17680E-06
   3  Normalizat    .77242        .20248        .22944E-03    .23338E-04
   4  Prefactor     .93958        .22924        .23613E-03    .24555E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.36454
  Normalizat = 0.772419
  Prefactor  = 0.939583
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.370     FROM HESSE     STATUS=OK            23 CALLS      244 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8563        .17918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3645        2.6246        .72020E-02   -.47146    
   3  Normalizat    .77242        .20273        .91777E-05   -1.0110    
   4  Prefactor     .93958        .22953        .94451E-05   -.94771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82342e-10
Minuit parameter uncertainties:
  1  4.55797e-05
  2  144.583
  3  0.202932
  4  0.229763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851869': 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) = 4750.37026234
delta logL = 1.46722140926e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  4.558e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.365e+00  1.446e+02  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.396e-01  2.298e-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:  7.724e-01  2.029e-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/851869/cmap_HighResolution_526262401_526521601_4FGL_J2324.7-4041_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-05', job_status='DONE', photon_flux_upper_limit='2.45e-08', time_completed='2021-09-29 16:59:27.601630', job_id='851869', GAL2='0.94', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632959967.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1107' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 851869: <4FGL_J2324.7-4041_daily_bin1107> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1107> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:53 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:54 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:45:54 2021
Terminated at Wed Sep 29 16:59:27 2021
Results reported at Wed Sep 29 16:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1107 351.182 -40.6834 526262401 526521601 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 :                                   763.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

