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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin548
RA = 351.19, Dec = 8.0282
tmin = 381369601, tmax = 381628801
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='839426', job_status='RUN', time_executed='2021-09-29 16:14:32.104224', time_epoch_executed='1632957272.1' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839426

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839426/ft1_4FGL_J2324.7+0801_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839426/ft1_4FGL_J2324.7+0801_daily_bin548.fits outfile=/scratch/kocevski/839426/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin548.fits ra=351.19 dec=8.0282 rad=12.0 tmin=381369601.0 tmax=381628801.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.56
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839426/ft1_filtered_4FGL_J2324.7+0801_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/839426/ltcube_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.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/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839426/ft1_filtered_4FGL_J2324.7+0801_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/839426/ltcube_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.fits outfile=/scratch/kocevski/839426/expmap_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.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/839426/ltcube_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.fits
.....................!
real 190.69
user 185.62
sys 4.70

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/839426/ft1_filtered_4FGL_J2324.7+0801_daily_bin548.fits scfile=/scratch/kocevski/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits outfile=/scratch/kocevski/839426/cmap_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839426/ft1_filtered_4FGL_J2324.7+0801_daily_bin548.fits scfile=/scratch/kocevski/839426/ft2_4FGL_J2324.7+0801_daily_bin548.fits outfile=/scratch/kocevski/839426/cmap_HighResolution_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8051       1.0000         .10000E-03   10000.    
     3 'norm      '    16.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12620E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.182       1.0000         .10000E-03   10000.    
     9 'norm      '    .40013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .96401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45942E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26420E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.138       1.0000         .10000E-03   10000.    
    18 'norm      '    15.662       1.0000         .10000E-03   10000.    
    19 'norm      '    13.772       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.026       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5403       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91861       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94828       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=   6958.526     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.335        .13582E-05** at limit **
   2  Prefactor     2.8050        .29959       -.12796E-07    .12129E-02
   3  norm          16.506        14.700        .12172E-05    .54410E-05
   4  Prefactor     .10000E-03    14.339       -.14488E-05** at limit **
   5  Prefactor     .10000E-03    16.607       -.22997E-05** at limit **
   6  Prefactor     .47015E-01    12.070       -.67508E-06    .94472E-05
   7  Prefactor     7.8389        14.121        .11170E-05   -.30834E-04
   8  Prefactor     13.172        9.7194       -.97083E-06    .79970E-04
   9  norm          .39687        .94221       -.34491E-06   -.20243E-02
  10  Prefactor     .10000E-03    4.5362        .78922E-07** at limit **
  11  Prefactor     .95327        17.348       -.55370E-06    .65271E-04
  12  Prefactor     .10000E-03    47.108        .25227E-05** at limit **
  13  norm          2.1897        9.5724        .11661E-05   -.35111E-03
  14  Prefactor     .10016E-03    8.3590       -.26557E-08** at limit **
  15  Prefactor     .10000E-03    198.19        .90919E-05** at limit **
  16  Prefactor     .10000E-03    6.9285        .32173E-06** at limit **
  17  Prefactor     57.141        30.806       -.21977E-06   -.37071E-05
  18  norm          15.662        15.400        .10928E-06    .11070E-05
  19  norm          13.741        21.033       -.57802E-05   -.42316E-04
  20  Prefactor     .10000E-03    5.3696        .59331E-06** at limit **
  21  Prefactor     33.017        34.990       -.26002E-05   -.63582E-05
  22  Prefactor     .10000E-03    16.783        .18031E-05** at limit **
  23  Prefactor     2.5368        7.7371        .12669E-05   -.35224E-03
  24  Normalizat    .91898        .21655        .64728E-06    .67294E-04
  25  Prefactor     .94825        .13040        .12473E-06    .13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.80503
  norm       = 16.5062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0470147
  Prefactor  = 7.83891
  Prefactor  = 13.172
  norm       = 0.396872
  Prefactor  = 0.0001
  Prefactor  = 0.953271
  Prefactor  = 0.0001
  norm       = 2.18969
  Prefactor  = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.1415
  norm       = 15.6618
  norm       = 13.7406
  Prefactor  = 0.000100001
  Prefactor  = 33.0172
  Prefactor  = 0.0001
  Prefactor  = 2.5368
  Normalizat = 0.918979
  Prefactor  = 0.948247
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.526     FROM HESSE     STATUS=OK           449 CALLS     3450 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8050        .29969        .14342E-04   -1.5373    
   3  norm          16.506        14.673        .98575E-04   -1.4895    
   4  Prefactor     .10000E-03    14.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47015E-01    18.651        .75784E-01   -1.5665    
   7  Prefactor     7.8389        14.072        .14318E-03   -1.5148    
   8  Prefactor     13.172        9.9765        .11033E-03   -1.4982    
   9  norm          .39687        .97739        .12596E-03   -1.5582    
  10  Prefactor     .10000E-03    4.5488        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95327        145.28        .56683E-02   -1.5513    
  12  Prefactor     .10000E-03    47.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1897        9.0424        .27893E-03   -1.5412    
  14  Prefactor     .10016E-03    10.535        .56389E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    198.21        .19962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.141        30.710        .53071E-04   -1.4195    
  18  norm          15.662        15.396        .10121E-03   -1.4916    
  19  norm          13.741        20.675        .10793E-03   -1.4966    
  20  Prefactor     .10000E-03    5.6053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.017        35.080        .69727E-04   -1.4558    
  22  Prefactor     .10000E-03    16.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5368        7.6177        .25623E-03   -1.5389    
  24  Normalizat    .91898        .25388        .33424E-03   -.95796    
  25  Prefactor     .94825        .15304        .21027E-03   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60753e-09
Minuit parameter uncertainties:
  1  6.52919e-07
  2  0.299691
  3  14.6759
  4  5.58956e-06
  5  6.17236e-05
  6  1.87143
  7  14.0783
  8  9.97776
  9  0.977434
  10  5.48463e-06
  11  23.594
  12  4.206e-05
  13  8.90159
  14  0.00257334
  15  0.000350397
  16  8.19641e-05
  17  30.7187
  18  15.3995
  19  20.6854
  20  0.00013849
  21  35.1022
  22  4.01464e-07
  23  7.62064
  24  0.254209
  25  0.153112
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.485e-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:  9.482e-01  1.531e-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.190e-01  2.542e-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: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839426/likelihoodResults_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.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) = 6958.52712586
delta logL = -0.00104689348973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6958.52607895
delta logL = 1.88547346625e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2194       1.0000          .0000       10.000    
     3 'Normalizat'    .91898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94826       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=   6958.526     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    65.830        .17394E-02** at limit **
   2  Index         2.1732        6.6878        .50000        .13358E-04
   3  Normalizat    .91898        .20136E-01    .33424E-03   -.16667E-04
   4  Prefactor     .94825        .12937E-01    .21027E-03   -.15896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100558
  Index      = 2.17318
  Normalizat = 0.918979
  Prefactor  = 0.948246
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.526     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    307.92        .34788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1732        8.9117        .50000       -.60087    
   3  Normalizat    .91898        .46774E-01    .13370E-04   -.95796    
   4  Prefactor     .94825        .30029E-01    .84106E-05   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.15814e-08
Minuit parameter uncertainties:
  1  0.0263494
  2  924.071
  3  0.0467758
  4  0.0300294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839426': 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) = 6958.52607883
delta logL = 1.31876731757e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.006e-04  2.635e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.173e+00  9.241e+02  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.482e-01  3.003e-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:  9.190e-01  4.678e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/839426/cmap_HighResolution_381369601_381628801_4FGL_J2324.7+0801_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-29 16:26:57.265956', job_id='839426', GAL2='0.95', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632958017.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='548' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:26:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 839426: <4FGL_J2324.7+0801_daily_bin548> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin548> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:30 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:31 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:10:31 2021
Terminated at Wed Sep 29 16:26:57 2021
Results reported at Wed Sep 29 16:26:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin548 351.19 8.0282 381369601 381628801 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 :                                   743.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

