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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1402
RA = 351.182, Dec = -40.6834
tmin = 602726401, tmax = 602985601
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='853406', job_status='RUN', time_executed='2021-09-29 16:51:32.983170', time_epoch_executed='1632959492.98' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853406/ft1_4FGL_J2324.7-4041_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853406/ft2_4FGL_J2324.7-4041_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853406/ft1_4FGL_J2324.7-4041_daily_bin1402.fits outfile=/scratch/kocevski/853406/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1402.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=602726401.0 tmax=602985601.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.09
user 2.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853406/ft1_filtered_4FGL_J2324.7-4041_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/853406/ft2_4FGL_J2324.7-4041_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/853406/ltcube_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.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/853406/ft2_4FGL_J2324.7-4041_daily_bin1402.fits
.....................!
real 12.30
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853406/ft1_filtered_4FGL_J2324.7-4041_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/853406/ft2_4FGL_J2324.7-4041_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/853406/ltcube_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.fits outfile=/scratch/kocevski/853406/expmap_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.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/853406/ltcube_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.fits
.....................!
real 190.04
user 185.28
sys 4.46

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/853406/ft1_filtered_4FGL_J2324.7-4041_daily_bin1402.fits scfile=/scratch/kocevski/853406/ft2_4FGL_J2324.7-4041_daily_bin1402.fits outfile=/scratch/kocevski/853406/cmap_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    375.97       1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5324.4       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7798       1.0000         .10000E-03   10000.    
    17 'norm      '    6.4502       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.024       1.0000         .10000E-03   10000.    
    21 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.070       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9061       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.210       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2993       1.0000         .10000E-03   10000.    
    30 'Prefactor '    145.57       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .28367       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1515       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=   2115.965     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     5778 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.852       -.73800E-06** at limit **
   2  Prefactor     .10000E-03    9.3781       -.23295E-06** at limit **
   3  Prefactor     .10000E-03    18.291       -.57069E-06** at limit **
   4  Prefactor     375.61        416.32       -.52518E-06   -.71085E-04
   5  Prefactor     64.815        1047.7        .18668E-05   -.19018E-05
   6  Prefactor     5325.1        1949.4       -.82332E-05   -.24475E-04
   7  Prefactor     .10000E-03    39.366       -.20160E-06** at limit **
   8  Prefactor     .10000E-03    51.643        .19210E-06** at limit **
   9  Prefactor     27.868        45.405        .25872E-06    .24272E-04
  10  Prefactor     .10000E-03    8.9079       -.33688E-06** at limit **
  11  Prefactor     .10000E-03    99.851       -.13888E-06** at limit **
  12  Prefactor     .10000E-03    51.022        .28082E-06** at limit **
  13  Prefactor     .10000E-03    11.230        .33991E-07** at limit **
  14  norm          .10000E-03    8.6727       -.29062E-07** at limit **
  15  norm          .10000E-03    4.0989        .11757E-08** at limit **
  16  norm          2.7794        6.4484        .59792E-06   -.25298E-03
  17  norm          6.4488        12.533        .18384E-06   -.59182E-04
  18  Prefactor     .10000E-03    3.5704        .22884E-08** at limit **
  19  Prefactor     .10000E-03    27.536        .74812E-06** at limit **
  20  Prefactor     90.137        84.634        .79981E-06    .15697E-03
  21  norm          .10001E-03    5.5709        .17557E-05** at limit **
  22  Prefactor     21.074        17.371       -.13272E-06   -.37938E-04
  23  norm          .10000E-03    .45064       -.59894E-08** at limit **
  24  norm          .10000E-03    1.7970       -.55881E-07** at limit **
  25  Prefactor     1.9062        5.5540       -.10258E-06   -.91984E-04
  26  Prefactor     .10000E-03    29.492       -.54364E-06** at limit **
  27  Prefactor     .10000E-03    41.711        .16645E-06** at limit **
  28  Prefactor     10.209        9.3864        .87723E-06   -.11627E-03
  29  Prefactor     1.2999        3.1339        .45542E-05   -.11611E-03
  30  Prefactor     145.59        88.369       -.10757E-05    .23912E-04
  31  Normalizat    .28349        .34072        .60098E-05   -.10324E-03
  32  Prefactor     1.1517        .36230       -.48503E-05   -.87911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 375.612
  Prefactor  = 64.815
  Prefactor  = 5325.08
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.77939
  norm       = 6.44884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.1375
  norm       = 0.000100013
  Prefactor  = 21.0736
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.90624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2086
  Prefactor  = 1.29994
  Prefactor  = 145.593
  Normalizat = 0.283487
  Prefactor  = 1.1517
 **********
 **   18 **HESSE 
 **********

 FCN=   2115.965     FROM HESSE     STATUS=OK           643 CALLS     6421 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3850        .13761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     375.61        415.66        .10514E-03   -1.1807    
   5  Prefactor     64.815        1043.5        .49928E-04   -1.4096    
   6  Prefactor     5325.1        1932.4        .40084E-04    .65061E-01
   7  Prefactor     .10000E-03    39.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.868        45.297        .75919E-04   -1.4652    
  10  Prefactor     .10000E-03    8.9127        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    99.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.243        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.6735        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0989        .90963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7794        6.2061        .16637E-03   -1.5375    
  17  norm          6.4488        12.510        .15803E-03   -1.5200    
  18  Prefactor     .10000E-03    3.5725        .84880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     90.137        84.000        .21175E-03   -1.3806    
  21  norm          .10001E-03    10.540        .19844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.074        17.363        .87258E-04   -1.4790    
  23  norm          .10000E-03    .45126        .30145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.8017        .60199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.9062        5.4751        .16961E-03   -1.5432    
  26  Prefactor     .10000E-03    29.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.209        9.3365        .60023E-03   -1.5069    
  29  Prefactor     1.2999        3.1516        .61833E-03   -1.5480    
  30  Prefactor     145.59        87.853        .16699E-03   -1.3289    
  31  Normalizat    .28349        .32994        .37004E-03   -1.2384    
  32  Prefactor     1.1517        .36387        .21976E-03   -.87831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87227e-09
Minuit parameter uncertainties:
  1  0.000104868
  2  9.05948e-07
  3  7.69563e-06
  4  419.048
  5  531.504
  6  1984.3
  7  0.000135617
  8  0.000212765
  9  45.3526
  10  4.14517e-06
  11  0.000145289
  12  0.00018912
  13  2.8664e-05
  14  4.97639e-06
  15  1.26312e-08
  16  6.20753
  17  12.5149
  18  9.63057e-07
  19  8.19142e-06
  20  84.1111
  21  0.000731602
  22  17.3673
  23  8.47629e-08
  24  4.61069e-06
  25  5.47658
  26  1.38756e-05
  27  9.98489e-05
  28  9.33788
  29  3.15197
  30  87.9315
  31  0.332235
  32  0.364663
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.779e+00  6.208e+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.152e+00  3.647e-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:  2.835e-01  3.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853406/likelihoodResults_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.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) = 2115.95756051
delta logL = 0.0074919511585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2115.95661837
delta logL = 0.00843408278024

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2115.957     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5142        6.3631        .15430E-03    .53107E-03
   2  alpha         1.7691        1.1256        .15638E-01    .53385E-04
   3  Normalizat    .28341        .30366        .37013E-03   -.23251E-04
   4  Prefactor     1.1511        .35648        .21980E-03   -.72004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5142
  alpha      = 1.76909
  Normalizat = 0.283407
  Prefactor  = 1.15105
 **********
 **   18 **HESSE 
 **********

 FCN=   2115.957     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5142        6.1411        .61721E-05   -1.5391    
   2  alpha         1.7691        1.0898        .62550E-03   -.29670    
   3  Normalizat    .28341        .30363        .14805E-04   -1.2384    
   4  Prefactor     1.1511        .35647        .43960E-04   -.87851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97144e-10
Minuit parameter uncertainties:
  1  6.14268
  2  1.13163
  3  0.305418
  4  0.357219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853406': 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) = 2115.9566178
delta logL = 0.00843466046399

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.514e+00  6.143e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.769e+00  1.132e+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:  1.151e+00  3.572e-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:  2.834e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/853406/cmap_HighResolution_602726401_602985601_4FGL_J2324.7-4041_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-04', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-29 17:01:04.309622', job_id='853406', GAL2='1.15', fit_tolerance='1e-08', EG2='0.28', EG='0.28', time_epoch_completed='1632960064.31', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.43e-03', ts2='0.31', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1402' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 853406: <4FGL_J2324.7-4041_daily_bin1402> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1402> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:37 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:38 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:50:38 2021
Terminated at Wed Sep 29 17:01:05 2021
Results reported at Wed Sep 29 17:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1402 351.182 -40.6834 602726401 602985601 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 :                                   553.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

