/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 59 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin431
RA = 351.19, Dec = 8.0282
tmin = 351043201, tmax = 351302401
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='839252', job_status='RUN', time_executed='2021-09-29 16:11:27.549435', time_epoch_executed='1632957087.55' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839252/ft1_4FGL_J2324.7+0801_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839252/ft1_4FGL_J2324.7+0801_daily_bin431.fits outfile=/scratch/kocevski/839252/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin431.fits ra=351.19 dec=8.0282 rad=12.0 tmin=351043201.0 tmax=351302401.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.42
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/839252/ltcube_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.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/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits
.....................!
real 12.47
user 12.16
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/839252/ltcube_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits outfile=/scratch/kocevski/839252/expmap_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.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/839252/ltcube_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits
.....................!
real 189.26
user 185.00
sys 3.90

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/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits scfile=/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits outfile=/scratch/kocevski/839252/cmap_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits scfile=/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits outfile=/scratch/kocevski/839252/cmap_HighResolution_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839252/Model_4FGL_J2324.7+0801_daily_bin431.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/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits.....................!
real 79.86
user 78.05
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits', '/scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits', expMap='/scratch/kocevski/839252/expmap_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits', expCube='/scratch/kocevski/839252/ltcube_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839252/Model_4FGL_J2324.7+0801_daily_bin431.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/839252/ft1_filtered_4FGL_J2324.7+0801_daily_bin431.fits
Spacecraft file(s): /scratch/kocevski/839252/ft2_4FGL_J2324.7+0801_daily_bin431.fits
Exposure map: /scratch/kocevski/839252/expmap_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits
Exposure cube: /scratch/kocevski/839252/ltcube_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839252/Model_4FGL_J2324.7+0801_daily_bin431.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) = 7475.14638794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0055       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10710E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22305E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66903E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .77606       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84957       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=   7475.128     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2967 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.278       -.13423E-06** at limit **
   2  Prefactor     .10000E-03    .63608E-01   -.27918E-07** at limit **
   3  norm          10.893        11.525       -.48456E-06   -.15536E-06
   4  Prefactor     .10000E-03    25.218       -.12354E-05** at limit **
   5  Prefactor     1.6058        6.2389       -.15944E-05    .49112E-03
   6  Prefactor     6.6727        11.586       -.40592E-06    .56620E-04
   7  Prefactor     .10000E-03    11.402       -.10608E-06** at limit **
   8  Prefactor     7.0241        9.0785        .40926E-06    .72447E-03
   9  norm          3.5410        1.1425       -.16392E-07    .72392E-03
  10  Prefactor     11.254        11.368       -.95408E-07    .11275E-04
  11  Prefactor     1.1596        92.613       -.12069E-04    .44686E-05
  12  Prefactor     .10000E-03    52.949        .58584E-05** at limit **
  13  norm          .35745        5.5675        .52775E-06   -.38245E-04
  14  Prefactor     .10000E-03    1.5884        .19420E-07** at limit **
  15  Prefactor     .10000E-03    56.539       -.39211E-05** at limit **
  16  Prefactor     13.995        11.784        .52348E-06    .57696E-03
  17  Prefactor     .10000E-03    7.4872       -.34786E-07** at limit **
  18  norm          .10000E-03    4.3656        .65219E-08** at limit **
  19  norm          .10000E-03    18.648       -.10040E-06** at limit **
  20  Prefactor     .10000E-03    2.9643       -.51449E-06** at limit **
  21  Prefactor     .10070E-03    83.825       -.18467E-04** at limit **
  22  Prefactor     .10000E-03    74.980        .16845E-04** at limit **
  23  Prefactor     .78236        8.2867        .99517E-06    .98721E-05
  24  Normalizat    1.1606        .18980        .16516E-05    .72431E-03
  25  Prefactor     .84942        .11417        .43421E-06    .82904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8927
  Prefactor  = 0.0001
  Prefactor  = 1.60579
  Prefactor  = 6.67267
  Prefactor  = 0.0001
  Prefactor  = 7.02414
  norm       = 3.54102
  Prefactor  = 11.2544
  Prefactor  = 1.15955
  Prefactor  = 0.000100005
  norm       = 0.357452
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.9954
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001007
  Prefactor  = 0.000100004
  Prefactor  = 0.782361
  Normalizat = 1.16059
  Prefactor  = 0.849424
 **********
 **   18 **HESSE 
 **********

 FCN=   7475.128     FROM HESSE     STATUS=OK           443 CALLS     3410 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .12782        .41899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.893        11.539        .12140E-03   -1.5048    
   4  Prefactor     .10000E-03    25.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6058        6.3281        .33369E-03   -1.5455    
   6  Prefactor     6.6727        11.571        .15536E-03   -1.5191    
   7  Prefactor     .10000E-03    11.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0241        8.9179        .15157E-03   -1.5178    
   9  norm          3.5410        1.1420        .50131E-04   -1.5332    
  10  Prefactor     11.254        11.333        .11947E-03   -1.5037    
  11  Prefactor     1.1596        91.139        .41281E-03   -1.5493    
  12  Prefactor     .10000E-03    53.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35745        24.664        .36725E-02   -1.5588    
  14  Prefactor     .10000E-03    1.5909        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.995        11.191        .10712E-03   -1.4960    
  17  Prefactor     .10000E-03    7.4928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3723        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5604        .27046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10070E-03    29.962        .12710       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    91.387        .66117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .78236        34.900        .46663E-02   -1.5531    
  24  Normalizat    1.1606        .22478        .28113E-03   -.87829    
  25  Prefactor     .84942        .13494        .20138E-03   -.97931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77675e-08
Minuit parameter uncertainties:
  1  3.11681e-05
  2  2.75698e-06
  3  11.5417
  4  0.000198745
  5  6.33071
  6  11.575
  7  3.02804e-05
  8  8.9196
  9  1.14201
  10  11.3349
  11  20.5919
  12  0.00103123
  13  5.94016
  14  1.20198e-06
  15  0.000802183
  16  11.1928
  17  7.87683e-06
  18  1.82022e-06
  19  1.0528e-05
  20  2.40094e-05
  21  0.0091662
  22  0.00127362
  23  10.4566
  24  0.22497
  25  0.134997
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.125e+01  1.133e+01  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.494e-01  1.350e-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.161e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.74e-05

TS (Fixed Index): 1.51
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839252/likelihoodResults_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.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) = 7474.96062034
delta logL = 0.166955617347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7474.94491747
delta logL = 0.182658487331

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7474.945     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      292 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6073        20.500        .77992E-03    .31455E-03
   2  Index         2.6972        1.5693        .63790E-02    .32302E-04
   3  Normalizat    1.1337        .22533        .28396E-03    .96886E-05
   4  Prefactor     .85958        .13822        .20030E-03   -.60732E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60728
  Index      = 2.69717
  Normalizat = 1.1337
  Prefactor  = 0.859577
 **********
 **   18 **HESSE 
 **********

 FCN=   7474.945     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6073        11.235        .15598E-03   -1.5194    
   2  Index         2.6972        .87121        .25516E-03   -.47863    
   3  Normalizat    1.1337        .21838        .11359E-04   -.88677    
   4  Prefactor     .85958        .13427        .80119E-05   -.97568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17009e-12
Minuit parameter uncertainties:
  1  11.2386
  2  0.876901
  3  0.218558
  4  0.134321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839252': 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) = 7474.94491368
delta logL = 0.182662276166

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.607e+00  1.124e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.697e+00  8.769e-01  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.596e-01  1.343e-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.134e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.70 +/- 0.88
Photon Flux (Free Index): 6.21e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.34e-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/839252/cmap_HighResolution_351043201_351302401_4FGL_J2324.7+0801_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='1.50e-05', photon_flux_error='4.08e-08', dlogl='1.83e-01', energy_flux='1.73e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-29 16:23:57.011388', photon_index_error2='0.88', photon_index2='2.70', ts='1.51', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.34e-05', EG='1.16', time_epoch_completed='1632957837.01', return_code='0', job_id='839252', GAL2='0.86', EG2='1.13', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.83e-08', ts2='1.95', photon_index='2.23' WHERE bin_id='431' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 839252: <4FGL_J2324.7+0801_daily_bin431> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin431> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:17 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:10:18 2021
Terminated at Wed Sep 29 16:23:57 2021
Results reported at Wed Sep 29 16:23:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin431 351.19 8.0282 351043201 351302401 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

