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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1339
RA = 351.182, Dec = -40.6834
tmin = 586396801, tmax = 586656001
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='853302', job_status='RUN', time_executed='2021-09-29 16:53:11.971937', time_epoch_executed='1632959591.97' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853302

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853302/ft1_4FGL_J2324.7-4041_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853302/ft1_4FGL_J2324.7-4041_daily_bin1339.fits outfile=/scratch/kocevski/853302/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1339.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.59
user 2.42
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/853302/ltcube_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.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/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits
.....................!
real 8.32
user 7.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/853302/ltcube_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.fits outfile=/scratch/kocevski/853302/expmap_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.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/853302/ltcube_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.fits
.....................!
real 191.83
user 187.18
sys 4.34

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/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits scfile=/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits outfile=/scratch/kocevski/853302/cmap_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits scfile=/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits outfile=/scratch/kocevski/853302/cmap_HighResolution_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/853302/ft2_4FGL_J2324.7-4041_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853302/Model_4FGL_J2324.7-4041_daily_bin1339.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/853302/ft1_filtered_4FGL_J2324.7-4041_daily_bin1339.fits.....................!
real 27.78
user 26.55
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20847E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9488       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0911       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.180       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.078       1.0000         .10000E-03   10000.    
    21 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5496       1.0000         .10000E-03   10000.    
    24 'norm      '    10.821       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.2923       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .14479E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3079       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .63300       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=   2762.716     FROM MIGRAD    STATUS=CONVERGED   1489 CALLS     4995 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.262        .18142E-02** at limit **
   2  Prefactor     18.464        26.934        .93217E-04   -.14635E-04
   3  Prefactor     .10000E-03    17.702        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.9152        .22471E-03** at limit **
   5  Prefactor     11.658        54.153        .11749E-03   -.11611E-05
   6  Prefactor     .10000E-03    4.6975        .11116E-02** at limit **
   7  Prefactor     .10000E-03    21.522        .18142E-02** at limit **
   8  Prefactor     54.026        37.082        .54568E-04    .49230E-04
   9  Prefactor     .10024E-03    52.554        .75059E-01** at limit **
  10  Prefactor     .10000E-03    4.9554        .11417E-02** at limit **
  11  Prefactor     7.9516        42.414        .14222E-03    .75143E-05
  12  Prefactor     .10000E-03    134.97        .18142E-02** at limit **
  13  Prefactor     .10000E-03    31.557        .18142E-02** at limit **
  14  norm          .10000E-03    25.952        .18142E-02** at limit **
  15  norm          .10000E-03    7.0105        .13547E-02** at limit **
  16  norm          .10000E-03    3.3248        .93573E-03** at limit **
  17  norm          .10000E-03    5.0635        .11546E-02** at limit **
  18  Prefactor     8.0898        8.2567        .14095E-03    .16212E-04
  19  Prefactor     38.187        63.752        .64865E-04   -.23924E-04
  20  Prefactor     40.073        61.431        .63316E-04    .12569E-05
  21  norm          .10000E-03    7.0101        .13459E-02** at limit **
  22  Prefactor     .10000E-03    26.069        .18142E-02** at limit **
  23  norm          1.5497        1.5467        .62817E-04    .14867E-03
  24  norm          10.814        9.2635        .12179E-03   -.15448E-04
  25  Prefactor     .10000E-03    1.7075        .67008E-03** at limit **
  26  Prefactor     .10000E-03    169.56        .36285E-03** at limit **
  27  Prefactor     .10000E-03    30.204        .18142E-02** at limit **
  28  Prefactor     9.2896        9.9915        .13147E-03   -.10697E-03
  29  Prefactor     .10000E-03    3.4738        .95047E-03** at limit **
  30  Prefactor     .10000E-03    163.92        .18142E-02** at limit **
  31  Normalizat    1.3083        .33182        .21418E-03    .11957E-03
  32  Prefactor     .63251        .33655        .31328E-03    .79293E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0264
  Prefactor  = 0.000100236
  Prefactor  = 0.0001
  Prefactor  = 7.95159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.08979
  Prefactor  = 38.1868
  Prefactor  = 40.0732
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54971
  norm       = 10.8145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.28961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30833
  Prefactor  = 0.632507
 **********
 **   18 **HESSE 
 **********

 FCN=   2762.716     FROM HESSE     STATUS=OK           635 CALLS     5630 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.464        26.931        .37287E-05   -1.4848    
   3  Prefactor     .10000E-03    17.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9152        .44941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.658        54.140        .46997E-05   -1.5025    
   6  Prefactor     .10000E-03    4.6976        .22233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.026        37.081        .10914E-04   -1.4237    
   9  Prefactor     .10024E-03    41.714        .85687E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9555        .22834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9516        42.407        .56887E-05   -1.5144    
  12  Prefactor     .10000E-03    134.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0114        .27093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3248        .18715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0636        .23092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0898        8.2559        .56380E-05   -1.5139    
  19  Prefactor     38.187        63.754        .25946E-05   -1.4471    
  20  Prefactor     40.073        61.411        .25326E-05   -1.4441    
  21  norm          .10000E-03    7.0111        .26918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5497        1.5466        .25127E-05   -1.5459    
  24  norm          10.814        9.2630        .48717E-05   -1.5050    
  25  Prefactor     .10000E-03    1.7075        .13402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    169.57        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    30.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.2896        9.9907        .52589E-05   -1.5098    
  29  Prefactor     .10000E-03    3.4743        .19009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    163.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3083        .33191        .42836E-04   -.83318    
  32  Prefactor     .63251        .33685        .12531E-04   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78579e-10
Minuit parameter uncertainties:
  1  8.32887e-06
  2  26.9492
  3  3.55782e-06
  4  2.20602e-05
  5  50.3203
  6  1.89139e-06
  7  1.39737e-05
  8  37.0973
  9  0.00627754
  10  7.82461e-06
  11  36.7665
  12  4.1108e-05
  13  0.000125639
  14  3.08403e-05
  15  2.11584e-05
  16  8.02893e-07
  17  6.06104e-06
  18  8.25707
  19  63.8682
  20  61.5083
  21  3.75854e-06
  22  5.90545e-05
  23  1.54668
  24  9.26424
  25  9.40016e-07
  26  0.000177024
  27  4.79894e-07
  28  9.99249
  29  8.06323e-06
  30  0.000177223
  31  0.332457
  32  0.337932
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  8.029e-07  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:  6.325e-01  3.379e-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.308e+00  3.325e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853302/likelihoodResults_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.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) = 2762.71701732
delta logL = -0.00120237178726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2762.71581538
delta logL = -4.27179202234e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6234       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63226       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=   2762.716     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      225 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2518        .93573E-03** at limit **
   2  alpha         1.6200        2.8430        .17968        .88832E-07
   3  Normalizat    1.3083        .31222        .21417E-03   -.30903E-03
   4  Prefactor     .63250        .32982        .31328E-03   -.31243E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62004
  Normalizat = 1.30833
  Prefactor  = 0.632504
 **********
 **   18 **HESSE 
 **********

 FCN=   2762.716     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3250        .18715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6200        3.6625        .71873E-02   -.35969    
   3  Normalizat    1.3083        .31249        .42835E-04   -.83318    
   4  Prefactor     .63250        .33010        .62657E-04   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92143e-10
Minuit parameter uncertainties:
  1  7.2838e-05
  2  287.304
  3  0.312945
  4  0.331124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853302': 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) = 2762.71581495
delta logL = -2.77395884041e-11

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.284e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.620e+00  2.873e+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:  6.325e-01  3.311e-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.308e+00  3.129e-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/853302/cmap_HighResolution_586396801_586656001_4FGL_J2324.7-4041_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-05', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-09-29 17:03:27.344694', job_id='853302', GAL2='0.63', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632960207.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='-2.77e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1339' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 853302: <4FGL_J2324.7-4041_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1339 351.182 -40.6834 586396801 586656001 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 :                                   586.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

