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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin846
RA = 351.17, Dec = 31.2573
tmin = 458611201, tmax = 458870401
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='833390', job_status='RUN', time_executed='2021-09-29 15:54:30.149798', time_epoch_executed='1632956070.15' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833390/ft1_4FGL_J2324.6+3115_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833390/ft1_4FGL_J2324.6+3115_daily_bin846.fits outfile=/scratch/kocevski/833390/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin846.fits ra=351.17 dec=31.2573 rad=12.0 tmin=458611201.0 tmax=458870401.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.61
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.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/833390/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin846.fits evtable="EVENTS" outfile="/scratch/kocevski/833390/ft1_filtered_4FGL_J2324.6+3115_daily_bin846.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/833390/ft1_filtered_4FGL_J2324.6+3115_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/833390/ltcube_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.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/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833390/ft1_filtered_4FGL_J2324.6+3115_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/833390/ltcube_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.fits outfile=/scratch/kocevski/833390/expmap_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.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/833390/ltcube_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.fits
.....................!
real 190.07
user 185.45
sys 4.28

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/833390/ft1_filtered_4FGL_J2324.6+3115_daily_bin846.fits scfile=/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits outfile=/scratch/kocevski/833390/cmap_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833390/ft1_filtered_4FGL_J2324.6+3115_daily_bin846.fits scfile=/scratch/kocevski/833390/ft2_4FGL_J2324.6+3115_daily_bin846.fits outfile=/scratch/kocevski/833390/cmap_HighResolution_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .96210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8696       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0915       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0268       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.494       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9242       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9144       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74491       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0437       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=   7882.898     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2495 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1465        15.164        .99212E-06    .20793E-04
   2  Prefactor     .10000E-03    1.8930        .37967E-07** at limit **
   3  norm          .96205        .79005       -.14610E-10   -.10062E-03
   4  Prefactor     .10000E-03    19.769       -.59012E-06** at limit **
   5  Prefactor     .10000E-03    8.5023       -.15560E-05** at limit **
   6  Prefactor     .10000E-03    20.225        .10452E-05** at limit **
   7  Prefactor     7.2734        6.7224        .12749E-05   -.52517E-03
   8  Prefactor     4.8697        10.049        .26066E-06   -.31677E-04
   9  Prefactor     .10000E-03    8.5364        .13588E-05** at limit **
  10  norm          3.7645        1.4850        .76107E-08   -.10031E-03
  11  Prefactor     .10000E-03    11.649        .57372E-06** at limit **
  12  Prefactor     13.400        10.362       -.94902E-07   -.35944E-04
  13  Prefactor     10.723        11.452       -.22230E-06    .51063E-04
  14  norm          5.0913        4.1335        .61035E-07    .42291E-04
  15  norm          5.0268        5.4440       -.18510E-06   -.76607E-04
  16  Prefactor     18.495        16.037        .28741E-07   -.15076E-04
  17  norm          1.3680        2.3064        .34127E-06   -.21229E-03
  18  Prefactor     .10000E-03    15.253       -.51154E-06** at limit **
  19  Prefactor     8.9211        34.307       -.86853E-06   -.40005E-04
  20  Prefactor     .10000E-03    72.590       -.55797E-06** at limit **
  21  Prefactor     8.9082        7.9403       -.20211E-07   -.35440E-04
  22  Normalizat    .74494        .20077        .41170E-06   -.51686E-04
  23  Prefactor     1.0437        .10172       -.39374E-06   -.33018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14646
  Prefactor  = 0.0001
  norm       = 0.962049
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.27344
  Prefactor  = 4.86965
  Prefactor  = 0.000100001
  norm       = 3.76455
  Prefactor  = 0.0001
  Prefactor  = 13.4005
  Prefactor  = 10.7228
  norm       = 5.09134
  norm       = 5.02676
  Prefactor  = 18.495
  norm       = 1.36798
  Prefactor  = 0.0001
  Prefactor  = 8.92109
  Prefactor  = 0.0001
  Prefactor  = 8.90817
  Normalizat = 0.744941
  Prefactor  = 1.04366
 **********
 **   18 **HESSE 
 **********

 FCN=   7882.898     FROM HESSE     STATUS=OK           378 CALLS     2873 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1465        15.042        .22832E-03   -1.5353    
   2  Prefactor     .10000E-03    1.8979        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .96205        .76394        .69358E-03   -1.5512    
   4  Prefactor     .10000E-03    19.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2734        7.0478        .74365E-03   -1.5169    
   8  Prefactor     4.8697        10.048        .18228E-03   -1.5267    
   9  Prefactor     .10000E-03    9.0275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7645        1.4831        .65185E-04   -1.5320    
  11  Prefactor     .10000E-03    11.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.400        10.350        .10942E-03   -1.4976    
  13  Prefactor     10.723        11.462        .61177E-03   -1.5053    
  14  norm          5.0913        4.1272        .15062E-03   -1.5257    
  15  norm          5.0268        5.4515        .17935E-03   -1.5260    
  16  Prefactor     18.495        16.024        .93134E-04   -1.4848    
  17  norm          1.3680        2.2994        .16859E-03   -1.5474    
  18  Prefactor     .10000E-03    15.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9211        34.561        .13417E-03   -1.5111    
  20  Prefactor     .10000E-03    72.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9082        7.9027        .13424E-03   -1.5111    
  22  Normalizat    .74494        .22582        .37100E-03   -1.0214    
  23  Prefactor     1.0437        .11537        .16463E-03   -.91288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26261e-10
Minuit parameter uncertainties:
  1  13.7646
  2  2.64987e-06
  3  0.763946
  4  0.000116216
  5  0.000203477
  6  0.00020193
  7  7.04858
  8  10.0519
  9  0.000180027
  10  1.48316
  11  8.37582e-05
  12  10.351
  13  11.4642
  14  4.1274
  15  5.45202
  16  16.0275
  17  2.2995
  18  8.01668e-05
  19  34.6391
  20  0.00024863
  21  7.90365
  22  0.226104
  23  0.115394
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.850e+01  1.603e+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:  1.044e+00  1.154e-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:  7.449e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/833390/likelihoodResults_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.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) = 7882.88538331
delta logL = 0.0124859207162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7882.8802601
delta logL = 0.0176091352687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.165       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6981       1.0000          .0000       10.000    
     3 'Normalizat'    .75174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0409       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=   7882.880     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.180        526.39        .22298E-02    .40634E-04
   2  Index         2.6993        5.7196        .22895        .44104E-04
   3  Normalizat    .75192        .10219        .83427E-01    .60149E-04
   4  Prefactor     1.0409        .51427E-01    .40471E-01   -.21529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1802
  Index      = 2.69929
  Normalizat = 0.751916
  Prefactor  = 1.04086
 **********
 **   18 **HESSE 
 **********

 FCN=   7882.880     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.180        18.443        .89194E-04   -1.4809    
   2  Index         2.6993        .90988        .12277E-01   -.47815    
   3  Normalizat    .75192        .22150        .36943E-03   -1.0188    
   4  Prefactor     1.0409        .11376        .16482E-03   -.91380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57989e-11
Minuit parameter uncertainties:
  1  18.4479
  2  0.916372
  3  0.221769
  4  0.113784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833390': 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) = 7882.88025731
delta logL = 0.0176119198295

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.018e+01  1.845e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.699e+00  9.164e-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:  1.041e+00  1.138e-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:  7.519e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.70 +/- 0.92
Photon Flux (Free Index): 5.57e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.20e-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/833390/cmap_HighResolution_458611201_458870401_4FGL_J2324.6+3115_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='1.34e-05', photon_flux_error='5.15e-08', dlogl='1.76e-02', energy_flux='1.27e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-29 16:07:02.295871', photon_index_error2='0.92', photon_index2='2.70', ts='1.89', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.20e-05', EG='0.74', time_epoch_completed='1632956822.3', return_code='0', job_id='833390', GAL2='1.04', EG2='0.75', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.05e-08', ts2='1.93', photon_index='2.88' WHERE bin_id='846' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:07:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 833390: <4FGL_J2324.6+3115_daily_bin846> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin846 351.17 31.2573 458611201 458870401 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 :                                   751.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

