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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin658
RA = 351.182, Dec = -40.6834
tmin = 409881601, tmax = 410140801
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='849639', job_status='RUN', time_executed='2021-09-29 16:44:37.205432', time_epoch_executed='1632959077.21' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849639/ft1_4FGL_J2324.7-4041_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849639/ft1_4FGL_J2324.7-4041_daily_bin658.fits outfile=/scratch/kocevski/849639/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin658.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.21
user 5.88
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.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/849639/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/849639/ft1_filtered_4FGL_J2324.7-4041_daily_bin658.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/849639/ft1_filtered_4FGL_J2324.7-4041_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/849639/ltcube_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.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/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits
.....................!
real 12.08
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849639/ft1_filtered_4FGL_J2324.7-4041_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/849639/ltcube_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.fits outfile=/scratch/kocevski/849639/expmap_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.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/849639/ltcube_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.fits
.....................!
real 191.33
user 185.17
sys 5.26

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/849639/ft1_filtered_4FGL_J2324.7-4041_daily_bin658.fits scfile=/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits outfile=/scratch/kocevski/849639/cmap_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849639/ft1_filtered_4FGL_J2324.7-4041_daily_bin658.fits scfile=/scratch/kocevski/849639/ft2_4FGL_J2324.7-4041_daily_bin658.fits outfile=/scratch/kocevski/849639/cmap_HighResolution_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.444       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1242       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.537       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.586       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4890       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.143       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .47205       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.4841       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68909       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87250       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=   3242.451     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4358 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.562       -.14834E-04** at limit **
   2  Prefactor     .10000E-03    33.684        .49275E-05** at limit **
   3  Prefactor     .10000E-03    18.407        .15420E-04** at limit **
   4  Prefactor     7.5609        4.7228       -.11256E-05   -.93510E-04
   5  Prefactor     16.976        51.161       -.13559E-04   -.27195E-04
   6  Prefactor     .10000E-03    9.7529        .17520E-07** at limit **
   7  Prefactor     18.097        25.740        .30550E-05   -.50245E-04
   8  Prefactor     10.244        28.607        .38578E-04   -.30755E-05
   9  Prefactor     .10000E-03    4.8353       -.98174E-07** at limit **
  10  Prefactor     .10000E-03    8.9104       -.92369E-06** at limit **
  11  Prefactor     .10000E-03    33.622        .51418E-05** at limit **
  12  Prefactor     .10000E-03    38.119        .46100E-06** at limit **
  13  Prefactor     69.434        35.644        .25073E-05   -.10631E-04
  14  norm          4.0991        19.501        .39737E-05   -.53249E-04
  15  norm          .10000E-03    4.3193        .35312E-08** at limit **
  16  norm          .10000E-03    2.7162        .28954E-07** at limit **
  17  norm          25.536        13.192        .55181E-06   -.49361E-04
  18  Prefactor     .10000E-03    5.1132        .21787E-08** at limit **
  19  Prefactor     .10000E-03    14.289       -.22203E-05** at limit **
  20  Prefactor     .10000E-03    36.258        .55671E-05** at limit **
  21  norm          .10000E-03    1.9180        .67117E-07** at limit **
  22  Prefactor     .10000E-03    9.8076        .12639E-05** at limit **
  23  norm          19.585        3.7755       -.10192E-06    .61569E-04
  24  norm          1.4869        4.8153       -.10247E-05   -.48628E-03
  25  Prefactor     .10000E-03    4.1637        .11224E-06** at limit **
  26  Prefactor     .10000E-03    19.905       -.16147E-04** at limit **
  27  Prefactor     16.121        78.919       -.25056E-04   -.16022E-04
  28  Prefactor     .43714        6.4911        .97479E-06    .15355E-03
  29  Prefactor     1.4746        7.8757        .44046E-05   -.51469E-03
  30  Prefactor     .10000E-03    62.236        .10784E-06** at limit **
  31  Normalizat    .68942        .23144       -.29722E-05   -.20079E-03
  32  Prefactor     .87242        .23885       -.27671E-05   -.13783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5609
  Prefactor  = 16.9762
  Prefactor  = 0.0001
  Prefactor  = 18.0975
  Prefactor  = 10.2438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.4345
  norm       = 4.09909
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.5357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5849
  norm       = 1.48691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1214
  Prefactor  = 0.43714
  Prefactor  = 1.47459
  Prefactor  = 0.0001
  Normalizat = 0.689425
  Prefactor  = 0.872424
 **********
 **   18 **HESSE 
 **********

 FCN=   3242.451     FROM HESSE     STATUS=OK           653 CALLS     5011 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5609        4.7250        .92673E-04   -1.5158    
   5  Prefactor     16.976        51.211        .96594E-04   -1.4884    
   6  Prefactor     .10000E-03    9.9017        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.097        25.710        .94121E-04   -1.4857    
   8  Prefactor     10.244        28.523        .12525E-03   -1.5068    
   9  Prefactor     .10000E-03    4.8380        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1158        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.434        35.673        .48169E-04   -1.4039    
  14  norm          4.0991        19.498        .19849E-03   -1.5303    
  15  norm          .10000E-03    4.3210        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7195        .91655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.536        13.193        .79270E-04   -1.4697    
  18  Prefactor     .10000E-03    5.1243        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9224        .76962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8188        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.585        3.7776        .44667E-04   -1.4823    
  24  norm          1.4869        4.7954        .21458E-03   -1.5464    
  25  Prefactor     .10000E-03    4.2161        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.121        79.207        .99686E-04   -1.4905    
  28  Prefactor     .43714        43.417        .26322E-02   -1.5576    
  29  Prefactor     1.4746        7.7712        .29053E-03   -1.5465    
  30  Prefactor     .10000E-03    62.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68942        .27189        .25499E-03   -1.0431    
  32  Prefactor     .87242        .28110        .25021E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72067e-09
Minuit parameter uncertainties:
  1  5.73505e-05
  2  0.000180945
  3  1.29934e-05
  4  4.72527
  5  51.3444
  6  6.35902e-05
  7  25.7252
  8  28.5609
  9  2.25043e-06
  10  2.98099e-05
  11  3.31293e-05
  12  1.80266e-05
  13  35.6841
  14  17.8895
  15  1.38215e-06
  16  3.97856e-06
  17  13.1943
  18  1.80693e-06
  19  1.91132e-05
  20  7.07345e-05
  21  8.73016e-06
  22  2.35506e-06
  23  3.77767
  24  4.79663
  25  7.7604e-06
  26  6.2667e-06
  27  71.6208
  28  8.71856
  29  6.77147
  30  0.000291807
  31  0.272419
  32  0.281571
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.979e-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:  8.724e-01  2.816e-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:  6.894e-01  2.724e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849639/likelihoodResults_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.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) = 3242.45296335
delta logL = -0.00157240594217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3242.4513908
delta logL = 1.36067228595e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6088       1.0000          .0000       5.0000    
     3 'Normalizat'    .68937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87246       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=   3242.451     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      240 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.563        .92546E-02** at limit **
   2  alpha         1.3205        3.0550        .50000       -.30343E-07
   3  Normalizat    .68943        .16876E-01    .25499E-03   -.66521E-04
   4  Prefactor     .87242        .18582E-01    .25021E-03   -.75675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.32054
  Normalizat = 0.689427
  Prefactor  = 0.872423
 **********
 **   18 **HESSE 
 **********

 FCN=   3242.451     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    257.13        .96408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3205        4.2209        .50000       -.49131    
   3  Normalizat    .68943        .53463E-01    .10200E-04   -1.0431    
   4  Prefactor     .87242        .58868E-01    .10008E-04   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62961e-11
Minuit parameter uncertainties:
  1  6.02161e-05
  2  1199.43
  3  0.0534668
  4  0.0588723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849639': 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) = 3242.45138918
delta logL = 1.7590709831e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.022e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.321e+00  1.199e+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:  8.724e-01  5.887e-02  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:  6.894e-01  5.347e-02  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/849639/cmap_HighResolution_409881601_410140801_4FGL_J2324.7-4041_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-29 16:55:18.723757', job_id='849639', GAL2='0.87', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632959718.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='658' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 849639: <4FGL_J2324.7-4041_daily_bin658> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin658> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:40:51 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:40:53 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:40:53 2021
Terminated at Wed Sep 29 16:55:19 2021
Results reported at Wed Sep 29 16:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin658 351.182 -40.6834 409881601 410140801 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 :                                   637.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

