/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 88 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 = 7406
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin45
RA = 351.17, Dec = 31.2573
tmin = 250992001, tmax = 251251201
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='829086', job_status='RUN', time_executed='2021-09-29 15:37:15.141068', time_epoch_executed='1632955035.14' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829086/ft1_4FGL_J2324.6+3115_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829086/ft1_4FGL_J2324.6+3115_daily_bin45.fits outfile=/scratch/kocevski/829086/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin45.fits ra=351.17 dec=31.2573 rad=12.0 tmin=250992001.0 tmax=251251201.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 1.44
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829086/ft1_filtered_4FGL_J2324.6+3115_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/829086/ltcube_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits outfile=/scratch/kocevski/829086/expmap_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.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/829086/ltcube_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits
.....................!
real 191.04
user 186.20
sys 4.49

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/829086/ft1_filtered_4FGL_J2324.6+3115_daily_bin45.fits scfile=/scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits outfile=/scratch/kocevski/829086/cmap_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/829086/ft1_filtered_4FGL_J2324.6+3115_daily_bin45.fits scfile=/scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits outfile=/scratch/kocevski/829086/cmap_HighResolution_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/829086/ft1_filtered_4FGL_J2324.6+3115_daily_bin45.fits', '/scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits', expMap='/scratch/kocevski/829086/expmap_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits', expCube='/scratch/kocevski/829086/ltcube_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/829086/Model_4FGL_J2324.6+3115_daily_bin45.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/829086/ft1_filtered_4FGL_J2324.6+3115_daily_bin45.fits
Spacecraft file(s): /scratch/kocevski/829086/ft2_4FGL_J2324.6+3115_daily_bin45.fits
Exposure map: /scratch/kocevski/829086/expmap_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits
Exposure cube: /scratch/kocevski/829086/ltcube_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/829086/Model_4FGL_J2324.6+3115_daily_bin45.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8327.31545215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2042       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.355       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12254E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11437E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9775       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4581       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75700       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=   8327.170     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2513 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.952        15.483       -.15678E-06   -.29923E-04
   2  Prefactor     7.2036        6.3889        .12802E-05   -.10866E-02
   3  norm          1.4422        1.0188        .33819E-07   -.24674E-03
   4  Prefactor     43.366        43.844        .33644E-05    .23999E-03
   5  Prefactor     .10000E-03    6.2452        .11284E-05** at limit **
   6  Prefactor     .10000E-03    17.652        .73423E-06** at limit **
   7  Prefactor     .10000E-03    2.2324        .19460E-07** at limit **
   8  Prefactor     .10000E-03    3.3103        .10591E-07** at limit **
   9  Prefactor     .10000E-03    7.9900        .16951E-06** at limit **
  10  norm          1.0683        1.1783        .40628E-06   -.15537E-02
  11  Prefactor     .10000E-03    6.8423       -.14461E-06** at limit **
  12  Prefactor     .10000E-03    4.5480       -.17060E-07** at limit **
  13  Prefactor     .10000E-03    5.8581       -.64939E-06** at limit **
  14  norm          .10000E-03    3.2566       -.55882E-06** at limit **
  15  norm          .10000E-03    5.2934        .99515E-07** at limit **
  16  Prefactor     7.9780        15.675       -.33957E-06    .29985E-04
  17  norm          2.6189        1.8918        .47626E-08    .47595E-04
  18  Prefactor     13.602        13.207        .85528E-07    .18189E-04
  19  Prefactor     .10000E-03    23.164        .32751E-05** at limit **
  20  Prefactor     .10000E-03    21.125       -.38484E-05** at limit **
  21  Prefactor     .10000E-03    2.7695        .36289E-08** at limit **
  22  Normalizat    1.4580        .19392       -.20282E-06    .51441E-04
  23  Prefactor     .75710        .93495E-01   -.13244E-06    .11083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9516
  Prefactor  = 7.20357
  norm       = 1.44222
  Prefactor  = 43.3656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0683
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 7.97803
  norm       = 2.61886
  Prefactor  = 13.602
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.45798
  Prefactor  = 0.7571
 **********
 **   18 **HESSE 
 **********

 FCN=   8327.170     FROM HESSE     STATUS=OK           376 CALLS     2889 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.952        15.489        .89670E-04   -1.4814    
   2  Prefactor     7.2036        7.1195        .74722E-03   -1.5171    
   3  norm          1.4422        1.0055        .74854E-04   -1.5468    
   4  Prefactor     43.366        45.300        .60885E-04   -1.4390    
   5  Prefactor     .10000E-03    6.3398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2430        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3168        .16214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0683        1.2376        .23540E-03   -1.5501    
  11  Prefactor     .10000E-03    6.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1423        .63969E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9385        .29278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9780        14.620        .14196E-03   -1.5143    
  17  norm          2.6189        1.8948        .10354E-03   -1.5384    
  18  Prefactor     13.602        13.208        .10860E-03   -1.4970    
  19  Prefactor     .10000E-03    23.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7796        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4580        .22928        .28721E-03   -.78966    
  23  Prefactor     .75710        .11005        .18644E-03   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24716e-09
Minuit parameter uncertainties:
  1  15.492
  2  7.12034
  3  1.00553
  4  45.3364
  5  9.63438e-05
  6  9.39719e-05
  7  4.38881e-07
  8  4.23871e-07
  9  1.60029e-05
  10  1.2376
  11  1.26582e-05
  12  0.00023571
  13  5.24962e-05
  14  0.00025849
  15  7.61711e-06
  16  14.6269
  17  1.89489
  18  13.2107
  19  0.000543072
  20  0.000615143
  21  1.31285e-06
  22  0.229443
  23  0.11008
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  7.978e+00  1.463e+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:  7.571e-01  1.101e-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.458e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/829086/likelihoodResults_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.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) = 8326.71304226
delta logL = 0.457335973982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8326.64547648
delta logL = 0.52490174899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.374       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9269       1.0000          .0000       10.000    
     3 'Normalizat'    1.4824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74416       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=   8326.645     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.371        15.769       -.39216E-05   -.30131E-03
   2  Index         1.9269        .65622       -.21251E-04    .65239E-04
   3  Normalizat    1.4823        .19069        .85918E-06    .23808E-03
   4  Prefactor     .74418        .92868E-01   -.17812E-07    .35506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3707
  Index      = 1.92686
  Normalizat = 1.48235
  Prefactor  = 0.744185
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.645     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.371        15.498        .10953E-03   -1.4976    
   2  Index         1.9269        .64084        .93540E-02   -.66191    
   3  Normalizat    1.4823        .22404        .28521E-03   -.78276    
   4  Prefactor     .74418        .10929        .18778E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25044e-10
Minuit parameter uncertainties:
  1  15.5027
  2  0.643691
  3  0.224188
  4  0.109318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829086': 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) = 8326.64547643
delta logL = 0.524901805074

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.337e+01  1.550e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.927e+00  6.437e-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:  7.442e-01  1.093e-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.482e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 351.170 31.257
Photon Index (Free Index): 1.93 +/- 0.64
Photon Flux (Free Index): 2.25e-08 +/- 2.87e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.70e-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/829086/cmap_HighResolution_250992001_251251201_4FGL_J2324.6+3115_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.87e-05', dlogl='5.25e-01', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-29 15:50:00.337539', photon_index_error2='0.64', photon_index2='1.93', ts='0.36', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.70e-05', EG='1.46', time_epoch_completed='1632955800.34', return_code='0', job_id='829086', GAL2='0.74', EG2='1.48', return_code2='0', photon_flux_error2='2.87e-08', ts2='1.41', photon_index='2.88' WHERE bin_id='45' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:50:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 829086: <4FGL_J2324.6+3115_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin45 351.17 31.2573 250992001 251251201 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

