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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1377
RA = 351.182, Dec = -40.6834
tmin = 596246401, tmax = 596505601
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='853368', job_status='RUN', time_executed='2021-09-29 16:51:32.955961', time_epoch_executed='1632959492.96' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853368/ft1_4FGL_J2324.7-4041_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853368/ft1_4FGL_J2324.7-4041_daily_bin1377.fits outfile=/scratch/kocevski/853368/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1377.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=596246401.0 tmax=596505601.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 4.02
user 3.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/853368/ltcube_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.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/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits
.....................!
real 9.74
user 9.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/853368/ltcube_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.fits outfile=/scratch/kocevski/853368/expmap_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.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/853368/ltcube_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.fits
.....................!
real 155.24
user 151.15
sys 3.68

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/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits scfile=/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits outfile=/scratch/kocevski/853368/cmap_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.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.47
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits scfile=/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits outfile=/scratch/kocevski/853368/cmap_HighResolution_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/853368/ft2_4FGL_J2324.7-4041_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853368/Model_4FGL_J2324.7-4041_daily_bin1377.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/853368/ft1_filtered_4FGL_J2324.7-4041_daily_bin1377.fits.....................!
real 28.85
user 27.76
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12891E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58157E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0443       1.0000         .10000E-03   10000.    
     7 'Prefactor '    222.74       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1268       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
    20 'Prefactor '    133.90       1.0000         .10000E-03   10000.    
    21 'norm      '    4.6399       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6226       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17567E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.433       1.0000         .10000E-03   10000.    
    27 'Prefactor '    66.293       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.8847       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.5256       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1830       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70836       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=   3940.903     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4462 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.347        .10946E-06** at limit **
   2  Prefactor     .10000E-03    11.675       -.26935E-06** at limit **
   3  Prefactor     .10000E-03    70.800       -.40011E-06** at limit **
   4  Prefactor     7.7587        6.8292       -.40258E-06   -.15691E-03
   5  Prefactor     .10082E-03    47.610        .14526E-05** at limit **
   6  Prefactor     2.0422        15.055        .15089E-05   -.91923E-05
   7  Prefactor     222.74        61.962        .20225E-06   -.37743E-05
   8  Prefactor     .10000E-03    13.360       -.11441E-06** at limit **
   9  Prefactor     .10000E-03    7.4221        .21533E-07** at limit **
  10  Prefactor     13.142        10.495       -.28897E-08   -.43034E-04
  11  Prefactor     .10000E-03    16.654       -.51505E-06** at limit **
  12  Prefactor     .10000E-03    35.514        .71648E-07** at limit **
  13  Prefactor     9.1249        27.481        .41347E-05    .27481E-03
  14  norm          .10000E-03    15.098        .87023E-06** at limit **
  15  norm          .10000E-03    6.8660       -.19272E-07** at limit **
  16  norm          .10000E-03    4.0727       -.58043E-06** at limit **
  17  norm          18.867        13.361       -.55132E-07   -.12030E-04
  18  Prefactor     25.598        12.990        .58075E-06    .78891E-03
  19  Prefactor     14.379        130.14        .69001E-05    .61753E-04
  20  Prefactor     133.88        86.827       -.10501E-05   -.35703E-04
  21  norm          4.6256        11.854        .80957E-06   -.15588E-04
  22  Prefactor     .10000E-03    10.250        .15068E-06** at limit **
  23  norm          .10000E-03    1.5913       -.98485E-06** at limit **
  24  norm          4.6215        5.6010       -.41554E-06   -.33041E-04
  25  Prefactor     .10004E-03    4.2566       -.29051E-05** at limit **
  26  Prefactor     23.464        31.185        .44867E-05    .57990E-03
  27  Prefactor     66.217        67.500       -.38588E-05   -.63455E-04
  28  Prefactor     6.9112        17.156        .63028E-06   -.43193E-04
  29  Prefactor     .10000E-03    1.2326       -.48501E-07** at limit **
  30  Prefactor     9.5460        584.02        .29523E-05   -.34741E-05
  31  Normalizat    1.1833        .28621       -.51626E-05    .70855E-03
  32  Prefactor     .70820        .27145        .67959E-05    .20361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75869
  Prefactor  = 0.000100823
  Prefactor  = 2.04222
  Prefactor  = 222.741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.12492
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.8667
  Prefactor  = 25.5983
  Prefactor  = 14.3791
  Prefactor  = 133.878
  norm       = 4.62561
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.6215
  Prefactor  = 0.000100038
  Prefactor  = 23.4643
  Prefactor  = 66.2172
  Prefactor  = 6.91121
  Prefactor  = 0.0001
  Prefactor  = 9.54597
  Normalizat = 1.18332
  Prefactor  = 0.708202
 **********
 **   18 **HESSE 
 **********

 FCN=   3940.903     FROM HESSE     STATUS=OK           663 CALLS     5125 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7587        6.8126        .14244E-03   -1.5151    
   5  Prefactor     .10082E-03    48.860        .14311       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0422        14.971        .28919E-03   -1.5422    
   7  Prefactor     222.74        61.932        .13553E-03   -1.2712    
   8  Prefactor     .10000E-03    13.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4306        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.142        10.511        .11047E-03   -1.4983    
  11  Prefactor     .10000E-03    16.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1249        27.151        .13266E-03   -1.5104    
  14  norm          .10000E-03    15.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9381        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0815        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.867        13.372        .92208E-04   -1.4839    
  18  Prefactor     25.598        12.863        .79170E-04   -1.4696    
  19  Prefactor     14.379        129.74        .10617E-03   -1.4949    
  20  Prefactor     133.88        87.298        .17401E-03   -1.3389    
  21  norm          4.6256        11.644        .18684E-03   -1.5278    
  22  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9427        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6215        5.5656        .14560E-03   -1.5278    
  25  Prefactor     .10004E-03    11.682        .21708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.464        31.247        .82748E-04   -1.4739    
  27  Prefactor     66.217        67.306        .24646E-03   -1.4079    
  28  Prefactor     6.9112        16.580        .15291E-03   -1.5182    
  29  Prefactor     .10000E-03    1.2344        .68066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.5460        544.90        .12984E-03   -1.5090    
  31  Normalizat    1.1833        .33564        .24744E-03   -.87120    
  32  Prefactor     .70820        .30963        .32636E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52834e-09
Minuit parameter uncertainties:
  1  5.12136e-06
  2  5.94622e-06
  3  0.000118195
  4  6.81328
  5  0.0126909
  6  11.0625
  7  61.9503
  8  8.07295e-06
  9  1.75656e-06
  10  10.5122
  11  2.87029e-05
  12  3.74914e-06
  13  27.1882
  14  1.16908e-05
  15  3.61865e-05
  16  1.63359e-05
  17  13.3746
  18  12.8641
  19  86.6355
  20  87.3827
  21  11.6493
  22  2.21871e-05
  23  8.8602e-06
  24  5.56621
  25  0.00133837
  26  31.2685
  27  67.384
  28  16.5905
  29  5.66801e-07
  30  145.658
  31  0.336252
  32  0.310389
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.634e-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:  7.082e-01  3.104e-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:  1.183e+00  3.363e-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: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853368/likelihoodResults_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3940.90392568
delta logL = -0.00115017387952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3940.90277549
delta logL = 1.12659108709e-08

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.6291       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70821       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=   3940.843     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      275 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16294E-02    .21985        .12383E-02** at limit **
   2  alpha         5.0000        3.2976        .50000    ** at limit **
   3  Normalizat    1.1458        .64343E-01    .24744E-03    .11279E-03
   4  Prefactor     .73228        .64732E-01    .32634E-03    .17530E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00162936
  alpha      = 5
  Normalizat = 1.14575
  Prefactor  = 0.732282
 **********
 **   18 **HESSE 
 **********

 FCN=   3940.843     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16294E-02    .54112E-02    .62469E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.8469        .50000        1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1458        .31008        .49489E-04   -.88296    
   4  Prefactor     .73228        .30765        .13054E-04   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75028e-09
Minuit parameter uncertainties:
  1  0.00541119
  2  0.00193353
  3  0.310579
  4  0.308373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853368': 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) = 3940.84319786
delta logL = 0.0595776412433

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.629e-03  5.411e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  5.000e+00  1.934e-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:  7.323e-01  3.084e-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:  1.146e+00  3.106e-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/853368/cmap_HighResolution_596246401_596505601_4FGL_J2324.7-4041_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-04', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-29 17:00:57.190312', job_id='853368', GAL2='0.73', fit_tolerance='1e-08', EG2='1.15', EG='1.18', time_epoch_completed='1632960057.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.96e-02', ts2='0.13', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1377' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 853368: <4FGL_J2324.7-4041_daily_bin1377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1377 351.182 -40.6834 596246401 596505601 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 :                                   544.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            623 sec.

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

