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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin575
RA = 351.17, Dec = 31.2573
tmin = 388368001, tmax = 388627201
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='831884', job_status='RUN', time_executed='2021-09-29 15:48:24.601164', time_epoch_executed='1632955704.6' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831884/ft1_4FGL_J2324.6+3115_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831884/ft1_4FGL_J2324.6+3115_daily_bin575.fits outfile=/scratch/kocevski/831884/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin575.fits ra=351.17 dec=31.2573 rad=12.0 tmin=388368001.0 tmax=388627201.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 4.47
user 4.19
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.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/831884/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin575.fits evtable="EVENTS" outfile="/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.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.94
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/831884/ltcube_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.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/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits
.....................!
real 11.83
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/831884/ltcube_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits outfile=/scratch/kocevski/831884/expmap_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.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/831884/ltcube_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits
.....................!
real 191.10
user 185.14
sys 4.43

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits outfile=/scratch/kocevski/831884/cmap_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.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.17 yref=31.2573 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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits outfile=/scratch/kocevski/831884/cmap_HighResolution_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.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.17 yref=31.2573 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831884/Model_4FGL_J2324.6+3115_daily_bin575.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/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits.....................!
real 109.09
user 107.19
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits', '/scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits', expMap='/scratch/kocevski/831884/expmap_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits', expCube='/scratch/kocevski/831884/ltcube_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831884/Model_4FGL_J2324.6+3115_daily_bin575.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/831884/ft1_filtered_4FGL_J2324.6+3115_daily_bin575.fits
Spacecraft file(s): /scratch/kocevski/831884/ft2_4FGL_J2324.6+3115_daily_bin575.fits
Exposure map: /scratch/kocevski/831884/expmap_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits
Exposure cube: /scratch/kocevski/831884/ltcube_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831884/Model_4FGL_J2324.6+3115_daily_bin575.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) = 10000.0565259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.535       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    47.272       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.530       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6521       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.117       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94175       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10000.03     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2611 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.351        16.734       -.29306E-05   -.38398E-06
   2  Prefactor     .10000E-03    2.4913       -.22482E-07** at limit **
   3  norm          5.5298        1.6117        .48517E-07    .24593E-04
   4  Prefactor     37.582        44.938       -.74644E-06    .44975E-05
   5  Prefactor     6.5260        20.777       -.29854E-05   -.31488E-04
   6  Prefactor     .10000E-03    15.797        .34068E-07** at limit **
   7  Prefactor     18.196        7.7745       -.19508E-06    .31081E-03
   8  Prefactor     6.8969        8.2443       -.13389E-05   -.99395E-04
   9  Prefactor     15.530        21.386        .85423E-05    .83994E-04
  10  norm          .10000E-03    .54262       -.61305E-07** at limit **
  11  Prefactor     .15545E-01    12.735       -.18089E-06    .31048E-04
  12  Prefactor     .53143        4.7660       -.36114E-05    .12384E-02
  13  Prefactor     .10000E-03    20.272       -.15970E-05** at limit **
  14  norm          47.271        10.360        .23953E-05    .13020E-03
  15  norm          3.1376        8.3514        .21873E-05   -.13856E-03
  16  Prefactor     47.527        24.321       -.68741E-05    .86634E-04
  17  norm          3.9510        2.8559        .66230E-07    .54046E-03
  18  Prefactor     10.284        10.267       -.12680E-05    .30101E-04
  19  Prefactor     2.5306        87.423        .64723E-05   -.22987E-04
  20  Prefactor     10.057        83.343       -.25429E-05    .79701E-05
  21  Prefactor     16.116        10.781       -.10194E-05    .30784E-04
  22  Normalizat    .94205        .20135        .27231E-05    .25500E-03
  23  Prefactor     .95955        .96626E-01   -.60635E-06    .93872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3514
  Prefactor  = 0.0001
  norm       = 5.52979
  Prefactor  = 37.5821
  Prefactor  = 6.52603
  Prefactor  = 0.0001
  Prefactor  = 18.1965
  Prefactor  = 6.89687
  Prefactor  = 15.5302
  norm       = 0.0001
  Prefactor  = 0.0155448
  Prefactor  = 0.531431
  Prefactor  = 0.0001
  norm       = 47.2712
  norm       = 3.13758
  Prefactor  = 47.5274
  norm       = 3.95104
  Prefactor  = 10.2835
  Prefactor  = 2.53057
  Prefactor  = 10.0566
  Prefactor  = 16.1163
  Normalizat = 0.942054
  Prefactor  = 0.959546
 **********
 **   18 **HESSE 
 **********

 FCN=   10000.03     FROM HESSE     STATUS=OK           386 CALLS     2997 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.351        16.706        .11890E-03   -1.5034    
   2  Prefactor     .10000E-03    2.5023        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5298        1.6105        .62728E-04   -1.5238    
   4  Prefactor     37.582        44.963        .65375E-04   -1.4481    
   5  Prefactor     6.5260        20.779        .15700E-03   -1.5197    
   6  Prefactor     .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.196        7.7730        .93887E-04   -1.4855    
   8  Prefactor     6.8969        8.2565        .15278E-03   -1.5183    
   9  Prefactor     15.530        21.421        .10162E-03   -1.4920    
  10  norm          .10000E-03    .56072        .14367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15545E-01    15.923        .10319       -1.5683    
  12  Prefactor     .53143        32.011        .38747E-02   -1.5562    
  13  Prefactor     .10000E-03    20.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          47.271        10.378        .58319E-04   -1.4332    
  15  norm          3.1376        8.3007        .22885E-03   -1.5354    
  16  Prefactor     47.527        24.404        .58161E-04   -1.4328    
  17  norm          3.9510        2.8385        .13443E-03   -1.5310    
  18  Prefactor     10.284        10.267        .12494E-03   -1.5066    
  19  Prefactor     2.5306        87.149        .25032E-03   -1.5390    
  20  Prefactor     10.057        82.083        .12626E-03   -1.5074    
  21  Prefactor     16.116        10.717        .99766E-04   -1.4905    
  22  Normalizat    .94205        .23144        .37777E-03   -.94998    
  23  Prefactor     .95955        .11273        .18410E-03   -.94090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1075e-08
Minuit parameter uncertainties:
  1  16.7133
  2  2.46712e-06
  3  1.61047
  4  45.0035
  5  20.8016
  6  1.32538e-05
  7  7.77342
  8  8.25782
  9  21.4316
  10  4.85456e-06
  11  0.9921
  12  8.25283
  13  4.5345e-05
  14  10.378
  15  8.30376
  16  24.4094
  17  2.8386
  18  10.2684
  19  29.7474
  20  57.57
  21  10.7183
  22  0.231686
  23  0.112755
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.753e+01  2.441e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.595e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.421e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.81
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 7.84e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.68e-05

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) = 9999.98498072
delta logL = 0.0466472096468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9999.97995378
delta logL = 0.0516741490555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.360       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7061       1.0000          .0000       10.000    
     3 'Normalizat'    .95555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   9999.980     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      294 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.363        25.385        .55961E-04   -.91265E-03
   2  Index         2.7063        .51187        .78372E-02   -.38856E-03
   3  Normalizat    .95495        .22633        .37559E-03    .18712E-03
   4  Prefactor     .95486        .10964        .18449E-03    .43956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3625
  Index      = 2.70626
  Normalizat = 0.954954
  Prefactor  = 0.954856
 **********
 **   18 **HESSE 
 **********

 FCN=   9999.980     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.363        24.978        .11192E-04   -1.4273    
   2  Index         2.7063        .50331        .31349E-03   -.47659    
   3  Normalizat    .95495        .22649        .15023E-04   -.94555    
   4  Prefactor     .95486        .10969        .36898E-04   -.94250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23428e-09
Minuit parameter uncertainties:
  1  24.9829
  2  0.504389
  3  0.226713
  4  0.109714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831884': 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) = 9999.97995023
delta logL = 0.0516776997083

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.136e+01  2.498e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.706e+00  5.044e-01  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.549e-01  1.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.550e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.21
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.71 +/- 0.50
Photon Flux (Free Index): 1.43e-07 +/- 7.43e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/831884/cmap_HighResolution_388368001_388627201_4FGL_J2324.6+3115_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='3.42e-05', photon_flux_error='7.84e-08', dlogl='5.17e-02', energy_flux='3.26e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-29 16:01:43.522987', photon_index_error2='0.50', photon_index2='2.71', ts='6.81', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.94', time_epoch_completed='1632956503.52', return_code='0', job_id='831884', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='7.43e-08', ts2='7.21', photon_index='2.88' WHERE bin_id='575' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:01:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 831884: <4FGL_J2324.6+3115_daily_bin575> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin575> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:26 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:45:28 2021
Terminated at Wed Sep 29 16:01:44 2021
Results reported at Wed Sep 29 16:01:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin575 351.17 31.2573 388368001 388627201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

