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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1142
RA = 351.182, Dec = -40.6834
tmin = 535334401, tmax = 535593601
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='851922', job_status='RUN', time_executed='2021-09-29 16:46:10.328215', time_epoch_executed='1632959170.33' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851922/ft1_4FGL_J2324.7-4041_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851922/ft1_4FGL_J2324.7-4041_daily_bin1142.fits outfile=/scratch/kocevski/851922/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1142.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=535334401.0 tmax=535593601.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 5.12
user 4.87
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/851922/ltcube_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.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/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits
.....................!
real 11.58
user 11.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/851922/ltcube_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.fits outfile=/scratch/kocevski/851922/expmap_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.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/851922/ltcube_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.fits
.....................!
real 192.11
user 186.54
sys 5.17

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/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits scfile=/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits outfile=/scratch/kocevski/851922/cmap_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits scfile=/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits outfile=/scratch/kocevski/851922/cmap_HighResolution_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.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.60
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/851922/ft2_4FGL_J2324.7-4041_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851922/Model_4FGL_J2324.7-4041_daily_bin1142.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/851922/ft1_filtered_4FGL_J2324.7-4041_daily_bin1142.fits.....................!
real 42.70
user 41.39
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33958E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5860       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .81574E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .85794       1.0000         .10000E-03   10000.    
    17 'norm      '    12.405       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4644       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3700       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18043E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.428       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99412       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81725       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=   5403.599     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     4380 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    221.93       -.57703E-05** at limit **
   2  Prefactor     .10000E-03    37.663       -.66952E-06** at limit **
   3  Prefactor     20.104        20.037       -.43054E-07    .11811E-04
   4  Prefactor     13.805        4.5611        .70464E-07    .23905E-04
   5  Prefactor     .10000E-03    9.5578        .39120E-07** at limit **
   6  Prefactor     2.0716        3.2817        .12885E-06    .14068E-05
   7  Prefactor     .10000E-03    8.9860        .20918E-07** at limit **
   8  Prefactor     .10000E-03    8.4832        .10581E-06** at limit **
   9  Prefactor     .10000E-03    24.850        .73829E-06** at limit **
  10  Prefactor     3.5868        4.7440        .29353E-06   -.29901E-04
  11  Prefactor     .10000E-03    14.256       -.62702E-07** at limit **
  12  Prefactor     .10000E-03    13.396        .10218E-06** at limit **
  13  Prefactor     .10000E-03    19.155       -.27663E-06** at limit **
  14  norm          .10000E-03    6.8110        .38753E-07** at limit **
  15  norm          .73285E-01    4.4736       -.10014E-06    .87234E-04
  16  norm          .85875        3.3013        .19440E-05    .21128E-03
  17  norm          12.406        8.9787        .21115E-06    .12972E-04
  18  Prefactor     19.695        10.412       -.58556E-07    .52802E-04
  19  Prefactor     .10000E-03    13.643       -.17301E-06** at limit **
  20  Prefactor     .10000E-03    24.714        .17089E-06** at limit **
  21  norm          .10000E-03    1.7487       -.50697E-06** at limit **
  22  Prefactor     9.4521        20.065        .88131E-07    .38769E-04
  23  norm          .10000E-03    .51288       -.21415E-07** at limit **
  24  norm          .10000E-03    1.4389        .31418E-07** at limit **
  25  Prefactor     1.3708        3.7850        .12099E-05    .69706E-04
  26  Prefactor     .10000E-03    24.607       -.32650E-06** at limit **
  27  Prefactor     .10000E-03    72.560        .44695E-06** at limit **
  28  Prefactor     14.260        8.5888        .59339E-07    .51584E-05
  29  Prefactor     .10002E-03    2.2334       -.62097E-06** at limit **
  30  Prefactor     11.417        100.72        .15118E-05   -.51569E-05
  31  Normalizat    .99397        .17426       -.43461E-06    .13686E-03
  32  Prefactor     .81727        .18827       -.91542E-06    .10946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 20.1041
  Prefactor  = 13.8049
  Prefactor  = 0.0001
  Prefactor  = 2.07156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0732849
  norm       = 0.858755
  norm       = 12.4064
  Prefactor  = 19.6951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.45208
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.37083
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.2598
  Prefactor  = 0.000100018
  Prefactor  = 11.4174
  Normalizat = 0.99397
  Prefactor  = 0.817268
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.599     FROM HESSE     STATUS=OK           665 CALLS     5045 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.63        .39380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.104        20.040        .89323E-04   -1.4811    
   4  Prefactor     13.805        4.5569        .86483E-04   -1.4965    
   5  Prefactor     .10000E-03    9.5600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0716        3.2585        .16306E-03   -1.5420    
   7  Prefactor     .10000E-03    9.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5868        4.7303        .17782E-03   -1.5329    
  11  Prefactor     .10000E-03    14.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.8328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .73285E-01    4.5135        .53454E-01   -1.5654    
  16  norm          .85875        3.3334        .25985E-03   -1.5523    
  17  norm          12.406        8.9737        .11374E-03   -1.5003    
  18  Prefactor     19.695        10.352        .90264E-04   -1.4820    
  19  Prefactor     .10000E-03    13.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8655        .18436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4521        19.959        .13027E-03   -1.5093    
  23  norm          .10000E-03    .53154        .10226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4508        .86090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3708        3.7434        .22362E-03   -1.5474    
  26  Prefactor     .10000E-03    24.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    73.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.260        8.5758        .10607E-03   -1.4953    
  29  Prefactor     .10002E-03    8.9792        .20248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.417        100.17        .11851E-03   -1.5032    
  31  Normalizat    .99397        .20695        .21899E-03   -.93233    
  32  Prefactor     .81727        .22390        .26392E-03   -.99095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46935e-09
Minuit parameter uncertainties:
  1  0.00151961
  2  0.000147341
  3  20.0464
  4  4.55698
  5  8.56632e-06
  6  3.25875
  7  4.73425e-06
  8  1.93551e-05
  9  0.000110529
  10  4.73081
  11  2.69675e-05
  12  3.10441e-05
  13  1.74132e-05
  14  4.31402e-06
  15  1.14957
  16  3.33409
  17  8.97469
  18  10.3534
  19  2.8847e-05
  20  6.15375e-05
  21  3.86908e-05
  22  19.9731
  23  1.4502e-07
  24  2.37846e-06
  25  3.74404
  26  5.69979e-05
  27  0.000452649
  28  8.57658
  29  0.000794563
  30  67.79
  31  0.207112
  32  0.224147
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  8.588e-01  3.334e+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:  8.173e-01  2.241e-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.940e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851922/likelihoodResults_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.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) = 5403.59545346
delta logL = 0.00360771334272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5403.59427289
delta logL = 0.00478827899224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0490       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4548       1.0000          .0000       5.0000    
     3 'Normalizat'    .99395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81718       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5403.594     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      240 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0461        4.1855        .26899E-03   -.16906E-04
   2  alpha         1.4553        1.5390        .32922E-01    .28945E-05
   3  Normalizat    .99404        .19900        .21898E-03    .47244E-05
   4  Prefactor     .81708        .22121        .26394E-03    .66331E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04611
  alpha      = 1.45534
  Normalizat = 0.994043
  Prefactor  = 0.817084
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.594     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0461        3.9712        .10760E-04   -1.5503    
   2  alpha         1.4553        1.4773        .13169E-02   -.43109    
   3  Normalizat    .99404        .19923        .87592E-05   -.93230    
   4  Prefactor     .81708        .22148        .10558E-04   -.99102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23306e-12
Minuit parameter uncertainties:
  1  3.97223
  2  1.60843
  3  0.19938
  4  0.221721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851922': 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) = 5403.59427249
delta logL = 0.00478867940092

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.046e+00  3.972e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.455e+00  1.608e+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:  8.171e-01  2.217e-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.940e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/851922/cmap_HighResolution_535334401_535593601_4FGL_J2324.7-4041_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-05', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2021-09-29 17:00:22.588258', job_id='851922', GAL2='0.82', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632960022.59', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.79e-03', ts2='0.09', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1142' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 851922: <4FGL_J2324.7-4041_daily_bin1142> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1142> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:56 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:58 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:58 2021
Terminated at Wed Sep 29 17:00:23 2021
Results reported at Wed Sep 29 17:00:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1142 351.182 -40.6834 535334401 535593601 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.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

