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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin831
RA = 351.182, Dec = -40.6834
tmin = 454723201, tmax = 454982401
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='851441', job_status='RUN', time_executed='2021-09-29 16:47:51.451909', time_epoch_executed='1632959271.45' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='831'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851441/ft1_4FGL_J2324.7-4041_daily_bin831.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851441/ft1_4FGL_J2324.7-4041_daily_bin831.fits outfile=/scratch/kocevski/851441/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin831.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=454723201.0 tmax=454982401.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.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851441/ft1_filtered_4FGL_J2324.7-4041_daily_bin831.fits" evtable="EVENTS" scfile=/scratch/kocevski/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits sctable="SC_DATA" outfile=/scratch/kocevski/851441/ltcube_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.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/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits
.....................!
real 12.33
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851441/ft1_filtered_4FGL_J2324.7-4041_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits sctable="SC_DATA" expcube=/scratch/kocevski/851441/ltcube_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.fits outfile=/scratch/kocevski/851441/expmap_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.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/851441/ltcube_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.fits
.....................!
real 191.52
user 185.39
sys 5.59

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/851441/ft1_filtered_4FGL_J2324.7-4041_daily_bin831.fits scfile=/scratch/kocevski/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits outfile=/scratch/kocevski/851441/cmap_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851441/ft1_filtered_4FGL_J2324.7-4041_daily_bin831.fits scfile=/scratch/kocevski/851441/ft2_4FGL_J2324.7-4041_daily_bin831.fits outfile=/scratch/kocevski/851441/cmap_HighResolution_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9312       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.4729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13416E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.2240       1.0000         .10000E-03   10000.    
    24 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41151       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .38867E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.5605       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.3793       1.0000         .10000E-03   10000.    
    30 'Prefactor '    158.10       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96734       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99631       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=   4889.003     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4418 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.740        30.840        .61658E-07   -.63124E-05
   2  Prefactor     .10000E-03    18.537        .12833E-06** at limit **
   3  Prefactor     9.1512        46.500        .22162E-05    .66120E-05
   4  Prefactor     .48436        3.0591        .25006E-06   -.28064E-03
   5  Prefactor     49.008        49.311        .31662E-07   -.20408E-04
   6  Prefactor     7.9335        9.1943        .25393E-05   -.73987E-04
   7  Prefactor     17.660        26.587        .38092E-06   -.29631E-06
   8  Prefactor     22.054        31.753        .60672E-06   -.17680E-05
   9  Prefactor     .10000E-03    5.0060       -.23316E-07** at limit **
  10  Prefactor     .10000E-03    5.3237       -.74454E-07** at limit **
  11  Prefactor     29.754        30.067       -.36170E-06   -.66222E-05
  12  Prefactor     .10000E-03    29.274       -.27245E-06** at limit **
  13  Prefactor     7.9244        20.031        .64113E-06   -.13263E-04
  14  norm          .10000E-03    17.475       -.27167E-06** at limit **
  15  norm          .10000E-03    2.4298        .28172E-08** at limit **
  16  norm          .10000E-03    2.4729       -.17407E-07** at limit **
  17  norm          7.4729        7.9898        .14943E-06   -.33002E-05
  18  Prefactor     .10000E-03    3.1582       -.24363E-07** at limit **
  19  Prefactor     .10000E-03    54.183       -.22531E-05** at limit **
  20  Prefactor     .10000E-03    41.442        .95621E-06** at limit **
  21  norm          12.699        5.5380       -.99136E-08    .53591E-05
  22  Prefactor     .10000E-03    11.604       -.73691E-07** at limit **
  23  norm          4.2245        1.6596        .36886E-07   -.30353E-03
  24  norm          .10000E-03    2.6166       -.52179E-07** at limit **
  25  Prefactor     .41494        3.3557        .45596E-06   -.27611E-03
  26  Prefactor     .10008E-03    31.125        .36120E-08** at limit **
  27  Prefactor     .10000E-03    65.050        .20898E-05** at limit **
  28  Prefactor     2.5530        8.3455        .14410E-05   -.27178E-04
  29  Prefactor     5.3798        4.9285        .37929E-06   -.82872E-04
  30  Prefactor     158.20        92.931        .20966E-05    .12585E-03
  31  Normalizat    .96714        .22347       -.28370E-05   -.66419E-05
  32  Prefactor     .99657        .22350        .13469E-05   -.13889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7404
  Prefactor  = 0.0001
  Prefactor  = 9.15125
  Prefactor  = 0.484357
  Prefactor  = 49.0085
  Prefactor  = 7.93353
  Prefactor  = 17.6597
  Prefactor  = 22.0535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.754
  Prefactor  = 0.0001
  Prefactor  = 7.92438
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.47294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6993
  Prefactor  = 0.0001
  norm       = 4.22453
  norm       = 0.0001
  Prefactor  = 0.414941
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 2.55301
  Prefactor  = 5.37984
  Prefactor  = 158.195
  Normalizat = 0.967143
  Prefactor  = 0.996566
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.003     FROM HESSE     STATUS=OK           671 CALLS     5089 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.740        30.840        .95098E-04   -1.4865    
   2  Prefactor     .10000E-03    18.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1512        46.668        .13227E-03   -1.5103    
   4  Prefactor     .48436        11.648        .22457E-02   -1.5569    
   5  Prefactor     49.008        49.278        .57275E-04   -1.4307    
   6  Prefactor     7.9335        9.2986        .71175E-03   -1.5145    
   7  Prefactor     17.660        26.571        .95305E-04   -1.4867    
   8  Prefactor     22.054        31.736        .85290E-04   -1.4768    
   9  Prefactor     .10000E-03    5.0183        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3547        .15749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.754        30.070        .73451E-04   -1.4616    
  12  Prefactor     .10000E-03    29.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9244        19.992        .14237E-03   -1.5145    
  14  norm          .10000E-03    17.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4313        .10644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4794        .10734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4729        7.9887        .14671E-03   -1.5161    
  18  Prefactor     .10000E-03    3.1769        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.699        5.5343        .10354E-03   -1.4995    
  22  Prefactor     .10000E-03    11.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.2245        1.6509        .51242E-04   -1.5297    
  24  norm          .10000E-03    2.6600        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .41494        12.610        .21375E-02   -1.5579    
  26  Prefactor     .10008E-03    43.314        .94912E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    65.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.5530        8.3094        .25513E-03   -1.5388    
  29  Prefactor     5.3798        4.9286        .13790E-03   -1.5244    
  30  Prefactor     158.20        95.147        .16033E-03   -1.3186    
  31  Normalizat    .96714        .25613        .24861E-03   -.94139    
  32  Prefactor     .99657        .26161        .26822E-03   -.92844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85512e-10
Minuit parameter uncertainties:
  1  30.8678
  2  1.37095e-05
  3  41.3822
  4  4.75109
  5  49.3193
  6  9.30033
  7  26.5884
  8  31.7604
  9  5.05262e-06
  10  3.89115e-06
  11  30.0858
  12  1.68306e-05
  13  20.0092
  14  1.62751e-06
  15  4.08886e-07
  16  1.27705e-06
  17  7.98984
  18  3.56764e-07
  19  0.00021212
  20  0.000159734
  21  5.53457
  22  4.98158e-06
  23  1.65091
  24  5.02138e-06
  25  4.57536
  26  0.00373357
  27  0.000192692
  28  8.3131
  29  4.929
  30  95.2399
  31  0.256455
  32  0.261947
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.277e-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:  9.966e-01  2.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.671e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 3.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851441/likelihoodResults_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.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) = 4889.00485264
delta logL = -0.00185587975648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4889.00299673
delta logL = 2.76031641988e-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.6294       1.0000          .0000       5.0000    
     3 'Normalizat'    .96714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99657       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=   4889.003     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0454        .10749E-02** at limit **
   2  alpha         2.0436        3.4178        .17944       -.10961E-07
   3  Normalizat    .96714        .23262        .24861E-03   -.77968E-04
   4  Prefactor     .99657        .25564        .26822E-03   -.74599E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04355
  Normalizat = 0.96714
  Prefactor  = 0.996568
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.003     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5910        .21497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0436        2.5848        .71775E-02   -.18361    
   3  Normalizat    .96714        .23289        .99443E-05   -.94140    
   4  Prefactor     .99657        .25593        .10729E-04   -.92844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43306e-11
Minuit parameter uncertainties:
  1  9.76708e-06
  2  377.303
  3  0.233131
  4  0.256246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851441': 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) = 4889.00299589
delta logL = 8.67759808898e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.767e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.044e+00  3.773e+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:  9.966e-01  2.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.671e-01  2.331e-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/851441/cmap_HighResolution_454723201_454982401_4FGL_J2324.7-4041_daily_bin831.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-05', job_status='DONE', photon_flux_upper_limit='3.00e-08', time_completed='2021-09-29 17:00:48.161634', job_id='851441', GAL2='1.00', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632960048.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='831' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 851441: <4FGL_J2324.7-4041_daily_bin831> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin831 351.182 -40.6834 454723201 454982401 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 :                                   774.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

