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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin298
RA = 351.182, Dec = -40.6834
tmin = 316569601, tmax = 316828801
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='846839', job_status='RUN', time_executed='2021-09-29 16:37:38.163676', time_epoch_executed='1632958658.16' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846839/ft1_4FGL_J2324.7-4041_daily_bin298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846839/ft1_4FGL_J2324.7-4041_daily_bin298.fits outfile=/scratch/kocevski/846839/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin298.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=316569601.0 tmax=316828801.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.47
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.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/846839/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin298.fits evtable="EVENTS" outfile="/scratch/kocevski/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.fits" evtable="EVENTS" scfile=/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits sctable="SC_DATA" outfile=/scratch/kocevski/846839/ltcube_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.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/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits
.....................!
real 12.52
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits sctable="SC_DATA" expcube=/scratch/kocevski/846839/ltcube_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.fits outfile=/scratch/kocevski/846839/expmap_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.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/846839/ltcube_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.fits
.....................!
real 191.37
user 185.53
sys 5.30

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/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.fits scfile=/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits outfile=/scratch/kocevski/846839/cmap_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.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.57
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/846839/ft2_4FGL_J2324.7-4041_daily_bin298.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846839/Model_4FGL_J2324.7-4041_daily_bin298.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/846839/ft1_filtered_4FGL_J2324.7-4041_daily_bin298.fits.....................!
real 40.33
user 38.91
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2564       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7062       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.511       1.0000         .10000E-03   10000.    
    24 'norm      '    10.164       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.832       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15104E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.439       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7411       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1388       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69159       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=   4960.673     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4379 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.985       -.29008E-06** at limit **
   2  Prefactor     2.0484        134.54        .11936E-04   -.26431E-04
   3  Prefactor     42.376        40.256        .76258E-05   -.68422E-05
   4  Prefactor     .10000E-03    1.2302       -.13917E-07** at limit **
   5  Prefactor     .10000E-03    13.688       -.28443E-08** at limit **
   6  Prefactor     .10000E-03    3.3676        .27055E-07** at limit **
   7  Prefactor     2.2576        41.698       -.37935E-05   -.69773E-04
   8  Prefactor     81.384        33.848       -.12946E-06   -.11550E-04
   9  Prefactor     .30042        15.561        .69310E-06   -.87246E-04
  10  Prefactor     5.7052        7.5364        .13186E-05   -.12182E-03
  11  Prefactor     .10000E-03    18.665        .31910E-07** at limit **
  12  Prefactor     .10000E-03    33.198       -.12600E-07** at limit **
  13  Prefactor     .10000E-03    7.4203       -.22949E-07** at limit **
  14  norm          .10000E-03    6.9034       -.19955E-07** at limit **
  15  norm          .10000E-03    3.9839        .99062E-08** at limit **
  16  norm          .10000E-03    3.1795       -.34549E-07** at limit **
  17  norm          .10000E-03    2.9915       -.34756E-08** at limit **
  18  Prefactor     .10000E-03    2.1333        .56084E-10** at limit **
  19  Prefactor     25.449        43.336        .15569E-05   -.97844E-05
  20  Prefactor     .10000E-03    14.877        .43949E-07** at limit **
  21  norm          .10000E-03    5.1455        .53416E-08** at limit **
  22  Prefactor     .10000E-03    7.2456        .55092E-07** at limit **
  23  norm          23.511        3.2280       -.18561E-06    .21136E-04
  24  norm          10.165        7.4626       -.24555E-06   -.15086E-03
  25  Prefactor     .10000E-03    3.0023       -.25145E-06** at limit **
  26  Prefactor     28.808        38.080        .10872E-04   -.96209E-05
  27  Prefactor     .10000E-03    569.77       -.26567E-04** at limit **
  28  Prefactor     24.433        10.890        .64966E-06   -.64148E-05
  29  Prefactor     4.7337        7.5690       -.28412E-05   -.48821E-03
  30  Prefactor     .10000E-03    50.788        .46419E-06** at limit **
  31  Normalizat    1.1392        .22776       -.18482E-05    .33716E-05
  32  Prefactor     .69125        .21837        .19433E-06   -.99831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.04844
  Prefactor  = 42.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25756
  Prefactor  = 81.3838
  Prefactor  = 0.300422
  Prefactor  = 5.70521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.5106
  norm       = 10.1646
  Prefactor  = 0.0001
  Prefactor  = 28.8084
  Prefactor  = 0.000100002
  Prefactor  = 24.4331
  Prefactor  = 4.73372
  Prefactor  = 0.0001
  Normalizat = 1.13922
  Prefactor  = 0.691253
 **********
 **   18 **HESSE 
 **********

 FCN=   4960.673     FROM HESSE     STATUS=OK           653 CALLS     5032 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0484        128.00        .29134E-03   -1.5422    
   3  Prefactor     42.376        40.108        .61564E-04   -1.4405    
   4  Prefactor     .10000E-03    1.2328        .76286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3779        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2576        42.149        .27350E-03   -1.5407    
   8  Prefactor     81.384        33.839        .44524E-04   -1.3901    
   9  Prefactor     .30042        291.19        .51634E-02   -1.5598    
  10  Prefactor     5.7052        7.5124        .16815E-03   -1.5230    
  11  Prefactor     .10000E-03    18.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9198        .18074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0027        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1865        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9944        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1343        .10046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.449        43.318        .79405E-04   -1.4699    
  20  Prefactor     .10000E-03    14.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1667        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.511        3.2353        .43862E-04   -1.4738    
  24  norm          10.165        7.4581        .12568E-03   -1.5070    
  25  Prefactor     .10000E-03    3.0267        .11916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.808        37.991        .74613E-04   -1.4634    
  27  Prefactor     .10000E-03    582.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.433        11.053        .81029E-04   -1.4719    
  29  Prefactor     4.7337        7.6599        .18479E-03   -1.5273    
  30  Prefactor     .10000E-03    50.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1392        .28850        .25098E-03   -.88502    
  32  Prefactor     .69125        .26817        .32617E-03   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30295e-09
Minuit parameter uncertainties:
  1  3.68777e-06
  2  32.4576
  3  40.1334
  4  6.20802e-07
  5  9.77894e-07
  6  2.79843e-06
  7  19.525
  8  33.847
  9  18.7953
  10  7.5136
  11  6.68795e-06
  12  1.58288e-05
  13  3.80183e-06
  14  3.33498e-06
  15  3.30117e-06
  16  3.14663e-06
  17  1.95204e-06
  18  3.90189e-07
  19  43.3717
  20  4.29151e-06
  21  3.21135e-07
  22  5.21814e-06
  23  3.23532
  24  7.45874
  25  4.8839e-05
  26  38.0232
  27  0.00220979
  28  11.0541
  29  7.66147
  30  1.21379e-05
  31  0.288906
  32  0.268668
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.147e-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:  6.913e-01  2.687e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.139e+00  2.889e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846839/likelihoodResults_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.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) = 4960.67401221
delta logL = -0.00145355665518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4960.67255866
delta logL = -4.88762452733e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6237       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69125       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=   4960.673     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    50.147        .90712E-02** at limit **
   2  alpha         1.6240        2.9057        .44917       -.33529E-06
   3  Normalizat    1.1392        .20869E-01    .56756E-01    .99329E-05
   4  Prefactor     .69126        .21751E-01    .73685E-01    .20467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62395
  Normalizat = 1.13922
  Prefactor  = 0.691256
 **********
 **   18 **HESSE 
 **********

 FCN=   4960.673     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      228 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    706.65        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6240        3.3092        .17967       -.35802    
   3  Normalizat    1.1392        .15498        .25098E-03   -.88502    
   4  Prefactor     .69126        .16126        .32617E-03   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74146e-07
Minuit parameter uncertainties:
  1  2.36517e-05
  2  2871.52
  3  0.155042
  4  0.161367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846839': 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) = 4960.67255866
delta logL = 1.25510268845e-10

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.365e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.624e+00  2.872e+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:  6.913e-01  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.139e+00  1.550e-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/846839/cmap_HighResolution_316569601_316828801_4FGL_J2324.7-4041_daily_bin298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-29 16:51:00.101390', job_id='846839', GAL2='0.69', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632959460.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.26e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='298' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 846839: <4FGL_J2324.7-4041_daily_bin298> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin298 351.182 -40.6834 316569601 316828801 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

