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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin671
RA = 351.19, Dec = 8.0282
tmin = 413251201, tmax = 413510401
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='840715', job_status='RUN', time_executed='2021-09-29 16:18:00.579442', time_epoch_executed='1632957480.58' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840715/ft1_4FGL_J2324.7+0801_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840715/ft1_4FGL_J2324.7+0801_daily_bin671.fits outfile=/scratch/kocevski/840715/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin671.fits ra=351.19 dec=8.0282 rad=12.0 tmin=413251201.0 tmax=413510401.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.38
user 4.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/840715/ltcube_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.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/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits
.....................!
real 9.26
user 8.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/840715/ltcube_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.fits outfile=/scratch/kocevski/840715/expmap_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.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/840715/ltcube_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.fits
.....................!
real 146.18
user 142.27
sys 3.68

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/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits scfile=/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits outfile=/scratch/kocevski/840715/cmap_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits scfile=/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits outfile=/scratch/kocevski/840715/cmap_HighResolution_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.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.44
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/840715/ft2_4FGL_J2324.7+0801_daily_bin671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840715/Model_4FGL_J2324.7+0801_daily_bin671.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/840715/ft1_filtered_4FGL_J2324.7+0801_daily_bin671.fits.....................!
real 29.98
user 28.92
sys 0.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7825       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45531E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.771       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.029       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8614       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20751E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .21964       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2037       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=   2737.427     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2862 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.564        22.486        .47665E-07   -.18234E-05
   2  Prefactor     1.7824        .42248        .11344E-07   -.13832E-05
   3  norm          .10000E-03    26.572        .21506E-06** at limit **
   4  Prefactor     .10000E-03    625.23       -.93759E-05** at limit **
   5  Prefactor     3.5961        14.020        .15437E-05    .16937E-05
   6  Prefactor     15.760        21.773        .67853E-06    .15153E-04
   7  Prefactor     .10000E-03    22.424        .26699E-06** at limit **
   8  Prefactor     17.025        12.364        .22091E-06   -.12177E-04
   9  norm          .10000E-03    .53505        .25529E-08** at limit **
  10  Prefactor     41.834        22.739        .32392E-06    .14994E-04
  11  Prefactor     28.006        24.795        .29356E-06   -.57972E-05
  12  Prefactor     .10000E-03    25.472       -.37629E-06** at limit **
  13  norm          .10000E-03    13.650        .98528E-06** at limit **
  14  Prefactor     1.8581        9.9625        .21755E-05    .27642E-05
  15  Prefactor     .10000E-03    1160.4        .25483E-04** at limit **
  16  Prefactor     .10000E-03    10.028       -.16505E-07** at limit **
  17  Prefactor     .10000E-03    13.584       -.11762E-06** at limit **
  18  norm          .10000E-03    8.4188        .43890E-07** at limit **
  19  norm          .10000E-03    22.758        .37716E-07** at limit **
  20  Prefactor     3.6312        8.8677        .55413E-06   -.78043E-04
  21  Prefactor     29.033        63.567        .23867E-05   -.39390E-06
  22  Prefactor     .10000E-03    17.476       -.81168E-07** at limit **
  23  Prefactor     .10000E-03    7.7184        .11837E-06** at limit **
  24  Normalizat    .22037        .34180       -.14799E-04    .76870E-05
  25  Prefactor     1.2032        .22563        .35236E-05    .40451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5644
  Prefactor  = 1.78241
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59607
  Prefactor  = 15.7603
  Prefactor  = 0.0001
  Prefactor  = 17.0247
  norm       = 0.0001
  Prefactor  = 41.8337
  Prefactor  = 28.006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.85809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63121
  Prefactor  = 29.0331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.220366
  Prefactor  = 1.20324
 **********
 **   18 **HESSE 
 **********

 FCN=   2737.427     FROM HESSE     STATUS=OK           425 CALLS     3287 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.564        22.497        .84309E-04   -1.4758    
   2  Prefactor     1.7824        .42305        .15505E-04   -1.5441    
   3  norm          .10000E-03    26.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    633.82        .19329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5961        14.007        .21279E-03   -1.5329    
   6  Prefactor     15.760        21.805        .10085E-03   -1.4914    
   7  Prefactor     .10000E-03    22.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.025        12.371        .97056E-04   -1.4883    
   9  norm          .10000E-03    .53553        .37371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.834        22.763        .61960E-04   -1.4413    
  11  Prefactor     28.006        24.808        .75702E-04   -1.4649    
  12  Prefactor     .10000E-03    25.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8581        9.9918        .15271E-02   -1.5435    
  15  Prefactor     .10000E-03    1163.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.047        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.4235        .14828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6312        8.8711        .21194E-03   -1.5327    
  21  Prefactor     29.033        63.735        .74305E-04   -1.4630    
  22  Prefactor     .10000E-03    17.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.7462        .14199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .22037        .34343        .57811E-03   -1.2795    
  25  Prefactor     1.2032        .22653        .17307E-03   -.86232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95469e-11
Minuit parameter uncertainties:
  1  22.5059
  2  0.423053
  3  3.38397e-06
  4  0.00111188
  5  14.0197
  6  21.8162
  7  5.91281e-06
  8  12.3731
  9  1.82397e-07
  10  22.7675
  11  24.817
  12  4.84004e-06
  13  1.55369e-05
  14  8.61957
  15  0.00120582
  16  6.03892e-06
  17  2.54291e-06
  18  4.05149e-07
  19  6.2035e-06
  20  8.87428
  21  63.8855
  22  3.44576e-06
  23  2.83473e-07
  24  0.346797
  25  0.226712
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.183e+01  2.277e+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:  1.203e+00  2.267e-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:  2.204e-01  3.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.03
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 8.19e-08
Energy Flux (Fixed Index): 6.43e-05 +/- 3.50e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2737.3987632
delta logL = 0.0278723991623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2737.39730706
delta logL = 0.0293285388375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.263       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3567       1.0000          .0000       10.000    
     3 'Normalizat'    .19896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2116       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=   2737.397     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      283 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.284        32.736        .66552E-04    .21840E-03
   2  Index         2.3575        .57884        .33678E-02    .89807E-04
   3  Normalizat    .19874        .34557        .60696E-03    .68179E-05
   4  Prefactor     1.2114        .22865        .17249E-03    .27695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.2839
  Index      = 2.3575
  Normalizat = 0.198739
  Prefactor  = 1.21141
 **********
 **   18 **HESSE 
 **********

 FCN=   2737.397     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.284        30.559        .13310E-04   -1.4503    
   2  Index         2.3575        .53984        .13471E-03   -.55683    
   3  Normalizat    .19874        .34365        .24279E-04   -1.2950    
   4  Prefactor     1.2114        .22785        .34497E-04   -.85981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79174e-10
Minuit parameter uncertainties:
  1  30.5717
  2  0.541301
  3  0.347411
  4  0.228032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840715': 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) = 2737.39729958
delta logL = 0.02933601822

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.628e+01  3.057e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.357e+00  5.413e-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.211e+00  2.280e-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.987e-01  3.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.36 +/- 0.54
Photon Flux (Free Index): 1.68e-07 +/- 1.12e-07
Energy Flux (Free Index): 5.85e-05 +/- 3.67e-05

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/840715/cmap_HighResolution_413251201_413510401_4FGL_J2324.7+0801_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='5.85e-05', photon_flux_error='8.19e-08', dlogl='2.93e-02', energy_flux='6.43e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-29 16:23:49.270189', photon_index_error2='0.54', photon_index2='2.36', ts='8.03', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='3.67e-05', EG='0.22', time_epoch_completed='1632957829.27', return_code='0', job_id='840715', GAL2='1.21', EG2='0.20', return_code2='0', energy_flux_error='3.50e-05', photon_flux_error2='1.12e-07', ts2='8.06', photon_index='2.23' WHERE bin_id='671' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 840715: <4FGL_J2324.7+0801_daily_bin671> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin671> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:28 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:29 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:15:29 2021
Terminated at Wed Sep 29 16:23:50 2021
Results reported at Wed Sep 29 16:23:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin671 351.19 8.0282 413251201 413510401 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 :                                   347.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            502 sec.

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

