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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin895
RA = 351.17, Dec = 31.2573
tmin = 471312001, tmax = 471571201
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='834546', job_status='RUN', time_executed='2021-09-29 15:58:31.396337', time_epoch_executed='1632956311.4' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834546/ft1_4FGL_J2324.6+3115_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834546/ft2_4FGL_J2324.6+3115_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834546/ft1_4FGL_J2324.6+3115_daily_bin895.fits outfile=/scratch/kocevski/834546/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin895.fits ra=351.17 dec=31.2573 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.06
user 4.74
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834546/ft2_4FGL_J2324.6+3115_daily_bin895.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/834546/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/834546/ft1_filtered_4FGL_J2324.6+3115_daily_bin895.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.56
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834546/ft1_filtered_4FGL_J2324.6+3115_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/834546/ft2_4FGL_J2324.6+3115_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/834546/ltcube_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.fits outfile=/scratch/kocevski/834546/expmap_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.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/834546/ltcube_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.fits
.....................!
real 192.19
user 186.49
sys 5.08

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/834546/ft1_filtered_4FGL_J2324.6+3115_daily_bin895.fits scfile=/scratch/kocevski/834546/ft2_4FGL_J2324.6+3115_daily_bin895.fits outfile=/scratch/kocevski/834546/cmap_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834546/ft1_filtered_4FGL_J2324.6+3115_daily_bin895.fits scfile=/scratch/kocevski/834546/ft2_4FGL_J2324.6+3115_daily_bin895.fits outfile=/scratch/kocevski/834546/cmap_HighResolution_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.541       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20588E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.390       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4524       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5860       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6879       1.0000         .10000E-03   10000.    
    17 'norm      '    .63776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .76669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7393       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86862       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0790       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=   8179.142     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2536 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.945       -.36801E-05** at limit **
   2  Prefactor     15.540        9.0640       -.79229E-08   -.23246E-04
   3  norm          .10000E-03    .50253        .86783E-08** at limit **
   4  Prefactor     .10000E-03    63.877       -.27205E-05** at limit **
   5  Prefactor     .10000E-03    26.904       -.96596E-05** at limit **
   6  Prefactor     .10000E-03    31.350        .10452E-04** at limit **
   7  Prefactor     .10004E-03    5.2421       -.10364E-05** at limit **
   8  Prefactor     .10000E-03    9.0290       -.67314E-07** at limit **
   9  Prefactor     11.390        19.921       -.11125E-05   -.29472E-03
  10  norm          1.4686        1.3478       -.58519E-07   -.50142E-03
  11  Prefactor     9.7150        9.8218        .55613E-06    .62290E-03
  12  Prefactor     6.4494        11.079       -.16925E-06    .22864E-04
  13  Prefactor     .10000E-03    17.824        .29006E-05** at limit **
  14  norm          2.5844        4.9269       -.39374E-06   -.60123E-03
  15  norm          4.1984        10.167       -.33173E-06   -.93349E-04
  16  Prefactor     9.6827        18.785       -.11525E-06    .21498E-05
  17  norm          .63864        1.5877       -.58776E-06   -.16513E-02
  18  Prefactor     .76716        8.5369       -.13152E-05   -.81607E-04
  19  Prefactor     34.159        33.278       -.34155E-05    .93279E-04
  20  Prefactor     .10000E-03    18.883        .35544E-05** at limit **
  21  Prefactor     9.7414        7.7716        .10871E-05   -.10686E-03
  22  Normalizat    .86889        .21379        .47270E-06    .15985E-03
  23  Prefactor     1.0788        .10344        .21896E-06    .37424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.5405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 11.3901
  norm       = 1.46861
  Prefactor  = 9.71502
  Prefactor  = 6.44939
  Prefactor  = 0.0001
  norm       = 2.58443
  norm       = 4.1984
  Prefactor  = 9.68267
  norm       = 0.638637
  Prefactor  = 0.767162
  Prefactor  = 34.1594
  Prefactor  = 0.0001
  Prefactor  = 9.74144
  Normalizat = 0.868887
  Prefactor  = 1.07881
 **********
 **   18 **HESSE 
 **********

 FCN=   8179.142     FROM HESSE     STATUS=OK           376 CALLS     2912 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.540        9.0776        .10160E-03   -1.4919    
   3  norm          .10000E-03    .52172        .12510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    27.378        .39487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.390        20.216        .59352E-03   -1.5033    
  10  norm          1.4686        1.3335        .95515E-04   -1.5466    
  11  Prefactor     9.7150        9.9635        .64284E-03   -1.5084    
  12  Prefactor     6.4494        10.929        .15800E-03   -1.5200    
  13  Prefactor     .10000E-03    17.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5844        4.8929        .23828E-03   -1.5386    
  15  norm          4.1984        10.147        .19674E-03   -1.5298    
  16  Prefactor     9.6827        18.545        .12875E-03   -1.5086    
  17  norm          .63864        1.5087        .17748E-02   -1.5548    
  18  Prefactor     .76716        39.207        .51312E-02   -1.5533    
  19  Prefactor     34.159        33.092        .68560E-04   -1.4538    
  20  Prefactor     .10000E-03    18.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7414        7.7212        .12841E-03   -1.5084    
  22  Normalizat    .86889        .24242        .37157E-03   -.97562    
  23  Prefactor     1.0788        .11824        .16890E-03   -.90147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69879e-08
Minuit parameter uncertainties:
  1  2.27327e-05
  2  9.07842
  3  1.08271e-07
  4  0.00013677
  5  0.000344037
  6  0.000406134
  7  0.00213376
  8  5.78634e-06
  9  20.2284
  10  1.33353
  11  9.9652
  12  10.9325
  13  9.3507e-05
  14  4.89369
  15  10.1508
  16  18.5558
  17  1.5088
  18  10.9755
  19  33.1102
  20  0.000129659
  21  7.72194
  22  0.242724
  23  0.118264
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  9.683e+00  1.856e+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.079e+00  1.183e-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:  8.689e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/834546/likelihoodResults_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.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) = 8179.12468893
delta logL = 0.0174976621729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8179.10737204
delta logL = 0.034814558262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3135       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7394       1.0000          .0000       10.000    
     3 'Normalizat'    .85159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8179.107     FROM MIGRAD    STATUS=FAILED       107 CALLS      287 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2900        561.51        .87178E-03   -.54276E-04
   2  Index         3.7424        8.0140        .11235E-01    .14688E-03
   3  Normalizat    .85174        .23036        .37501E-03    .31861E-04
   4  Prefactor     1.0856        .11747        .16846E-03   -.16822E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8179.107     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      370 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2900        561.51        .28272E-03   -.54276E-04
   2  Index         3.7424        8.0140        .34535E-02    .14688E-03
   3  Normalizat    .85174        .23036        .28477E-03    .31861E-04
   4  Prefactor     1.0856        .11747        .11635E-03   -.16822E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8179.107     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      401 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2899        48.137        .34871E-04   -.73355E-04
   2  Index         3.7424        6.8575        .22471E-02   -.52819E-05
   3  Normalizat    .85174        .24505        .15001E-04    .30315E-04
   4  Prefactor     1.0856        .12035        .33692E-04   -.16170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28993
  Index      = 3.74243
  Normalizat = 0.851744
  Prefactor  = 1.08558
 **********
 **   18 **HESSE 
 **********

 FCN=   8179.107     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2899        31.266        .13948E-05   -1.5248    
   2  Index         3.7424        4.0070        .89883E-04   -.25425    
   3  Normalizat    .85174        .24287        .30001E-05   -.98177    
   4  Prefactor     1.0856        .11903        .67384E-05   -.89929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55697e-11
Minuit parameter uncertainties:
  1  25.741
  2  4.72095
  3  0.243179
  4  0.119055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834546': 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) = 8179.10737117
delta logL = 0.034815427839

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.290e+00  2.574e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.742e+00  4.721e+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:  1.086e+00  1.191e-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:  8.517e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/834546/cmap_HighResolution_471312001_471571201_4FGL_J2324.6+3115_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-29 16:11:45.213159', job_id='834546', GAL2='1.09', fit_tolerance='1e-08', EG2='0.85', EG='0.87', time_epoch_completed='1632957105.21', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.48e-02', ts2='0.49', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='895' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 834546: <4FGL_J2324.6+3115_daily_bin895> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin895> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:55:14 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:55:15 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:55:15 2021
Terminated at Wed Sep 29 16:11:45 2021
Results reported at Wed Sep 29 16:11:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin895 351.17 31.2573 471312001 471571201 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

