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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin640
RA = 351.19, Dec = 8.0282
tmin = 405216001, tmax = 405475201
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='840668', job_status='RUN', time_executed='2021-09-29 16:16:39.764982', time_epoch_executed='1632957399.77' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840668/ft1_4FGL_J2324.7+0801_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840668/ft1_4FGL_J2324.7+0801_daily_bin640.fits outfile=/scratch/kocevski/840668/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin640.fits ra=351.19 dec=8.0282 rad=12.0 tmin=405216001.0 tmax=405475201.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.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/840668/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin640.fits evtable="EVENTS" outfile="/scratch/kocevski/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.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.54
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/840668/ltcube_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.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/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits
.....................!
real 11.75
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/840668/ltcube_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.fits outfile=/scratch/kocevski/840668/expmap_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.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/840668/ltcube_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.fits
.....................!
real 191.13
user 185.78
sys 5.03

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.fits scfile=/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits outfile=/scratch/kocevski/840668/cmap_HighResolution_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/840668/ft2_4FGL_J2324.7+0801_daily_bin640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840668/Model_4FGL_J2324.7+0801_daily_bin640.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/840668/ft1_filtered_4FGL_J2324.7+0801_daily_bin640.fits.....................!
real 83.06
user 81.74
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8539       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20287E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.059       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2935       1.0000         .10000E-03   10000.    
     9 'norm      '    .40605       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.232       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.747       1.0000         .10000E-03   10000.    
    18 'norm      '    21.136       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2097       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5012       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65258       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=   7494.593     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2997 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.271        .52903E-07** at limit **
   2  Prefactor     1.8539        .27829       -.90843E-08    .22458E-03
   3  norm          .10000E-03    6.6372        .83813E-07** at limit **
   4  Prefactor     78.070        44.093       -.85658E-06    .46282E-05
   5  Prefactor     .10000E-03    3.9598       -.53364E-07** at limit **
   6  Prefactor     .10000E-03    2.2620        .43666E-07** at limit **
   7  Prefactor     19.060        21.522        .57431E-06    .58221E-05
   8  Prefactor     2.2922        1.1000        .49158E-07   -.25183E-03
   9  norm          .40553        .75359        .61223E-07    .46351E-03
  10  Prefactor     .10000E-03    3.3337        .27423E-07** at limit **
  11  Prefactor     20.647        17.818       -.12898E-06    .41884E-05
  12  Prefactor     34.225        59.201       -.70788E-05    .21484E-05
  13  norm          .10000E-03    2.8536        .28720E-07** at limit **
  14  Prefactor     3.2879        8.1015       -.57260E-06   -.10094E-04
  15  Prefactor     .10000E-03    197.35       -.63215E-06** at limit **
  16  Prefactor     3.4532        14.494       -.12481E-05    .26862E-05
  17  Prefactor     15.745        18.696        .42168E-06    .54326E-05
  18  norm          21.135        17.587        .14676E-06    .59916E-05
  19  norm          5.2080        27.208       -.69640E-06    .90484E-05
  20  Prefactor     .10000E-03    2.7751        .12681E-06** at limit **
  21  Prefactor     24.290        29.266        .28090E-06    .47494E-05
  22  Prefactor     .10000E-03    22.565        .23445E-06** at limit **
  23  Prefactor     .10000E-03    9.2939        .82315E-07** at limit **
  24  Normalizat    1.5014        .21585        .67176E-06   -.16290E-04
  25  Prefactor     .65247        .12363        .11190E-06    .37990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.85386
  norm       = 0.0001
  Prefactor  = 78.0705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0597
  Prefactor  = 2.29224
  norm       = 0.405529
  Prefactor  = 0.0001
  Prefactor  = 20.647
  Prefactor  = 34.2247
  norm       = 0.0001
  Prefactor  = 3.28795
  Prefactor  = 0.0001
  Prefactor  = 3.45319
  Prefactor  = 15.7453
  norm       = 21.135
  norm       = 5.20796
  Prefactor  = 0.0001
  Prefactor  = 24.2897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50139
  Prefactor  = 0.65247
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.593     FROM HESSE     STATUS=OK           433 CALLS     3430 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8539        .27594        .16849E-04   -1.5436    
   3  norm          .10000E-03    6.6498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     78.070        44.178        .45449E-04   -1.3939    
   5  Prefactor     .10000E-03    33.673        .32768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2624        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.060        21.561        .91742E-04   -1.4835    
   8  Prefactor     2.2922        8.1151        .13552E-02   -1.5405    
   9  norm          .40553        .60554        .98608E-03   -1.5581    
  10  Prefactor     .10000E-03    3.3437        .15434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.647        18.418        .88148E-04   -1.4799    
  12  Prefactor     34.225        58.986        .68492E-04   -1.4537    
  13  norm          .10000E-03    2.8608        .14269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2879        8.0822        .22326E-03   -1.5345    
  15  Prefactor     .10000E-03    197.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4532        13.429        .21755E-03   -1.5336    
  17  Prefactor     15.745        18.687        .10093E-03   -1.4914    
  18  norm          21.135        17.584        .87123E-04   -1.4788    
  19  norm          5.2080        24.636        .17612E-03   -1.5252    
  20  Prefactor     .10000E-03    2.8180        .14065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.290        29.311        .81277E-04   -1.4722    
  22  Prefactor     .10000E-03    22.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5014        .25267        .28375E-03   -.77739    
  25  Prefactor     .65247        .14365        .24446E-03   -1.0542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22944e-10
Minuit parameter uncertainties:
  1  1.28129e-05
  2  0.275937
  3  1.74825e-06
  4  44.1962
  5  0.000185287
  6  4.60298e-08
  7  21.5702
  8  8.11901
  9  0.60555
  10  4.09164e-07
  11  18.4227
  12  59.0867
  13  9.2573e-07
  14  8.08484
  15  0.000131647
  16  13.4405
  17  18.6938
  18  17.5884
  19  22.6694
  20  1.40164e-05
  21  29.3283
  22  2.04079e-05
  23  9.0819e-06
  24  0.252888
  25  0.143732
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.092e-07  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:  6.525e-01  1.437e-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.501e+00  2.529e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840668/likelihoodResults_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.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) = 7494.59419596
delta logL = -0.00141658301618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7494.59277917
delta logL = 2.00262547878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2067       1.0000          .0000       10.000    
     3 'Normalizat'    1.5014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65248       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7494.593     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    40.313        .15710E-02** at limit **
   2  Index         2.1403        5.8386        .50000        .42637E-04
   3  Normalizat    1.5014        .18099E-01    .28375E-03   -.36259E-04
   4  Prefactor     .65247        .10818E-01    .24446E-03   -.48412E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7494.593     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      367 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    40.313        .32561E-03** at limit **
   2  Index         2.1403        5.8386        .51054E-03    .42637E-04
   3  Normalizat    1.5014        .18099E-01    .36267E-05   -.36259E-04
   4  Prefactor     .65247        .10818E-01    .27863E-05   -.48412E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7494.593     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      413 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.459        .31420E-02** at limit **
   2  Index         1.7714        8.9405        .50000        .16450E-06
   3  Normalizat    1.5014        .17097E-01    .11350E-04    .58035E-03
   4  Prefactor     .65247        .10219E-01    .97783E-05    .67619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77144
  Normalizat = 1.50139
  Prefactor  = 0.652471
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.593     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.71        .62841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7714        6.7726        .50000       -.70195    
   3  Normalizat    1.5014        .38922E-01    .22700E-05   -.77739    
   4  Prefactor     .65247        .23261E-01    .19557E-05   -1.0542    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36227e-10
Minuit parameter uncertainties:
  1  0.000366266
  2  657.249
  3  0.0389232
  4  0.0232609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840668': 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) = 7494.59277654
delta logL = 2.83207009488e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.663e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.771e+00  6.572e+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:  6.525e-01  2.326e-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:  1.501e+00  3.892e-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/840668/cmap_HighResolution_405216001_405475201_4FGL_J2324.7+0801_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-29 16:29:23.447175', job_id='840668', GAL2='0.65', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632958163.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='640' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:29:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 840668: <4FGL_J2324.7+0801_daily_bin640> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin640 351.19 8.0282 405216001 405475201 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 :                                   763.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

