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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1259
RA = 351.19, Dec = 8.0282
tmin = 565660801, tmax = 565920001
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='843739', job_status='RUN', time_executed='2021-09-29 16:27:50.078341', time_epoch_executed='1632958070.08' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843739/ft1_4FGL_J2324.7+0801_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843739/ft1_4FGL_J2324.7+0801_daily_bin1259.fits outfile=/scratch/kocevski/843739/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1259.fits ra=351.19 dec=8.0282 rad=12.0 tmin=565660801.0 tmax=565920001.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.51
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.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/843739/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1259.fits evtable="EVENTS" outfile="/scratch/kocevski/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/843739/ltcube_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.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/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits
.....................!
real 11.67
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/843739/ltcube_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.fits outfile=/scratch/kocevski/843739/expmap_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.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/843739/ltcube_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.fits
.....................!
real 190.24
user 185.65
sys 4.22

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/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.fits scfile=/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits outfile=/scratch/kocevski/843739/cmap_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/843739/ft2_4FGL_J2324.7+0801_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843739/Model_4FGL_J2324.7+0801_daily_bin1259.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/843739/ft1_filtered_4FGL_J2324.7+0801_daily_bin1259.fits.....................!
real 75.00
user 73.61
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30834       1.0000         .10000E-03   10000.    
     3 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4287       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.579       1.0000         .10000E-03   10000.    
     9 'norm      '    .20503       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .96794E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7322       1.0000         .10000E-03   10000.    
    13 'norm      '    11.427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36234E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13768E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10544E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2559       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9205       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .39525       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7059.132     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     2468 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    19.715       -.31671E-05** at limit **
   2  Prefactor     .30836        .15396        .17740E-07   -.58724E-03
   3  norm          .10000E-03    5.0108        .44789E-06** at limit **
   4  Prefactor     31.053        21.437       -.39243E-05   -.24249E-03
   5  Prefactor     7.4282        5.3112        .27352E-05    .11436E-02
   6  Prefactor     5.6629        2.2641        .35116E-05   -.41756E-03
   7  Prefactor     .10000E-03    5.7186       -.23322E-06** at limit **
   8  Prefactor     30.574        5.6115       -.27513E-05    .75569E-02
   9  norm          .20524        .52058       -.47167E-07   -.30965E-03
  10  Prefactor     6.7268        6.9308       -.44859E-06   -.39713E-03
  11  Prefactor     .24257E-03    1140.1        .11245E-04** at limit **
  12  Prefactor     2.7281        15.430        .42861E-05    .12358E-02
  13  norm          11.427        5.8315        .69795E-05    .13660E-02
  14  Prefactor     7.2164        3.8445        .55470E-05    .55520E-02
  15  Prefactor     .45671E-03    101.36        .25570E-04** at limit **
  16  Prefactor     .10000E-03    2.4177       -.81084E-07** at limit **
  17  Prefactor     .10004E-03    22.259        .19082E-05** at limit **
  18  norm          .10000E-03    6.7594       -.43596E-06** at limit **
  19  norm          .10000E-03    5.8110        .20266E-06** at limit **
  20  Prefactor     3.2580        3.0403        .29764E-06    .71666E-04
  21  Prefactor     32.157        20.535        .32547E-05    .15414E-02
  22  Prefactor     11.661        13.995       -.51442E-05    .80256E-03
  23  Prefactor     5.9204        3.3550        .31145E-05    .13131E-02
  24  Normalizat    .39526        .22025       -.94577E-05   -.25244E-04
  25  Prefactor     1.2245        .14382        .13893E-06   -.59163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.308357
  norm       = 0.0001
  Prefactor  = 31.0525
  Prefactor  = 7.4282
  Prefactor  = 5.66294
  Prefactor  = 0.0001
  Prefactor  = 30.5739
  norm       = 0.205243
  Prefactor  = 6.72676
  Prefactor  = 0.000242574
  Prefactor  = 2.7281
  norm       = 11.4268
  Prefactor  = 7.21643
  Prefactor  = 0.000456709
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.25796
  Prefactor  = 32.157
  Prefactor  = 11.6608
  Prefactor  = 5.92038
  Normalizat = 0.395262
  Prefactor  = 1.22448
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.132     FROM HESSE     STATUS=OK           491 CALLS     2959 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    19.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30836        .15636        .50569E-02   -1.5597    
   3  norm          .10000E-03    4.9949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.053        36.026        .17983E-02   -1.4593    
   5  Prefactor     7.4282        6.2182        .36787E-02   -1.5163    
   6  Prefactor     5.6629        9.6118        .42196E-02   -1.5232    
   7  Prefactor     .10000E-03    5.7109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.574        13.031        .18114E-02   -1.4602    
   9  norm          .20524        .52758        .22386E-01   -1.5617    
  10  Prefactor     6.7268        7.0013        .38679E-02   -1.5189    
  11  Prefactor     .24257E-03    31.721        .11546       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7281        93.444        .61586E-02   -1.5378    
  13  norm          11.427        10.049        .29628E-02   -1.5032    
  14  Prefactor     7.2164        9.1392        .37334E-02   -1.5171    
  15  Prefactor     .45671E-03    649.68        .98072E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    22.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2580        3.0555        .56112E-02   -1.5347    
  21  Prefactor     32.157        34.804        .17658E-02   -1.4573    
  22  Prefactor     11.661        14.558        .29325E-02   -1.5025    
  23  Prefactor     5.9204        6.1575        .41259E-02   -1.5221    
  24  Normalizat    .39526        .23336        .10322       -1.1755    
  25  Prefactor     1.2245        .14139        .34075E-01   -.85581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53116e-07
Minuit parameter uncertainties:
  1  0.000794424
  2  0.156363
  3  1.91592e-05
  4  36.0516
  5  6.21877
  6  9.61441
  7  3.84861e-06
  8  13.0319
  9  0.527592
  10  7.00215
  11  0.134572
  12  31.9864
  13  10.0506
  14  9.14095
  15  0.97354
  16  3.57431e-05
  17  0.0018849
  18  6.6984e-06
  19  1.28721e-05
  20  3.05568
  21  34.8264
  22  14.5621
  23  6.15816
  24  0.233939
  25  0.141436
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.727e+00  7.002e+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:  1.224e+00  1.414e-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:  3.953e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.08e-05

TS (Fixed Index): 3.24
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843739/likelihoodResults_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.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) = 7058.52011777
delta logL = 0.612056173371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7058.50365002
delta logL = 0.62852391668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2104       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4378       1.0000          .0000       10.000    
     3 'Normalizat'    .40678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2220       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=   7058.504     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2123        8.9856        .13992E-03   -.34053E-03
   2  Index         1.4381        .62525        .11093E-01   -.33959E-04
   3  Normalizat    .40676        .21666        .45127E-03   -.63593E-03
   4  Prefactor     1.2220        .14342        .17701E-03   -.11871E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21233
  Index      = 1.4381
  Normalizat = 0.406765
  Prefactor  = 1.22197
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.504     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2123        9.1064        .55967E-05   -1.5135    
   2  Index         1.4381        .63374        .44372E-03   -.79288    
   3  Normalizat    .40676        .21667        .18051E-04   -1.1695    
   4  Prefactor     1.2220        .14343        .35403E-04   -.85658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44862e-09
Minuit parameter uncertainties:
  1  9.10791
  2  0.637237
  3  0.217115
  4  0.143475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843739': 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) = 7058.50364993
delta logL = 0.628524006815

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.212e+00  9.108e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.438e+00  6.372e-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:  1.222e+00  1.435e-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:  4.068e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.44 +/- 0.64
Photon Flux (Free Index): 9.09e-09 +/- 1.26e-08
Energy Flux (Free Index): 3.54e-05 +/- 5.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/843739/cmap_HighResolution_565660801_565920001_4FGL_J2324.7+0801_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='3.54e-05', photon_flux_error='2.52e-08', dlogl='6.29e-01', energy_flux='1.03e-05', photon_flux2='9.09e-09', job_status='DONE', time_completed='2021-09-29 16:40:44.045491', photon_index_error2='0.64', photon_index2='1.44', ts='3.24', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='9.79e-08', energy_flux_error2='5.55e-05', EG='0.40', time_epoch_completed='1632958844.05', return_code='0', job_id='843739', GAL2='1.22', EG2='0.41', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.26e-08', ts2='4.48', photon_index='2.23' WHERE bin_id='1259' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 843739: <4FGL_J2324.7+0801_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1259 351.19 8.0282 565660801 565920001 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 :                                   685.00 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             305.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

