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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1615
RA = 351.19, Dec = 8.0282
tmin = 657936001, tmax = 658195201
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='500238', job_status='RUN', time_executed='2021-12-08 09:29:55.322696', time_epoch_executed='1638984595.32' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500238/ft1_4FGL_J2324.7+0801_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500238/ft1_4FGL_J2324.7+0801_daily_bin1615.fits outfile=/scratch/kocevski/500238/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1615.fits ra=351.19 dec=8.0282 rad=12.0 tmin=657936001.0 tmax=658195201.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.11
user 3.89
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/500238/ltcube_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.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/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits
.....................!
real 12.95
user 12.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/500238/ltcube_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.fits outfile=/scratch/kocevski/500238/expmap_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.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/500238/ltcube_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.fits
.....................!
real 194.14
user 188.76
sys 4.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/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits scfile=/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits outfile=/scratch/kocevski/500238/cmap_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.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/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits scfile=/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits outfile=/scratch/kocevski/500238/cmap_HighResolution_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/500238/ft2_4FGL_J2324.7+0801_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500238/Model_4FGL_J2324.7+0801_daily_bin1615.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/500238/ft1_filtered_4FGL_J2324.7+0801_daily_bin1615.fits.....................!
real 75.80
user 74.18
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82222       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.841       1.0000         .10000E-03   10000.    
     9 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    79.755       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.107       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.023       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74059       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0151       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=   7214.085     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2924 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.090       -.18991E-05** at limit **
   2  Prefactor     .82226        .21956        .44409E-08    .41583E-03
   3  norm          7.4267        8.4185        .18874E-07   -.22477E-04
   4  Prefactor     .10000E-03    16.584        .15573E-05** at limit **
   5  Prefactor     .44732        7.9702        .97232E-07   -.31557E-04
   6  Prefactor     .10000E-03    5.4312        .12666E-07** at limit **
   7  Prefactor     .10061E-03    18.720        .41244E-05** at limit **
   8  Prefactor     20.847        9.1751       -.81574E-08   -.13836E-04
   9  norm          .10000E-03    .45995       -.22384E-06** at limit **
  10  Prefactor     .10000E-03    2.9503        .14433E-06** at limit **
  11  Prefactor     .10000E-03    7.1775        .32077E-07** at limit **
  12  Prefactor     79.722        53.025        .32797E-05    .22642E-03
  13  norm          4.9462        7.5855        .14622E-05    .64720E-03
  14  Prefactor     25.113        9.5792       -.29304E-06   -.42610E-04
  15  Prefactor     .10000E-03    83.703        .37961E-05** at limit **
  16  Prefactor     .10000E-03    11.919        .30880E-06** at limit **
  17  Prefactor     .10000E-03    11.948        .10353E-05** at limit **
  18  norm          .10001E-03    8.5357        .89440E-06** at limit **
  19  norm          .10000E-03    15.656       -.25722E-06** at limit **
  20  Prefactor     .10000E-03    2.0341        .12492E-06** at limit **
  21  Prefactor     42.035        35.553       -.11525E-05   -.83815E-04
  22  Prefactor     .10000E-03    12.706       -.67823E-06** at limit **
  23  Prefactor     .10000E-03    2.9833        .16077E-07** at limit **
  24  Normalizat    .74042        .19661        .53695E-06   -.33403E-04
  25  Prefactor     1.0150        .11999       -.24100E-06   -.95761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.822258
  norm       = 7.42675
  Prefactor  = 0.0001
  Prefactor  = 0.447317
  Prefactor  = 0.0001
  Prefactor  = 0.000100613
  Prefactor  = 20.8466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.722
  norm       = 4.94616
  Prefactor  = 25.1129
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.740422
  Prefactor  = 1.01499
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.085     FROM HESSE     STATUS=OK           425 CALLS     3349 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .82226        .21764        .18878E-04   -1.5527    
   3  norm          7.4267        8.4148        .14715E-03   -1.5163    
   4  Prefactor     .10000E-03    16.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44732        47.120        .42542E-02   -1.5574    
   6  Prefactor     .10000E-03    5.4458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10061E-03    70.619        .47386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.847        9.1588        .87735E-04   -1.4794    
   9  norm          .10000E-03    .90059        .11011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9563        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     79.722        53.593        .22485E-03   -1.3920    
  13  norm          4.9462        7.7895        .90458E-03   -1.5263    
  14  Prefactor     25.113        9.6029        .79945E-04   -1.4705    
  15  Prefactor     .10000E-03    83.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    42.878        .46991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5633        .22826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.035        35.605        .61839E-04   -1.4410    
  22  Prefactor     .10000E-03    12.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9873        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .74042        .21950        .34224E-03   -1.0232    
  25  Prefactor     1.0150        .13745        .18894E-03   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73225e-08
Minuit parameter uncertainties:
  1  0.000202575
  2  0.217643
  3  8.41614
  4  0.000169871
  5  9.18847
  6  3.62731e-07
  7  0.013171
  8  9.15939
  9  7.34082e-06
  10  6.88901e-06
  11  1.58745e-06
  12  53.625
  13  7.79109
  14  9.60346
  15  0.000971062
  16  1.90643e-05
  17  9.98968e-05
  18  0.00103597
  19  4.77739e-05
  20  0.000113354
  21  35.6233
  22  6.20033e-05
  23  5.583e-07
  24  0.219761
  25  0.137502
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  6.889e-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:  1.015e+00  1.375e-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:  7.404e-01  2.198e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500238/likelihoodResults_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.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) = 7214.08660204
delta logL = -0.00160602309552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7214.08499905
delta logL = -3.04086552205e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2064       1.0000          .0000       10.000    
     3 'Normalizat'    .74027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       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=   7214.085     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    30.279        .14516E-02** at limit **
   2  Index         2.1545        5.9663        .50000        .51805E-04
   3  Normalizat    .74042        .14996E-01    .34224E-03    .21924E-05
   4  Prefactor     1.0150        .96337E-02    .18894E-03    .78389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101226
  Index      = 2.15449
  Normalizat = 0.740422
  Prefactor  = 1.01499
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.085     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10123E-03    127.57        .29032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1545        8.4873        .50000       -.60541    
   3  Normalizat    .74042        .31945E-01    .13689E-04   -1.0232    
   4  Prefactor     1.0150        .20521E-01    .37789E-04   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.29185e-08
Minuit parameter uncertainties:
  1  0.0250694
  2  329.336
  3  0.031946
  4  0.0205214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500238': 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) = 7214.0849952
delta logL = 8.17150976218e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.012e-04  2.507e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.154e+00  3.293e+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:  1.015e+00  2.052e-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:  7.404e-01  3.195e-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/500238/cmap_HighResolution_657936001_658195201_4FGL_J2324.7+0801_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-12-08 09:42:10.867442', job_id='500238', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1638985330.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1615' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:42:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 500238: <4FGL_J2324.7+0801_daily_bin1615> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1615> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:33 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:06 2021
Terminated at Wed Dec  8 09:42:11 2021
Results reported at Wed Dec  8 09:42:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1615 351.19 8.0282 657936001 658195201 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 :                                   733.31 sec.
    Max Memory :                                 1069 MB
    Average Memory :                             301.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            998 sec.

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

