/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 9 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin350
RA = 351.182, Dec = -40.6834
tmin = 330048001, tmax = 330307201
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='846960', job_status='RUN', time_executed='2021-09-29 16:35:54.935102', time_epoch_executed='1632958554.94' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846960

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846960/ft1_4FGL_J2324.7-4041_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846960/ft1_4FGL_J2324.7-4041_daily_bin350.fits outfile=/scratch/kocevski/846960/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin350.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=330048001.0 tmax=330307201.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.50
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.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/846960/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/846960/ft1_filtered_4FGL_J2324.7-4041_daily_bin350.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846960/ft1_filtered_4FGL_J2324.7-4041_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/846960/ltcube_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.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/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits
.....................!
real 12.81
user 12.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846960/ft1_filtered_4FGL_J2324.7-4041_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/846960/ltcube_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.fits outfile=/scratch/kocevski/846960/expmap_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.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/846960/ltcube_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.fits
.....................!
real 191.93
user 186.20
sys 5.29

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/846960/ft1_filtered_4FGL_J2324.7-4041_daily_bin350.fits scfile=/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits outfile=/scratch/kocevski/846960/cmap_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846960/ft1_filtered_4FGL_J2324.7-4041_daily_bin350.fits scfile=/scratch/kocevski/846960/ft2_4FGL_J2324.7-4041_daily_bin350.fits outfile=/scratch/kocevski/846960/cmap_HighResolution_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.151       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1864       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78288       1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    132.56       1.0000         .10000E-03   10000.    
    21 'norm      '    3.3569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.173       1.0000         .10000E-03   10000.    
    23 'norm      '    15.208       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8439       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.138       1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.317       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.2335       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.2486       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83812       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1833       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=   5344.013     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4472 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.018        .16129E-05** at limit **
   2  Prefactor     17.977        27.465       -.28726E-06   -.18779E-05
   3  Prefactor     .10000E-03    99.061       -.73987E-05** at limit **
   4  Prefactor     .10000E-03    1.9034        .96364E-07** at limit **
   5  Prefactor     18.163        27.144        .18138E-06   -.45798E-05
   6  Prefactor     2.0245        6.8764        .18020E-05   -.12697E-04
   7  Prefactor     21.151        18.250        .99484E-07   -.61733E-05
   8  Prefactor     .10000E-03    7.2936        .73834E-07** at limit **
   9  Prefactor     14.126        13.825        .15592E-06   -.93043E-05
  10  Prefactor     .10000E-03    5.8041        .18743E-06** at limit **
  11  Prefactor     13.570        32.360        .80725E-07   -.21167E-05
  12  Prefactor     .10000E-03    45.656       -.59396E-06** at limit **
  13  Prefactor     .10000E-03    6.0036        .25037E-07** at limit **
  14  norm          .10000E-03    8.4550        .55506E-08** at limit **
  15  norm          .10000E-03    2.4187        .26879E-07** at limit **
  16  norm          5.1865        6.0039       -.33383E-07   -.35011E-04
  17  norm          .10000E-03    8.9714        .28201E-07** at limit **
  18  Prefactor     .78457        17.381        .12819E-04   -.11290E-04
  19  Prefactor     75.950        63.944        .26891E-06   -.26740E-04
  20  Prefactor     132.56        75.599        .62028E-06   -.18079E-04
  21  norm          3.3568        6.1450        .20767E-06   -.31493E-04
  22  Prefactor     47.175        25.361       -.30277E-05    .56633E-05
  23  norm          15.208        2.5934       -.24275E-07   -.31980E-04
  24  norm          2.8440        4.0565       -.51246E-09   -.44462E-05
  25  Prefactor     .10000E-03    2.0185        .85911E-07** at limit **
  26  Prefactor     43.137        32.581        .27210E-06   -.88910E-05
  27  Prefactor     50.299        98.829        .10986E-04    .68772E-05
  28  Prefactor     6.2340        8.6477        .20632E-05   -.59763E-04
  29  Prefactor     3.2485        6.4387        .10307E-05   -.11528E-04
  30  Prefactor     .10004E-03    224.89        .67351E-06** at limit **
  31  Normalizat    .83814        .22633       -.12108E-05   -.25835E-04
  32  Prefactor     1.1833        .23072       -.63239E-06    .30509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 17.9772
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 18.1631
  Prefactor  = 2.02449
  Prefactor  = 21.1507
  Prefactor  = 0.0001
  Prefactor  = 14.1261
  Prefactor  = 0.0001
  Prefactor  = 13.5699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.18646
  norm       = 0.0001
  Prefactor  = 0.784574
  Prefactor  = 75.9501
  Prefactor  = 132.563
  norm       = 3.35682
  Prefactor  = 47.1755
  norm       = 15.2083
  norm       = 2.84397
  Prefactor  = 0.0001
  Prefactor  = 43.1366
  Prefactor  = 50.2993
  Prefactor  = 6.23404
  Prefactor  = 3.24845
  Prefactor  = 0.000100039
  Normalizat = 0.838145
  Prefactor  = 1.18329
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.013     FROM HESSE     STATUS=OK           657 CALLS     5129 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.977        27.371        .47231E-03   -1.4860    
   3  Prefactor     .10000E-03    100.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9166        .98462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.163        27.143        .93978E-04   -1.4855    
   6  Prefactor     2.0245        6.8356        .14541E-02   -1.5423    
   7  Prefactor     21.151        18.251        .87093E-04   -1.4788    
   8  Prefactor     .10000E-03    7.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.126        13.833        .10657E-03   -1.4956    
  10  Prefactor     .10000E-03    5.8499        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.570        32.376        .10871E-03   -1.4971    
  12  Prefactor     .10000E-03    45.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0164        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.4740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4196        .11103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1865        6.0147        .17652E-03   -1.5252    
  17  norm          .10000E-03    9.1470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .78457        18.164        .24159E-02   -1.5531    
  19  Prefactor     75.950        63.681        .46075E-04   -1.3963    
  20  Prefactor     132.56        75.834        .34975E-04   -1.3400    
  21  norm          3.3568        6.0668        .19351E-03   -1.5342    
  22  Prefactor     47.175        25.822        .58380E-04   -1.4333    
  23  norm          15.208        2.5955        .45750E-04   -1.4928    
  24  norm          2.8440        4.0320        .16587E-03   -1.5371    
  25  Prefactor     .10000E-03    2.0354        .10122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.137        32.514        .61038E-04   -1.4393    
  27  Prefactor     50.299        98.813        .56535E-04   -1.4288    
  28  Prefactor     6.2340        8.6418        .16078E-03   -1.5209    
  29  Prefactor     3.2485        6.4275        .11235E-02   -1.5347    
  30  Prefactor     .10004E-03    224.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83814        .28154        .29645E-03   -.98669    
  32  Prefactor     1.1833        .28661        .27742E-03   -.86847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16901e-08
Minuit parameter uncertainties:
  1  0.000759126
  2  27.3899
  3  0.00115408
  4  6.91583e-06
  5  27.161
  6  6.83819
  7  18.2562
  8  1.19415e-05
  9  13.8358
  10  2.56844e-05
  11  32.4181
  12  0.000170908
  13  2.20984e-07
  14  3.20196e-07
  15  8.16993e-07
  16  6.0154
  17  1.3107e-05
  18  7.55215
  19  63.7384
  20  75.8894
  21  6.06788
  22  25.8278
  23  2.59549
  24  4.03239
  25  1.59698e-06
  26  32.5272
  27  99.1376
  28  8.64354
  29  6.42887
  30  0.00594364
  31  0.282035
  32  0.286989
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.381e-01  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 3.19e-05

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

Saving results to:
/scratch/kocevski/846960/likelihoodResults_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.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) = 5342.90981823
delta logL = 1.10349666799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5342.89657705
delta logL = 1.11673785017

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5342.897     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3785        29.545        .66421E-02    .34836E-03
   2  alpha         2.7523        3.6488        .20481        .82494E-04
   3  Normalizat    .79343        .74426E-01    .68524E-01    .21977E-04
   4  Prefactor     1.1990        .70817E-01    .62219E-01   -.99865E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37852
  alpha      = 2.75228
  Normalizat = 0.793425
  Prefactor  = 1.19896
 **********
 **   18 **HESSE 
 **********

 FCN=   5342.897     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3785        4.2460        .74647E-04   -1.5400    
   2  alpha         2.7523        .83742        .72432E-02    .10108    
   3  Normalizat    .79343        .26192        .30320E-03   -1.0031    
   4  Prefactor     1.1990        .28257        .27518E-03   -.86363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26865e-11
Minuit parameter uncertainties:
  1  4.24658
  2  0.854108
  3  0.262332
  4  0.282932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846960': 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) = 5342.89657679
delta logL = 1.11673810813

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.199e+00  2.829e-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.934e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.75 +/- 0.85
Photon Flux (Free Index): 7.22e-08 +/- 6.68e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.46e-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/846960/cmap_HighResolution_330048001_330307201_4FGL_J2324.7-4041_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='2.07e-05', photon_flux_error='1.47e-08', dlogl='1.12e+00', energy_flux='2.75e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-29 16:50:07.026061', photon_index_error2='0.85', photon_index2='2.75', ts='2.25', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='5.53e-08', energy_flux_error2='1.46e-05', EG='0.84', time_epoch_completed='1632959407.03', return_code='0', job_id='846960', GAL2='1.20', EG2='0.79', return_code2='0', energy_flux_error='3.19e-05', photon_flux_error2='6.68e-08', ts2='4.48', photon_index='1.62' WHERE bin_id='350' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 846960: <4FGL_J2324.7-4041_daily_bin350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin350 351.182 -40.6834 330048001 330307201 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 :                                   844.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

