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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1627
RA = 351.19, Dec = 8.0282
tmin = 661046401, tmax = 661305601
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='252693', job_status='RUN', time_executed='2021-12-16 00:43:24.861956', time_epoch_executed='1639644204.86' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252693/ft1_4FGL_J2324.7+0801_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252693/ft1_4FGL_J2324.7+0801_daily_bin1627.fits outfile=/scratch/kocevski/252693/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1627.fits ra=351.19 dec=8.0282 rad=12.0 tmin=661046401.0 tmax=661305601.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.64
user 3.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.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/252693/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1627.fits evtable="EVENTS" outfile="/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/252693/ltcube_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.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/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits
.....................!
real 12.75
user 12.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/252693/ltcube_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits outfile=/scratch/kocevski/252693/expmap_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.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/252693/ltcube_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits
.....................!
real 191.70
user 186.92
sys 4.39

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits outfile=/scratch/kocevski/252693/cmap_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.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.19 yref=8.0282 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits outfile=/scratch/kocevski/252693/cmap_HighResolution_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.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.19 yref=8.0282 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252693/Model_4FGL_J2324.7+0801_daily_bin1627.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/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits.....................!
real 72.58
user 71.27
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits', '/scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits', expMap='/scratch/kocevski/252693/expmap_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits', expCube='/scratch/kocevski/252693/ltcube_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/252693/Model_4FGL_J2324.7+0801_daily_bin1627.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/252693/ft1_filtered_4FGL_J2324.7+0801_daily_bin1627.fits
Spacecraft file(s): /scratch/kocevski/252693/ft2_4FGL_J2324.7+0801_daily_bin1627.fits
Exposure map: /scratch/kocevski/252693/expmap_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits
Exposure cube: /scratch/kocevski/252693/ltcube_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/252693/Model_4FGL_J2324.7+0801_daily_bin1627.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) = 6490.91081179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70051       1.0000         .10000E-03   10000.    
     3 'norm      '    32.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4687       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.522       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0960       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6490.892     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2503 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3640        169.18       -.11063E-05   -.80077E-06
   2  Prefactor     .70039        .21347        .54876E-07    .32256E-03
   3  norm          32.339        19.683       -.67448E-07    .96733E-05
   4  Prefactor     .10000E-03    20.685        .15503E-06** at limit **
   5  Prefactor     2.0156        9.4160        .28429E-05    .16201E-04
   6  Prefactor     .10000E-03    6.3849        .92323E-07** at limit **
   7  Prefactor     .10000E-03    6.2136       -.46666E-07** at limit **
   8  Prefactor     .10000E-03    3.9764       -.39520E-07** at limit **
   9  norm          .10000E-03    .42811       -.44901E-07** at limit **
  10  Prefactor     .10000E-03    3.1947       -.14173E-07** at limit **
  11  Prefactor     20.026        21.941       -.38663E-06   -.21625E-06
  12  Prefactor     .10000E-03    31.200       -.20604E-06** at limit **
  13  norm          4.4681        7.3031        .18218E-06    .59947E-05
  14  Prefactor     .10000E-03    1.8855       -.35438E-07** at limit **
  15  Prefactor     .10000E-03    66.960        .34672E-06** at limit **
  16  Prefactor     25.567        15.397       -.31471E-06    .24506E-04
  17  Prefactor     25.528        22.956       -.22516E-06    .13942E-04
  18  norm          .10000E-03    3.5961       -.11836E-07** at limit **
  19  norm          .10000E-03    17.538       -.99029E-07** at limit **
  20  Prefactor     .10000E-03    2.4868       -.30924E-07** at limit **
  21  Prefactor     .10000E-03    27.274       -.39116E-06** at limit **
  22  Prefactor     7.0638        29.376       -.81229E-06   -.10078E-04
  23  Prefactor     .10000E-03    5.3421       -.43175E-07** at limit **
  24  Normalizat    1.0864        .21553        .15287E-05   -.83626E-05
  25  Prefactor     .83159        .12398       -.52330E-06    .11878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36405
  Prefactor  = 0.700386
  norm       = 32.3388
  Prefactor  = 0.0001
  Prefactor  = 2.01563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0259
  Prefactor  = 0.0001
  norm       = 4.46806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5668
  Prefactor  = 25.5277
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06378
  Prefactor  = 0.0001
  Normalizat = 1.08636
  Prefactor  = 0.831593
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.892     FROM HESSE     STATUS=OK           425 CALLS     2928 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3640        164.41        .40075E-03   -1.5474    
   2  Prefactor     .70039        .21147        .18288E-04   -1.5541    
   3  norm          32.339        19.684        .70462E-04   -1.4570    
   4  Prefactor     .10000E-03    20.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0156        9.2213        .29131E-03   -1.5424    
   6  Prefactor     .10000E-03    6.4114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9953        .15679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .59705        .10163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1978        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.026        21.976        .89524E-04   -1.4813    
  12  Prefactor     .10000E-03    31.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4681        7.2846        .19048E-03   -1.5285    
  14  Prefactor     .10000E-03    1.8885        .10800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    66.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.567        15.304        .79243E-04   -1.4696    
  17  Prefactor     25.528        22.932        .79295E-04   -1.4697    
  18  norm          .10000E-03    3.5975        .14921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4954        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0638        29.710        .15059E-03   -1.5176    
  23  Prefactor     .10000E-03    5.3744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0864        .24743        .29401E-03   -.90191    
  25  Prefactor     .83159        .14283        .20336E-03   -.98574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87497e-11
Minuit parameter uncertainties:
  1  30.0347
  2  0.211473
  3  19.6878
  4  5.54095e-05
  5  8.62443
  6  9.38141e-06
  7  6.86918e-06
  8  7.93326e-06
  9  5.15579e-07
  10  2.49042e-06
  11  21.9844
  12  7.01405e-05
  13  7.28607
  14  2.80034e-06
  15  0.000289805
  16  15.3061
  17  22.9402
  18  1.13334e-06
  19  1.94033e-05
  20  6.10042e-07
  21  4.16662e-05
  22  28.9978
  23  3.85945e-06
  24  0.247695
  25  0.142889
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.490e-06  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.316e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.086e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252693/likelihoodResults_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.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): 102
logL (Free Index) = 6490.89312716
delta logL = -0.00148413015904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6490.89164309
delta logL = -5.20503817825e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2136       1.0000          .0000       10.000    
     3 'Normalizat'    1.0863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6490.892     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10192E-03    74.962        .14177E-02** at limit **
   2  Index         2.1184        6.1617        .50000        .28964E-04
   3  Normalizat    1.0864        .24893E-01    .29400E-03    .13225E-04
   4  Prefactor     .83159        .15361E-01    .20336E-03    .29461E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6490.892     FROM SIMPLEX   STATUS=PROGRESS     137 CALLS      375 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    74.962        .21026E-03** at limit **
   2  Index         2.1168        6.1617        .55293E-03    .28964E-04
   3  Normalizat    1.0864        .24893E-01    .35887E-05    .13225E-04
   4  Prefactor     .83159        .15361E-01    .26734E-05    .29461E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6490.892     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      426 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.873        .28354E-02** at limit **
   2  Index         1.7707        7.2570        .50000       -.19795E-06
   3  Normalizat    1.0864        .23623E-01    .11760E-04    .25889E-03
   4  Prefactor     .83159        .14578E-01    .81345E-05    .37092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77068
  Normalizat = 1.08636
  Prefactor  = 0.831592
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.892     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      455 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    328.61        .56708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7707        8.3705        .50000       -.70215    
   3  Normalizat    1.0864        .55074E-01    .23520E-05   -.90191    
   4  Prefactor     .83159        .33985E-01    .16269E-05   -.98574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14198e-08
Minuit parameter uncertainties:
  1  0.000323147
  2  1211.51
  3  0.0550772
  4  0.0339858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252693': 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): 102
logL (Free Index) = 6490.89164094
delta logL = 2.09033532883e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.771e+00  1.212e+03  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.316e-01  3.399e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.086e+00  5.508e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/252693/cmap_HighResolution_661046401_661305601_4FGL_J2324.7+0801_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-12-16 00:54:29.695225', job_id='252693', GAL2='0.83', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1639644869.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1627' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:54:29 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 252693: <4FGL_J2324.7+0801_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:40:12 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:40:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:40:15 2021
Terminated at Thu Dec 16 00:54:30 2021
Results reported at Thu Dec 16 00:54:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1627 351.19 8.0282 661046401 661305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

