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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin971
RA = 351.19, Dec = 8.0282
tmin = 491011201, tmax = 491270401
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='842232', job_status='RUN', time_executed='2021-09-29 16:21:20.116648', time_epoch_executed='1632957680.12' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842232/ft1_4FGL_J2324.7+0801_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842232/ft1_4FGL_J2324.7+0801_daily_bin971.fits outfile=/scratch/kocevski/842232/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin971.fits ra=351.19 dec=8.0282 rad=12.0 tmin=491011201.0 tmax=491270401.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.65
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.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/842232/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/842232/ft1_filtered_4FGL_J2324.7+0801_daily_bin971.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842232/ft1_filtered_4FGL_J2324.7+0801_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/842232/ltcube_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.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/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits
.....................!
real 14.16
user 13.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842232/ft1_filtered_4FGL_J2324.7+0801_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/842232/ltcube_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.fits outfile=/scratch/kocevski/842232/expmap_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.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/842232/ltcube_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.fits
.....................!
real 190.20
user 185.09
sys 4.75

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/842232/ft1_filtered_4FGL_J2324.7+0801_daily_bin971.fits scfile=/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits outfile=/scratch/kocevski/842232/cmap_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.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/842232/ft1_filtered_4FGL_J2324.7+0801_daily_bin971.fits scfile=/scratch/kocevski/842232/ft2_4FGL_J2324.7+0801_daily_bin971.fits outfile=/scratch/kocevski/842232/cmap_HighResolution_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32122E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6115       1.0000         .10000E-03   10000.    
     3 'norm      '    47.018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56165       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8784       1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4066       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    268.62       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1699       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91833       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=   8381.308     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2920 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.119       -.29219E-07** at limit **
   2  Prefactor     6.6113        .45097       -.36050E-08    .70404E-03
   3  norm          47.016        22.586       -.38451E-06   -.66046E-04
   4  Prefactor     .10000E-03    11.106        .20612E-05** at limit **
   5  Prefactor     .56223        5.2769       -.13338E-06   -.10550E-03
   6  Prefactor     .10000E-03    12.953       -.31373E-05** at limit **
   7  Prefactor     .10000E-03    14.934        .15171E-05** at limit **
   8  Prefactor     5.8779        5.4667        .12005E-05   -.14755E-02
   9  norm          .10000E-03    .36078       -.17729E-07** at limit **
  10  Prefactor     1.4068        10.591        .68966E-06   -.15899E-03
  11  Prefactor     15.180        14.419       -.33922E-06    .43474E-05
  12  Prefactor     .10000E-03    11.775        .11851E-06** at limit **
  13  norm          16.379        11.119        .13405E-06    .44377E-04
  14  Prefactor     7.8770        7.8495        .11477E-07   -.17479E-04
  15  Prefactor     268.65        191.18        .88479E-05    .10865E-03
  16  Prefactor     7.3654        15.324       -.53776E-06    .91561E-04
  17  Prefactor     4.1675        38.432       -.19528E-05   -.33864E-04
  18  norm          .10000E-03    7.6194        .23890E-06** at limit **
  19  norm          10.952        36.915        .30356E-05    .74790E-04
  20  Prefactor     2.4804        4.1134       -.29086E-06   -.20147E-03
  21  Prefactor     39.543        31.763       -.16592E-05   -.10988E-03
  22  Prefactor     .10000E-03    5.9501        .51723E-08** at limit **
  23  Prefactor     .10000E-03    8.6401       -.71702E-06** at limit **
  24  Normalizat    1.0604        .21475        .14054E-07    .24394E-04
  25  Prefactor     .91812        .13231       -.16338E-06    .62517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.61135
  norm       = 47.016
  Prefactor  = 0.0001
  Prefactor  = 0.562232
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.87793
  norm       = 0.0001
  Prefactor  = 1.40682
  Prefactor  = 15.1798
  Prefactor  = 0.0001
  norm       = 16.3786
  Prefactor  = 7.87705
  Prefactor  = 268.647
  Prefactor  = 7.36535
  Prefactor  = 4.16749
  norm       = 0.0001
  norm       = 10.9518
  Prefactor  = 2.48045
  Prefactor  = 39.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06035
  Prefactor  = 0.918118
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.308     FROM HESSE     STATUS=OK           433 CALLS     3353 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.701        .56169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6113        .44564        .15194E-04   -1.5194    
   3  norm          47.016        22.638        .58476E-04   -1.4336    
   4  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56223        18.462        .39936E-02   -1.5558    
   6  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8779        7.7722        .82817E-03   -1.5223    
   9  norm          .10000E-03    .49556        .10675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4068        10.621        .36552E-03   -1.5471    
  11  Prefactor     15.180        14.643        .10280E-03   -1.4929    
  12  Prefactor     .10000E-03    11.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.379        11.004        .98963E-04   -1.4898    
  14  Prefactor     7.8770        7.8442        .14286E-03   -1.5147    
  15  Prefactor     268.65        194.16        .12370E-03   -1.2415    
  16  Prefactor     7.3654        15.392        .14769E-03   -1.5165    
  17  Prefactor     4.1675        37.977        .19737E-03   -1.5300    
  18  norm          .10000E-03    7.6415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.952        37.162        .12106E-03   -1.5046    
  20  Prefactor     2.4804        4.1085        .22329E-03   -1.5393    
  21  Prefactor     39.543        31.939        .63738E-04   -1.4449    
  22  Prefactor     .10000E-03    5.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0604        .25267        .35508E-03   -.91035    
  25  Prefactor     .91812        .15587        .23979E-03   -.95511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55669e-08
Minuit parameter uncertainties:
  1  0.000538572
  2  0.445644
  3  22.6422
  4  0.000117003
  5  6.4451
  6  0.000182649
  7  9.65018e-05
  8  7.77356
  9  5.81406e-06
  10  7.73275
  11  14.6466
  12  6.98094e-06
  13  11.0058
  14  7.8452
  15  194.629
  16  15.4005
  17  25.1818
  18  1.07767e-05
  19  37.2407
  20  4.10893
  21  31.9529
  22  2.53402e-06
  23  3.33289e-05
  24  0.252953
  25  0.155948
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.407e+00  7.733e+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:  9.181e-01  1.559e-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.060e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842232/likelihoodResults_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.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) = 8381.28776303
delta logL = 0.0204553514577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8381.28728493
delta logL = 0.0209334468946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2507       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6459       1.0000          .0000       10.000    
     3 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91886       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=   8381.287     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      264 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2507        7.6097        .36188E-03   -.14326E-04
   2  Index         2.6463        2.0198        .47061E-02   -.14514E-04
   3  Normalizat    1.0561        .24214        .35566E-03   -.42450E-04
   4  Prefactor     .91891        .15359        .23967E-03   -.55783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25072
  Index      = 2.64634
  Normalizat = 1.05606
  Prefactor  = 0.918909
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.287     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2507        6.5937        .14475E-04   -1.5484    
   2  Index         2.6463        1.8897        .18824E-03   -.49012    
   3  Normalizat    1.0561        .24234        .14226E-04   -.91175    
   4  Prefactor     .91891        .15369        .95868E-05   -.95483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18883e-11
Minuit parameter uncertainties:
  1  5.74422
  2  1.95282
  3  0.242592
  4  0.153766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842232': 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) = 8381.28728483
delta logL = 0.0209335543877

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.251e+00  5.744e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.646e+00  1.953e+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.189e-01  1.538e-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.056e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/842232/cmap_HighResolution_491011201_491270401_4FGL_J2324.7+0801_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.51e-08', time_completed='2021-09-29 16:35:50.204138', job_id='842232', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632958550.2', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.09e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='971' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 842232: <4FGL_J2324.7+0801_daily_bin971> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin971> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:33 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:36 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:20:36 2021
Terminated at Wed Sep 29 16:35:51 2021
Results reported at Wed Sep 29 16:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin971 351.19 8.0282 491011201 491270401 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 :                                   864.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            918 sec.

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

