/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 196 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin262
RA = 351.182, Dec = -40.6834
tmin = 307238401, tmax = 307497601
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='846781', job_status='RUN', time_executed='2021-09-29 16:38:49.436451', time_epoch_executed='1632958729.44' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846781/ft1_4FGL_J2324.7-4041_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846781/ft1_4FGL_J2324.7-4041_daily_bin262.fits outfile=/scratch/kocevski/846781/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin262.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=307238401.0 tmax=307497601.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.49
user 6.21
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.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/846781/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin262.fits evtable="EVENTS" outfile="/scratch/kocevski/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/846781/ltcube_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.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/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits
.....................!
real 11.81
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/846781/ltcube_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.fits outfile=/scratch/kocevski/846781/expmap_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.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/846781/ltcube_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.fits
.....................!
real 190.35
user 185.06
sys 4.91

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/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits outfile=/scratch/kocevski/846781/cmap_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits outfile=/scratch/kocevski/846781/cmap_HighResolution_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/846781/ft2_4FGL_J2324.7-4041_daily_bin262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846781/Model_4FGL_J2324.7-4041_daily_bin262.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/846781/ft1_filtered_4FGL_J2324.7-4041_daily_bin262.fits.....................!
real 33.08
user 31.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11571E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12538E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14973E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    27.447       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10849E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    135.83       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20645E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.3053       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    26.253       1.0000         .10000E-03   10000.    
    24 'norm      '    .99275       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.109       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .58657       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2945       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=   3590.954     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4410 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.478        83.369        .30516E-06   -.75993E-05
   2  Prefactor     .10000E-03    23.834        .36848E-07** at limit **
   3  Prefactor     .10000E-03    14.134       -.10895E-06** at limit **
   4  Prefactor     .12433        4.1703       -.97706E-06    .61163E-03
   5  Prefactor     .10000E-03    30.127        .34480E-06** at limit **
   6  Prefactor     .10000E-03    2.8381        .11250E-07** at limit **
   7  Prefactor     .10000E-03    11.557        .33419E-06** at limit **
   8  Prefactor     1.7842        193.25        .15547E-05    .66913E-05
   9  Prefactor     26.836        20.700        .29881E-06    .22175E-04
  10  Prefactor     .10000E-03    10.813        .85368E-06** at limit **
  11  Prefactor     .10000E-03    12.947       -.22548E-07** at limit **
  12  Prefactor     .10000E-03    162.61        .18749E-05** at limit **
  13  Prefactor     .10000E-03    8.1954        .25402E-08** at limit **
  14  norm          27.445        21.218        .50981E-07    .16047E-04
  15  norm          .10000E-03    10.521        .79776E-07** at limit **
  16  norm          .10000E-03    8.0390       -.43632E-06** at limit **
  17  norm          .10000E-03    7.4440       -.26645E-07** at limit **
  18  Prefactor     12.035        9.6521        .67121E-07    .25795E-04
  19  Prefactor     135.81        109.49        .26863E-05    .20603E-03
  20  Prefactor     .10000E-03    231.29       -.26920E-05** at limit **
  21  norm          8.2878        11.317        .56345E-06    .40468E-03
  22  Prefactor     .10000E-03    8.8593       -.59537E-07** at limit **
  23  norm          26.253        4.0136        .40487E-07    .12180E-03
  24  norm          1.0032        9.8466       -.17025E-05    .17343E-03
  25  Prefactor     .10000E-03    1.6462       -.35528E-08** at limit **
  26  Prefactor     .10000E-03    27.629       -.42990E-07** at limit **
  27  Prefactor     .10000E-03    26.494       -.37709E-07** at limit **
  28  Prefactor     11.108        11.442        .17112E-05    .14260E-03
  29  Prefactor     .10000E-03    10.796       -.30083E-06** at limit **
  30  Prefactor     .10000E-03    26.142       -.87574E-07** at limit **
  31  Normalizat    .58657        .26845       -.53164E-06    .93414E-04
  32  Prefactor     1.2946        .27461       -.94603E-06    .11684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.4784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.124329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78415
  Prefactor  = 26.8362
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 27.4451
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0346
  Prefactor  = 135.809
  Prefactor  = 0.000100002
  norm       = 8.28782
  Prefactor  = 0.0001
  norm       = 26.2531
  norm       = 1.00318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.586573
  Prefactor  = 1.29458
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.954     FROM HESSE     STATUS=OK           651 CALLS     5061 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.478        83.546        .20454E-03   -1.3740    
   2  Prefactor     .10000E-03    23.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12433        53.748        .21845E-02   -1.5637    
   5  Prefactor     .10000E-03    30.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8429        .98596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7842        187.00        .32544E-03   -1.5441    
   9  Prefactor     26.836        20.722        .77315E-04   -1.4671    
  10  Prefactor     .10000E-03    36.531        .36790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    163.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2003        .16755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.445        21.219        .76469E-04   -1.4660    
  15  norm          .10000E-03    10.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.1242        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.4952        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.035        9.6503        .11548E-03   -1.5014    
  19  Prefactor     135.81        111.44        .34556E-04   -1.3372    
  20  Prefactor     .10000E-03    233.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.2878        11.283        .13911E-03   -1.5132    
  22  Prefactor     .10000E-03    8.8667        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          26.253        4.0133        .44711E-04   -1.4683    
  24  norm          1.0032        26.932        .27476E-02   -1.5508    
  25  Prefactor     .10000E-03    1.6477        .75084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.108        11.377        .60100E-03   -1.5041    
  29  Prefactor     .10000E-03    11.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .58657        .32248        .33618E-03   -1.0856    
  32  Prefactor     1.2946        .33070        .25733E-03   -.83468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22717e-09
Minuit parameter uncertainties:
  1  83.6481
  2  3.25976e-05
  3  1.84976e-06
  4  5.17268
  5  2.37639e-05
  6  1.31898e-06
  7  8.21326e-06
  8  36.6489
  9  20.728
  10  0.000601963
  11  8.25673e-06
  12  0.000925156
  13  5.34468e-07
  14  21.2251
  15  7.34347e-06
  16  3.4615e-05
  17  1.07398e-06
  18  9.65156
  19  111.613
  20  0.00131782
  21  11.2857
  22  5.51917e-06
  23  4.01339
  24  10.4004
  25  1.92357e-07
  26  2.56555e-06
  27  1.20203e-05
  28  11.3789
  29  1.59124e-05
  30  2.27823e-05
  31  0.323517
  32  0.331238
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.461e-05  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.295e+00  3.312e-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:  5.866e-01  3.235e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846781/likelihoodResults_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3590.95424102
delta logL = -0.000582231072713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3590.95366044
delta logL = -1.65224582815e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13634E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6697       1.0000          .0000       5.0000    
     3 'Normalizat'    .58674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2944       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.

 FCN=   3590.954     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    48.806        .90712E-02** at limit **
   2  alpha         1.7247        2.8306        .44468       -.29348E-04
   3  Normalizat    .58657        .24482        .75922E-01    .33962E-04
   4  Prefactor     1.2946        .27051        .58197E-01    .58264E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.72469
  Normalizat = 0.586573
  Prefactor  = 1.29458
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.954     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7247        3.3308        .50000       -.31532    
   3  Normalizat    .58657        .29296        .33618E-03   -1.0856    
   4  Prefactor     1.2946        .32435        .25733E-03   -.83468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79574e-09
Minuit parameter uncertainties:
  1  0.000470419
  2  2.44919
  3  0.293735
  4  0.324855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846781': 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) = 3590.95365757
delta logL = 1.2158525351e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  4.704e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.725e+00  2.449e+00  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.295e+00  3.249e-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:  5.866e-01  2.937e-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/846781/cmap_HighResolution_307238401_307497601_4FGL_J2324.7-4041_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-04', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-29 16:50:04.914254', job_id='846781', GAL2='1.29', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632959404.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='262' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 846781: <4FGL_J2324.7-4041_daily_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin262 351.182 -40.6834 307238401 307497601 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 :                                   672.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

