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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1364
RA = 351.19, Dec = 8.0282
tmin = 592876801, tmax = 593136001
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='843889', job_status='RUN', time_executed='2021-09-29 16:27:58.401497', time_epoch_executed='1632958078.4' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843889

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843889/ft1_4FGL_J2324.7+0801_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843889/ft1_4FGL_J2324.7+0801_daily_bin1364.fits outfile=/scratch/kocevski/843889/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1364.fits ra=351.19 dec=8.0282 rad=12.0 tmin=592876801.0 tmax=593136001.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.83
user 3.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/843889/ltcube_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.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/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits
.....................!
real 12.27
user 11.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/843889/ltcube_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.fits outfile=/scratch/kocevski/843889/expmap_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.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/843889/ltcube_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.fits
.....................!
real 189.98
user 185.03
sys 4.55

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/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits scfile=/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits outfile=/scratch/kocevski/843889/cmap_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits scfile=/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits outfile=/scratch/kocevski/843889/cmap_HighResolution_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.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/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/843889/ft2_4FGL_J2324.7+0801_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843889/Model_4FGL_J2324.7+0801_daily_bin1364.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/843889/ft1_filtered_4FGL_J2324.7+0801_daily_bin1364.fits.....................!
real 69.38
user 68.01
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53459       1.0000         .10000E-03   10000.    
     3 'norm      '    10.302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .98087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13984E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.823       1.0000         .10000E-03   10000.    
    19 'norm      '    24.591       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.490       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89802       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83646       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=   6427.087     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2953 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.336        24.073        .12234E-06   -.15510E-04
   2  Prefactor     .53459        .20300       -.31524E-08    .61434E-04
   3  norm          10.300        16.815        .14544E-06    .94287E-04
   4  Prefactor     6.3832        31.295        .63352E-06    .16652E-05
   5  Prefactor     6.8497        7.6271        .75294E-06   -.10746E-03
   6  Prefactor     .10000E-03    3.4661       -.11298E-07** at limit **
   7  Prefactor     31.530        22.028        .15272E-06    .81838E-04
   8  Prefactor     .10000E-03    5.5379       -.27258E-06** at limit **
   9  norm          .98137        .98448        .12857E-06    .30325E-03
  10  Prefactor     .10000E-03    5.3333       -.36936E-07** at limit **
  11  Prefactor     39.616        25.957        .19861E-06   -.97165E-04
  12  Prefactor     .10000E-03    17.681        .16917E-06** at limit **
  13  norm          11.177        10.581       -.17833E-05   -.55990E-04
  14  Prefactor     3.4344        9.5799        .60725E-05   -.28207E-03
  15  Prefactor     .10000E-03    320.87        .26079E-05** at limit **
  16  Prefactor     .10001E-03    9.7583        .38451E-05** at limit **
  17  Prefactor     .10000E-03    28.892       -.10106E-07** at limit **
  18  norm          13.823        22.178       -.41315E-06   -.18453E-04
  19  norm          24.582        18.817       -.92744E-06    .25780E-03
  20  Prefactor     1.7045        2.1213        .15130E-06    .27648E-04
  21  Prefactor     .10000E-03    8.8624        .71939E-07** at limit **
  22  Prefactor     13.491        15.901        .17911E-06   -.35924E-04
  23  Prefactor     .10000E-03    4.1525       -.29822E-07** at limit **
  24  Normalizat    .89803        .20454       -.18520E-05   -.24648E-04
  25  Prefactor     .83646        .11932        .21441E-06   -.82588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3363
  Prefactor  = 0.534594
  norm       = 10.3
  Prefactor  = 6.38323
  Prefactor  = 6.84967
  Prefactor  = 0.0001
  Prefactor  = 31.5304
  Prefactor  = 0.0001
  norm       = 0.981373
  Prefactor  = 0.0001
  Prefactor  = 39.616
  Prefactor  = 0.0001
  norm       = 11.1769
  Prefactor  = 3.43436
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 13.8234
  norm       = 24.5824
  Prefactor  = 1.70452
  Prefactor  = 0.0001
  Prefactor  = 13.4908
  Prefactor  = 0.0001
  Normalizat = 0.898029
  Prefactor  = 0.83646
 **********
 **   18 **HESSE 
 **********

 FCN=   6427.087     FROM HESSE     STATUS=OK           431 CALLS     3384 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.336        24.125        .11405E-03   -1.5005    
   2  Prefactor     .53459        .20184        .20252E-04   -1.5562    
   3  norm          10.300        16.823        .12484E-03   -1.5066    
   4  Prefactor     6.3832        31.292        .15886E-03   -1.5203    
   5  Prefactor     6.8497        7.6107        .76651E-03   -1.5184    
   6  Prefactor     .10000E-03    3.4696        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.530        22.055        .71356E-04   -1.4584    
   8  Prefactor     .10000E-03    5.5885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .98137        .94490        .76189E-03   -1.5510    
  10  Prefactor     .10000E-03    5.3522        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.616        25.970        .63684E-04   -1.4448    
  12  Prefactor     .10000E-03    17.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.177        10.648        .11983E-03   -1.5039    
  14  Prefactor     3.4344        9.7151        .10913E-02   -1.5337    
  15  Prefactor     .10000E-03    322.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    10.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.823        22.196        .10773E-03   -1.4964    
  19  norm          24.582        18.932        .80778E-04   -1.4716    
  20  Prefactor     1.7045        2.1096        .12570E-03   -1.5447    
  21  Prefactor     .10000E-03    8.8677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.491        15.908        .10905E-03   -1.4973    
  23  Prefactor     .10000E-03    4.1615        .15954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89803        .23581        .30664E-03   -.96529    
  25  Prefactor     .83646        .13834        .19643E-03   -.98398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31301e-09
Minuit parameter uncertainties:
  1  24.1437
  2  0.20184
  3  16.8305
  4  28.2899
  5  7.61177
  6  1.76257e-07
  7  22.061
  8  3.54839e-05
  9  0.944914
  10  3.39064e-06
  11  25.9774
  12  2.71904e-05
  13  10.6499
  14  9.71957
  15  0.000192385
  16  0.000679854
  17  8.98654e-05
  18  22.2093
  19  18.9363
  20  2.10973
  21  7.06361e-06
  22  15.9133
  23  9.18717e-07
  24  0.236086
  25  0.138393
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.391e-06  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.365e-01  1.384e-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:  8.980e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843889/likelihoodResults_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.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): 102
logL (Free Index) = 6427.08801679
delta logL = -0.000890360489393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6427.08712649
delta logL = -6.71489033266e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2405       1.0000          .0000       10.000    
     3 'Normalizat'    .89799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83649       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=   6427.087     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    351.13        .18142E-02** at limit **
   2  Index         2.2535        5.3151        .50000       -.21429E-04
   3  Normalizat    .89803        .43502E-01    .30664E-03    .17573E-04
   4  Prefactor     .83646        .27182E-01    .19643E-03    .33221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.25345
  Normalizat = 0.898029
  Prefactor  = 0.83646
 **********
 **   18 **HESSE 
 **********

 FCN=   6427.087     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1086.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2535        5.2196        .50000       -.58154    
   3  Normalizat    .89803        .11856        .12266E-04   -.96529    
   4  Prefactor     .83646        .74087E-01    .78573E-05   -.98398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27693e-10
Minuit parameter uncertainties:
  1  0.003354
  2  60.3134
  3  0.118595
  4  0.0740961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843889': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6427.0871263
delta logL = 1.24448888528e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.354e-03  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.253e+00  6.031e+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:  8.365e-01  7.410e-02  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:  8.980e-01  1.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/843889/cmap_HighResolution_592876801_593136001_4FGL_J2324.7+0801_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-29 16:41:12.526280', job_id='843889', GAL2='0.84', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632958872.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1364' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 843889: <4FGL_J2324.7+0801_daily_bin1364> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1364> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:49 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:51 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:51 2021
Terminated at Wed Sep 29 16:41:13 2021
Results reported at Wed Sep 29 16:41:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1364 351.19 8.0282 592876801 593136001 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

