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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin569
RA = 351.19, Dec = 8.0282
tmin = 386812801, tmax = 387072001
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='840563', job_status='RUN', time_executed='2021-09-29 16:15:26.487464', time_epoch_executed='1632957326.49' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840563/ft1_4FGL_J2324.7+0801_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840563/ft1_4FGL_J2324.7+0801_daily_bin569.fits outfile=/scratch/kocevski/840563/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin569.fits ra=351.19 dec=8.0282 rad=12.0 tmin=386812801.0 tmax=387072001.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.44
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.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/840563/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin569.fits evtable="EVENTS" outfile="/scratch/kocevski/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/840563/ltcube_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.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/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits
.....................!
real 12.08
user 11.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/840563/ltcube_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.fits outfile=/scratch/kocevski/840563/expmap_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.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/840563/ltcube_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.fits
.....................!
real 190.01
user 185.26
sys 4.24

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/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits outfile=/scratch/kocevski/840563/cmap_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.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/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits outfile=/scratch/kocevski/840563/cmap_HighResolution_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/840563/ft2_4FGL_J2324.7+0801_daily_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840563/Model_4FGL_J2324.7+0801_daily_bin569.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/840563/ft1_filtered_4FGL_J2324.7+0801_daily_bin569.fits.....................!
real 105.31
user 103.86
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0393       1.0000         .10000E-03   10000.    
     3 'norm      '    22.076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9146       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13466E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3021       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2636       1.0000         .10000E-03   10000.    
    19 'norm      '    .39177E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15283E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.509       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88227       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1961       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=   10161.47     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3002 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1836        .45975E-08** at limit **
   2  Prefactor     5.0393        .39243       -.53251E-08    .13246E-03
   3  norm          22.087        17.732       -.49972E-07    .22385E-04
   4  Prefactor     18.124        28.149       -.12846E-06   -.36908E-05
   5  Prefactor     .10000E-03    2.6024       -.31962E-07** at limit **
   6  Prefactor     .10000E-03    7.7478       -.23013E-07** at limit **
   7  Prefactor     14.067        23.213       -.22653E-08   -.12524E-04
   8  Prefactor     4.9183        8.3651        .10171E-06   -.55508E-04
   9  norm          1.1247        1.0558        .97025E-07    .11290E-03
  10  Prefactor     .10000E-03    2.9814       -.10319E-07** at limit **
  11  Prefactor     .10000E-03    6.1151       -.20463E-06** at limit **
  12  Prefactor     .10000E-03    19.903        .88275E-07** at limit **
  13  norm          .10000E-03    2.5365       -.19746E-07** at limit **
  14  Prefactor     .10000E-03    2.6064       -.17022E-06** at limit **
  15  Prefactor     .10000E-03    361.90       -.14635E-05** at limit **
  16  Prefactor     22.250        15.612       -.20772E-05    .79643E-04
  17  Prefactor     3.3146        31.447        .86847E-06   -.13733E-04
  18  norm          2.2637        19.182        .69296E-06   -.16068E-04
  19  norm          .10000E-03    77.888        .57038E-05** at limit **
  20  Prefactor     12.769        6.6006        .61819E-08    .30072E-04
  21  Prefactor     .10000E-03    197.08        .56356E-05** at limit **
  22  Prefactor     .10000E-03    28.867        .21665E-06** at limit **
  23  Prefactor     34.510        14.136       -.76187E-07    .10250E-05
  24  Normalizat    .88234        .21657        .79510E-06   -.52148E-04
  25  Prefactor     1.1961        .13025       -.31626E-07   -.38991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.03932
  norm       = 22.087
  Prefactor  = 18.1238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0673
  Prefactor  = 4.91831
  norm       = 1.12469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 22.2501
  Prefactor  = 3.31464
  norm       = 2.26374
  norm       = 0.000100004
  Prefactor  = 12.7687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5103
  Normalizat = 0.882338
  Prefactor  = 1.19612
 **********
 **   18 **HESSE 
 **********

 FCN=   10161.47     FROM HESSE     STATUS=OK           429 CALLS     3431 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0393        .39259        .16983E-04   -1.5259    
   3  norm          22.087        17.739        .85250E-04   -1.4768    
   4  Prefactor     18.124        28.152        .94105E-04   -1.4856    
   5  Prefactor     .10000E-03    2.6124        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.067        23.210        .10696E-03   -1.4958    
   8  Prefactor     4.9183        8.3570        .18143E-03   -1.5264    
   9  norm          1.1247        1.0424        .95005E-04   -1.5496    
  10  Prefactor     .10000E-03    2.9873        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5630        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4633        .31355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    361.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.250        15.898        .84942E-04   -1.4764    
  17  Prefactor     3.3146        31.318        .22279E-03   -1.5344    
  18  norm          2.2637        19.168        .27301E-03   -1.5407    
  19  norm          .10000E-03    87.840        .42546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.769        6.6059        .11210E-03   -1.4993    
  21  Prefactor     .10000E-03    201.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.510        14.140        .68216E-04   -1.4532    
  24  Normalizat    .88234        .24745        .41791E-03   -.97084    
  25  Prefactor     1.1961        .15147        .23000E-03   -.86451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7709e-11
Minuit parameter uncertainties:
  1  4.67597e-07
  2  0.392587
  3  17.7435
  4  28.1725
  5  3.4064e-07
  6  4.25502e-06
  7  23.2245
  8  8.35898
  9  1.04243
  10  1.49515e-06
  11  4.31505e-06
  12  6.37279e-07
  13  1.56524e-06
  14  9.14449e-06
  15  0.00251226
  16  15.9015
  17  20.3909
  18  13.1798
  19  0.00125558
  20  6.60631
  21  4.61204e-07
  22  4.03442e-05
  23  14.1413
  24  0.247772
  25  0.151522
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.196e+00  1.515e-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:  8.823e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840563/likelihoodResults_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.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) = 10161.4708577
delta logL = -0.00158560424825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10161.469273
delta logL = -8.44711394166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2022       1.0000          .0000       10.000    
     3 'Normalizat'    .88231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1962       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=   10161.47     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    24.777        .17454E-02** at limit **
   2  Index         2.1433        5.3927        .50000        .59319E-04
   3  Normalizat    .88234        .14839E-01    .41791E-03    .50599E-04
   4  Prefactor     1.1961        .94223E-02    .23000E-03    .41244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101529
  Index      = 2.14334
  Normalizat = 0.88234
  Prefactor  = 1.19612
 **********
 **   18 **HESSE 
 **********

 FCN=   10161.47     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153E-03    106.33        .34908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1433        5.8763        .50000       -.60813    
   3  Normalizat    .88234        .31654E-01    .16716E-04   -.97083    
   4  Prefactor     1.1961        .20099E-01    .46000E-04   -.86451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.67438e-08
Minuit parameter uncertainties:
  1  0.0255479
  2  282.038
  3  0.0316547
  4  0.0200988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840563': 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) = 10161.469271
delta logL = 1.128837539e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.196e+00  2.010e-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:  8.823e-01  3.165e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/840563/cmap_HighResolution_386812801_387072001_4FGL_J2324.7+0801_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-29 16:30:55.382011', job_id='840563', GAL2='1.20', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632958255.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='569' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:30:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 840563: <4FGL_J2324.7+0801_daily_bin569> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin569> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:16 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:17 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:15:17 2021
Terminated at Wed Sep 29 16:30:56 2021
Results reported at Wed Sep 29 16:30:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin569 351.19 8.0282 386812801 387072001 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 :                                   926.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

