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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin815
RA = 351.19, Dec = 8.0282
tmin = 450576001, tmax = 450835201
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='844230', job_status='RUN', time_executed='2021-09-29 16:29:39.457599', time_epoch_executed='1632958179.46' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844230/ft1_4FGL_J2324.7+0801_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844230/ft1_4FGL_J2324.7+0801_daily_bin815.fits outfile=/scratch/kocevski/844230/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin815.fits ra=351.19 dec=8.0282 rad=12.0 tmin=450576001.0 tmax=450835201.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.53
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.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/844230/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin815.fits evtable="EVENTS" outfile="/scratch/kocevski/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.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/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/844230/ltcube_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.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/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits
.....................!
real 11.75
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/844230/ltcube_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.fits outfile=/scratch/kocevski/844230/expmap_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.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/844230/ltcube_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.fits
.....................!
real 190.33
user 185.90
sys 4.04

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/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits outfile=/scratch/kocevski/844230/cmap_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits outfile=/scratch/kocevski/844230/cmap_HighResolution_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/844230/ft2_4FGL_J2324.7+0801_daily_bin815.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844230/Model_4FGL_J2324.7+0801_daily_bin815.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/844230/ft1_filtered_4FGL_J2324.7+0801_daily_bin815.fits.....................!
real 77.83
user 76.37
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8855       1.0000         .10000E-03   10000.    
     3 'norm      '    43.780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.457       1.0000         .10000E-03   10000.    
     9 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90178       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79215       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1794       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=   7348.341     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3010 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    133.32        .10322E-05** at limit **
   2  Prefactor     1.8856        .26315        .14154E-09   -.12724E-02
   3  norm          43.777        20.469       -.31503E-06    .48736E-05
   4  Prefactor     10.230        30.352       -.16573E-05    .36896E-05
   5  Prefactor     .10000E-03    4.5384       -.40327E-06** at limit **
   6  Prefactor     .66071        8.2767        .61619E-06    .75783E-04
   7  Prefactor     28.519        22.127       -.35669E-06    .18867E-04
   8  Prefactor     16.451        8.5057        .95295E-07    .84613E-03
   9  norm          .10000E-03    .35910       -.26204E-06** at limit **
  10  Prefactor     6.3065        13.282        .40086E-05    .20728E-03
  11  Prefactor     .10000E-03    42.910       -.21913E-05** at limit **
  12  Prefactor     .10000E-03    24.528       -.70126E-06** at limit **
  13  norm          .10000E-03    9.4411       -.19208E-05** at limit **
  14  Prefactor     .10000E-03    2.9089       -.32045E-06** at limit **
  15  Prefactor     .10000E-03    1029.7        .22193E-04** at limit **
  16  Prefactor     .10000E-03    4.5315       -.19658E-06** at limit **
  17  Prefactor     .98767        164.84       -.40831E-04    .39499E-04
  18  norm          .10000E-03    6.5551       -.14063E-06** at limit **
  19  norm          .10000E-03    39.810        .13933E-05** at limit **
  20  Prefactor     3.2816        3.3884       -.59850E-07   -.69006E-03
  21  Prefactor     .10000E-03    24.994       -.23522E-07** at limit **
  22  Prefactor     1.7310        101.77        .67637E-06    .29228E-04
  23  Prefactor     .10000E-03    4.3815       -.15037E-06** at limit **
  24  Normalizat    .79212        .21855        .27161E-05    .93359E-04
  25  Prefactor     1.1793        .13534        .48833E-06    .95469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 1.88561
  norm       = 43.7768
  Prefactor  = 10.2303
  Prefactor  = 0.0001
  Prefactor  = 0.660711
  Prefactor  = 28.5189
  Prefactor  = 16.4515
  norm       = 0.0001
  Prefactor  = 6.30653
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.987671
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.28161
  Prefactor  = 0.0001
  Prefactor  = 1.73098
  Prefactor  = 0.0001
  Normalizat = 0.792116
  Prefactor  = 1.17935
 **********
 **   18 **HESSE 
 **********

 FCN=   7348.341     FROM HESSE     STATUS=OK           429 CALLS     3439 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    138.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8856        .26154        .15727E-04   -1.5433    
   3  norm          43.777        20.473        .60590E-04   -1.4384    
   4  Prefactor     10.230        30.337        .12534E-03   -1.5068    
   5  Prefactor     .10000E-03    17.742        .34981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66071        43.519        .46602E-02   -1.5545    
   7  Prefactor     28.519        22.133        .75021E-04   -1.4639    
   8  Prefactor     16.451        8.5543        .98728E-04   -1.4897    
   9  norm          .10000E-03    .54295        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3065        13.415        .15983E-03   -1.5206    
  11  Prefactor     .10000E-03    44.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.7590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9290        .14282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1034.3        .21322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5454        .17822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .98767        175.42        .71276E-02   -1.5509    
  18  norm          .10000E-03    6.5704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    40.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2816        3.3820        .15510E-03   -1.5346    
  21  Prefactor     .10000E-03    25.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7310        100.72        .31923E-03   -1.5445    
  23  Prefactor     .10000E-03    4.3944        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79212        .24443        .37095E-03   -1.0036    
  25  Prefactor     1.1793        .15270        .19997E-03   -.86969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61155e-09
Minuit parameter uncertainties:
  1  0.00286698
  2  0.261542
  3  20.4759
  4  30.3827
  5  2.48455e-05
  6  10.7318
  7  22.1396
  8  8.55494
  9  1.30971e-05
  10  13.4214
  11  0.000928765
  12  7.7289e-05
  13  2.98972e-05
  14  1.35525e-05
  15  0.000707591
  16  3.72556e-05
  17  26.4029
  18  1.9754e-05
  19  0.000577028
  20  3.38218
  21  0.000103319
  22  26.4542
  23  1.84171e-05
  24  0.244769
  25  0.152756
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.307e+00  1.342e+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:  1.179e+00  1.528e-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:  7.921e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/844230/likelihoodResults_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.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) = 7346.8097481
delta logL = 1.53105912452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7346.79718659
delta logL = 1.5436206336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46004       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1242       1.0000          .0000       10.000    
     3 'Normalizat'    .67806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       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=   7346.797     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      270 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46029        3.7536        .76713E-02    .15434E-02
   2  Index         4.1247        1.8937        .94244E-01    .20707E-03
   3  Normalizat    .67838        .55960E-01    .89827E-01    .22295E-04
   4  Prefactor     1.2221        .36107E-01    .34124E-01   -.29781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.46029
  Index      = 4.12471
  Normalizat = 0.678377
  Prefactor  = 1.22206
 **********
 **   18 **HESSE 
 **********

 FCN=   7346.797     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      305 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46029        8.3200        .34814E-03   -1.5572    
   2  Index         4.1247        3.2289        .35464E-02   -.17597    
   3  Normalizat    .67838        .19532        .39796E-03   -1.0475    
   4  Prefactor     1.2221        .12595        .19675E-03   -.85655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.787e-07
Minuit parameter uncertainties:
  1  3.91408
  2  3.52172
  3  0.195515
  4  0.125986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844230': 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) = 7346.79718033
delta logL = 1.54362689478

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.603e-01  3.914e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  4.125e+00  3.522e+00  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:  1.222e+00  1.260e-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:  6.784e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 351.190 8.028
Photon Index (Free Index): 4.12 +/- 3.52
Photon Flux (Free Index): 1.17e-07 +/- 6.95e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.35e-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/844230/cmap_HighResolution_450576001_450835201_4FGL_J2324.7+0801_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='1.54e+00', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-29 16:42:20.039258', photon_index_error2='3.52', photon_index2='4.12', ts='0.31', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.35e-05', EG='0.79', time_epoch_completed='1632958940.04', return_code='0', job_id='844230', GAL2='1.22', EG2='0.68', return_code2='102', photon_flux_error2='6.95e-08', ts2='3.71', photon_index='2.23' WHERE bin_id='815' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:42:20 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 842003: <4FGL_J2324.7+0801_daily_bin815> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin815> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:15 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:16 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:20:16 2021
Terminated at Wed Sep 29 16:34:37 2021
Results reported at Wed Sep 29 16:34:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin815 351.19 8.0282 450576001 450835201 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 844230: <4FGL_J2324.7+0801_daily_bin815> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin815> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:26:24 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:26:26 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:26:26 2021
Terminated at Wed Sep 29 16:42:20 2021
Results reported at Wed Sep 29 16:42:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin815 351.19 8.0282 450576001 450835201 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

