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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1142
RA = 351.19, Dec = 8.0282
tmin = 535334401, tmax = 535593601
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='843571', job_status='RUN', time_executed='2021-09-29 16:25:34.861088', time_epoch_executed='1632957934.86' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843571/ft1_4FGL_J2324.7+0801_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843571/ft1_4FGL_J2324.7+0801_daily_bin1142.fits outfile=/scratch/kocevski/843571/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1142.fits ra=351.19 dec=8.0282 rad=12.0 tmin=535334401.0 tmax=535593601.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 5.23
user 4.90
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.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/843571/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1142.fits evtable="EVENTS" outfile="/scratch/kocevski/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.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.53
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/843571/ltcube_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.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/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits
.....................!
real 11.60
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/843571/ltcube_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.fits outfile=/scratch/kocevski/843571/expmap_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.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/843571/ltcube_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.fits
.....................!
real 191.04
user 185.35
sys 5.36

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/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits outfile=/scratch/kocevski/843571/cmap_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits outfile=/scratch/kocevski/843571/cmap_HighResolution_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/843571/ft2_4FGL_J2324.7+0801_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843571/Model_4FGL_J2324.7+0801_daily_bin1142.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/843571/ft1_filtered_4FGL_J2324.7+0801_daily_bin1142.fits.....................!
real 78.46
user 77.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4989       1.0000         .10000E-03   10000.    
     3 'norm      '    23.179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11655E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.317       1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4126       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .40854E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.477       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6550       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93442       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=   6883.347     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2965 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7710        36.113        .80262E-06   -.29731E-05
   2  Prefactor     1.4989        .30485       -.94487E-08    .82504E-04
   3  norm          23.179        18.169        .10540E-06   -.61995E-05
   4  Prefactor     .10000E-03    389.63       -.24794E-05** at limit **
   5  Prefactor     10.847        8.7487        .26873E-08   -.10829E-05
   6  Prefactor     .10000E-03    21.048        .97025E-06** at limit **
   7  Prefactor     .10000E-03    8.7177        .36466E-06** at limit **
   8  Prefactor     12.321        11.428       -.19028E-06   -.18220E-04
   9  norm          .10000E-03    .51808        .42627E-06** at limit **
  10  Prefactor     9.4057        13.841       -.10393E-06   -.12652E-04
  11  Prefactor     .10000E-03    84.627        .51116E-05** at limit **
  12  Prefactor     .10000E-03    68.758        .31436E-05** at limit **
  13  norm          .10000E-03    20.321        .96826E-06** at limit **
  14  Prefactor     6.1510        9.4925       -.56403E-06   -.28071E-04
  15  Prefactor     98.332        185.94       -.37044E-06   -.11327E-04
  16  Prefactor     .10000E-03    9.6721        .76838E-06** at limit **
  17  Prefactor     .10000E-03    9.9492        .32024E-06** at limit **
  18  norm          .10000E-03    195.72        .42907E-05** at limit **
  19  norm          .10000E-03    10.205        .31390E-06** at limit **
  20  Prefactor     .10000E-03    1.7768        .20636E-06** at limit **
  21  Prefactor     13.468        26.912        .17739E-06   -.45463E-05
  22  Prefactor     .10000E-03    14.494        .58930E-06** at limit **
  23  Prefactor     .10000E-03    9.3364        .77883E-06** at limit **
  24  Normalizat    1.6551        .26220        .53200E-06   -.73979E-04
  25  Prefactor     .93457        .15696       -.97942E-06    .25056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77096
  Prefactor  = 1.49893
  norm       = 23.1795
  Prefactor  = 0.000100004
  Prefactor  = 10.8471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3206
  norm       = 0.0001
  Prefactor  = 9.40568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.15103
  Prefactor  = 98.3323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6551
  Prefactor  = 0.934574
 **********
 **   18 **HESSE 
 **********

 FCN=   6883.347     FROM HESSE     STATUS=OK           433 CALLS     3398 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7710        36.160        .24426E-03   -1.5375    
   2  Prefactor     1.4989        .30463        .19518E-04   -1.5463    
   3  norm          23.179        18.178        .83199E-04   -1.4745    
   4  Prefactor     .10000E-03    391.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.847        8.7489        .12165E-03   -1.5049    
   6  Prefactor     .10000E-03    21.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.321        11.431        .11414E-03   -1.5006    
   9  norm          .10000E-03    .52928        .11560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4057        13.796        .13062E-03   -1.5094    
  11  Prefactor     .10000E-03    86.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1510        9.4656        .16183E-03   -1.5212    
  15  Prefactor     98.332        186.86        .20254E-03   -1.3721    
  16  Prefactor     .10000E-03    9.8207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.363        .97640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7814        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.468        26.923        .10911E-03   -1.4974    
  22  Prefactor     .10000E-03    14.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.4664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6551        .30439        .32681E-03   -.73509    
  25  Prefactor     .93457        .18047        .25067E-03   -.94943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21285e-11
Minuit parameter uncertainties:
  1  20.0343
  2  0.304635
  3  18.1821
  4  0.00237819
  5  8.74998
  6  3.28548e-08
  7  3.61348e-06
  8  11.433
  9  6.7683e-07
  10  13.8011
  11  4.75803e-05
  12  0.000158109
  13  5.2701e-05
  14  9.46791
  15  187.992
  16  1.17022e-05
  17  2.30655e-06
  18  8.3641e-05
  19  3.79841e-06
  20  1.75774e-07
  21  26.9472
  22  8.94248e-06
  23  1.24222e-05
  24  0.30473
  25  0.180583
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.406e+00  1.380e+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:  9.346e-01  1.806e-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.655e+00  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843571/likelihoodResults_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.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) = 6883.25728763
delta logL = 0.0897766228954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6883.25187863
delta logL = 0.0951856225802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7771       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7164       1.0000          .0000       10.000    
     3 'Normalizat'    1.6298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94366       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6883.252     FROM MIGRAD    STATUS=FAILED       107 CALLS      330 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7555        36.902        .83550E-03   -.10868E-03
   2  Index         2.7205        2.5441        .80659E-02    .50813E-03
   3  Normalizat    1.6285        .32065        .32889E-03   -.32182E-04
   4  Prefactor     .94416        .18926        .24952E-03   -.10753E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6883.252     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      419 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7555        36.902        .21452E-03   -1.5228    
   2  Index         2.7205        2.5441        .12086E-02   -.47338    
   3  Normalizat    1.6285        .32065        .33879E-03   -.74228    
   4  Prefactor     .94416        .18926        .35596E-03   -.94615    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6883.252     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      450 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7555        13.882        .33420E-04   -.86064E-04
   2  Index         2.7205        1.2701        .16132E-02   -.62511E-05
   3  Normalizat    1.6285        .30590        .13156E-04   -.16246E-04
   4  Prefactor     .94416        .18121        .99807E-05   -.50119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75548
  Index      = 2.72051
  Normalizat = 1.62853
  Prefactor  = 0.944157
 **********
 **   18 **HESSE 
 **********

 FCN=   6883.252     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7555        13.094        .13368E-05   -1.5228    
   2  Index         2.7205        1.1992        .64527E-04   -.47338    
   3  Normalizat    1.6285        .30557        .26311E-05   -.74228    
   4  Prefactor     .94416        .18105        .19961E-05   -.94615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33349e-11
Minuit parameter uncertainties:
  1  13.1006
  2  1.21418
  3  0.30592
  4  0.181167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843571': 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) = 6883.25186505
delta logL = 0.095199200241

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.755e+00  1.310e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.721e+00  1.214e+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:  9.442e-01  1.812e-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.629e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/843571/cmap_HighResolution_535334401_535593601_4FGL_J2324.7+0801_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-29 16:37:54.806201', job_id='843571', GAL2='0.94', fit_tolerance='1e-08', EG2='1.63', EG='1.66', time_epoch_completed='1632958674.81', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.52e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1142' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:37:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 843571: <4FGL_J2324.7+0801_daily_bin1142> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1142> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:23 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:24 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:24 2021
Terminated at Wed Sep 29 16:37:55 2021
Results reported at Wed Sep 29 16:37:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1142 351.19 8.0282 535334401 535593601 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 :                                   734.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            752 sec.

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

