/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 45 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 = 7646
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1306
RA = 351.19, Dec = 8.0282
tmin = 577843201, tmax = 578102401
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='843805', job_status='RUN', time_executed='2021-09-29 16:26:48.219559', time_epoch_executed='1632958008.22' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843805

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843805/ft1_4FGL_J2324.7+0801_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843805/ft1_4FGL_J2324.7+0801_daily_bin1306.fits outfile=/scratch/kocevski/843805/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1306.fits ra=351.19 dec=8.0282 rad=12.0 tmin=577843201.0 tmax=578102401.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.33
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.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/843805/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1306.fits evtable="EVENTS" outfile="/scratch/kocevski/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/843805/ltcube_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.fits outfile=/scratch/kocevski/843805/expmap_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.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/843805/ltcube_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.fits
.....................!
real 190.39
user 185.58
sys 4.23

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/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits scfile=/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.fits outfile=/scratch/kocevski/843805/cmap_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits scfile=/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.fits outfile=/scratch/kocevski/843805/cmap_HighResolution_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/843805/ft2_4FGL_J2324.7+0801_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843805/Model_4FGL_J2324.7+0801_daily_bin1306.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/843805/ft1_filtered_4FGL_J2324.7+0801_daily_bin1306.fits.....................!
real 61.95
user 60.35
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0514       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42299E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.878       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.882       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8786       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98861       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=   5410.734     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2930 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.539       -.20395E-05** at limit **
   2  Prefactor     2.0513        .32424       -.74996E-08    .49495E-03
   3  norm          6.5627        15.532        .39808E-05   -.43383E-04
   4  Prefactor     .10000E-03    14.298        .17063E-07** at limit **
   5  Prefactor     .10000E-03    4.5736        .39125E-07** at limit **
   6  Prefactor     .10000E-03    5.4279        .27386E-07** at limit **
   7  Prefactor     15.457        14.781       -.22868E-07   -.56963E-05
   8  Prefactor     .10046E-03    6.7653       -.51308E-06** at limit **
   9  norm          3.1962        1.4118       -.21603E-10   -.41915E-04
  10  Prefactor     6.8690        11.177        .19712E-06   -.32184E-05
  11  Prefactor     28.873        32.893        .41930E-06    .10924E-03
  12  Prefactor     .10000E-03    23.814        .10144E-05** at limit **
  13  norm          24.026        12.327        .72996E-07    .62293E-05
  14  Prefactor     .10000E-03    4.6845        .13462E-07** at limit **
  15  Prefactor     .10000E-03    89.421        .18921E-05** at limit **
  16  Prefactor     7.2868        11.488        .17923E-06   -.18779E-05
  17  Prefactor     .10000E-03    9.9420       -.12998E-07** at limit **
  18  norm          .10000E-03    24.504        .16620E-05** at limit **
  19  norm          16.884        19.615       -.30365E-07    .18738E-05
  20  Prefactor     6.8782        5.3207        .83037E-07    .29558E-04
  21  Prefactor     .10000E-03    27.046        .63481E-06** at limit **
  22  Prefactor     13.194        17.675        .14093E-06    .33637E-05
  23  Prefactor     .10000E-03    21.643       -.14526E-05** at limit **
  24  Normalizat    1.0515        .25841       -.76220E-06    .32409E-04
  25  Prefactor     .98854        .15596       -.16895E-06    .33217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.05133
  norm       = 6.56268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4572
  Prefactor  = 0.000100456
  norm       = 3.19618
  Prefactor  = 6.86902
  Prefactor  = 28.8734
  Prefactor  = 0.0001
  norm       = 24.0258
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.28677
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 16.8837
  Prefactor  = 6.87815
  Prefactor  = 0.0001
  Prefactor  = 13.1944
  Prefactor  = 0.000100001
  Normalizat = 1.05146
  Prefactor  = 0.988542
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.734     FROM HESSE     STATUS=OK           433 CALLS     3363 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0513        .32440        .15972E-04   -1.5422    
   3  norm          6.5627        15.742        .78319E-03   -1.5196    
   4  Prefactor     .10000E-03    14.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5982        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4430        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.457        14.789        .10187E-03   -1.4921    
   8  Prefactor     .10046E-03    10.434        .63289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1962        1.4120        .55896E-04   -1.5350    
  10  Prefactor     6.8690        11.166        .15308E-03   -1.5184    
  11  Prefactor     28.873        33.076        .74554E-04   -1.4633    
  12  Prefactor     .10000E-03    24.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.026        12.328        .81721E-04   -1.4727    
  14  Prefactor     .10000E-03    4.6999        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2868        11.502        .14857E-03   -1.5168    
  17  Prefactor     .10000E-03    9.9462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    25.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.884        19.661        .97477E-04   -1.4886    
  20  Prefactor     6.8782        5.3219        .14173E-03   -1.5183    
  21  Prefactor     .10000E-03    27.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.194        17.676        .11027E-03   -1.4981    
  23  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0515        .30055        .34704E-03   -.91326    
  25  Prefactor     .98854        .18205        .22007E-03   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38093e-10
Minuit parameter uncertainties:
  1  0.000359197
  2  0.324396
  3  15.7519
  4  5.33796e-06
  5  4.55185e-06
  6  3.78291e-06
  7  14.7925
  8  0.00436289
  9  1.412
  10  11.1697
  11  33.0969
  12  0.000187198
  13  12.329
  14  6.91479e-07
  15  0.000678966
  16  11.5055
  17  7.78719e-07
  18  0.000274386
  19  19.669
  20  5.32226
  21  0.000125869
  22  17.683
  23  0.000223807
  24  0.301041
  25  0.182166
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.869e+00  1.117e+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:  9.885e-01  1.822e-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.051e+00  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843805/likelihoodResults_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.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) = 5410.18322533
delta logL = 0.55079004313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.94263598
delta logL = 0.791379392504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4108       1.0000          .0000       10.000    
     3 'Normalizat'    1.0651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97850       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.

 FCN=   5409.943     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.674        18.993        .24545E-02   -.43372E-04
   2  Index         1.4102        .52080        .22677       -.37773E-04
   3  Normalizat    1.0648        .25000        .77920E-01    .48501E-04
   4  Prefactor     .97882        .15500        .45998E-01   -.11713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6742
  Index      = 1.41024
  Normalizat = 1.0648
  Prefactor  = 0.978817
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.943     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.674        16.167        .98180E-04   -1.4891    
   2  Index         1.4102        .50483        .88001E-02   -.80086    
   3  Normalizat    1.0648        .29057        .34490E-03   -.90890    
   4  Prefactor     .97882        .18070        .22076E-03   -.93439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13294e-10
Minuit parameter uncertainties:
  1  16.1713
  2  0.506615
  3  0.291004
  4  0.18081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843805': 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) = 5409.94262969
delta logL = 0.791385677348

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.667e+01  1.617e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.410e+00  5.066e-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:  9.788e-01  1.808e-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.065e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.41 +/- 0.51
Photon Flux (Free Index): 1.81e-08 +/- 2.04e-08
Energy Flux (Free Index): 7.72e-05 +/- 1.08e-04

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/843805/cmap_HighResolution_577843201_578102401_4FGL_J2324.7+0801_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', comment='SUCCESS', energy_flux2='7.72e-05', dlogl='7.91e-01', photon_flux2='1.81e-08', job_status='DONE', time_completed='2021-09-29 16:37:52.938764', photon_index_error2='0.51', photon_index2='1.41', ts='0.54', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.08e-04', EG='1.05', time_epoch_completed='1632958672.94', return_code='0', job_id='843805', GAL2='0.98', EG2='1.06', return_code2='0', photon_flux_error2='2.04e-08', ts2='2.13', photon_index='2.23' WHERE bin_id='1306' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:37:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 843805: <4FGL_J2324.7+0801_daily_bin1306> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1306> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:43 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:45 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:25:45 2021
Terminated at Wed Sep 29 16:37:53 2021
Results reported at Wed Sep 29 16:37:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1306 351.19 8.0282 577843201 578102401 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

