/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 6 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin233
RA = 351.19, Dec = 8.0282
tmin = 299721601, tmax = 299980801
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='837955', job_status='RUN', time_executed='2021-09-29 16:05:57.099562', time_epoch_executed='1632956757.1' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837955/ft1_4FGL_J2324.7+0801_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837955/ft1_4FGL_J2324.7+0801_daily_bin233.fits outfile=/scratch/kocevski/837955/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin233.fits ra=351.19 dec=8.0282 rad=12.0 tmin=299721601.0 tmax=299980801.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.37
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837955/ft1_filtered_4FGL_J2324.7+0801_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/837955/ltcube_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.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/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits
.....................!
real 11.70
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837955/ft1_filtered_4FGL_J2324.7+0801_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/837955/ltcube_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.fits outfile=/scratch/kocevski/837955/expmap_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.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/837955/ltcube_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.fits
.....................!
real 189.65
user 185.40
sys 3.94

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/837955/ft1_filtered_4FGL_J2324.7+0801_daily_bin233.fits scfile=/scratch/kocevski/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits outfile=/scratch/kocevski/837955/cmap_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837955/ft1_filtered_4FGL_J2324.7+0801_daily_bin233.fits scfile=/scratch/kocevski/837955/ft2_4FGL_J2324.7+0801_daily_bin233.fits outfile=/scratch/kocevski/837955/cmap_HighResolution_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8146       1.0000         .10000E-03   10000.    
     3 'norm      '    17.654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7640       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0696       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .90325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    150.22       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.443       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7732       1.0000         .10000E-03   10000.    
    19 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0480       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.803       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9080       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99058       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98070       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=   9102.476     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2920 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1442        14.174        .16000E-05   -.20042E-04
   2  Prefactor     3.8147        .36540       -.58253E-07    .13140E-02
   3  norm          17.657        16.950       -.12982E-04    .21113E-04
   4  Prefactor     9.6685        38.104       -.87154E-05    .12405E-04
   5  Prefactor     3.0681        6.0549       -.15255E-05   -.47099E-03
   6  Prefactor     .10000E-03    9.9680       -.19446E-06** at limit **
   7  Prefactor     22.759        19.321       -.79711E-05    .41538E-04
   8  Prefactor     .10000E-03    5.3332       -.55604E-06** at limit **
   9  norm          .90329        .63834        .37843E-06    .11452E-02
  10  Prefactor     11.152        11.648       -.26889E-06   -.31222E-05
  11  Prefactor     .10000E-03    6.9947       -.32333E-06** at limit **
  12  Prefactor     150.23        70.041        .12350E-05    .18722E-04
  13  norm          2.6226        8.1982        .17619E-06   -.35011E-03
  14  Prefactor     .10000E-03    5.5401        .23115E-06** at limit **
  15  Prefactor     81.953        118.56       -.12674E-03   -.77170E-06
  16  Prefactor     .10000E-03    4.6787        .31821E-06** at limit **
  17  Prefactor     46.443        26.350       -.28726E-05    .43090E-04
  18  norm          6.7727        7.9107       -.47921E-06    .11904E-04
  19  norm          .10000E-03    23.310       -.34772E-06** at limit **
  20  Prefactor     5.0492        4.3895        .15680E-05   -.25307E-03
  21  Prefactor     73.811        51.313       -.95637E-06    .43359E-04
  22  Prefactor     17.228        27.648       -.12956E-04    .21805E-04
  23  Prefactor     6.9081        9.4422       -.63355E-06   -.51857E-04
  24  Normalizat    .99025        .22206        .92348E-05   -.11358E-03
  25  Prefactor     .98096        .12664        .83154E-06    .29727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14421
  Prefactor  = 3.81467
  norm       = 17.6567
  Prefactor  = 9.66854
  Prefactor  = 3.0681
  Prefactor  = 0.0001
  Prefactor  = 22.7585
  Prefactor  = 0.0001
  norm       = 0.903295
  Prefactor  = 11.1522
  Prefactor  = 0.0001
  Prefactor  = 150.23
  norm       = 2.6226
  Prefactor  = 0.0001
  Prefactor  = 81.9525
  Prefactor  = 0.0001
  Prefactor  = 46.4434
  norm       = 6.77269
  norm       = 0.0001
  Prefactor  = 5.04919
  Prefactor  = 73.8113
  Prefactor  = 17.2278
  Prefactor  = 6.90814
  Normalizat = 0.990246
  Prefactor  = 0.980961
 **********
 **   18 **HESSE 
 **********

 FCN=   9102.476     FROM HESSE     STATUS=OK           431 CALLS     3351 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1442        14.178        .13253E-03   -1.5103    
   2  Prefactor     3.8147        .36610        .16961E-04   -1.5317    
   3  norm          17.657        16.991        .95322E-04   -1.4867    
   4  Prefactor     9.6685        38.202        .12824E-03   -1.5086    
   5  Prefactor     3.0681        6.0487        .23152E-03   -1.5358    
   6  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.759        19.328        .83975E-04   -1.4753    
   8  Prefactor     .10000E-03    5.3781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .90329        .62681        .62129E-04   -1.5518    
  10  Prefactor     11.152        11.570        .11998E-03   -1.5040    
  11  Prefactor     .10000E-03    7.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     150.23        70.075        .32884E-04   -1.3250    
  13  norm          2.6226        8.1033        .25172E-03   -1.5384    
  14  Prefactor     .10000E-03    5.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     81.953        118.55        .22167E-03   -1.3895    
  16  Prefactor     .10000E-03    4.6911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.443        26.317        .58835E-04   -1.4344    
  18  norm          6.7727        7.9099        .15417E-03   -1.5187    
  19  norm          .10000E-03    23.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0492        4.3842        .17581E-03   -1.5259    
  21  Prefactor     73.811        51.526        .46735E-04   -1.3988    
  22  Prefactor     17.228        27.678        .96482E-04   -1.4878    
  23  Prefactor     6.9081        9.4510        .15265E-03   -1.5182    
  24  Normalizat    .99025        .25863        .36509E-03   -.93358    
  25  Prefactor     .98096        .14758        .22859E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38033e-09
Minuit parameter uncertainties:
  1  14.1831
  2  0.366097
  3  16.9953
  4  38.2984
  5  6.04988
  6  6.96575e-05
  7  19.3335
  8  5.02642e-05
  9  0.626811
  10  11.5726
  11  2.78893e-05
  12  70.1136
  13  8.1067
  14  6.27764e-05
  15  118.899
  16  6.40407e-05
  17  26.3235
  18  7.91114
  19  0.000152452
  20  4.38452
  21  51.5571
  22  27.699
  23  9.45304
  24  0.25896
  25  0.147645
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.115e+01  1.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.810e-01  1.476e-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:  9.902e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/837955/likelihoodResults_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.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) = 9102.40735616
delta logL = 0.0686843988951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9102.40387964
delta logL = 0.0721609214252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0537       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5711       1.0000          .0000       10.000    
     3 'Normalizat'    .96910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98869       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=   9102.404     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      287 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0437        173.92        .35320E-02    .51238E-03
   2  Index         2.5727        3.5345        .13491        .25148E-03
   3  Normalizat    .96855        .90226E-01    .83273E-01    .36822E-03
   4  Prefactor     .98893        .42079E-01    .46126E-01    .55733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04365
  Index      = 2.57267
  Normalizat = 0.96855
  Prefactor  = 0.988931
 **********
 **   18 **HESSE 
 **********

 FCN=   9102.404     FROM HESSE     STATUS=OK            31 CALLS      318 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0437        17.348        .14128E-03   -1.5141    
   2  Index         2.5727        1.3372        .82169E-02   -.50690    
   3  Normalizat    .96855        .24975        .36866E-03   -.94092    
   4  Prefactor     .98893        .15092        .22776E-03   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57771e-10
Minuit parameter uncertainties:
  1  17.359
  2  1.35898
  3  0.250048
  4  0.150981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837955': 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) = 9102.4038764
delta logL = 0.0721641614946

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.044e+00  1.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.573e+00  1.359e+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:  9.889e-01  1.510e-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:  9.686e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.57 +/- 1.36
Photon Flux (Free Index): 5.80e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.57e-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/837955/cmap_HighResolution_299721601_299980801_4FGL_J2324.7+0801_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.56e-05', photon_flux_error='4.16e-08', dlogl='7.22e-02', energy_flux='1.71e-05', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-29 16:20:18.320587', photon_index_error2='1.36', photon_index2='2.57', ts='1.50', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.57e-05', EG='0.99', time_epoch_completed='1632957618.32', return_code='0', job_id='837955', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.39e-08', ts2='1.67', photon_index='2.23' WHERE bin_id='233' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 837955: <4FGL_J2324.7+0801_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin233 351.19 8.0282 299721601 299980801 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 :                                   858.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             364.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

