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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin490
RA = 351.19, Dec = 8.0282
tmin = 366336001, tmax = 366595201
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='839340', job_status='RUN', time_executed='2021-09-29 16:10:57.059469', time_epoch_executed='1632957057.06' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839340

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839340/ft1_4FGL_J2324.7+0801_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839340/ft1_4FGL_J2324.7+0801_daily_bin490.fits outfile=/scratch/kocevski/839340/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin490.fits ra=351.19 dec=8.0282 rad=12.0 tmin=366336001.0 tmax=366595201.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.48
user 5.21
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.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/839340/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.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/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/839340/ltcube_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.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/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits
.....................!
real 11.44
user 11.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/839340/ltcube_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.fits outfile=/scratch/kocevski/839340/expmap_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.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/839340/ltcube_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.fits
.....................!
real 192.08
user 186.55
sys 5.12

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/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits outfile=/scratch/kocevski/839340/cmap_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits outfile=/scratch/kocevski/839340/cmap_HighResolution_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/839340/ft2_4FGL_J2324.7+0801_daily_bin490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839340/Model_4FGL_J2324.7+0801_daily_bin490.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/839340/ft1_filtered_4FGL_J2324.7+0801_daily_bin490.fits.....................!
real 62.12
user 60.78
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17312       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6728       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11904E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.162       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13514E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64961       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=   5256.406     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     2571 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.191        24.190        .16312E-05    .14818E-03
   2  Prefactor     .17309        .15179       -.32452E-07   -.79844E-03
   3  norm          .10000E-03    16.462        .21606E-05** at limit **
   4  Prefactor     6.1703        57.112        .35615E-05    .23678E-04
   5  Prefactor     .10000E-03    2.1969       -.68106E-08** at limit **
   6  Prefactor     .10000E-03    26.095       -.15845E-05** at limit **
   7  Prefactor     16.161        17.285       -.17588E-05   -.20302E-03
   8  Prefactor     5.6721        4.1184        .77407E-06   -.20267E-02
   9  norm          2.1693        1.3492        .37160E-07   -.15112E-03
  10  Prefactor     1.6531        9.8381        .26734E-05    .66073E-05
  11  Prefactor     .10000E-03    19.700        .19494E-05** at limit **
  12  Prefactor     .10000E-03    17.479       -.33531E-05** at limit **
  13  norm          19.615        12.785        .10549E-06    .33996E-03
  14  Prefactor     .10000E-03    5.4819       -.49007E-06** at limit **
  15  Prefactor     .10000E-03    127.79        .12618E-05** at limit **
  16  Prefactor     .10000E-03    30.681        .14440E-05** at limit **
  17  Prefactor     .10000E-03    7.2222       -.37964E-08** at limit **
  18  norm          .10000E-03    9.9998       -.31086E-07** at limit **
  19  norm          .10000E-03    12.533       -.73236E-07** at limit **
  20  Prefactor     .10000E-03    6.5343        .37104E-07** at limit **
  21  Prefactor     .10000E-03    39.527       -.24769E-06** at limit **
  22  Prefactor     22.166        21.417        .21439E-05    .19720E-03
  23  Prefactor     .10029E-03    5.0339        .55301E-07** at limit **
  24  Normalizat    1.2348        .21677       -.56654E-06    .53017E-04
  25  Prefactor     .64955        .12733       -.30217E-06    .21735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1906
  Prefactor  = 0.173093
  norm       = 0.0001
  Prefactor  = 6.17031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1606
  Prefactor  = 5.6721
  norm       = 2.16931
  Prefactor  = 1.65305
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 19.6151
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1662
  Prefactor  = 0.000100286
  Normalizat = 1.23477
  Prefactor  = 0.649548
 **********
 **   18 **HESSE 
 **********

 FCN=   5256.406     FROM HESSE     STATUS=OK           431 CALLS     3002 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.191        24.199        .76848E-04   -1.4665    
   2  Prefactor     .17309        .14629        .23797E-03   -1.5625    
   3  norm          .10000E-03    16.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1703        57.162        .16156E-03   -1.5211    
   5  Prefactor     .10000E-03    2.2043        .10493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.161        17.457        .99615E-04   -1.4904    
   8  Prefactor     5.6721        6.3228        .84326E-03   -1.5232    
   9  norm          2.1693        1.3474        .63826E-04   -1.5413    
  10  Prefactor     1.6531        9.5815        .32850E-03   -1.5451    
  11  Prefactor     .10000E-03    19.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.615        11.495        .90369E-04   -1.4822    
  14  Prefactor     .10000E-03    23.920        .28685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    127.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7844        .36136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.166        21.499        .85084E-04   -1.4766    
  23  Prefactor     .10029E-03    10.001        .54824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2348        .25699        .25509E-03   -.85535    
  25  Prefactor     .64955        .15049        .20962E-03   -1.0554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36991e-09
Minuit parameter uncertainties:
  1  24.2076
  2  0.146288
  3  0.000179567
  4  37.6081
  5  1.9189e-07
  6  0.000151712
  7  17.4625
  8  6.32357
  9  1.34741
  10  7.96127
  11  0.000184311
  12  0.00027509
  13  11.4966
  14  0.000478787
  15  0.000283789
  16  0.000161087
  17  5.75157e-06
  18  3.45817e-06
  19  4.90051e-06
  20  2.82131e-06
  21  3.70134e-05
  22  21.5067
  23  0.00338465
  24  0.257259
  25  0.150588
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.653e+00  7.961e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  6.495e-01  1.506e-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.235e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839340/likelihoodResults_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.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) = 5256.09395643
delta logL = 0.3123724253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5256.04163519
delta logL = 0.364693659633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79826       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5705       1.0000          .0000       10.000    
     3 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66571       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=   5256.042     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      232 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79772        15.326        .12433E-01    .94655E-03
   2  Index         3.5707        2.3829        .14295        .10393E-03
   3  Normalizat    1.1856        .39952E-01    .58625E-01    .10682E-04
   4  Prefactor     .66567        .24609E-01    .41943E-01    .10302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.797717
  Index      = 3.5707
  Normalizat = 1.18564
  Prefactor  = 0.665667
 **********
 **   18 **HESSE 
 **********

 FCN=   5256.042     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79772        59.597        .77971E-04   -1.5529    
   2  Index         3.5707        6.6496        .51808E-02   -.28990    
   3  Normalizat    1.1856        .26241        .25927E-03   -.87048    
   4  Prefactor     .66567        .15674        .20710E-03   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76285e-10
Minuit parameter uncertainties:
  1  13.8035
  2  7.72343
  3  0.262699
  4  0.156839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839340': 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) = 5256.04163512
delta logL = 0.364693729422

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.977e-01  1.380e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.571e+00  7.723e+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:  6.657e-01  1.568e-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.186e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 351.190 8.028

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/839340/cmap_HighResolution_366336001_366595201_4FGL_J2324.7+0801_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-29 16:21:12.372776', job_id='839340', GAL2='0.67', fit_tolerance='1e-08', EG2='1.19', EG='1.23', time_epoch_completed='1632957672.37', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.65e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='490' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 839340: <4FGL_J2324.7+0801_daily_bin490> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin490> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:23 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:26 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:10:26 2021
Terminated at Wed Sep 29 16:21:13 2021
Results reported at Wed Sep 29 16:21:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin490 351.19 8.0282 366336001 366595201 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 :                                   612.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            650 sec.

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

