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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1117
RA = 351.19, Dec = 8.0282
tmin = 528854401, tmax = 529113601
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='843534', job_status='RUN', time_executed='2021-09-29 16:27:23.025555', time_epoch_executed='1632958043.03' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843534/ft1_4FGL_J2324.7+0801_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843534/ft1_4FGL_J2324.7+0801_daily_bin1117.fits outfile=/scratch/kocevski/843534/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1117.fits ra=351.19 dec=8.0282 rad=12.0 tmin=528854401.0 tmax=529113601.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.43
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/843534/ltcube_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.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/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits
.....................!
real 12.33
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/843534/ltcube_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.fits outfile=/scratch/kocevski/843534/expmap_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.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/843534/ltcube_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.fits
.....................!
real 189.99
user 184.53
sys 5.01

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/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits scfile=/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits outfile=/scratch/kocevski/843534/cmap_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits scfile=/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits outfile=/scratch/kocevski/843534/cmap_HighResolution_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/843534/ft2_4FGL_J2324.7+0801_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843534/Model_4FGL_J2324.7+0801_daily_bin1117.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/843534/ft1_filtered_4FGL_J2324.7+0801_daily_bin1117.fits.....................!
real 73.06
user 71.64
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3251       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    118.48       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
     9 'norm      '    .50423E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4220       1.0000         .10000E-03   10000.    
    13 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53883E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.981       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.558       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.516       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9503       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76455       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83101       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=   6629.548     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     3796 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.159        25.053       -.41112E-07    .12822E-04
   2  Prefactor     1.3250        .26119       -.16679E-08    .12986E-03
   3  norm          .10000E-03    6.7762       -.87567E-07** at limit **
   4  Prefactor     118.49        46.791        .30358E-07    .19416E-05
   5  Prefactor     .10000E-03    16.719       -.43458E-07** at limit **
   6  Prefactor     .10000E-03    4.2889       -.53895E-07** at limit **
   7  Prefactor     14.894        17.291       -.33559E-06    .21277E-05
   8  Prefactor     11.873        9.7990       -.20846E-06   -.19465E-04
   9  norm          .49410E-01    .46278       -.95720E-07    .32188E-03
  10  Prefactor     10.173        10.126       -.10878E-07    .16994E-04
  11  Prefactor     12.678        16.926       -.10636E-06    .28399E-06
  12  Prefactor     3.4209        159.79       -.27097E-05   -.57094E-05
  13  norm          .10000E-03    7.0162       -.28007E-06** at limit **
  14  Prefactor     .10000E-03    68.445        .16980E-05** at limit **
  15  Prefactor     .10000E-03    75.024       -.12076E-05** at limit **
  16  Prefactor     5.6821        15.480       -.79616E-06    .94790E-05
  17  Prefactor     19.663        33.783       -.39345E-06    .14520E-04
  18  norm          .10000E-03    3.5157       -.38891E-08** at limit **
  19  norm          21.978        31.005        .38534E-06    .36584E-04
  20  Prefactor     .10000E-03    2.4063       -.64622E-07** at limit **
  21  Prefactor     27.569        36.541        .13365E-06    .21417E-05
  22  Prefactor     25.522        24.658       -.29372E-06   -.41058E-05
  23  Prefactor     1.9504        3.7813       -.46786E-06   -.23049E-03
  24  Normalizat    .76431        .24051        .54910E-05    .84091E-04
  25  Prefactor     .83109        .13769       -.23154E-05    .23659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1591
  Prefactor  = 1.32495
  norm       = 0.0001
  Prefactor  = 118.487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8943
  Prefactor  = 11.8729
  norm       = 0.0494101
  Prefactor  = 10.1733
  Prefactor  = 12.6784
  Prefactor  = 3.42085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68209
  Prefactor  = 19.6627
  norm       = 0.0001
  norm       = 21.9782
  Prefactor  = 0.0001
  Prefactor  = 27.569
  Prefactor  = 25.5219
  Prefactor  = 1.95042
  Normalizat = 0.764309
  Prefactor  = 0.831094
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.548     FROM HESSE     STATUS=OK           437 CALLS     4233 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.159        25.168        .96675E-04   -1.4879    
   2  Prefactor     1.3250        .26233        .17042E-04   -1.5478    
   3  norm          .10000E-03    6.7953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     118.49        46.793        .36969E-04   -1.3527    
   5  Prefactor     .10000E-03    17.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2994        .16470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.894        17.297        .10379E-03   -1.4936    
   8  Prefactor     11.873        9.7925        .11625E-03   -1.5019    
   9  norm          .49410E-01    2.9201        .10327E-02   -1.5664    
  10  Prefactor     10.173        10.093        .12563E-03   -1.5070    
  11  Prefactor     12.678        16.903        .11250E-03   -1.4996    
  12  Prefactor     3.4209        160.59        .21867E-03   -1.5338    
  13  norm          .10000E-03    7.1291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.788        .30175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    75.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6821        15.379        .16855E-03   -1.5231    
  17  Prefactor     19.663        33.511        .90319E-04   -1.4821    
  18  norm          .10000E-03    3.5173        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.978        30.867        .85433E-04   -1.4770    
  20  Prefactor     .10000E-03    2.4313        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.569        36.554        .76314E-04   -1.4657    
  22  Prefactor     25.522        24.665        .79303E-04   -1.4697    
  23  Prefactor     1.9504        3.8110        .21855E-03   -1.5429    
  24  Normalizat    .76431        .24169        .33139E-03   -1.0141    
  25  Prefactor     .83109        .13910        .19775E-03   -.98592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62152e-10
Minuit parameter uncertainties:
  1  25.1836
  2  0.262326
  3  1.04299e-06
  4  46.8075
  5  1.29552e-05
  6  4.47227e-06
  7  17.3029
  8  9.79386
  9  0.758956
  10  10.0945
  11  16.9098
  12  47.01
  13  9.18715e-07
  14  0.000140517
  15  4.85431e-05
  16  15.3896
  17  33.5432
  18  9.16839e-08
  19  30.8889
  20  3.21388e-06
  21  36.5837
  22  24.6744
  23  3.81146
  24  0.24203
  25  0.139162
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.017e+01  1.009e+01  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.311e-01  1.392e-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.643e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.55e-05

TS (Fixed Index): 2.69
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843534/likelihoodResults_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.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) = 6629.53446227
delta logL = 0.0133366084301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6629.52899719
delta logL = 0.0188016863394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2242       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4834       1.0000          .0000       10.000    
     3 'Normalizat'    .74561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83613       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=   6629.529     FROM MIGRAD    STATUS=FAILED        91 CALLS      263 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2235        13.027        .13196E-03   -.16593E-03
   2  Index         2.4836        1.4258        .93971E-02    .58916E-03
   3  Normalizat    .74554        .25035        .33507E-03   -.80038E-04
   4  Prefactor     .83617        .14177        .19715E-03   -.22237E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6629.529     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      338 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2235        13.027        .14026E-03   -1.5100    
   2  Index         2.4836        1.4258        .10566E-02   -.52740    
   3  Normalizat    .74554        .25035        .30284E-03   -1.0212    
   4  Prefactor     .83617        .14177        .17749E-03   -.98408    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6629.529     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      371 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2235        11.000        .52784E-05   -.66338E-04
   2  Index         2.4836        1.2018        .18794E-02   -.13610E-05
   3  Normalizat    .74554        .24201        .13403E-04   -.15777E-04
   4  Prefactor     .83617        .14024        .39430E-04   -.35291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.2235
  Index      = 2.48358
  Normalizat = 0.74554
  Prefactor  = 0.836174
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.529     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2235        10.694        .10557E-05   -1.5100    
   2  Index         2.4836        1.1662        .75177E-04   -.52739    
   3  Normalizat    .74554        .24064        .26806E-05   -1.0212    
   4  Prefactor     .83617        .13997        .78860E-05   -.98408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44625e-12
Minuit parameter uncertainties:
  1  10.6961
  2  1.18088
  3  0.240981
  4  0.140029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843534': 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) = 6629.52899713
delta logL = 0.0188017443024

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.223e+00  1.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.484e+00  1.181e+00  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.362e-01  1.400e-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.455e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.48 +/- 1.18
Photon Flux (Free Index): 5.53e-08 +/- 1.02e-07
Energy Flux (Free Index): 1.64e-05 +/- 1.47e-05

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/843534/cmap_HighResolution_528854401_529113601_4FGL_J2324.7+0801_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.64e-05', photon_flux_error='3.63e-08', dlogl='1.88e-02', energy_flux='1.56e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-29 16:40:07.197965', photon_index_error2='1.18', photon_index2='2.48', ts='2.69', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.47e-05', EG='0.76', time_epoch_completed='1632958807.2', return_code='0', job_id='843534', GAL2='0.84', EG2='0.75', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='1.02e-07', ts2='2.73', photon_index='2.23' WHERE bin_id='1117' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:07 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1117 351.19 8.0282 528854401 529113601 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

