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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1354
RA = 351.19, Dec = 8.0282
tmin = 590284801, tmax = 590544001
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='843875', job_status='RUN', time_executed='2021-09-29 16:27:55.466663', time_epoch_executed='1632958075.47' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843875/ft1_4FGL_J2324.7+0801_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843875/ft1_4FGL_J2324.7+0801_daily_bin1354.fits outfile=/scratch/kocevski/843875/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1354.fits ra=351.19 dec=8.0282 rad=12.0 tmin=590284801.0 tmax=590544001.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.70
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.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/843875/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1354.fits evtable="EVENTS" outfile="/scratch/kocevski/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.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 1.34
user 0.30
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/843875/ltcube_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.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/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits
.....................!
real 12.38
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/843875/ltcube_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.fits outfile=/scratch/kocevski/843875/expmap_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.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/843875/ltcube_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.fits
.....................!
real 190.89
user 184.96
sys 5.32

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/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits outfile=/scratch/kocevski/843875/cmap_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits outfile=/scratch/kocevski/843875/cmap_HighResolution_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/843875/ft2_4FGL_J2324.7+0801_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843875/Model_4FGL_J2324.7+0801_daily_bin1354.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/843875/ft1_filtered_4FGL_J2324.7+0801_daily_bin1354.fits....................!
real 74.52
user 73.14
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35028       1.0000         .10000E-03   10000.    
     3 'norm      '    69.415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.970       1.0000         .10000E-03   10000.    
     9 'norm      '    .11046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.7667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    175.92       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.382       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6867       1.0000         .10000E-03   10000.    
    19 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3994       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93549       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=   6848.430     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2955 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9419        46.799        .10240E-05   -.23307E-04
   2  Prefactor     .35031        .17946        .57006E-08   -.22682E-03
   3  norm          69.413        21.974       -.62983E-07   -.42838E-04
   4  Prefactor     28.311        37.570       -.71738E-06   -.85709E-04
   5  Prefactor     4.5755        9.4119        .42574E-06   -.47290E-04
   6  Prefactor     .10000E-03    5.4091        .56019E-08** at limit **
   7  Prefactor     .10000E-03    28.247       -.22837E-05** at limit **
   8  Prefactor     12.970        8.0136       -.36168E-06   -.36051E-03
   9  norm          .10000E-03    .53717        .36694E-07** at limit **
  10  Prefactor     .10000E-03    6.0846        .35216E-07** at limit **
  11  Prefactor     .10000E-03    18.974       -.23370E-06** at limit **
  12  Prefactor     .10000E-03    138.21        .42133E-06** at limit **
  13  norm          8.7675        9.2229        .14252E-06    .61535E-06
  14  Prefactor     5.8675        6.1880       -.10111E-06   -.57327E-04
  15  Prefactor     176.00        161.44        .10764E-04    .26034E-03
  16  Prefactor     .10002E-03    15.913        .26542E-06** at limit **
  17  Prefactor     13.374        25.793        .90786E-06    .43437E-04
  18  norm          3.6870        11.238        .77881E-05   -.45024E-03
  19  norm          .10000E-03    23.770        .47480E-06** at limit **
  20  Prefactor     4.4308        7.0105       -.64009E-06   -.17118E-03
  21  Prefactor     .10000E-03    31.411        .27026E-05** at limit **
  22  Prefactor     .10000E-03    38.080       -.56304E-06** at limit **
  23  Prefactor     .10000E-03    3.3340        .28035E-08** at limit **
  24  Normalizat    1.1422        .21723       -.46794E-06   -.47522E-04
  25  Prefactor     .93542        .13018       -.55826E-06   -.21620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94191
  Prefactor  = 0.350314
  norm       = 69.4134
  Prefactor  = 28.3113
  Prefactor  = 4.57548
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.9695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76753
  Prefactor  = 5.86755
  Prefactor  = 176.003
  Prefactor  = 0.000100022
  Prefactor  = 13.3736
  norm       = 3.68699
  norm       = 0.0001
  Prefactor  = 4.4308
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14223
  Prefactor  = 0.935418
 **********
 **   18 **HESSE 
 **********

 FCN=   6848.430     FROM HESSE     STATUS=OK           435 CALLS     3390 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9419        46.538        .29762E-03   -1.5429    
   2  Prefactor     .35031        .17636        .22867E-04   -1.5590    
   3  norm          69.413        21.974        .48179E-04   -1.4040    
   4  Prefactor     28.311        37.717        .75292E-04   -1.4643    
   5  Prefactor     4.5755        9.3681        .18824E-03   -1.5280    
   6  Prefactor     .10000E-03    5.4200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.970        8.0431        .11122E-03   -1.4988    
   9  norm          .10000E-03    3.2673        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    139.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7675        9.1955        .13538E-03   -1.5116    
  14  Prefactor     5.8675        6.1748        .16578E-03   -1.5223    
  15  Prefactor     176.00        172.72        .15214E-03   -1.3047    
  16  Prefactor     .10002E-03    28.882        .72231E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.374        25.784        .10950E-03   -1.4976    
  18  norm          3.6870        11.725        .10517E-02   -1.5324    
  19  norm          .10000E-03    23.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4308        7.2606        .19201E-03   -1.5287    
  21  Prefactor     .10000E-03    31.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3441        .14757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1422        .25553        .30929E-03   -.88407    
  25  Prefactor     .93542        .15286        .20934E-03   -.94914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43691e-09
Minuit parameter uncertainties:
  1  19.0289
  2  0.176357
  3  21.9766
  4  37.7492
  5  9.3711
  6  2.95216e-06
  7  0.000424954
  8  8.04381
  9  8.04534e-05
  10  4.25668e-07
  11  3.00804e-05
  12  0.00016759
  13  9.19696
  14  6.17546
  15  173.217
  16  0.00160827
  17  25.8058
  18  11.7327
  19  0.000112993
  20  7.26207
  21  0.000604813
  22  0.000156044
  23  1.61124e-07
  24  0.255804
  25  0.152935
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.257e-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:  9.354e-01  1.529e-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.142e+00  2.558e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843875/likelihoodResults_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.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): 0
logL (Free Index) = 6848.4304792
delta logL = -0.000780553269578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6848.42969866
delta logL = -6.44922693027e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2182       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93544       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=   6848.430     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      231 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    160.19        .18142E-01** at limit **
   2  Index         1.9697        5.3088        .98673E-01    .56110E-07
   3  Normalizat    1.1422        .27931E-01    .30929E-03    .63957E-04
   4  Prefactor     .93542        .17400E-01    .20934E-03    .95636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96969
  Normalizat = 1.14223
  Prefactor  = 0.935417
 **********
 **   18 **HESSE 
 **********

 FCN=   6848.430     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4885        .20404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9697        5.2288        .39469E-02   -.65110    
   3  Normalizat    1.1422        .24019        .12372E-04   -.88407    
   4  Prefactor     .93542        .14970        .83735E-05   -.94914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1932e-11
Minuit parameter uncertainties:
  1  8.30233e-07
  2  274.437
  3  0.240421
  4  0.149766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843875': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6848.42969822
delta logL = 4.26672158937e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  8.302e-07  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.970e+00  2.744e+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.354e-01  1.498e-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.142e+00  2.404e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/843875/cmap_HighResolution_590284801_590544001_4FGL_J2324.7+0801_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-29 16:41:38.627191', job_id='843875', GAL2='0.94', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632958898.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1354' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 843875: <4FGL_J2324.7+0801_daily_bin1354> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1354> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:48 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:50 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:25:50 2021
Terminated at Wed Sep 29 16:41:39 2021
Results reported at Wed Sep 29 16:41:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1354 351.19 8.0282 590284801 590544001 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

