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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1430
RA = 351.182, Dec = -40.6834
tmin = 609984001, tmax = 610243201
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='853448', job_status='RUN', time_executed='2021-09-29 16:51:26.148606', time_epoch_executed='1632959486.15' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853448/ft1_4FGL_J2324.7-4041_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853448/ft1_4FGL_J2324.7-4041_daily_bin1430.fits outfile=/scratch/kocevski/853448/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1430.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=609984001.0 tmax=610243201.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.10
user 4.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/853448/ltcube_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.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/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits
.....................!
real 11.57
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/853448/ltcube_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.fits outfile=/scratch/kocevski/853448/expmap_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.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/853448/ltcube_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.fits
.....................!
real 190.54
user 185.89
sys 4.32

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/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits scfile=/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits outfile=/scratch/kocevski/853448/cmap_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits scfile=/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits outfile=/scratch/kocevski/853448/cmap_HighResolution_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.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/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/853448/ft2_4FGL_J2324.7-4041_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853448/Model_4FGL_J2324.7-4041_daily_bin1430.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/853448/ft1_filtered_4FGL_J2324.7-4041_daily_bin1430.fits.....................!
real 37.27
user 36.04
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.475       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35435E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .96619       1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    21 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.161       1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62219E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    106.21       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.150       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11171E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92310       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0329       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=   4485.448     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4371 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.805        .21377E-06** at limit **
   2  Prefactor     .10000E-03    11.858        .54881E-06** at limit **
   3  Prefactor     .10000E-03    7.1174        .75418E-07** at limit **
   4  Prefactor     .10000E-03    2.8207        .85882E-06** at limit **
   5  Prefactor     .10000E-03    15.803        .30407E-06** at limit **
   6  Prefactor     .10000E-03    3.9063        .48040E-06** at limit **
   7  Prefactor     .10000E-03    15.014        .41826E-06** at limit **
   8  Prefactor     43.585        27.079       -.22785E-06   -.64186E-04
   9  Prefactor     22.475        17.036       -.64686E-07   -.25983E-04
  10  Prefactor     .10000E-03    6.5136        .39876E-06** at limit **
  11  Prefactor     .10000E-03    14.916        .39931E-07** at limit **
  12  Prefactor     .10000E-03    60.499        .66930E-06** at limit **
  13  Prefactor     .10000E-03    8.5178        .33400E-06** at limit **
  14  norm          .10000E-03    8.2173        .40767E-06** at limit **
  15  norm          .96003        11.324        .58792E-05   -.32532E-03
  16  norm          .10000E-03    2.4761       -.32501E-06** at limit **
  17  norm          .10000E-03    16.110       -.16017E-05** at limit **
  18  Prefactor     24.115        12.698       -.75880E-06   -.10874E-02
  19  Prefactor     30.117        32.882        .46041E-06    .17825E-04
  20  Prefactor     14.979        76.240        .39023E-05   -.94976E-06
  21  norm          .10000E-03    1.9092       -.66854E-06** at limit **
  22  Prefactor     19.141        24.189       -.75404E-06   -.53702E-03
  23  norm          .10000E-03    .91279        .69045E-06** at limit **
  24  norm          .10000E-03    2.6818       -.11030E-06** at limit **
  25  Prefactor     7.9524        4.8489       -.58355E-06   -.13284E-02
  26  Prefactor     .10004E-03    28.143       -.44851E-08** at limit **
  27  Prefactor     106.25        94.591       -.72490E-06   -.47406E-04
  28  Prefactor     14.151        8.8131        .85457E-07    .18007E-04
  29  Prefactor     .10000E-03    4.2679        .85369E-06** at limit **
  30  Prefactor     .10000E-03    40.057       -.94963E-06** at limit **
  31  Normalizat    .92341        .22959        .13183E-05   -.76107E-03
  32  Prefactor     1.0323        .24621       -.28813E-05   -.31732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.5854
  Prefactor  = 22.4746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.960033
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1149
  Prefactor  = 30.1171
  Prefactor  = 14.979
  norm       = 0.0001
  Prefactor  = 19.1409
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.95238
  Prefactor  = 0.000100044
  Prefactor  = 106.253
  Prefactor  = 14.1513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.923409
  Prefactor  = 1.0323
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.448     FROM HESSE     STATUS=OK           653 CALLS     5024 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1183        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8901        .10992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9335        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.585        27.072        .60730E-04   -1.4387    
   9  Prefactor     22.475        17.037        .84491E-04   -1.4759    
  10  Prefactor     .10000E-03    50.146        .33004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .96003        11.689        .21222E-02   -1.5512    
  16  norm          .10000E-03    2.4812        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.115        12.686        .81565E-04   -1.4725    
  19  Prefactor     30.117        32.946        .72990E-04   -1.4610    
  20  Prefactor     14.979        77.193        .10369E-03   -1.4934    
  21  norm          .10000E-03    1.9092        .90127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.141        24.330        .91499E-04   -1.4833    
  23  norm          .10000E-03    1.2615        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7017        .10699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.9524        4.9902        .10769E-03   -1.5144    
  26  Prefactor     .10004E-03    37.001        .92236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     106.25        94.462        .19511E-03   -1.3643    
  28  Prefactor     14.151        8.8282        .10648E-03   -1.4955    
  29  Prefactor     .10000E-03    4.4695        .27021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    40.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .92341        .26194        .24834E-03   -.95642    
  32  Prefactor     1.0323        .27827        .26092E-03   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46967e-09
Minuit parameter uncertainties:
  1  6.49049e-06
  2  4.81547e-05
  3  2.00469e-06
  4  2.49513e-05
  5  2.72717e-05
  6  1.30711e-05
  7  1.69867e-05
  8  27.0796
  9  17.0406
  10  0.000178781
  11  2.0821e-05
  12  0.000101874
  13  1.8811e-06
  14  4.22715e-05
  15  6.701
  16  4.93736e-06
  17  5.29085e-05
  18  12.6876
  19  32.9657
  20  68.147
  21  1.35539e-05
  22  24.3423
  23  3.53309e-05
  24  4.84891e-07
  25  4.99045
  26  0.00255229
  27  94.5959
  28  8.82897
  29  2.69588e-05
  30  7.22281e-05
  31  0.262306
  32  0.278655
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  4.937e-06  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.032e+00  2.787e-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.234e-01  2.623e-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: 3.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853448/likelihoodResults_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4485.44979972
delta logL = -0.0018168173392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4485.4479829
delta logL = -1.71894498635e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6211       1.0000          .0000       5.0000    
     3 'Normalizat'    .92342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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=   4485.448     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    204.11        .10287E-02** at limit **
   2  alpha         1.5982        3.6794        .50000        .27050E-05
   3  Normalizat    .92342        .49351E-01    .24835E-03   -.80111E-05
   4  Prefactor     1.0323        .54768E-01    .26091E-03   -.70587E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100055
  alpha      = 1.59816
  Normalizat = 0.923419
  Prefactor  = 1.03229
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.448     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    596.04        .20574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5982        3.1181        .50000       -.36906    
   3  Normalizat    .92342        .20697        .99339E-05   -.95642    
   4  Prefactor     1.0323        .22964        .10437E-04   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49941e-08
Minuit parameter uncertainties:
  1  0.0115688
  2  2055.12
  3  0.207147
  4  0.229857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853448': 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): 102
logL (Free Index) = 4485.44798287
delta logL = 2.94967321679e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.001e-04  1.157e-02  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.598e+00  2.055e+03  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.032e+00  2.299e-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.234e-01  2.071e-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/853448/cmap_HighResolution_609984001_610243201_4FGL_J2324.7-4041_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', job_status='DONE', photon_flux_upper_limit='3.00e-08', time_completed='2021-09-29 17:03:48.917864', job_id='853448', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632960228.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1430' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 853448: <4FGL_J2324.7-4041_daily_bin1430> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:40 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:41 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:41 2021
Terminated at Wed Sep 29 17:03:49 2021
Results reported at Wed Sep 29 17:03:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1430 351.182 -40.6834 609984001 610243201 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 :                                   734.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

