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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin787
RA = 351.19, Dec = 8.0282
tmin = 443318401, tmax = 443577601
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='844202', job_status='RUN', time_executed='2021-09-29 16:28:52.844582', time_epoch_executed='1632958132.84' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844202/ft1_4FGL_J2324.7+0801_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844202/ft1_4FGL_J2324.7+0801_daily_bin787.fits outfile=/scratch/kocevski/844202/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin787.fits ra=351.19 dec=8.0282 rad=12.0 tmin=443318401.0 tmax=443577601.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 4.63
user 4.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.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/844202/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin787.fits evtable="EVENTS" outfile="/scratch/kocevski/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.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.72
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/844202/ltcube_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.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/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits
.....................!
real 14.35
user 13.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/844202/ltcube_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.fits outfile=/scratch/kocevski/844202/expmap_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.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/844202/ltcube_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.fits
.....................!
real 192.59
user 187.05
sys 5.14

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/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits outfile=/scratch/kocevski/844202/cmap_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits outfile=/scratch/kocevski/844202/cmap_HighResolution_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.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/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/844202/ft2_4FGL_J2324.7+0801_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844202/Model_4FGL_J2324.7+0801_daily_bin787.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/844202/ft1_filtered_4FGL_J2324.7+0801_daily_bin787.fits.....................!
real 75.95
user 74.55
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2025       1.0000         .10000E-03   10000.    
     3 'norm      '    9.8996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2819       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4764       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3885       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3321       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85530       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=   7045.452     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2485 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.25       -.81394E-05** at limit **
   2  Prefactor     1.2025        .26987        .40751E-07    .55777E-03
   3  norm          9.8998        11.244       -.35312E-06   -.15663E-04
   4  Prefactor     .10000E-03    12.526       -.69605E-06** at limit **
   5  Prefactor     1.2588        25.312        .57106E-05   -.35569E-03
   6  Prefactor     4.8580        16.508        .85290E-06   -.70476E-04
   7  Prefactor     13.249        12.426       -.63378E-07    .13917E-04
   8  Prefactor     1.4899        16.457       -.86992E-05   -.42547E-03
   9  norm          1.5373        .95633        .58234E-07    .65641E-03
  10  Prefactor     5.6878        8.6578       -.10260E-05    .28566E-04
  11  Prefactor     25.437        23.977       -.57304E-06    .12641E-03
  12  Prefactor     .10000E-03    40.474        .31576E-04** at limit **
  13  norm          .10000E-03    4.3359        .67638E-06** at limit **
  14  Prefactor     7.5369        8.8017       -.12727E-05    .39441E-04
  15  Prefactor     .10000E-03    107.75       -.70242E-05** at limit **
  16  Prefactor     1.0421        16.475       -.26687E-05    .26444E-03
  17  Prefactor     .10000E-03    33.570       -.29451E-04** at limit **
  18  norm          .10000E-03    6.5173       -.22071E-06** at limit **
  19  norm          .10000E-03    24.309        .40860E-05** at limit **
  20  Prefactor     3.1981        6.9285       -.94241E-06   -.10278E-03
  21  Prefactor     4.3878        45.733       -.15304E-05    .59903E-05
  22  Prefactor     .10000E-03    8.3201        .12750E-06** at limit **
  23  Prefactor     .10000E-03    2.9553        .26015E-06** at limit **
  24  Normalizat    1.3319        .22337        .19053E-05    .26798E-03
  25  Prefactor     .85542        .12836       -.18378E-06    .42162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.20251
  norm       = 9.89977
  Prefactor  = 0.0001
  Prefactor  = 1.25876
  Prefactor  = 4.85798
  Prefactor  = 13.2489
  Prefactor  = 1.48991
  norm       = 1.53728
  Prefactor  = 5.68779
  Prefactor  = 25.4365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53685
  Prefactor  = 0.0001
  Prefactor  = 1.04213
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.19812
  Prefactor  = 4.38776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33194
  Prefactor  = 0.855423
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.452     FROM HESSE     STATUS=OK           427 CALLS     2912 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2025        .26741        .19120E-04   -1.5489    
   3  norm          9.8998        11.249        .12736E-03   -1.5079    
   4  Prefactor     .10000E-03    12.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2588        24.212        .39191E-03   -1.5484    
   6  Prefactor     4.8580        16.398        .18245E-03   -1.5267    
   7  Prefactor     13.249        12.431        .11005E-03   -1.4980    
   8  Prefactor     1.4899        16.745        .35342E-03   -1.5464    
   9  norm          1.5373        .94642        .61352E-04   -1.5460    
  10  Prefactor     5.6878        8.6476        .16843E-03   -1.5231    
  11  Prefactor     25.437        23.534        .79400E-04   -1.4699    
  12  Prefactor     .10000E-03    40.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3586        .17057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5369        8.8157        .14609E-03   -1.5159    
  15  Prefactor     .10000E-03    107.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0421        56.904        .45030E-02   -1.5504    
  17  Prefactor     .10000E-03    33.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1981        6.7625        .22443E-03   -1.5350    
  21  Prefactor     4.3878        45.667        .19225E-03   -1.5289    
  22  Prefactor     .10000E-03    8.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9567        .14092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3319        .26196        .30143E-03   -.82618    
  25  Prefactor     .85542        .14991        .22207E-03   -.97717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39547e-09
Minuit parameter uncertainties:
  1  0.000452617
  2  0.26741
  3  11.2513
  4  7.175e-06
  5  11.0459
  6  16.4136
  7  12.4333
  8  9.99281
  9  0.94643
  10  8.64946
  11  23.543
  12  7.13207e-06
  13  1.31631e-05
  14  8.81723
  15  0.000117927
  16  15.4162
  17  0.000181251
  18  1.64509e-06
  19  0.000197555
  20  6.76416
  21  28.3382
  22  6.3989e-07
  23  2.92545e-07
  24  0.262221
  25  0.14998
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.688e+00  8.649e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.554e-01  1.500e-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.332e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/844202/likelihoodResults_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.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) = 7045.35307163
delta logL = 0.0994147869087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7045.34783217
delta logL = 0.104654241604

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7045.348     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      293 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1743        11.524        .18677E-03   -.70274E-03
   2  Index         2.7700        1.9116        .87620E-02   -.12117E-03
   3  Normalizat    1.3167        .25004        .30290E-03    .56677E-03
   4  Prefactor     .86056        .14996        .22146E-03    .60100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17428
  Index      = 2.77003
  Normalizat = 1.31667
  Prefactor  = 0.860559
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.348     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1743        7.6451        .74709E-05   -1.5352    
   2  Index         2.7700        1.2897        .35048E-03   -.46229    
   3  Normalizat    1.3167        .24720        .60579E-04   -.83070    
   4  Prefactor     .86056        .14880        .44292E-04   -.97533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20381e-09
Minuit parameter uncertainties:
  1  7.64747
  2  1.30824
  3  0.247424
  4  0.148871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844202': 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) = 7045.34783209
delta logL = 0.104654323056

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.174e+00  7.647e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.770e+00  1.308e+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:  8.606e-01  1.489e-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.317e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 351.190 8.028

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/844202/cmap_HighResolution_443318401_443577601_4FGL_J2324.7+0801_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-29 16:40:33.300184', job_id='844202', GAL2='0.86', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1632958833.3', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.05e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='787' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:33 PDT 2021



------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 841963: <4FGL_J2324.7+0801_daily_bin787> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin787 351.19 8.0282 443318401 443577601 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 844202: <4FGL_J2324.7+0801_daily_bin787> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin787 351.19 8.0282 443318401 443577601 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 :                                   700.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

