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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1414
RA = 351.182, Dec = -40.6834
tmin = 605836801, tmax = 606096001
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='853424', job_status='RUN', time_executed='2021-09-29 16:54:45.423508', time_epoch_executed='1632959685.42' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853424/ft1_4FGL_J2324.7-4041_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853424/ft1_4FGL_J2324.7-4041_daily_bin1414.fits outfile=/scratch/kocevski/853424/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1414.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=605836801.0 tmax=606096001.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.65
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.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/853424/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/853424/ltcube_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.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/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/853424/ltcube_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.fits outfile=/scratch/kocevski/853424/expmap_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.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/853424/ltcube_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.fits
.....................!
real 190.60
user 185.22
sys 5.07

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits scfile=/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits outfile=/scratch/kocevski/853424/cmap_HighResolution_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/853424/ft2_4FGL_J2324.7-4041_daily_bin1414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853424/Model_4FGL_J2324.7-4041_daily_bin1414.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/853424/ft1_filtered_4FGL_J2324.7-4041_daily_bin1414.fits.....................!
real 35.20
user 33.88
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11460E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.210       1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0766       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8498       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5813       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.640       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.2774       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23344       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4928       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87582       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89894       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=   4208.427     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4355 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.093        .28585E-07** at limit **
   2  Prefactor     47.282        26.558        .12323E-06    .93715E-05
   3  Prefactor     .10000E-03    28.968        .30141E-06** at limit **
   4  Prefactor     8.1793        6.5740       -.19357E-06   -.60192E-04
   5  Prefactor     4.3750        135.63       -.15291E-05   -.19518E-04
   6  Prefactor     .10000E-03    9.6701        .13662E-06** at limit **
   7  Prefactor     .10000E-03    19.871        .28394E-06** at limit **
   8  Prefactor     .10000E-03    7.9889       -.10372E-06** at limit **
   9  Prefactor     .10000E-03    24.004        .79735E-06** at limit **
  10  Prefactor     7.4686        10.649        .34003E-05    .98214E-04
  11  Prefactor     68.208        48.845        .82392E-07   -.12335E-04
  12  Prefactor     65.358        60.967        .27693E-06    .42862E-04
  13  Prefactor     3.0790        11.208        .66762E-06   -.56756E-05
  14  norm          2.8477        25.330        .95206E-06   -.18447E-05
  15  norm          .10000E-03    2.1485        .26141E-07** at limit **
  16  norm          .10000E-03    2.8108       -.60116E-06** at limit **
  17  norm          .10000E-03    2.9009        .47473E-07** at limit **
  18  Prefactor     6.5929        6.0321        .30097E-06   -.71594E-04
  19  Prefactor     6.2733        139.74        .61825E-05   -.32899E-04
  20  Prefactor     .10000E-03    17.061        .14064E-06** at limit **
  21  norm          13.647        8.4127       -.57115E-06   -.14856E-03
  22  Prefactor     .10000E-03    53.843        .28473E-05** at limit **
  23  norm          .10000E-03    .50353        .28941E-06** at limit **
  24  norm          6.2792        5.3227       -.32863E-06   -.15751E-03
  25  Prefactor     .22595        3.3886       -.60071E-06    .95568E-03
  26  Prefactor     4.5189        31.901       -.40027E-05    .25683E-04
  27  Prefactor     .10000E-03    25.140        .65320E-09** at limit **
  28  Prefactor     .10000E-03    1.9327        .46547E-07** at limit **
  29  Prefactor     .10000E-03    4.5103        .39954E-06** at limit **
  30  Prefactor     .10000E-03    60.774        .16664E-06** at limit **
  31  Normalizat    .87537        .19925       -.14613E-05   -.85558E-04
  32  Prefactor     .89941        .21784       -.51968E-06   -.10923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.2818
  Prefactor  = 0.0001
  Prefactor  = 8.17928
  Prefactor  = 4.37501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46859
  Prefactor  = 68.2081
  Prefactor  = 65.3578
  Prefactor  = 3.07902
  norm       = 2.84771
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.59293
  Prefactor  = 6.27331
  Prefactor  = 0.0001
  norm       = 13.6468
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.27918
  Prefactor  = 0.225953
  Prefactor  = 4.51895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875371
  Prefactor  = 0.899412
 **********
 **   18 **HESSE 
 **********

 FCN=   4208.427     FROM HESSE     STATUS=OK           655 CALLS     5010 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.282        26.532        .58318E-04   -1.4332    
   3  Prefactor     .10000E-03    29.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1793        6.5471        .13566E-03   -1.5136    
   5  Prefactor     4.3750        136.00        .19184E-03   -1.5290    
   6  Prefactor     .10000E-03    9.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9951        .17909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4686        10.573        .73390E-03   -1.5161    
  11  Prefactor     68.208        48.839        .48600E-04   -1.4054    
  12  Prefactor     65.358        60.940        .24828E-03   -1.4089    
  13  Prefactor     3.0790        11.160        .23125E-03   -1.5357    
  14  norm          2.8477        25.335        .24084E-03   -1.5370    
  15  norm          .10000E-03    2.1489        .92859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8078        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9105        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5929        5.9512        .14440E-03   -1.5194    
  19  Prefactor     6.2733        136.00        .15938E-03   -1.5207    
  20  Prefactor     .10000E-03    17.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.647        8.2948        .10041E-03   -1.4969    
  22  Prefactor     .10000E-03    54.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .52172        .89739E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.2792        5.3058        .12563E-03   -1.5207    
  25  Prefactor     .22595        18.741        .18852E-02   -1.5613    
  26  Prefactor     4.5189        36.352        .18995E-03   -1.5283    
  27  Prefactor     .10000E-03    25.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.9367        .88075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.6308        .26900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    61.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .87537        .23830        .23169E-03   -.97331    
  32  Prefactor     .89941        .25963        .25331E-03   -.96162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59753e-09
Minuit parameter uncertainties:
  1  4.72287e-06
  2  26.5391
  3  6.86313e-05
  4  6.54771
  5  48.9077
  6  1.42071e-05
  7  1.7103e-05
  8  2.89661e-06
  9  5.15524e-05
  10  10.5761
  11  48.8677
  12  60.9979
  13  11.1676
  14  16.997
  15  6.49448e-08
  16  3.44935e-06
  17  3.14356e-06
  18  5.95169
  19  58.5684
  20  3.42846e-05
  21  8.29546
  22  0.000310177
  23  4.57106e-06
  24  5.30622
  25  4.11606
  26  25.6547
  27  1.30718e-05
  28  2.84896e-06
  29  3.05851e-05
  30  1.96133e-05
  31  0.238584
  32  0.259989
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.449e-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:  8.994e-01  2.600e-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:  8.754e-01  2.386e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853424/likelihoodResults_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.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) = 4208.4286303
delta logL = -0.00160968916134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4208.42702062
delta logL = -6.50106812827e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6230       1.0000          .0000       5.0000    
     3 'Normalizat'    .87537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89941       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=   4208.427     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      225 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    192.53        .10604E-02** at limit **
   2  alpha         1.6186        2.5855        .50000        .53703E-06
   3  Normalizat    .87537        .41469E-01    .23169E-03   -.34348E-06
   4  Prefactor     .89941        .46163E-01    .25331E-03   -.71810E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.61856
  Normalizat = 0.87537
  Prefactor  = 0.899413
 **********
 **   18 **HESSE 
 **********

 FCN=   4208.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    609.47        .21207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6186        4.1751        .50000       -.36032    
   3  Normalizat    .87537        .12950        .92677E-05   -.97331    
   4  Prefactor     .89941        .14414        .10132E-04   -.96162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24473e-09
Minuit parameter uncertainties:
  1  0.00247961
  2  1817.82
  3  0.129548
  4  0.144199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853424': 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) = 4208.42702061
delta logL = 1.05046638055e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.480e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.619e+00  1.818e+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:  8.994e-01  1.442e-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:  8.754e-01  1.295e-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/853424/cmap_HighResolution_605836801_606096001_4FGL_J2324.7-4041_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-05', job_status='DONE', photon_flux_upper_limit='3.43e-08', time_completed='2021-09-29 17:06:49.021406', job_id='853424', GAL2='0.90', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632960409.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1414' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 853424: <4FGL_J2324.7-4041_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1414 351.182 -40.6834 605836801 606096001 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 :                                   712.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

