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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin819
RA = 351.182, Dec = -40.6834
tmin = 451612801, tmax = 451872001
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='851423', job_status='RUN', time_executed='2021-09-29 16:45:23.788833', time_epoch_executed='1632959123.79' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851423

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851423/ft1_4FGL_J2324.7-4041_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851423/ft1_4FGL_J2324.7-4041_daily_bin819.fits outfile=/scratch/kocevski/851423/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin819.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=451612801.0 tmax=451872001.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.39
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.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/851423/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin819.fits evtable="EVENTS" outfile="/scratch/kocevski/851423/ft1_filtered_4FGL_J2324.7-4041_daily_bin819.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851423/ft1_filtered_4FGL_J2324.7-4041_daily_bin819.fits" evtable="EVENTS" scfile=/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits sctable="SC_DATA" outfile=/scratch/kocevski/851423/ltcube_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.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/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits
.....................!
real 11.97
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851423/ft1_filtered_4FGL_J2324.7-4041_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/851423/ltcube_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.fits outfile=/scratch/kocevski/851423/expmap_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.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/851423/ltcube_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.fits
.....................!
real 190.46
user 185.49
sys 4.62

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/851423/ft1_filtered_4FGL_J2324.7-4041_daily_bin819.fits scfile=/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits outfile=/scratch/kocevski/851423/cmap_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851423/ft1_filtered_4FGL_J2324.7-4041_daily_bin819.fits scfile=/scratch/kocevski/851423/ft2_4FGL_J2324.7-4041_daily_bin819.fits outfile=/scratch/kocevski/851423/cmap_HighResolution_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17528E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12623E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29803E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.237       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5085       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6787       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57694E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10770E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1467       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3517       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1511       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0962       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.072       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    75.882       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78593       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96088       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=   6444.423     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     4475 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.015       -.14084E-06** at limit **
   2  Prefactor     .10000E-03    6.0000       -.35472E-07** at limit **
   3  Prefactor     .10000E-03    54.098       -.54929E-06** at limit **
   4  Prefactor     .10000E-03    1.6348        .23481E-06** at limit **
   5  Prefactor     1.7140        116.05       -.10791E-05    .15617E-04
   6  Prefactor     .10000E-03    3.1969       -.30459E-07** at limit **
   7  Prefactor     11.241        12.984       -.37682E-07    .68060E-04
   8  Prefactor     .10061E-03    64.684       -.12547E-04** at limit **
   9  Prefactor     .10000E-03    5.0564       -.11298E-07** at limit **
  10  Prefactor     .10000E-03    4.8728        .23708E-05** at limit **
  11  Prefactor     14.766        14.783        .39941E-07    .42749E-05
  12  Prefactor     45.238        55.291        .35107E-06    .26512E-04
  13  Prefactor     6.5091        13.947        .60424E-06    .14330E-03
  14  norm          4.6789        6.4444        .10447E-05    .39103E-03
  15  norm          .10000E-03    1.9898        .61667E-07** at limit **
  16  norm          .10000E-03    1.3037        .14890E-06** at limit **
  17  norm          4.3909        3.8573        .94660E-07    .91156E-04
  18  Prefactor     .95558        5.5060        .22571E-06    .39800E-03
  19  Prefactor     26.664        24.345       -.25056E-05   -.31330E-03
  20  Prefactor     .10087E-03    21.555       -.33909E-05** at limit **
  21  norm          .10000E-03    3.1420        .11829E-05** at limit **
  22  Prefactor     8.1462        10.524        .38087E-06    .26791E-03
  23  norm          1.3519        1.0613        .46655E-07    .86493E-03
  24  norm          5.1477        3.3880        .70303E-06    .20260E-02
  25  Prefactor     1.0969        3.1463        .43359E-06    .52703E-03
  26  Prefactor     .10000E-03    13.101        .35013E-06** at limit **
  27  Prefactor     21.068        21.208       -.36934E-07    .50087E-06
  28  Prefactor     .10000E-03    1.3636       -.70977E-07** at limit **
  29  Prefactor     .10000E-03    2.9900        .42985E-07** at limit **
  30  Prefactor     75.914        36.344        .10900E-05    .18644E-03
  31  Normalizat    .78595        .14630       -.57978E-06    .14166E-03
  32  Prefactor     .96089        .15942        .32124E-06    .21167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71403
  Prefactor  = 0.0001
  Prefactor  = 11.241
  Prefactor  = 0.000100609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7658
  Prefactor  = 45.2385
  Prefactor  = 6.50912
  norm       = 4.67892
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.39087
  Prefactor  = 0.955583
  Prefactor  = 26.6635
  Prefactor  = 0.000100867
  norm       = 0.000100003
  Prefactor  = 8.14615
  norm       = 1.3519
  norm       = 5.14766
  Prefactor  = 1.09693
  Prefactor  = 0.0001
  Prefactor  = 21.0681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9138
  Normalizat = 0.785948
  Prefactor  = 0.960885
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.423     FROM HESSE     STATUS=OK           671 CALLS     5146 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.600        .19291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7140        112.64        .32054E-03   -1.5446    
   6  Prefactor     .10000E-03    3.2269        .14014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.241        12.935        .11949E-03   -1.5037    
   8  Prefactor     .10061E-03    118.18        .56651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0885        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.560        .27918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.766        14.785        .10423E-03   -1.4939    
  12  Prefactor     45.238        55.366        .59611E-04   -1.4362    
  13  Prefactor     6.5091        13.834        .15731E-03   -1.5198    
  14  norm          4.6789        6.4628        .18605E-03   -1.5275    
  15  norm          .10000E-03    1.9908        .11057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3090        .89570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3909        3.8547        .14375E-03   -1.5289    
  18  Prefactor     .95558        5.5144        .31574E-03   -1.5512    
  19  Prefactor     26.664        25.137        .77465E-04   -1.4675    
  20  Prefactor     .10087E-03    19.792        .11077       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3671        .28084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1462        10.368        .14047E-03   -1.5137    
  23  norm          1.3519        1.0364        .65859E-04   -1.5475    
  24  norm          5.1477        3.5437        .58978E-03   -1.5254    
  25  Prefactor     1.0969        3.1554        .22994E-03   -1.5498    
  26  Prefactor     .10000E-03    13.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.068        21.210        .87254E-04   -1.4790    
  28  Prefactor     .10000E-03    1.3745        .91531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.0956        .27076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     75.914        36.409        .46095E-04   -1.3963    
  31  Normalizat    .78595        .17205        .22408E-03   -1.0059    
  32  Prefactor     .96089        .18875        .23245E-03   -.94045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9632e-09
Minuit parameter uncertainties:
  1  2.03239e-05
  2  1.83735e-06
  3  6.3931e-05
  4  9.27062e-05
  5  27.8445
  6  2.47256e-06
  7  12.938
  8  0.0170008
  9  1.17935e-06
  10  5.33585e-05
  11  14.7882
  12  55.4287
  13  13.8409
  14  6.4638
  15  2.02937e-06
  16  1.39619e-05
  17  3.85495
  18  4.59146
  19  25.1467
  20  0.00828842
  21  0.000188184
  22  10.3703
  23  1.03642
  24  3.54382
  25  3.15586
  26  5.1132e-05
  27  21.2174
  28  6.86852e-06
  29  4.40289e-06
  30  36.4194
  31  0.172165
  32  0.188884
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.396e-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:  9.609e-01  1.889e-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.859e-01  1.722e-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: 1.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851423/likelihoodResults_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.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) = 6444.42650241
delta logL = -0.00345935732912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.42304306
delta logL = -6.23822415946e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6252       1.0000          .0000       5.0000    
     3 'Normalizat'    .78594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96088       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=   6444.423     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      191 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5194        .90712E-02** at limit **
   2  alpha         1.6271        3.3022        .44902       -.64783E-05
   3  Normalizat    .78595        .13813        .43427E-01    .19853E-04
   4  Prefactor     .96088        .15792        .45776E-01    .12697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62709
  Normalizat = 0.785949
  Prefactor  = 0.960884
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.423     FROM HESSE     STATUS=OK            33 CALLS      224 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3177        .89578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6271        3.2859        .50000       -.35668    
   3  Normalizat    .78595        .16327        .22408E-03   -1.0059    
   4  Prefactor     .96088        .18669        .23245E-03   -.94045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26249e-11
Minuit parameter uncertainties:
  1  2.50544e-07
  2  2.35076
  3  0.163376
  4  0.186817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851423': 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) = 6444.42304304
delta logL = 9.98807081487e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.505e-07  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.627e+00  2.351e+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:  9.609e-01  1.868e-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.859e-01  1.634e-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/851423/cmap_HighResolution_451612801_451872001_4FGL_J2324.7-4041_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', job_status='DONE', photon_flux_upper_limit='1.73e-08', time_completed='2021-09-29 17:01:01.812572', job_id='851423', GAL2='0.96', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632960061.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.99e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='819' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 851423: <4FGL_J2324.7-4041_daily_bin819> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin819> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:14 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:15 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:15 2021
Terminated at Wed Sep 29 17:01:02 2021
Results reported at Wed Sep 29 17:01:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin819 351.182 -40.6834 451612801 451872001 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 :                                   936.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            948 sec.

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

