/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 226 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin443
RA = 351.19, Dec = 8.0282
tmin = 354153601, tmax = 354412801
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='839270', job_status='RUN', time_executed='2021-09-29 16:14:15.471127', time_epoch_executed='1632957255.47' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839270/ft1_4FGL_J2324.7+0801_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839270/ft1_4FGL_J2324.7+0801_daily_bin443.fits outfile=/scratch/kocevski/839270/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin443.fits ra=351.19 dec=8.0282 rad=12.0 tmin=354153601.0 tmax=354412801.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.93
user 3.74
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/839270/ltcube_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.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/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits
.....................!
real 11.67
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/839270/ltcube_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.fits outfile=/scratch/kocevski/839270/expmap_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.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/839270/ltcube_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.fits
.....................!
real 190.08
user 184.55
sys 5.22

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/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits scfile=/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits outfile=/scratch/kocevski/839270/cmap_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits scfile=/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits outfile=/scratch/kocevski/839270/cmap_HighResolution_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/839270/ft2_4FGL_J2324.7+0801_daily_bin443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839270/Model_4FGL_J2324.7+0801_daily_bin443.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/839270/ft1_filtered_4FGL_J2324.7+0801_daily_bin443.fits.....................!
real 73.18
user 71.80
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1720       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2698       1.0000         .10000E-03   10000.    
    19 'norm      '    .11566E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.847       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4089       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84183       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=   6554.116     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2913 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.647        .95125E-06** at limit **
   2  Prefactor     .10000E-03    .36569E-01   -.72069E-08** at limit **
   3  norm          .10000E-03    9.0526        .19817E-07** at limit **
   4  Prefactor     .10000E-03    20.553       -.99162E-06** at limit **
   5  Prefactor     14.383        8.1660        .50363E-06   -.54617E-04
   6  Prefactor     .10000E-03    27.111        .20138E-05** at limit **
   7  Prefactor     6.9485        14.351        .12779E-06   -.14731E-03
   8  Prefactor     6.1711        4.8362        .31698E-07   -.73238E-03
   9  norm          .10000E-03    .56722        .92990E-07** at limit **
  10  Prefactor     .10000E-03    6.7757       -.72586E-07** at limit **
  11  Prefactor     .10000E-03    5.7441       -.25705E-08** at limit **
  12  Prefactor     .10000E-03    51.699        .15504E-05** at limit **
  13  norm          .10000E-03    5.9146       -.62496E-07** at limit **
  14  Prefactor     .10000E-03    2.9489       -.35090E-08** at limit **
  15  Prefactor     .10000E-03    78.868       -.19580E-05** at limit **
  16  Prefactor     9.4191        13.292       -.18159E-05   -.82269E-04
  17  Prefactor     .10000E-03    28.663       -.17027E-05** at limit **
  18  norm          5.2667        15.388        .51438E-06   -.17847E-03
  19  norm          .10000E-03    50.761        .44739E-05** at limit **
  20  Prefactor     .10000E-03    2.3980        .53090E-07** at limit **
  21  Prefactor     29.846        36.032        .24822E-07    .43753E-05
  22  Prefactor     .10000E-03    48.960       -.29991E-05** at limit **
  23  Prefactor     .10000E-03    6.3928        .11196E-06** at limit **
  24  Normalizat    1.4088        .20958        .30439E-06   -.43353E-04
  25  Prefactor     .84193        .12749       -.18635E-06   -.12098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3827
  Prefactor  = 0.0001
  Prefactor  = 6.94852
  Prefactor  = 6.17112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41913
  Prefactor  = 0.0001
  norm       = 5.26668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40884
  Prefactor  = 0.841925
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.116     FROM HESSE     STATUS=OK           421 CALLS     3334 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .45965E-01    .30130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.1225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.383        8.1253        .10562E-03   -1.4949    
   6  Prefactor     .10000E-03    27.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9485        15.136        .76096E-03   -1.5181    
   8  Prefactor     6.1711        7.2598        .80797E-03   -1.5211    
   9  norm          .10000E-03    1.0028        .11793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.9966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9598        .13573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4191        13.603        .13021E-03   -1.5094    
  17  Prefactor     .10000E-03    28.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2667        17.465        .87545E-03   -1.5249    
  19  norm          .10000E-03    53.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4199        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.846        36.119        .73336E-04   -1.4615    
  22  Prefactor     .10000E-03    49.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4088        .24872        .27565E-03   -.80373    
  25  Prefactor     .84193        .15048        .21305E-03   -.98201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76711e-10
Minuit parameter uncertainties:
  1  2.76278e-05
  2  1.77164e-07
  3  3.4087e-07
  4  1.1849e-05
  5  8.12594
  6  0.000112754
  7  15.1446
  8  7.26079
  9  9.88247e-06
  10  2.30384e-07
  11  8.61881e-07
  12  1.30193e-05
  13  1.08493e-06
  14  1.25674e-06
  15  8.25089e-05
  16  13.6073
  17  3.45382e-05
  18  17.4814
  19  0.00028346
  20  1.28773e-05
  21  36.1451
  22  0.000102526
  23  2.40589e-06
  24  0.248936
  25  0.150557
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.304e-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:  8.419e-01  1.506e-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.409e+00  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839270/likelihoodResults_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.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) = 6554.11653267
delta logL = -0.000698367255609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6554.11583434
delta logL = -4.08308551414e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2294       1.0000          .0000       10.000    
     3 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84195       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.

 FCN=   6554.116     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    196.20        .90712E-02** at limit **
   2  Index         2.2308        7.0982        .50000       -.18748E-05
   3  Normalizat    1.4088        .30123E-01    .62323E-01    .22656E-04
   4  Prefactor     .84193        .18653E-01    .44261E-01    .34851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23079
  Normalizat = 1.40885
  Prefactor  = 0.841925
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.116     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1042.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2308        5.0730        .50000       -.58697    
   3  Normalizat    1.4088        .89805E-01    .27564E-03   -.80373    
   4  Prefactor     .84193        .55616E-01    .21305E-03   -.98201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.09285e-10
Minuit parameter uncertainties:
  1  0.000125861
  2  52.4629
  3  0.0898153
  4  0.0556192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839270': 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) = 6554.1158343
delta logL = 1.24327925732e-09

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.259e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.231e+00  5.246e+01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.419e-01  5.562e-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.409e+00  8.982e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839270/cmap_HighResolution_354153601_354412801_4FGL_J2324.7+0801_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-29 16:25:42.012705', job_id='839270', GAL2='0.84', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632957942.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.24e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='443' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 839270: <4FGL_J2324.7+0801_daily_bin443> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin443> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:18 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:19 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:19 2021
Terminated at Wed Sep 29 16:25:42 2021
Results reported at Wed Sep 29 16:25:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin443 351.19 8.0282 354153601 354412801 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 :                                   685.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

