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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin708
RA = 351.19, Dec = 8.0282
tmin = 422841601, tmax = 423100801
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='840768', job_status='RUN', time_executed='2021-09-29 16:15:44.445003', time_epoch_executed='1632957344.45' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840768/ft1_4FGL_J2324.7+0801_daily_bin708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840768/ft1_4FGL_J2324.7+0801_daily_bin708.fits outfile=/scratch/kocevski/840768/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin708.fits ra=351.19 dec=8.0282 rad=12.0 tmin=422841601.0 tmax=423100801.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.88
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits" evtable="EVENTS" scfile=/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits sctable="SC_DATA" outfile=/scratch/kocevski/840768/ltcube_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.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/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits
.....................!
real 11.86
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/840768/ltcube_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.fits outfile=/scratch/kocevski/840768/expmap_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.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/840768/ltcube_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.fits
.....................!
real 192.36
user 186.79
sys 5.19

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/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits scfile=/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits outfile=/scratch/kocevski/840768/cmap_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.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/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits scfile=/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits outfile=/scratch/kocevski/840768/cmap_HighResolution_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.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/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/840768/ft2_4FGL_J2324.7+0801_daily_bin708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840768/Model_4FGL_J2324.7+0801_daily_bin708.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/840768/ft1_filtered_4FGL_J2324.7+0801_daily_bin708.fits.....................!
real 87.36
user 85.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8596       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4518       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5817       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.971       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21759       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63465       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7920.712     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2443 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.2806       -.21508E-05** at limit **
   2  Prefactor     5.8595        .40628        .13608E-07    .54362E-03
   3  norm          .10005E-03    4.9049        .50056E-06** at limit **
   4  Prefactor     37.260        6.0652        .29910E-07   -.75616E-02
   5  Prefactor     .10000E-03    2.6795        .10057E-05** at limit **
   6  Prefactor     .10000E-03    3.6638        .12443E-06** at limit **
   7  Prefactor     30.266        1.0095       -.13214E-07    .33382E-03
   8  Prefactor     3.4502        2.0254       -.34592E-07    .51986E-03
   9  norm          3.5819        1.3336       -.54048E-08    .40023E-04
  10  Prefactor     8.0189        7.8948        .43761E-06    .38090E-03
  11  Prefactor     .10000E-03    2.6936        .10146E-05** at limit **
  12  Prefactor     .10000E-03    23.293        .21702E-06** at limit **
  13  norm          3.7483        4.9680       -.36691E-06    .24271E-02
  14  Prefactor     .10000E-03    3.0702       -.12255E-06** at limit **
  15  Prefactor     .10000E-03    78.649       -.10724E-04** at limit **
  16  Prefactor     .10004E-03    5.1896        .82396E-06** at limit **
  17  Prefactor     .10000E-03    15.417       -.73750E-06** at limit **
  18  norm          .10000E-03    9.4429       -.57863E-06** at limit **
  19  norm          .10475E-03    1958.2       -.16396E-04** at limit **
  20  Prefactor     4.6386        3.6422        .42839E-06    .17201E-03
  21  Prefactor     45.844        1.2546        .19622E-07   -.11895E-03
  22  Prefactor     32.969        1.5819        .35653E-07   -.10477E-02
  23  Prefactor     .21370        22.152       -.15370E-05   -.51564E-03
  24  Normalizat    .63464        .22390        .25272E-06    .14436E-04
  25  Prefactor     .94430        .14382       -.18363E-07    .24535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 5.85948
  norm       = 0.000100047
  Prefactor  = 37.2604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2662
  Prefactor  = 3.45024
  norm       = 3.58194
  Prefactor  = 8.01886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.74828
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.000104746
  Prefactor  = 4.63863
  Prefactor  = 45.8439
  Prefactor  = 32.969
  Prefactor  = 0.213701
  Normalizat = 0.634638
  Prefactor  = 0.944299
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.712     FROM HESSE     STATUS=OK           485 CALLS     2928 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.6669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8595        .40756        .32608E-02   -1.5224    
   3  norm          .10005E-03    8.8011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.260        32.250        .16408E-02   -1.4486    
   5  Prefactor     .10000E-03    8.8201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.266        16.326        .18207E-02   -1.4607    
   8  Prefactor     3.4502        7.2326        .54420E-02   -1.5336    
   9  norm          3.5819        1.3391        .53382E-02   -1.5329    
  10  Prefactor     8.0189        13.995        .35405E-02   -1.5142    
  11  Prefactor     .10000E-03    8.9660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7483        9.5879        .52127E-02   -1.5321    
  14  Prefactor     .10000E-03    3.0591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    79.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    9.0944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.4827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10475E-03    9.9543        .15417       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6386        3.7576        .46776E-02   -1.5277    
  21  Prefactor     45.844        40.118        .14805E-02   -1.4353    
  22  Prefactor     32.969        19.817        .17446E-02   -1.4559    
  23  Prefactor     .21370        4.7784        .72667E-01   -1.5616    
  24  Normalizat    .63464        .20584        .89263E-01   -1.0653    
  25  Prefactor     .94430        .12534        .45566E-01   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86738e-07
Minuit parameter uncertainties:
  1  0.000526678
  2  0.407562
  3  0.00128808
  4  32.2652
  5  1.79118e-05
  6  1.71237e-06
  7  16.3285
  8  7.23446
  9  1.33914
  10  14.0009
  11  1.95003e-05
  12  4.68951e-06
  13  9.59186
  14  2.76084e-06
  15  0.000626113
  16  0.00115113
  17  3.43692e-05
  18  0.000350267
  19  0.0137487
  20  3.75782
  21  40.1418
  22  19.8211
  23  2.02075
  24  0.206087
  25  0.125374
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.019e+00  1.400e+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.443e-01  1.254e-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:  6.346e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840768/likelihoodResults_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.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) = 7920.46410694
delta logL = 0.24785003573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7920.41192813
delta logL = 0.300028844043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66944       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7223       1.0000          .0000       10.000    
     3 'Normalizat'    .57601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7920.412     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      321 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66844        10.667        .11944E-01    .15994E-02
   2  Index         3.7233        2.5208        .98022E-01    .23916E-03
   3  Normalizat    .57584        .43027E-01    .93362E-01    .60066E-04
   4  Prefactor     .97215        .27890E-01    .45918E-01    .32181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.66844
  Index      = 3.72327
  Normalizat = 0.575842
  Prefactor  = 0.97215
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.412     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      352 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66844        31.044        .70598E-04   -1.5544    
   2  Index         3.7233        6.8463        .59266E-02   -.25821    
   3  Normalizat    .57584        .18862        .41384E-03   -1.0902    
   4  Prefactor     .97215        .12141        .20939E-03   -.93664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32951e-06
Minuit parameter uncertainties:
  1  9.11502
  2  5.80984
  3  0.188826
  4  0.121443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840768': 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) = 7920.41192752
delta logL = 0.300029458814

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.684e-01  9.115e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.723e+00  5.810e+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.721e-01  1.214e-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:  5.758e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.72 +/- 5.81
Photon Flux (Free Index): 6.48e-08 +/- 6.44e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.50e-05

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/840768/cmap_HighResolution_422841601_423100801_4FGL_J2324.7+0801_daily_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='3.00e-01', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-29 16:28:50.830888', photon_index_error2='5.81', photon_index2='3.72', ts='0.54', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.50e-05', EG='0.63', time_epoch_completed='1632958130.83', return_code='0', job_id='840768', GAL2='0.97', EG2='0.58', return_code2='102', photon_flux_error2='6.44e-08', ts2='1.27', photon_index='2.23' WHERE bin_id='708' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 840768: <4FGL_J2324.7+0801_daily_bin708> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin708 351.19 8.0282 422841601 423100801 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 :                                   783.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

