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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1059
RA = 351.182, Dec = -40.6834
tmin = 513820801, tmax = 514080001
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='851791', job_status='RUN', time_executed='2021-09-29 16:47:51.296819', time_epoch_executed='1632959271.3' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851791/ft1_4FGL_J2324.7-4041_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851791/ft1_4FGL_J2324.7-4041_daily_bin1059.fits outfile=/scratch/kocevski/851791/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1059.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=513820801.0 tmax=514080001.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.74
user 3.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/851791/ltcube_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.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/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits
.....................!
real 12.67
user 12.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/851791/ltcube_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.fits outfile=/scratch/kocevski/851791/expmap_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.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/851791/ltcube_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.fits
.....................!
real 190.80
user 185.42
sys 4.95

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/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits scfile=/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits outfile=/scratch/kocevski/851791/cmap_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits scfile=/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits outfile=/scratch/kocevski/851791/cmap_HighResolution_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/851791/ft2_4FGL_J2324.7-4041_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851791/Model_4FGL_J2324.7-4041_daily_bin1059.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/851791/ft1_filtered_4FGL_J2324.7-4041_daily_bin1059.fits.....................!
real 34.77
user 33.44
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3442       1.0000         .10000E-03   10000.    
    15 'norm      '    .28123E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .53096E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
    21 'norm      '    10.019       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9904       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    70.695       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.1759       1.0000         .10000E-03   10000.    
    30 'Prefactor '    240.00       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97636       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73632       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=   4006.304     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4515 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.44       -.98788E-06** at limit **
   2  Prefactor     67.034        43.639       -.10801E-06   -.55243E-04
   3  Prefactor     .10000E-03    10.390       -.21013E-07** at limit **
   4  Prefactor     .10000E-03    3.5760       -.22520E-06** at limit **
   5  Prefactor     .10000E-03    15.605        .24348E-07** at limit **
   6  Prefactor     10.225        8.9734        .53175E-07    .10840E-04
   7  Prefactor     .10000E-03    87.520       -.40583E-06** at limit **
   8  Prefactor     49.898        33.746        .74150E-07   -.51404E-04
   9  Prefactor     .10000E-03    11.727       -.25893E-07** at limit **
  10  Prefactor     4.0891        8.4767       -.10524E-06   -.42105E-04
  11  Prefactor     .10000E-03    29.244       -.29904E-06** at limit **
  12  Prefactor     .10000E-03    100.46       -.38365E-06** at limit **
  13  Prefactor     .10000E-03    7.3299       -.13063E-06** at limit **
  14  norm          2.3365        35.341       -.56513E-06    .31325E-05
  15  norm          .10000E-03    26.515       -.79588E-05** at limit **
  16  norm          .10000E-03    4.0559        .79497E-07** at limit **
  17  norm          .17959        24.885        .63725E-05   -.37286E-03
  18  Prefactor     2.2695        7.4603        .11514E-05    .25562E-03
  19  Prefactor     14.229        64.654        .47889E-05   -.39939E-04
  20  Prefactor     26.787        72.997        .16735E-05    .60510E-04
  21  norm          10.015        9.6617       -.14883E-05   -.71492E-03
  22  Prefactor     .10000E-03    15.778       -.57118E-06** at limit **
  23  norm          .10000E-03    .58574       -.17046E-06** at limit **
  24  norm          1.9920        5.9635        .32164E-06   -.57947E-04
  25  Prefactor     4.3789        5.5661        .12098E-06    .88375E-04
  26  Prefactor     .10000E-03    51.012       -.49029E-06** at limit **
  27  Prefactor     70.708        97.647       -.47274E-06   -.26440E-04
  28  Prefactor     .10000E-03    2.6771        .72452E-07** at limit **
  29  Prefactor     7.1752        7.4011       -.48678E-07   -.45283E-04
  30  Prefactor     239.99        102.18       -.57548E-08   -.20346E-04
  31  Normalizat    .97648        .24229        .10428E-05    .81737E-04
  32  Prefactor     .73587        .23855       -.19794E-05   -.30576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 67.0338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2246
  Prefactor  = 0.0001
  Prefactor  = 49.8982
  Prefactor  = 0.0001
  Prefactor  = 4.08908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33648
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.179586
  Prefactor  = 2.2695
  Prefactor  = 14.2285
  Prefactor  = 26.7873
  norm       = 10.0149
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.99204
  Prefactor  = 4.37892
  Prefactor  = 0.0001
  Prefactor  = 70.7081
  Prefactor  = 0.0001
  Prefactor  = 7.17521
  Prefactor  = 239.989
  Normalizat = 0.976483
  Prefactor  = 0.735874
 **********
 **   18 **HESSE 
 **********

 FCN=   4006.304     FROM HESSE     STATUS=OK           653 CALLS     5168 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.034        43.585        .49026E-04   -1.4069    
   3  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6820        .23324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.225        8.9858        .12532E-03   -1.5068    
   7  Prefactor     .10000E-03    88.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.898        33.784        .56778E-04   -1.4294    
   9  Prefactor     .10000E-03    11.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0891        8.4725        .19943E-03   -1.5304    
  11  Prefactor     .10000E-03    29.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    100.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3484        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3365        35.404        .26776E-03   -1.5402    
  15  norm          .10000E-03    32.215        .30861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0657        .12444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17959        146.26        .32702E-02   -1.5623    
  18  Prefactor     2.2695        7.7002        .27553E-03   -1.5407    
  19  Prefactor     14.229        64.546        .10620E-03   -1.4953    
  20  Prefactor     26.787        75.027        .77226E-04   -1.4672    
  21  norm          10.015        9.8529        .63297E-03   -1.5075    
  22  Prefactor     .10000E-03    15.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .99383        .91645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9920        5.8593        .22793E-03   -1.5426    
  25  Prefactor     4.3789        5.5308        .15744E-03   -1.5289    
  26  Prefactor     .10000E-03    51.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     70.708        97.739        .47744E-04   -1.4024    
  28  Prefactor     .10000E-03    2.6824        .10112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.1752        7.4063        .14917E-03   -1.5172    
  30  Prefactor     239.99        102.24        .13068E-03   -1.2597    
  31  Normalizat    .97648        .27052        .23262E-03   -.93822    
  32  Prefactor     .73587        .26888        .27996E-03   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67301e-09
Minuit parameter uncertainties:
  1  0.000288855
  2  43.6056
  3  3.83452e-06
  4  3.51298e-06
  5  1.64693e-05
  6  8.98702
  7  0.000347762
  8  33.7965
  9  1.91366e-05
  10  8.47499
  11  6.38792e-05
  12  2.95777e-05
  13  3.04325e-07
  14  18.2026
  15  0.000425222
  16  2.94644e-05
  17  10.2724
  18  7.70357
  19  60.719
  20  75.2933
  21  9.8545
  22  3.10649e-05
  23  1.64972e-05
  24  5.86101
  25  5.5314
  26  6.03108e-05
  27  97.9619
  28  6.34942e-06
  29  7.40724
  30  102.316
  31  0.270899
  32  0.269357
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.946e-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:  7.359e-01  2.694e-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.765e-01  2.709e-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: 4.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851791/likelihoodResults_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.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): 102
logL (Free Index) = 4006.30545158
delta logL = -0.00116298936109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4006.30428846
delta logL = 1.32993136504e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6456       1.0000          .0000       5.0000    
     3 'Normalizat'    .97651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73586       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   4006.304     FROM MIGRAD    STATUS=FAILED        71 CALLS      219 TOTAL
                     EDM=   .22E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9197.8         .0000    ** at limit **
   2  alpha         1.9445        1.5732         .0000       -.26193E-04
   3  Normalizat    .97647        9.3369         .0000       -.53266E-04
   4  Prefactor     .73588        9.3733         .0000       -.62678E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4006.304     FROM SIMPLEX   STATUS=UNCHANGED    199 CALLS      418 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9197.8        .38679E-03** at limit **
   2  alpha         1.9445        1.5732        .26864E-07   -.26193E-04
   3  Normalizat    .97647        9.3369        .24403E-06   -.53266E-04
   4  Prefactor     .73588        9.3733        .26182E-06   -.62678E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4006.304     FROM MIGRAD    STATUS=CONVERGED    253 CALLS      671 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49795E-01    7.9983        .28805E-01   -.48629E-03
   2  alpha         2.8372        3.8801        .50000        .14162E-04
   3  Normalizat    .97548        .13729E-01    .93046E-05    .79419E-05
   4  Prefactor     .73583        .14588E-01    .11199E-04   -.28425E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0497951
  alpha      = 2.83715
  Normalizat = 0.975481
  Prefactor  = 0.735828
 **********
 **   18 **HESSE 
 **********

 FCN=   4006.304     FROM HESSE     STATUS=OK            31 CALLS      702 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49795E-01    13.688        .12742E-02   -1.5753    
   2  alpha         2.8372        3.8201        .44030E-01    .13527    
   3  Normalizat    .97548        .24483        .18609E-05   -.93856    
   4  Prefactor     .73583        .25896        .22397E-05   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70242e-11
Minuit parameter uncertainties:
  1  1.64992
  2  5.21621
  3  0.245114
  4  0.259386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851791': 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) = 4006.30364295
delta logL = 0.000645648168302

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.980e-02  1.650e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.837e+00  5.216e+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:  7.358e-01  2.594e-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.755e-01  2.451e-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/851791/cmap_HighResolution_513820801_514080001_4FGL_J2324.7-4041_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-05', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-29 16:59:52.707784', job_id='851791', GAL2='0.74', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632959992.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='6.46e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1059' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 851791: <4FGL_J2324.7-4041_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1059 351.182 -40.6834 513820801 514080001 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 :                                   714.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

