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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin768
RA = 351.17, Dec = 31.2573
tmin = 438393601, tmax = 438652801
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='833275', job_status='RUN', time_executed='2021-09-29 15:52:44.476001', time_epoch_executed='1632955964.48' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833275/ft1_4FGL_J2324.6+3115_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833275/ft1_4FGL_J2324.6+3115_daily_bin768.fits outfile=/scratch/kocevski/833275/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin768.fits ra=351.17 dec=31.2573 rad=12.0 tmin=438393601.0 tmax=438652801.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.37
user 6.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.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/833275/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin768.fits evtable="EVENTS" outfile="/scratch/kocevski/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/833275/ltcube_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.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/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits
.....................!
real 12.21
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/833275/ltcube_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits outfile=/scratch/kocevski/833275/expmap_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.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/833275/ltcube_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits
.....................!
real 190.01
user 185.10
sys 4.53

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/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits scfile=/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits outfile=/scratch/kocevski/833275/cmap_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits scfile=/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits outfile=/scratch/kocevski/833275/cmap_HighResolution_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits', '/scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits', expMap='/scratch/kocevski/833275/expmap_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits', expCube='/scratch/kocevski/833275/ltcube_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833275/Model_4FGL_J2324.6+3115_daily_bin768.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/833275/ft1_filtered_4FGL_J2324.6+3115_daily_bin768.fits
Spacecraft file(s): /scratch/kocevski/833275/ft2_4FGL_J2324.6+3115_daily_bin768.fits
Exposure map: /scratch/kocevski/833275/expmap_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits
Exposure cube: /scratch/kocevski/833275/ltcube_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833275/Model_4FGL_J2324.6+3115_daily_bin768.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) = 4343.08429994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23614E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.436       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.534       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.451       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2417       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.937       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    92.236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1675       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84548       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=   4343.058     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2566 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.904        23.986        .80941E-05    .45764E-03
   2  Prefactor     .10000E-03    5.1297        .59327E-08** at limit **
   3  norm          .10000E-03    1.2320        .38722E-07** at limit **
   4  Prefactor     .10000E-03    40.177        .67988E-06** at limit **
   5  Prefactor     .10000E-03    296.44       -.53462E-05** at limit **
   6  Prefactor     43.939        31.315        .22603E-06    .30528E-04
   7  Prefactor     .10000E-03    5.8424        .12576E-07** at limit **
   8  Prefactor     .10000E-03    8.4379        .94633E-09** at limit **
   9  Prefactor     55.455        51.261        .28048E-05    .18522E-03
  10  norm          .10000E-03    .88607        .11407E-07** at limit **
  11  Prefactor     44.536        35.470       -.19365E-06   -.66977E-04
  12  Prefactor     3.5129        23.026        .45663E-07   -.14577E-04
  13  Prefactor     .10000E-03    35.688       -.32143E-06** at limit **
  14  norm          15.450        14.874       -.13266E-06   -.17149E-03
  15  norm          3.2449        11.267        .65231E-05   -.70676E-03
  16  Prefactor     27.934        38.915       -.15801E-06   -.82129E-04
  17  norm          1.5903        3.4175       -.63128E-08   -.15257E-03
  18  Prefactor     .10000E-03    9.8233        .67367E-08** at limit **
  19  Prefactor     92.226        57.418       -.14129E-05   -.16209E-03
  20  Prefactor     .10000E-03    60.826       -.74258E-06** at limit **
  21  Prefactor     .10000E-03    4.6715        .11212E-06** at limit **
  22  Normalizat    1.1679        .28781       -.58537E-06   -.62600E-05
  23  Prefactor     .84523        .13607       -.66262E-06    .21882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 43.9385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.4555
  norm       = 0.0001
  Prefactor  = 44.5359
  Prefactor  = 3.51288
  Prefactor  = 0.0001
  norm       = 15.4498
  norm       = 3.24491
  Prefactor  = 27.934
  norm       = 1.59035
  Prefactor  = 0.0001
  Prefactor  = 92.2262
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.16794
  Prefactor  = 0.845232
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.058     FROM HESSE     STATUS=OK           362 CALLS     2928 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.904        25.644        .12118E-03   -1.5047    
   2  Prefactor     .10000E-03    5.1524        .14574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0677        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    308.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.939        31.326        .60479E-04   -1.4381    
   7  Prefactor     .10000E-03    5.8645        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.455        51.618        .53875E-04   -1.4217    
  10  norm          .10000E-03    .89320        .60504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.536        35.524        .60077E-04   -1.4372    
  12  Prefactor     3.5129        22.615        .21558E-03   -1.5333    
  13  Prefactor     .10000E-03    35.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.450        14.910        .10189E-03   -1.4922    
  15  norm          3.2449        13.444        .11248E-02   -1.5348    
  16  Prefactor     27.934        39.030        .75797E-04   -1.4650    
  17  norm          1.5903        3.3612        .16796E-03   -1.5456    
  18  Prefactor     .10000E-03    9.8259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     92.226        57.838        .41844E-04   -1.3784    
  20  Prefactor     .10000E-03    61.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6866        .13907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1679        .33318        .33821E-03   -.87599    
  23  Prefactor     .84523        .15809        .18726E-03   -.98082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29655e-09
Minuit parameter uncertainties:
  1  25.67
  2  1.26903e-06
  3  2.24233e-05
  4  0.000150961
  5  0.00191861
  6  31.3382
  7  2.34219e-08
  8  6.19489e-06
  9  51.6594
  10  1.0189e-06
  11  35.5413
  12  17.8359
  13  2.10529e-05
  14  14.914
  15  13.2149
  16  39.0661
  17  3.36165
  18  2.67637e-06
  19  57.8735
  20  0.000734619
  21  4.36223e-05
  22  0.333788
  23  0.15818
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.793e+01  3.907e+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:  8.452e-01  1.582e-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:  1.168e+00  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 3.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833275/likelihoodResults_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.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) = 4343.05305953
delta logL = 0.00532984422625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4343.05102912
delta logL = 0.00736024645812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.074       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7461       1.0000          .0000       10.000    
     3 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84270       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.

 FCN=   4343.051     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      225 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.074        1369.6        .18265E-02    .10421E-03
   2  Index         2.7463        5.0992        .22756        .17457E-04
   3  Normalizat    1.1732        .13840        .76266E-01    .95100E-05
   4  Prefactor     .84293        .83032E-01    .44270E-01    .16033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.074
  Index      = 2.7463
  Normalizat = 1.17324
  Prefactor  = 0.84293
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.051     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.074        37.496        .73060E-04   -1.4611    
   2  Index         2.7463        1.0409        .10834E-01   -.46759    
   3  Normalizat    1.1732        .32133        .33755E-03   -.87434    
   4  Prefactor     .84293        .15283        .18748E-03   -.98165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32736e-11
Minuit parameter uncertainties:
  1  37.5251
  2  1.05062
  3  0.32187
  4  0.152905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833275': 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) = 4343.05102771
delta logL = 0.00736166238494

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.007e+01  3.753e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.746e+00  1.051e+00  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:  8.429e-01  1.529e-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:  1.173e+00  3.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.75 +/- 1.05
Photon Flux (Free Index): 8.64e-08 +/- 1.01e-07
Energy Flux (Free Index): 2.01e-05 +/- 2.40e-05

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/833275/cmap_HighResolution_438393601_438652801_4FGL_J2324.6+3115_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-02', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='7.36e-03', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-09-29 16:02:06.900550', photon_index_error2='1.05', photon_index2='2.75', ts='0.97', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='3.00e-07', energy_flux_error2='2.40e-05', EG='1.17', time_epoch_completed='1632956526.9', return_code='0', job_id='833275', GAL2='0.84', EG2='1.17', return_code2='0', photon_flux_error2='1.01e-07', ts2='1.01', photon_index='2.88' WHERE bin_id='768' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 833275: <4FGL_J2324.6+3115_daily_bin768> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin768> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:50:23 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:50:24 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:50:24 2021
Terminated at Wed Sep 29 16:02:07 2021
Results reported at Wed Sep 29 16:02:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin768 351.17 31.2573 438393601 438652801 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 :                                   560.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

