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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1233
RA = 351.182, Dec = -40.6834
tmin = 558921601, tmax = 559180801
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='853139', job_status='RUN', time_executed='2021-09-29 16:51:22.051502', time_epoch_executed='1632959482.05' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853139

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853139/ft1_4FGL_J2324.7-4041_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853139/ft1_4FGL_J2324.7-4041_daily_bin1233.fits outfile=/scratch/kocevski/853139/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1233.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=558921601.0 tmax=559180801.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.54
user 3.31
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853139/ft1_filtered_4FGL_J2324.7-4041_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/853139/ltcube_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.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/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits
.....................!
real 11.60
user 11.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853139/ft1_filtered_4FGL_J2324.7-4041_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/853139/ltcube_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.fits outfile=/scratch/kocevski/853139/expmap_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.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/853139/ltcube_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.fits
.....................!
real 191.59
user 185.96
sys 5.25

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/853139/ft1_filtered_4FGL_J2324.7-4041_daily_bin1233.fits scfile=/scratch/kocevski/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits outfile=/scratch/kocevski/853139/cmap_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853139/ft1_filtered_4FGL_J2324.7-4041_daily_bin1233.fits scfile=/scratch/kocevski/853139/ft2_4FGL_J2324.7-4041_daily_bin1233.fits outfile=/scratch/kocevski/853139/cmap_HighResolution_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.72       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23944E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    267.79       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    189.31       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12640E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    38.871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    289.91       1.0000         .10000E-03   10000.    
    21 'norm      '    4.3134       1.0000         .10000E-03   10000.    
    22 'Prefactor '    188.55       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7508       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .16129       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.7226       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=   1071.025     FROM MIGRAD    STATUS=CONVERGED   1447 CALLS     5546 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    245.48        .18142E-02** at limit **
   2  Prefactor     .10000E-03    132.95        .18142E-02** at limit **
   3  Prefactor     .10000E-03    63.681        .18142E-02** at limit **
   4  Prefactor     100.74        102.16        .40059E-04    .16886E-05
   5  Prefactor     .10000E-03    231.92        .18142E-02** at limit **
   6  Prefactor     .10000E-03    749.68        .18142E-02** at limit **
   7  Prefactor     .10000E-03    458.96        .18142E-02** at limit **
   8  Prefactor     267.60        215.96        .12389E-03    .10755E-04
   9  Prefactor     39.077        66.915        .64080E-04    .51406E-04
  10  Prefactor     .10000E-03    52.527        .18142E-02** at limit **
  11  Prefactor     .10000E-03    6465.6        .18142E-02** at limit **
  12  Prefactor     189.25        303.03        .14676E-03    .15648E-04
  13  Prefactor     .10000E-03    583.08        .18142E-02** at limit **
  14  norm          .10000E-03    61.237        .18142E-02** at limit **
  15  norm          .10000E-03    135.63        .18142E-02** at limit **
  16  norm          .10000E-03    18.717        .13810E-02** at limit **
  17  norm          38.867        32.086        .64288E-04    .36632E-04
  18  Prefactor     .10000E-03    115.49        .18142E-02** at limit **
  19  Prefactor     .10000E-03    99.997        .18142E-02** at limit **
  20  Prefactor     289.78        206.21        .11920E-03    .25269E-04
  21  norm          4.3110        11.837        .17950E-03   -.13981E-04
  22  Prefactor     188.56        284.51        .14704E-03    .50254E-06
  23  norm          .10000E-03    16.007        .12792E-02** at limit **
  24  norm          .10000E-03    13.065        .11534E-02** at limit **
  25  Prefactor     .10000E-03    127.12        .18142E-02** at limit **
  26  Prefactor     .10000E-03    279.28        .18142E-02** at limit **
  27  Prefactor     .10000E-03    45.780        .18142E-02** at limit **
  28  Prefactor     1.7424        38.313        .31687E-03    .33044E-04
  29  Prefactor     .10000E-03    13.746        .11855E-02** at limit **
  30  Prefactor     .10000E-03    119.14        .18142E-02** at limit **
  31  Normalizat    .16116        1.0004        .72540E-03    .11864E-04
  32  Prefactor     1.7227        .69874        .25410E-03    .83890E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 267.6
  Prefactor  = 39.0772
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 189.248
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.8671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 289.776
  norm       = 4.31105
  Prefactor  = 188.564
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.161158
  Prefactor  = 1.72268
 **********
 **   18 **HESSE 
 **********

 FCN=   1071.025     FROM HESSE     STATUS=OK           625 CALLS     6171 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    245.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    132.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     100.74        102.15        .80118E-05   -1.3697    
   5  Prefactor     .10000E-03    231.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    749.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    459.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     267.60        215.95        .24778E-04   -1.2421    
   9  Prefactor     39.077        66.805        .12816E-04   -1.4457    
  10  Prefactor     .10000E-03    52.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6465.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     189.25        302.98        .29351E-04   -1.2948    
  13  Prefactor     .10000E-03    583.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    61.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    135.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.717        .27619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          38.867        32.082        .12858E-04   -1.4460    
  18  Prefactor     .10000E-03    115.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    99.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     289.78        205.94        .23841E-04   -1.2287    
  21  norm          4.3110        11.836        .71799E-05   -1.5293    
  22  Prefactor     188.56        284.42        .58818E-05   -1.2953    
  23  norm          .10000E-03    16.007        .25584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.065        .23067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    127.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    279.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    45.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7424        38.105        .12675E-04   -1.5444    
  29  Prefactor     .10000E-03    13.746        .23709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    119.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .16116        .98696        .29016E-04   -1.3242    
  32  Prefactor     1.7227        .69560        .10164E-04   -.71480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82987e-11
Minuit parameter uncertainties:
  1  0.000165638
  2  2.6252e-05
  3  2.56805e-05
  4  102.333
  5  3.01448e-05
  6  0.000314849
  7  0.00298851
  8  216.598
  9  66.9334
  10  7.65891e-05
  11  0.00491734
  12  305.538
  13  0.000167251
  14  3.83944e-05
  15  1.47981e-05
  16  0.000154491
  17  32.0967
  18  0.000142095
  19  0.000272552
  20  206.463
  21  11.8425
  22  286.536
  23  9.47849e-06
  24  6.23744e-05
  25  5.90742e-06
  26  0.000161511
  27  2.05265e-05
  28  16.3076
  29  3.77345e-06
  30  0.000202289
  31  0.79236
  32  0.699597
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.723e+00  6.996e-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.612e-01  7.924e-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: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853139/likelihoodResults_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.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) = 1071.02560571
delta logL = -0.000216460483216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1071.02539026
delta logL = -1.01073487713e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5426       1.0000          .0000       5.0000    
     3 'Normalizat'    .16120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7226       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=   1071.025     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      303 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    471.36        .23804E-02** at limit **
   2  alpha         2.0143        3.4471        .50000        .39981E-06
   3  Normalizat    .16112        .62632E-01    .72493E-03   -.10820E-02
   4  Prefactor     1.7226        .66570E-01    .25411E-03   -.31365E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  alpha      = 2.01426
  Normalizat = 0.161116
  Prefactor  = 1.72265
 **********
 **   18 **HESSE 
 **********

 FCN=   1071.025     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      332 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1884.6        .47607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0143        3.3156        .50000       -.19554    
   3  Normalizat    .16112        .14303        .14499E-03   -1.3242    
   4  Prefactor     1.7226        .15227        .50821E-04   -.71481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.71103e-08
Minuit parameter uncertainties:
  1  0.0130746
  2  2852.59
  3  0.143359
  4  0.15231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853139': 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): 102
logL (Free Index) = 1071.02538906
delta logL = 1.90640093933e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.723e+00  1.523e-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.611e-01  1.434e-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/853139/cmap_HighResolution_558921601_559180801_4FGL_J2324.7-4041_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-04', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-29 16:58:38.671163', job_id='853139', GAL2='1.72', fit_tolerance='1e-08', EG2='0.16', EG='0.16', time_epoch_completed='1632959918.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.72', dlogl='1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1233' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:58:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 853139: <4FGL_J2324.7-4041_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1233 351.182 -40.6834 558921601 559180801 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 :                                   434.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            503 sec.

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

