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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1590
RA = 351.182, Dec = -40.6834
tmin = 651456001, tmax = 651715201
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='854811', job_status='RUN', time_executed='2021-09-29 16:56:48.793230', time_epoch_executed='1632959808.79' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854811/ft1_4FGL_J2324.7-4041_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854811/ft1_4FGL_J2324.7-4041_daily_bin1590.fits outfile=/scratch/kocevski/854811/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1590.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=651456001.0 tmax=651715201.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.52
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.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/854811/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/854811/ltcube_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.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/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits
.....................!
real 15.94
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/854811/ltcube_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.fits outfile=/scratch/kocevski/854811/expmap_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.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/854811/ltcube_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.fits
.....................!
real 193.44
user 187.59
sys 5.16

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.fits scfile=/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits outfile=/scratch/kocevski/854811/cmap_HighResolution_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/854811/ft2_4FGL_J2324.7-4041_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854811/Model_4FGL_J2324.7-4041_daily_bin1590.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/854811/ft1_filtered_4FGL_J2324.7-4041_daily_bin1590.fits.....................!
real 36.73
user 35.35
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2396       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.612       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0317       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6183       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10813E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7156       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .78256E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.023       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    49.435       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76852       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2783       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=   4579.981     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4981 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.185       -.13965E-06** at limit **
   2  Prefactor     15.287        20.614        .10208E-05   -.15274E-03
   3  Prefactor     26.499        31.381        .78826E-06   -.18016E-03
   4  Prefactor     .49773        4.5194        .32486E-05   -.60435E-04
   5  Prefactor     .10000E-03    17.312        .20047E-06** at limit **
   6  Prefactor     7.7387        6.5429        .21184E-06   -.73362E-04
   7  Prefactor     34.170        32.811        .15617E-05   -.46142E-04
   8  Prefactor     .10000E-03    51.573        .15530E-05** at limit **
   9  Prefactor     .10000E-03    6.3689        .53620E-06** at limit **
  10  Prefactor     .40499        7.4881        .15003E-05   -.88504E-04
  11  Prefactor     12.832        41.917        .28898E-05   -.10695E-04
  12  Prefactor     78.938        73.260        .38097E-05    .25039E-03
  13  Prefactor     .10000E-03    18.196        .56639E-06** at limit **
  14  norm          .10000E-03    6.7731       -.60045E-07** at limit **
  15  norm          .10000E-03    2.1652        .17496E-07** at limit **
  16  norm          .10000E-03    3.1577       -.19218E-06** at limit **
  17  norm          7.2418        8.7891        .47047E-06   -.97939E-05
  18  Prefactor     .10000E-03    4.4475        .11266E-06** at limit **
  19  Prefactor     .10000E-03    23.134       -.89760E-06** at limit **
  20  Prefactor     .10000E-03    49.868        .55869E-06** at limit **
  21  norm          .10000E-03    5.0321       -.15639E-05** at limit **
  22  Prefactor     16.612        13.261        .51051E-06   -.91643E-04
  23  norm          3.0316        1.2869        .12096E-06   -.30938E-03
  24  norm          4.6197        6.4349        .83742E-05   -.53544E-03
  25  Prefactor     .10000E-03    1.8155        .34547E-06** at limit **
  26  Prefactor     7.7127        12.692        .56267E-06   -.56294E-04
  27  Prefactor     .10048E-03    1619.6       -.96245E-04** at limit **
  28  Prefactor     10.025        10.506        .25420E-05    .15549E-03
  29  Prefactor     .10000E-03    3.0852        .84208E-06** at limit **
  30  Prefactor     49.373        75.278       -.13513E-04    .13747E-05
  31  Normalizat    .76835        .22070       -.66699E-05   -.11447E-03
  32  Prefactor     1.2781        .23675       -.23955E-05   -.16901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.2875
  Prefactor  = 26.4989
  Prefactor  = 0.49773
  Prefactor  = 0.0001
  Prefactor  = 7.73865
  Prefactor  = 34.17
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.404995
  Prefactor  = 12.8324
  Prefactor  = 78.9382
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.24184
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 16.6116
  norm       = 3.03163
  norm       = 4.61969
  Prefactor  = 0.0001
  Prefactor  = 7.71271
  Prefactor  = 0.00010048
  Prefactor  = 10.0251
  Prefactor  = 0.000100001
  Prefactor  = 49.3729
  Normalizat = 0.768349
  Prefactor  = 1.27813
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.981     FROM HESSE     STATUS=OK           655 CALLS     5636 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.287        20.200        .10242E-03   -1.4926    
   3  Prefactor     26.499        31.432        .77783E-04   -1.4678    
   4  Prefactor     .49773        4.6483        .27607E-03   -1.5567    
   5  Prefactor     .10000E-03    17.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7387        6.5418        .14416E-03   -1.5152    
   7  Prefactor     34.170        32.800        .68550E-04   -1.4538    
   8  Prefactor     .10000E-03    52.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4011        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40499        25.607        .35091E-02   -1.5581    
  11  Prefactor     12.832        41.969        .11182E-03   -1.4991    
  12  Prefactor     78.938        73.641        .22612E-03   -1.3929    
  13  Prefactor     .10000E-03    18.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.7842        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1656        .97256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5491        .23388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2418        8.7820        .14908E-03   -1.5170    
  18  Prefactor     .10000E-03    4.4901        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1866        .29641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.612        13.236        .98267E-04   -1.4893    
  23  norm          3.0316        1.2853        .47856E-04   -1.5360    
  24  norm          4.6197        6.5199        .93645E-03   -1.5278    
  25  Prefactor     .10000E-03    3.7639        .17701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7127        12.651        .14437E-03   -1.5152    
  27  Prefactor     .10048E-03    1653.3        .37030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.025        10.517        .63285E-03   -1.5075    
  29  Prefactor     .10000E-03    9.5019        .22086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     49.373        74.498        .57035E-04   -1.4301    
  31  Normalizat    .76835        .26314        .27202E-03   -1.0125    
  32  Prefactor     1.2781        .28853        .24456E-03   -.83960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25168e-08
Minuit parameter uncertainties:
  1  4.85639e-05
  2  20.209
  3  31.4516
  4  3.0421
  5  6.88371e-05
  6  6.54243
  7  32.8174
  8  0.000268699
  9  5.34981e-05
  10  6.44275
  11  42.0655
  12  73.7259
  13  0.000131322
  14  2.4483e-05
  15  1.52109e-06
  16  6.71545e-05
  17  8.7836
  18  1.59756e-05
  19  0.000237928
  20  0.000449737
  21  0.000179301
  22  13.2386
  23  1.28535
  24  6.52091
  25  3.42013e-05
  26  12.6552
  27  0.0580473
  28  10.5185
  29  0.00015487
  30  74.6393
  31  0.263573
  32  0.288895
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.715e-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:  1.278e+00  2.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.683e-01  2.636e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854811/likelihoodResults_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.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) = 4579.98169428
delta logL = -0.000725512903045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4579.98097201
delta logL = -3.25217661157e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12177E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6542       1.0000          .0000       5.0000    
     3 'Normalizat'    .76883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2776       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4579.981     FROM MIGRAD    STATUS=FAILED        93 CALLS      258 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10323E-03    203.46        .23255E-02** at limit **
   2  alpha         1.8443        3.1076        .50000       -.56208E-05
   3  Normalizat    .76835        .25655E-01    .27202E-03    .32599E-05
   4  Prefactor     1.2781        .29107E-01    .24456E-03   -.64625E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4579.981     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      385 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10323E-03    203.46        .46230E-03** at limit **
   2  alpha         1.8443        3.1076        .88131E-04   -.56208E-05
   3  Normalizat    .76835        .25655E-01    .11714E-05    .32599E-05
   4  Prefactor     1.2781        .29107E-01    .11631E-05   -.64625E-04
                               ERR DEF=  .500    

 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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4579.981     FROM MIGRAD    STATUS=FAILED        80 CALLS      465 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.364        .93019E-04** at limit **
   2  alpha         1.9112        2.6017        .50000        .14872E-05
   3  Normalizat    .76835        .24959        .21762E-05    .12016E-03
   4  Prefactor     1.2781        .28330        .97824E-05    .82513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91118
  Normalizat = 0.76835
  Prefactor  = 1.27813
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.981     FROM HESSE     STATUS=OK            27 CALLS      492 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1696        .18604E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9112        2.8304        .50000       -.23776    
   3  Normalizat    .76835        .24435        .43523E-06   -1.0125    
   4  Prefactor     1.2781        .27819        .19565E-05   -.83960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87819e-09
Minuit parameter uncertainties:
  1  1.34928e-05
  2  144.52
  3  0.2447
  4  0.278508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854811': 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): 1
logL (Free Index) = 4579.98096745
delta logL = 1.31325487018e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.349e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.911e+00  1.445e+02  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.278e+00  2.785e-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.684e-01  2.447e-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/854811/cmap_HighResolution_651456001_651715201_4FGL_J2324.7-4041_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-05', job_status='DONE', photon_flux_upper_limit='3.11e-08', time_completed='2021-09-29 17:10:37.212835', job_id='854811', GAL2='1.28', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632960637.21', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1590' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:10:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 854811: <4FGL_J2324.7-4041_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1590> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:33 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:34 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:55:34 2021
Terminated at Wed Sep 29 17:10:37 2021
Results reported at Wed Sep 29 17:10:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1590 351.182 -40.6834 651456001 651715201 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

