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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin836
RA = 351.19, Dec = 8.0282
tmin = 456019201, tmax = 456278401
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='842033', job_status='RUN', time_executed='2021-09-29 16:23:35.679997', time_epoch_executed='1632957815.68' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842033/ft1_4FGL_J2324.7+0801_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842033/ft1_4FGL_J2324.7+0801_daily_bin836.fits outfile=/scratch/kocevski/842033/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin836.fits ra=351.19 dec=8.0282 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.91
user 6.58
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.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/842033/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.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/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/842033/ltcube_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.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/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits
.....................!
real 11.71
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/842033/ltcube_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.fits outfile=/scratch/kocevski/842033/expmap_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.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/842033/ltcube_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.fits
.....................!
real 190.39
user 185.22
sys 4.82

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/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits outfile=/scratch/kocevski/842033/cmap_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.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.78
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits outfile=/scratch/kocevski/842033/cmap_HighResolution_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/842033/ft2_4FGL_J2324.7+0801_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842033/Model_4FGL_J2324.7+0801_daily_bin836.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/842033/ft1_filtered_4FGL_J2324.7+0801_daily_bin836.fits.....................!
real 78.46
user 77.00
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3749       1.0000         .10000E-03   10000.    
     3 'norm      '    13.638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5535       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0181       1.0000         .10000E-03   10000.    
     9 'norm      '    .85780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11152E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12014E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22664E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39304E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3617       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2730       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3125       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78400       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=   6716.751     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2925 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.271        .34416E-05** at limit **
   2  Prefactor     4.3748        .42880        .23354E-07    .23254E-03
   3  norm          13.640        14.541       -.37838E-06   -.27280E-05
   4  Prefactor     1.7203        229.09       -.91530E-05   -.22294E-06
   5  Prefactor     1.6866        8.2843       -.27955E-05    .41450E-04
   6  Prefactor     26.573        19.559        .17340E-06    .54427E-04
   7  Prefactor     .10000E-03    9.1530        .72869E-07** at limit **
   8  Prefactor     7.0220        9.9594       -.17296E-06    .22261E-04
   9  norm          .85764        .83328       -.29414E-07    .61919E-04
  10  Prefactor     19.582        13.002        .13773E-06    .59481E-04
  11  Prefactor     17.158        28.400       -.11674E-05   -.16439E-04
  12  Prefactor     .10000E-03    37.214        .10364E-05** at limit **
  13  norm          .10000E-03    10.469        .64284E-06** at limit **
  14  Prefactor     .10000E-03    26.427        .40466E-05** at limit **
  15  Prefactor     .10000E-03    78.205       -.14120E-05** at limit **
  16  Prefactor     .10000E-03    3.9388        .14455E-06** at limit **
  17  Prefactor     .10000E-03    86.317        .15151E-05** at limit **
  18  norm          .10000E-03    8.1243        .54793E-07** at limit **
  19  norm          .10000E-03    5.3164        .51204E-07** at limit **
  20  Prefactor     3.3659        4.4422       -.65604E-06    .59530E-04
  21  Prefactor     .10000E-03    19.691       -.15718E-05** at limit **
  22  Prefactor     .10000E-03    5.7219        .45923E-07** at limit **
  23  Prefactor     3.2862        10.757        .76932E-06    .67768E-04
  24  Normalizat    1.3125        .23918        .12409E-05    .30695E-04
  25  Prefactor     .78404        .13921       -.41748E-06    .13612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.37481
  norm       = 13.6398
  Prefactor  = 1.72025
  Prefactor  = 1.68663
  Prefactor  = 26.5727
  Prefactor  = 0.0001
  Prefactor  = 7.02201
  norm       = 0.857637
  Prefactor  = 19.5822
  Prefactor  = 17.1578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.36589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28617
  Normalizat = 1.31249
  Prefactor  = 0.784039
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.751     FROM HESSE     STATUS=OK           431 CALLS     3356 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3748        .42910        .16082E-04   -1.5290    
   3  norm          13.640        14.539        .10846E-03   -1.4969    
   4  Prefactor     1.7203        230.14        .34163E-03   -1.5446    
   5  Prefactor     1.6866        8.4900        .32434E-03   -1.5448    
   6  Prefactor     26.573        19.557        .77716E-04   -1.4677    
   7  Prefactor     .10000E-03    9.1675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0220        9.9172        .15143E-03   -1.5178    
   9  norm          .85764        .79792        .71227E-03   -1.5523    
  10  Prefactor     19.582        12.956        .90538E-04   -1.4823    
  11  Prefactor     17.158        28.385        .96680E-04   -1.4879    
  12  Prefactor     .10000E-03    37.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.186        .39297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9470        .15884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    90.116        .39032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.3171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3659        4.4428        .18900E-03   -1.5341    
  21  Prefactor     .10000E-03    19.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2862        10.886        .22383E-03   -1.5345    
  24  Normalizat    1.3125        .27389        .31332E-03   -.83194    
  25  Prefactor     .78404        .16209        .24303E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9634e-11
Minuit parameter uncertainties:
  1  0.000131658
  2  0.429103
  3  14.5429
  4  39.951
  5  7.56971
  6  19.5613
  7  4.02353e-06
  8  9.91956
  9  0.797925
  10  12.958
  11  28.4077
  12  4.73385e-05
  13  9.3197e-06
  14  0.000108633
  15  9.85761e-05
  16  6.31157e-06
  17  0.000211594
  18  8.4147e-07
  19  2.97138e-06
  20  4.44322
  21  7.0126e-05
  22  1.28798e-06
  23  10.8928
  24  0.274189
  25  0.162184
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.958e+01  1.296e+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:  7.840e-01  1.622e-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.312e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.99e-05

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) = 6716.38214339
delta logL = 0.368459444557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6716.38172029
delta logL = 0.36888253587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.751       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7965       1.0000          .0000       10.000    
     3 'Normalizat'    1.3447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77180       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=   6716.382     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      267 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.695        580.76        .19364E-02    .73823E-04
   2  Index         1.7947        5.4678        .16422        .42244E-04
   3  Normalizat    1.3447        .33232        .70108E-01    .11236E-04
   4  Prefactor     .77194        .12482        .43349E-01    .31057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6948
  Index      = 1.79468
  Normalizat = 1.34467
  Prefactor  = 0.771937
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.382     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.695        18.116        .38728E-03   -1.4674    
   2  Index         1.7947        .46691        .81402E-02   -.69588    
   3  Normalizat    1.3447        .25852        .31017E-03   -.82243    
   4  Prefactor     .77194        .15981        .24467E-03   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09607e-12
Minuit parameter uncertainties:
  1  18.12
  2  0.468069
  3  0.258768
  4  0.159906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842033': 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) = 6716.38170563
delta logL = 0.368897201601

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.669e+01  1.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.795e+00  4.681e-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:  7.719e-01  1.599e-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.345e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.79 +/- 0.47
Photon Flux (Free Index): 4.52e-08 +/- 4.05e-08
Energy Flux (Free Index): 5.50e-05 +/- 5.80e-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/842033/cmap_HighResolution_456019201_456278401_4FGL_J2324.7+0801_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='5.50e-05', photon_flux_error='4.66e-08', dlogl='3.69e-01', energy_flux='3.01e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-29 16:34:44.670776', photon_index_error2='0.47', photon_index2='1.79', ts='4.68', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='5.80e-05', EG='1.31', time_epoch_completed='1632958484.67', return_code='0', job_id='842033', GAL2='0.77', EG2='1.34', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='4.05e-08', ts2='5.40', photon_index='2.23' WHERE bin_id='836' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 842033: <4FGL_J2324.7+0801_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin836 351.19 8.0282 456019201 456278401 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

