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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1335
RA = 351.182, Dec = -40.6834
tmin = 585360001, tmax = 585619201
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='853296', job_status='RUN', time_executed='2021-09-29 16:52:36.800822', time_epoch_executed='1632959556.8' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853296/ft1_4FGL_J2324.7-4041_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853296/ft1_4FGL_J2324.7-4041_daily_bin1335.fits outfile=/scratch/kocevski/853296/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1335.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=585360001.0 tmax=585619201.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.83
user 2.63
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits" evtable="EVENTS" scfile=/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits sctable="SC_DATA" outfile=/scratch/kocevski/853296/ltcube_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.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/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits
.....................!
real 12.24
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/853296/ltcube_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.fits outfile=/scratch/kocevski/853296/expmap_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.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/853296/ltcube_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.fits
.....................!
real 190.12
user 184.97
sys 4.84

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/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits scfile=/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits outfile=/scratch/kocevski/853296/cmap_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits scfile=/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits outfile=/scratch/kocevski/853296/cmap_HighResolution_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/853296/ft2_4FGL_J2324.7-4041_daily_bin1335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853296/Model_4FGL_J2324.7-4041_daily_bin1335.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/853296/ft1_filtered_4FGL_J2324.7-4041_daily_bin1335.fits.....................!
real 33.81
user 32.55
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.9057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20873E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.824       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96790E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.056       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10962E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96843       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9718       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.0128       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.8192       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4361       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75016       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=   3978.291     FROM MIGRAD    STATUS=CONVERGED   1552 CALLS     5232 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.211        .18142E-02** at limit **
   2  Prefactor     9.9244        32.050        .12732E-03   -.11072E-04
   3  Prefactor     .10000E-03    30.524        .18142E-02** at limit **
   4  Prefactor     .10000E-03    73.653        .33225E-02** at limit **
   5  Prefactor     51.810        52.791        .55711E-04   -.23467E-05
   6  Prefactor     .16463        36.320        .67344E-01    .14288E-03
   7  Prefactor     66.351        59.726        .49275E-04   -.13405E-04
   8  Prefactor     59.291        45.832        .52103E-04   -.11128E-04
   9  Prefactor     4.2623        35.319        .19545E-03   -.11517E-04
  10  Prefactor     .10000E-03    4.6675        .13298E-02** at limit **
  11  Prefactor     18.939        108.59        .91364E-04    .39818E-05
  12  Prefactor     33.022        104.17        .69685E-04   -.21519E-04
  13  Prefactor     .10000E-03    28.180        .18142E-02** at limit **
  14  norm          15.060        20.566        .10322E-03    .77097E-06
  15  norm          .10000E-03    5.8322        .14824E-02** at limit **
  16  norm          .10000E-03    2.4063        .95486E-03** at limit **
  17  norm          .10000E-03    3.6166        .11704E-02** at limit **
  18  Prefactor     .70285        24.385        .27965E-02    .76665E-04
  19  Prefactor     .10000E-03    37.135        .18142E-02** at limit **
  20  Prefactor     .10000E-03    20.376        .18142E-02** at limit **
  21  norm          .10000E-03    5.2348        .20747E-02** at limit **
  22  Prefactor     .10000E-03    13.273        .18142E-02** at limit **
  23  norm          .97070        1.3718        .80564E-03    .49837E-03
  24  norm          .10000E-03    2.0673        .88256E-03** at limit **
  25  Prefactor     2.9716        3.5957        .12675E-03   -.72026E-04
  26  Prefactor     .10000E-03    9.5645        .18142E-02** at limit **
  27  Prefactor     .10000E-03    72.621        .18142E-02** at limit **
  28  Prefactor     .10000E-03    3.1152        .10845E-02** at limit **
  29  Prefactor     8.0141        6.0163        .59770E-03   -.31088E-03
  30  Prefactor     7.8611        121.87        .14340E-03   -.31316E-05
  31  Normalizat    1.4356        .31071        .22253E-03    .13599E-03
  32  Prefactor     .75045        .32019        .32214E-03   -.11159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.92435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.8103
  Prefactor  = 0.164627
  Prefactor  = 66.3506
  Prefactor  = 59.2912
  Prefactor  = 4.26225
  Prefactor  = 0.0001
  Prefactor  = 18.9392
  Prefactor  = 33.0223
  Prefactor  = 0.0001
  norm       = 15.0603
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.702848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.970702
  norm       = 0.0001
  Prefactor  = 2.97158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.01414
  Prefactor  = 7.86107
  Normalizat = 1.43557
  Prefactor  = 0.750452
 **********
 **   18 **HESSE 
 **********

 FCN=   3978.291     FROM HESSE     STATUS=OK           639 CALLS     5871 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9244        32.036        .50927E-05   -1.5078    
   3  Prefactor     .10000E-03    30.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    76.646        .13290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.810        52.781        .11142E-04   -1.4267    
   6  Prefactor     .16463        27.028        .78992E-01   -1.5627    
   7  Prefactor     66.351        59.721        .98551E-05   -1.4077    
   8  Prefactor     59.291        45.829        .10421E-04   -1.4166    
   9  Prefactor     4.2623        35.292        .78178E-05   -1.5295    
  10  Prefactor     .10000E-03    4.6677        .26597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.939        106.44        .36546E-05   -1.4837    
  12  Prefactor     33.022        104.15        .13937E-04   -1.4558    
  13  Prefactor     .10000E-03    28.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.060        20.559        .41289E-05   -1.4932    
  15  norm          .10000E-03    5.8328        .29649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4064        .19097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6167        .23408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .70285        23.784        .11186E-03   -1.5540    
  19  Prefactor     .10000E-03    37.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.2495        .41494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .97070        1.3566        .32226E-04   -1.5511    
  24  norm          .10000E-03    2.0675        .17651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9716        3.5951        .50699E-05   -1.5363    
  26  Prefactor     .10000E-03    9.5648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    72.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.1154        .21690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.0141        6.0131        .23908E-04   -1.5142    
  30  Prefactor     7.8611        121.80        .57359E-05   -1.5147    
  31  Normalizat    1.4356        .30964        .44505E-04   -.79605    
  32  Prefactor     .75045        .31990        .12886E-04   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97905e-10
Minuit parameter uncertainties:
  1  1.22018e-05
  2  32.0915
  3  1.10894e-05
  4  0.000170825
  5  52.8287
  6  4.21942
  7  59.7745
  8  45.8566
  9  24.5487
  10  4.12047e-06
  11  90.0413
  12  104.731
  13  5.11977e-05
  14  20.5691
  15  1.48166e-05
  16  8.72311e-07
  17  3.29928e-06
  18  8.18007
  19  0.000106195
  20  2.83299e-05
  21  6.16607e-05
  22  1.38614e-05
  23  1.3566
  24  3.97376e-06
  25  3.59533
  26  1.77814e-06
  27  8.43622e-05
  28  5.65357e-06
  29  6.0135
  30  62.0374
  31  0.310042
  32  0.320692
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  8.723e-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:  7.505e-01  3.207e-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.436e+00  3.100e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853296/likelihoodResults_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3978.29311844
delta logL = -0.00172043865859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3978.29139795
delta logL = 5.3687926993e-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.6156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75046       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3978.291     FROM MIGRAD    STATUS=FAILED        93 CALLS      242 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    211.64        .95766E-03** at limit **
   2  alpha         1.4363        2.8487        .50000        .99271E-07
   3  Normalizat    1.4356        .58301E-01    .22257E-03    .76874E-04
   4  Prefactor     .75046        .63503E-01    .32206E-03    .52950E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3978.291     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      412 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    211.64        .28209E-03** at limit **
   2  alpha         1.4363        2.8487        .11397E-04    .99271E-07
   3  Normalizat    1.4356        .58301E-01    .33495E-06    .76874E-04
   4  Prefactor     .75046        .63503E-01    .14822E-06    .52950E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3978.291     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    51.109        .19153E-03** at limit **
   2  alpha         1.4384        3.9097        .50000        .27562E-06
   3  Normalizat    1.4356        .28142        .44514E-04    .76670E-04
   4  Prefactor     .75046        .30618        .12882E-04    .52774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.43838
  Normalizat = 1.43557
  Prefactor  = 0.750459
 **********
 **   18 **HESSE 
 **********

 FCN=   3978.291     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5912        .38307E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4384        4.2187        .50000       -.43857    
   3  Normalizat    1.4356        .28152        .89028E-05   -.79605    
   4  Prefactor     .75046        .30629        .25765E-05   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50226e-10
Minuit parameter uncertainties:
  1  7.00951e-05
  2  124.161
  3  0.281827
  4  0.30698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853296': 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) = 3978.29139731
delta logL = 6.89708031132e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.010e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.438e+00  1.242e+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:  7.505e-01  3.070e-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.436e+00  2.818e-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/853296/cmap_HighResolution_585360001_585619201_4FGL_J2324.7-4041_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-05', job_status='DONE', photon_flux_upper_limit='3.18e-08', time_completed='2021-09-29 17:05:30.226275', job_id='853296', GAL2='0.75', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632960330.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1335' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 853296: <4FGL_J2324.7-4041_daily_bin1335> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1335> 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) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:30 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:30 2021
Terminated at Wed Sep 29 17:05:30 2021
Results reported at Wed Sep 29 17:05:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1335 351.182 -40.6834 585360001 585619201 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

