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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1331
RA = 351.182, Dec = -40.6834
tmin = 584323201, tmax = 584582401
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='853290', job_status='RUN', time_executed='2021-09-29 16:54:09.060968', time_epoch_executed='1632959649.06' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853290/ft1_4FGL_J2324.7-4041_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853290/ft1_4FGL_J2324.7-4041_daily_bin1331.fits outfile=/scratch/kocevski/853290/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1331.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=584323201.0 tmax=584582401.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.48
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.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/853290/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/853290/ltcube_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.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/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits
.....................!
real 12.09
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/853290/ltcube_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.fits outfile=/scratch/kocevski/853290/expmap_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.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/853290/ltcube_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.fits
.....................!
real 190.27
user 185.35
sys 4.54

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/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits outfile=/scratch/kocevski/853290/cmap_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits outfile=/scratch/kocevski/853290/cmap_HighResolution_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.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/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/853290/ft2_4FGL_J2324.7-4041_daily_bin1331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853290/Model_4FGL_J2324.7-4041_daily_bin1331.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/853290/ft1_filtered_4FGL_J2324.7-4041_daily_bin1331.fits....................!
real 33.75
user 32.48
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.816       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2885       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.874       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13444E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.832       1.0000         .10000E-03   10000.    
    14 'norm      '    37.251       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8764       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.192       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1722       1.0000         .10000E-03   10000.    
    24 'norm      '    2.1656       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5907       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1776       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .70994       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3789.827     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4419 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4020        466.32        .46747E-05   -.14728E-04
   2  Prefactor     .10000E-03    18.440        .13709E-06** at limit **
   3  Prefactor     .10000E-03    5.7406        .14711E-07** at limit **
   4  Prefactor     2.7204        7.1433       -.10856E-05   -.83960E-04
   5  Prefactor     .10000E-03    32.798        .44292E-05** at limit **
   6  Prefactor     .43018        13.272       -.59011E-05    .28306E-03
   7  Prefactor     55.783        40.879        .96659E-05    .61382E-05
   8  Prefactor     3.2675        127.61        .12601E-04   -.83534E-05
   9  Prefactor     13.966        16.491       -.11967E-05   -.10040E-04
  10  Prefactor     .10000E-03    28.785       -.53237E-05** at limit **
  11  Prefactor     14.008        61.393        .46632E-04    .68625E-04
  12  Prefactor     .10000E-03    81.504       -.17569E-05** at limit **
  13  Prefactor     22.821        28.083       -.48621E-05    .47614E-04
  14  norm          37.245        19.938        .30481E-06    .23403E-04
  15  norm          2.8759        7.1509       -.35854E-07   -.22462E-03
  16  norm          .10000E-03    3.1023        .18687E-06** at limit **
  17  norm          .10000E-03    5.2480        .22870E-06** at limit **
  18  Prefactor     .10000E-03    3.1778        .20866E-06** at limit **
  19  Prefactor     11.171        54.964       -.31787E-04   -.77751E-05
  20  Prefactor     20.198        32.121       -.14919E-04    .15634E-05
  21  norm          4.4703        5.3879        .30138E-05   -.61757E-04
  22  Prefactor     .10000E-03    9.9346       -.25850E-06** at limit **
  23  norm          2.1719        1.7500        .15557E-06   -.98424E-04
  24  norm          2.1636        4.2923        .94543E-06   -.18161E-03
  25  Prefactor     .10000E-03    2.0647       -.82344E-07** at limit **
  26  Prefactor     .10000E-03    9.2697       -.16909E-07** at limit **
  27  Prefactor     .10000E-03    24.564        .14296E-05** at limit **
  28  Prefactor     1.5904        5.3217       -.56067E-06   -.53486E-03
  29  Prefactor     3.1765        3.5319       -.86739E-07   -.19805E-03
  30  Prefactor     13.476        44.528       -.15590E-05    .41241E-05
  31  Normalizat    .70992        .20519        .38822E-05    .15298E-03
  32  Prefactor     .99410        .21552       -.19561E-05    .32373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72037
  Prefactor  = 0.0001
  Prefactor  = 0.430178
  Prefactor  = 55.783
  Prefactor  = 3.26747
  Prefactor  = 13.9656
  Prefactor  = 0.0001
  Prefactor  = 14.0076
  Prefactor  = 0.0001
  Prefactor  = 22.8209
  norm       = 37.245
  norm       = 2.87595
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1713
  Prefactor  = 20.198
  norm       = 4.47031
  Prefactor  = 0.0001
  norm       = 2.17193
  norm       = 2.16359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59041
  Prefactor  = 3.17653
  Prefactor  = 13.4764
  Normalizat = 0.709918
  Prefactor  = 0.994096
 **********
 **   18 **HESSE 
 **********

 FCN=   3789.827     FROM HESSE     STATUS=OK           663 CALLS     5082 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4020        468.36        .32426E-03   -1.5471    
   2  Prefactor     .10000E-03    18.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7418        .14406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7204        7.0759        .24628E-03   -1.5378    
   5  Prefactor     .10000E-03    32.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43018        69.894        .41126E-02   -1.5577    
   7  Prefactor     55.783        40.632        .53692E-04   -1.4213    
   8  Prefactor     3.2675        124.64        .22328E-03   -1.5346    
   9  Prefactor     13.966        16.508        .10718E-03   -1.4960    
  10  Prefactor     .10000E-03    29.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.008        61.504        .10754E-03   -1.4959    
  12  Prefactor     .10000E-03    81.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.821        27.997        .83829E-04   -1.4752    
  14  norm          37.245        19.940        .65666E-04   -1.4487    
  15  norm          2.8759        7.1285        .23965E-03   -1.5369    
  16  norm          .10000E-03    3.1094        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2894        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1820        .10714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.171        54.570        .12012E-03   -1.5039    
  20  Prefactor     20.198        32.153        .89133E-04   -1.4809    
  21  norm          4.4703        5.3468        .12435E-03   -1.5285    
  22  Prefactor     .10000E-03    9.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1719        1.7359        .66853E-04   -1.5413    
  24  norm          2.1636        4.2293        .16256E-03   -1.5414    
  25  Prefactor     .10000E-03    2.0890        .86337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.2806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5904        5.2116        .22709E-03   -1.5456    
  29  Prefactor     3.1765        3.5230        .11679E-03   -1.5351    
  30  Prefactor     13.476        43.947        .10900E-03   -1.4974    
  31  Normalizat    .70992        .24039        .23921E-03   -1.0350    
  32  Prefactor     .99410        .25375        .23328E-03   -.92927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9173e-09
Minuit parameter uncertainties:
  1  51.6607
  2  1.54337e-05
  3  2.39902e-06
  4  7.07811
  5  4.36547e-05
  6  10.9785
  7  40.6523
  8  40.4513
  9  16.5133
  10  0.00019767
  11  58.8048
  12  0.000133629
  13  28.013
  14  19.9435
  15  7.13056
  16  6.27925e-06
  17  2.30039e-05
  18  4.53552e-06
  19  49.4536
  20  32.1807
  21  5.34733
  22  1.44066e-05
  23  1.73592
  24  4.22989
  25  1.18731e-06
  26  1.71839e-06
  27  1.0014e-05
  28  5.21304
  29  3.52326
  30  44.0531
  31  0.240751
  32  0.254051
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.941e-01  2.541e-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:  7.099e-01  2.408e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853290/likelihoodResults_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.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) = 3789.82869914
delta logL = -0.00151440059926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3789.82718469
delta logL = 4.94082996738e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6135       1.0000          .0000       5.0000    
     3 'Normalizat'    .70991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99411       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=   3789.827     FROM MIGRAD    STATUS=FAILED        88 CALLS      227 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    708.99        .10623E-02** at limit **
   2  alpha         1.4482        3.1583        .18009       -.75753E-09
   3  Normalizat    .70992        .13295        .23921E-03    .68437E-05
   4  Prefactor     .99409        .15217        .23329E-03   -.63109E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3789.827     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      419 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    708.99        .27249E-03** at limit **
   2  alpha         1.4482        3.1583        .32657E-06   -.75753E-09
   3  Normalizat    .70992        .13295        .31438E-07    .68437E-05
   4  Prefactor     .99409        .15217        .86934E-08   -.63109E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3789.827     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      447 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2209        .21246E-03** at limit **
   2  alpha         1.4491        3.8571        .72036E-02    .71807E-07
   3  Normalizat    .70992        .21701        .95685E-05    .68912E-05
   4  Prefactor     .99409        .24839        .93314E-05   -.62134E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44911
  Normalizat = 0.70992
  Prefactor  = 0.994092
 **********
 **   18 **HESSE 
 **********

 FCN=   3789.827     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2205        .42491E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4491        3.9023        .14407E-02   -.43384    
   3  Normalizat    .70992        .21727        .19137E-05   -1.0350    
   4  Prefactor     .99409        .24869        .18663E-05   -.92927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50366e-11
Minuit parameter uncertainties:
  1  2.64133e-05
  2  164.687
  3  0.217535
  4  0.248979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853290': 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) = 3789.82718419
delta logL = 5.54669441044e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.941e-01  2.490e-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:  7.099e-01  2.175e-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/853290/cmap_HighResolution_584323201_584582401_4FGL_J2324.7-4041_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-09-29 17:06:12.453068', job_id='853290', GAL2='0.99', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632960372.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1331' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 853290: <4FGL_J2324.7-4041_daily_bin1331> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1331> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:28 2021
Job was executed on host(s) <bullet0124>, 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:06:13 2021
Results reported at Wed Sep 29 17:06:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1331 351.182 -40.6834 584323201 584582401 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            945 sec.

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

