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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin718
RA = 351.17, Dec = 31.2573
tmin = 425433601, tmax = 425692801
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='833204', job_status='RUN', time_executed='2021-09-29 15:50:28.334419', time_epoch_executed='1632955828.33' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833204

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833204/ft1_4FGL_J2324.6+3115_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833204/ft1_4FGL_J2324.6+3115_daily_bin718.fits outfile=/scratch/kocevski/833204/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin718.fits ra=351.17 dec=31.2573 rad=12.0 tmin=425433601.0 tmax=425692801.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.07
user 2.85
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.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/833204/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/833204/ltcube_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.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/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits
.....................!
real 9.98
user 9.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/833204/ltcube_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.fits outfile=/scratch/kocevski/833204/expmap_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.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/833204/ltcube_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.fits
.....................!
real 191.24
user 185.71
sys 5.12

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/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits outfile=/scratch/kocevski/833204/cmap_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits outfile=/scratch/kocevski/833204/cmap_HighResolution_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.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/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/833204/ft2_4FGL_J2324.6+3115_daily_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833204/Model_4FGL_J2324.6+3115_daily_bin718.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/833204/ft1_filtered_4FGL_J2324.6+3115_daily_bin718.fits.....................!
real 92.85
user 91.38
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11940E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    106.29       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .54306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7155       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.510       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.624       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98311       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=   8141.199     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2540 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.088        21.675       -.24282E-06    .59537E-04
   2  Prefactor     .10000E-03    4.2821       -.54071E-06** at limit **
   3  norm          .10000E-03    .75907        .82011E-06** at limit **
   4  Prefactor     106.30        86.258       -.30198E-07   -.13227E-04
   5  Prefactor     37.311        24.131        .72239E-06   -.48688E-04
   6  Prefactor     .10000E-03    8.3445        .13953E-06** at limit **
   7  Prefactor     1.1796        8.2673        .26679E-05   -.23357E-04
   8  Prefactor     12.277        10.921        .41220E-07   -.27237E-04
   9  Prefactor     .10000E-03    7.2153       -.24926E-06** at limit **
  10  norm          .54336        1.4933       -.33889E-06   -.24901E-03
  11  Prefactor     2.5091        42.379       -.17407E-05    .29601E-05
  12  Prefactor     .10000E-03    3.2990       -.93010E-07** at limit **
  13  Prefactor     .10000E-03    8.6242        .13782E-06** at limit **
  14  norm          .10000E-03    1.3538       -.24007E-07** at limit **
  15  norm          .10000E-03    11.448       -.48357E-06** at limit **
  16  Prefactor     2.7159        9.6688       -.21700E-06    .10639E-04
  17  norm          4.1073        2.7777       -.50155E-07    .11379E-03
  18  Prefactor     .10000E-03    4.2749       -.29229E-07** at limit **
  19  Prefactor     .10000E-03    16.865        .35604E-06** at limit **
  20  Prefactor     61.512        64.712        .52392E-07    .68148E-05
  21  Prefactor     16.625        12.444       -.11925E-06    .49522E-04
  22  Normalizat    1.0843        .20498        .14115E-05    .41008E-04
  23  Prefactor     .98303        .10175        .22918E-06    .13397E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0884
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 106.296
  Prefactor  = 37.3111
  Prefactor  = 0.0001
  Prefactor  = 1.1796
  Prefactor  = 12.2769
  Prefactor  = 0.0001
  norm       = 0.543362
  Prefactor  = 2.50913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.71586
  norm       = 4.10732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.5122
  Prefactor  = 16.6249
  Normalizat = 1.08434
  Prefactor  = 0.983034
 **********
 **   18 **HESSE 
 **********

 FCN=   8141.199     FROM HESSE     STATUS=OK           372 CALLS     2912 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.088        21.644        .83357E-04   -1.4747    
   2  Prefactor     .10000E-03    13.048        .34992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .76071        .12185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     106.30        86.342        .19503E-03   -1.3642    
   5  Prefactor     37.311        24.134        .65582E-04   -1.4486    
   6  Prefactor     .10000E-03    8.3460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1796        8.4194        .21080E-02   -1.5491    
   8  Prefactor     12.277        10.916        .11432E-03   -1.5007    
   9  Prefactor     .10000E-03    7.2132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54336        1.5255        .17187E-03   -1.5561    
  11  Prefactor     2.5091        42.738        .25766E-03   -1.5391    
  12  Prefactor     .10000E-03    3.3089        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3556        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7159        9.6388        .24716E-03   -1.5378    
  17  norm          4.1073        2.7781        .11929E-03   -1.5303    
  18  Prefactor     .10000E-03    4.2756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.512        64.664        .51161E-04   -1.4138    
  21  Prefactor     16.625        12.428        .98232E-04   -1.4892    
  22  Normalizat    1.0843        .23507        .34084E-03   -.90256    
  23  Prefactor     .98303        .11867        .17844E-03   -.93297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11032e-09
Minuit parameter uncertainties:
  1  21.6517
  2  0.000230607
  3  1.63053e-06
  4  86.4447
  5  24.1403
  6  4.95079e-05
  7  6.30387
  8  10.9181
  9  2.07016e-05
  10  1.52563
  11  20.7279
  12  9.68691e-06
  13  3.88259e-05
  14  1.9975e-06
  15  6.37385e-05
  16  9.64433
  17  2.77819
  18  4.29742e-06
  19  0.000164074
  20  64.7379
  21  12.43
  22  0.235302
  23  0.1187
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.716e+00  9.644e+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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.830e-01  1.187e-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.084e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833204/likelihoodResults_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.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) = 8141.07846997
delta logL = 0.12036625462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8141.01322223
delta logL = 0.185614002532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6054       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8005       1.0000          .0000       10.000    
     3 'Normalizat'    1.0931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97683       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=   8141.013     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5977        11.749        .39035E-02    .15371E-02
   2  Index         1.8003        .57357        .27081       -.67861E-04
   3  Normalizat    1.0931        .19720        .76731E-01    .27734E-04
   4  Prefactor     .97685        .99583E-01    .45977E-01    .11771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59766
  Index      = 1.80031
  Normalizat = 1.09305
  Prefactor  = 0.976846
 **********
 **   18 **HESSE 
 **********

 FCN=   8141.013     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5977        11.783        .78070E-03   -1.5194    
   2  Index         1.8003        .99829        .12777E-01   -.69442    
   3  Normalizat    1.0931        .22908        .33961E-03   -.89975    
   4  Prefactor     .97685        .11581        .17892E-03   -.93505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07433e-09
Minuit parameter uncertainties:
  1  11.7876
  2  1.00987
  3  0.229288
  4  0.115844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833204': 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) = 8141.01322201
delta logL = 0.185614221498

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  6.598e+00  1.179e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.800e+00  1.010e+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:  9.768e-01  1.158e-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.093e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 351.170 31.257

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/833204/cmap_HighResolution_425433601_425692801_4FGL_J2324.6+3115_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-29 16:03:10.068257', job_id='833204', GAL2='0.98', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1632956590.07', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.86e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='718' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:03:10 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin718 351.17 31.2573 425433601 425692801 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 :                                   760.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             357.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

