/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 222 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin349
RA = 351.182, Dec = -40.6834
tmin = 329788801, tmax = 330048001
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='846958', job_status='RUN', time_executed='2021-09-29 16:39:26.830945', time_epoch_executed='1632958766.83' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846958/ft1_4FGL_J2324.7-4041_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846958/ft1_4FGL_J2324.7-4041_daily_bin349.fits outfile=/scratch/kocevski/846958/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin349.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=329788801.0 tmax=330048001.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846958/ft1_filtered_4FGL_J2324.7-4041_daily_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/846958/ltcube_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.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/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits
.....................!
real 12.75
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846958/ft1_filtered_4FGL_J2324.7-4041_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/846958/ltcube_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.fits outfile=/scratch/kocevski/846958/expmap_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.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/846958/ltcube_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.fits
.....................!
real 190.70
user 186.15
sys 4.18

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/846958/ft1_filtered_4FGL_J2324.7-4041_daily_bin349.fits scfile=/scratch/kocevski/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits outfile=/scratch/kocevski/846958/cmap_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846958/ft1_filtered_4FGL_J2324.7-4041_daily_bin349.fits scfile=/scratch/kocevski/846958/ft2_4FGL_J2324.7-4041_daily_bin349.fits outfile=/scratch/kocevski/846958/cmap_HighResolution_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3999       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1963       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.813       1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0886       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7047       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.091       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41848       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3109       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.447       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85612       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0015       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=   4768.607     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4299 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    83.946        .63822E-05** at limit **
   2  Prefactor     .10000E-03    12.286       -.95256E-06** at limit **
   3  Prefactor     5.3080        37.135       -.41115E-05   -.11820E-03
   4  Prefactor     .10000E-03    1.1043        .14860E-07** at limit **
   5  Prefactor     .10000E-03    13.904        .54365E-06** at limit **
   6  Prefactor     4.1953        6.4164        .53617E-05   -.69274E-03
   7  Prefactor     .10000E-03    53.695       -.77178E-06** at limit **
   8  Prefactor     .10000E-03    33.916        .17322E-05** at limit **
   9  Prefactor     12.521        16.499        .49628E-07   -.73998E-05
  10  Prefactor     .10000E-03    2.5045        .64398E-07** at limit **
  11  Prefactor     13.205        21.518       -.22788E-06    .12422E-04
  12  Prefactor     .10000E-03    37.722       -.52887E-06** at limit **
  13  Prefactor     18.829        23.018       -.19612E-06   -.26290E-04
  14  norm          .10000E-03    8.1128        .96893E-07** at limit **
  15  norm          .10000E-03    2.3795        .75573E-08** at limit **
  16  norm          5.0883        4.0058       -.66033E-07   -.44486E-04
  17  norm          .10000E-03    4.5530        .11888E-06** at limit **
  18  Prefactor     6.7030        6.3764        .12983E-06    .30269E-04
  19  Prefactor     .10000E-03    12.735        .54827E-06** at limit **
  20  Prefactor     .10000E-03    53.148       -.15274E-05** at limit **
  21  norm          .10000E-03    1.3092        .61069E-07** at limit **
  22  Prefactor     .10000E-03    13.090        .10983E-05** at limit **
  23  norm          19.088        3.0622       -.81380E-07   -.14142E-03
  24  norm          .10000E-03    1.6141        .76359E-07** at limit **
  25  Prefactor     .41701        5.4458        .16611E-05   -.28587E-03
  26  Prefactor     .10000E-03    14.789       -.14185E-05** at limit **
  27  Prefactor     .10000E-03    22.332        .39250E-07** at limit **
  28  Prefactor     .10000E-03    3.9387       -.52013E-06** at limit **
  29  Prefactor     3.3119        5.1793        .15090E-07   -.11382E-03
  30  Prefactor     13.384        50.556       -.12495E-04   -.23149E-03
  31  Normalizat    .85606        .20281       -.21138E-06   -.42197E-04
  32  Prefactor     1.0016        .21790       -.31391E-06   -.29432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 5.30802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19527
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.5214
  Prefactor  = 0.0001
  Prefactor  = 13.2045
  Prefactor  = 0.0001
  Prefactor  = 18.8287
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.08835
  norm       = 0.0001
  Prefactor  = 6.70301
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0885
  norm       = 0.0001
  Prefactor  = 0.417006
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31194
  Prefactor  = 13.3845
  Normalizat = 0.856061
  Prefactor  = 1.00163
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.607     FROM HESSE     STATUS=OK           649 CALLS     4948 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    85.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3080        37.878        .17293E-03   -1.5247    
   4  Prefactor     .10000E-03    1.1106        .70861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1953        6.5588        .98366E-03   -1.5298    
   7  Prefactor     .10000E-03    54.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.521        16.535        .11316E-03   -1.5000    
  10  Prefactor     .10000E-03    2.5088        .10672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.205        21.524        .11012E-03   -1.4981    
  12  Prefactor     .10000E-03    37.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.829        23.044        .92342E-04   -1.4840    
  14  norm          .10000E-03    8.1316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3798        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0883        4.0083        .11971E-03   -1.5257    
  17  norm          .10000E-03    4.5682        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7030        6.3723        .15497E-03   -1.5190    
  19  Prefactor     .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3148        .77150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.088        3.0534        .43354E-04   -1.4834    
  24  norm          .10000E-03    1.6214        .85665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .41701        5.6627        .31051E-03   -1.5579    
  26  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.9583        .13363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.3119        5.1739        .18594E-03   -1.5344    
  30  Prefactor     13.384        52.984        .10923E-03   -1.4976    
  31  Normalizat    .85606        .24326        .25462E-03   -.98022    
  32  Prefactor     1.0016        .26144        .26023E-03   -.92675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40948e-09
Minuit parameter uncertainties:
  1  0.00212968
  2  0.000116725
  3  28.3841
  4  2.26215e-06
  5  6.67535e-05
  6  6.55993
  7  0.000373883
  8  0.000225885
  9  16.5413
  10  1.64596e-06
  11  21.5369
  12  0.00015931
  13  23.055
  14  1.37416e-06
  15  1.2997e-07
  16  4.00851
  17  1.50827e-06
  18  6.37294
  19  5.9818e-05
  20  0.000449995
  21  1.73435e-07
  22  0.000121197
  23  3.05346
  24  3.00335e-07
  25  3.07335
  26  0.000181409
  27  6.91588e-05
  28  3.75359e-05
  29  5.17457
  30  53.171
  31  0.24357
  32  0.261773
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.088e+00  4.009e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.002e+00  2.618e-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.561e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.61
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 9.83e-09
Energy Flux (Fixed Index): 2.70e-05 +/- 2.13e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4767.37149077
delta logL = 1.23512448139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4767.36555065
delta logL = 1.24106459525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6620       1.0000         .10000E-03   10000.    
     2 'alpha     '    .81063       1.0000          .0000       5.0000    
     3 'Normalizat'    .85766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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.

 FCN=   4767.366     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      192 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6667        3.7932        .46597E-02   -.96970E-04
   2  alpha         .81119        .42930        .35527       -.98264E-05
   3  Normalizat    .85771        .19659        .44358E-01    .71616E-04
   4  Prefactor     1.0033        .21694        .44580E-01    .69820E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.66673
  alpha      = 0.811192
  Normalizat = 0.857709
  Prefactor  = 1.00328
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.366     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6667        4.6804        .11769E-03   -1.5276    
   2  alpha         .81119        .52506        .15753E-02   -.74167    
   3  Normalizat    .85771        .23515        .25436E-03   -.97963    
   4  Prefactor     1.0033        .25956        .26006E-03   -.92620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03605e-12
Minuit parameter uncertainties:
  1  4.68076
  2  0.532429
  3  0.23543
  4  0.259887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846958': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4767.36554997
delta logL = 1.24106528374

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.667e+00  4.681e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  8.112e-01  5.324e-01  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.003e+00  2.599e-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.577e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.09
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.81 +/- 0.53
Photon Flux (Free Index): 7.33e-09 +/- 6.24e-09
Energy Flux (Free Index): 1.16e-04 +/- 1.26e-04

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/846958/cmap_HighResolution_329788801_330048001_4FGL_J2324.7-4041_daily_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.16e-04', photon_flux_error='9.83e-09', dlogl='1.24e+00', energy_flux='2.70e-05', photon_flux2='7.33e-09', job_status='DONE', time_completed='2021-09-29 16:50:45.648814', photon_index_error2='0.53', photon_index2='0.81', ts='13.61', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.26e-04', EG='0.86', time_epoch_completed='1632959445.65', return_code='0', job_id='846958', GAL2='1.00', EG2='0.86', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.24e-09', ts2='16.09', photon_index='1.62' WHERE bin_id='349' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 846958: <4FGL_J2324.7-4041_daily_bin349> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin349> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:35:33 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:35:36 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:35:36 2021
Terminated at Wed Sep 29 16:50:46 2021
Results reported at Wed Sep 29 16:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin349 351.182 -40.6834 329788801 330048001 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 :                                   677.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            913 sec.

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

