/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 62 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin391
RA = 351.19, Dec = 8.0282
tmin = 340675201, tmax = 340934401
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='839192', job_status='RUN', time_executed='2021-09-29 16:11:23.942684', time_epoch_executed='1632957083.94' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839192

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839192/ft1_4FGL_J2324.7+0801_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839192/ft1_4FGL_J2324.7+0801_daily_bin391.fits outfile=/scratch/kocevski/839192/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin391.fits ra=351.19 dec=8.0282 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.09
user 5.83
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/839192/ltcube_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.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/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits
.....................!
real 10.51
user 10.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/839192/ltcube_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.fits outfile=/scratch/kocevski/839192/expmap_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.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/839192/ltcube_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.fits
.....................!
real 191.81
user 186.33
sys 5.16

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/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits scfile=/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits outfile=/scratch/kocevski/839192/cmap_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits scfile=/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits outfile=/scratch/kocevski/839192/cmap_HighResolution_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.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/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/839192/ft2_4FGL_J2324.7+0801_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839192/Model_4FGL_J2324.7+0801_daily_bin391.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/839192/ft1_filtered_4FGL_J2324.7+0801_daily_bin391.fits.....................!
real 62.93
user 61.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31279E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    21.794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7706       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2331       1.0000         .10000E-03   10000.    
     9 'norm      '    .92569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12945E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2251       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85420       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98071       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=   5501.656     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2973 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.938        27.685       -.47646E-06   -.70457E-04
   2  Prefactor     .31236E-01    .13033        .10034E-06   -.53710E-03
   3  norm          21.802        15.320        .26094E-06    .95610E-05
   4  Prefactor     20.066        51.286       -.11140E-05   -.14754E-04
   5  Prefactor     8.7740        9.3170        .79347E-06   -.39228E-04
   6  Prefactor     .10000E-03    6.0428        .22999E-07** at limit **
   7  Prefactor     .10000E-03    11.546        .56522E-06** at limit **
   8  Prefactor     4.2346        8.4668        .25254E-06   -.19413E-04
   9  norm          .92564        .98438        .33163E-07    .19592E-03
  10  Prefactor     1.5685        25.533       -.10591E-05    .14425E-05
  11  Prefactor     .10000E-03    14.747       -.40225E-06** at limit **
  12  Prefactor     .10000E-03    88.171       -.12307E-04** at limit **
  13  norm          2.7963        7.3651        .52328E-05    .13797E-04
  14  Prefactor     .10000E-03    3.8299       -.43689E-06** at limit **
  15  Prefactor     .10000E-03    128.17        .16944E-04** at limit **
  16  Prefactor     .10006E-03    12.421       -.15434E-05** at limit **
  17  Prefactor     11.218        23.589       -.10731E-05   -.45645E-04
  18  norm          .10000E-03    6.1957        .50506E-07** at limit **
  19  norm          21.925        27.558       -.62692E-06    .17398E-03
  20  Prefactor     .10000E-03    3.6757       -.64173E-07** at limit **
  21  Prefactor     57.410        49.383        .17899E-05    .54350E-04
  22  Prefactor     7.2225        20.661        .23638E-08   -.46467E-05
  23  Prefactor     .10000E-03    3.9587        .16909E-08** at limit **
  24  Normalizat    .85424        .22953       -.11032E-05   -.46319E-04
  25  Prefactor     .98071        .13725       -.49262E-06   -.10236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.938
  Prefactor  = 0.0312358
  norm       = 21.8025
  Prefactor  = 20.0662
  Prefactor  = 8.77405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23463
  norm       = 0.925645
  Prefactor  = 1.56852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79625
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 11.2178
  norm       = 0.0001
  norm       = 21.9247
  Prefactor  = 0.0001
  Prefactor  = 57.4102
  Prefactor  = 7.22245
  Prefactor  = 0.0001
  Normalizat = 0.854242
  Prefactor  = 0.980707
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.656     FROM HESSE     STATUS=OK           433 CALLS     3406 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.938        26.922        .75806E-04   -1.4650    
   2  Prefactor     .31236E-01    .19947        .46100E-03   -1.5673    
   3  norm          21.802        15.324        .85798E-04   -1.4774    
   4  Prefactor     20.066        51.389        .89438E-04   -1.4812    
   5  Prefactor     8.7740        9.2004        .67673E-03   -1.5115    
   6  Prefactor     .10000E-03    6.0593        .17805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2346        8.4621        .19585E-03   -1.5296    
   9  norm          .92564        .93946        .72861E-03   -1.5516    
  10  Prefactor     1.5685        24.948        .33950E-03   -1.5457    
  11  Prefactor     .10000E-03    14.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7963        7.4343        .12170E-02   -1.5374    
  14  Prefactor     .10000E-03    10.078        .27800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    128.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    37.424        .40663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.218        23.327        .11959E-03   -1.5038    
  18  norm          .10000E-03    6.2008        .18032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.925        23.129        .85501E-04   -1.4771    
  20  Prefactor     .10000E-03    3.7522        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.410        49.433        .52940E-04   -1.4191    
  22  Prefactor     7.2225        20.629        .14923E-03   -1.5170    
  23  Prefactor     .10000E-03    3.9694        .14412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85424        .26740        .32043E-03   -.98087    
  25  Prefactor     .98071        .16255        .18938E-03   -.93375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00308e-08
Minuit parameter uncertainties:
  1  26.9334
  2  0.157615
  3  15.3268
  4  51.5022
  5  9.20186
  6  4.14122e-06
  7  1.78697e-05
  8  8.46451
  9  0.939477
  10  12.5169
  11  6.44205e-08
  12  0.000124427
  13  7.43671
  14  0.000445287
  15  0.000454233
  16  0.00301474
  17  23.3456
  18  1.8095e-06
  19  23.1381
  20  8.51235e-06
  21  49.4682
  22  20.6495
  23  1.7725e-06
  24  0.267819
  25  0.162629
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.569e+00  1.252e+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.807e-01  1.626e-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.542e-01  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839192/likelihoodResults_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.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) = 5501.65551456
delta logL = 2.10559119296e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5501.65550992
delta logL = 2.5695306249e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5501.656     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5404        26.346        .16975E-02    .25271E-03
   2  Index         2.2431        1.9945        .52308E-02   -.13888E-05
   3  Normalizat    .85416        .25190        .32044E-03   -.36542E-04
   4  Prefactor     .98075        .16053        .18938E-03   -.56946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54038
  Index      = 2.2431
  Normalizat = 0.854155
  Prefactor  = 0.980746
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.656     FROM HESSE     STATUS=OK            27 CALLS      283 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5404        23.784        .33950E-03   -1.5460    
   2  Index         2.2431        1.9046        .20923E-03   -.58402    
   3  Normalizat    .85416        .25208        .12818E-04   -.98090    
   4  Prefactor     .98075        .16051        .37876E-04   -.93374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24423e-12
Minuit parameter uncertainties:
  1  12.1109
  2  1.97793
  3  0.252429
  4  0.160592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839192': 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) = 5501.65550562
delta logL = 2.99914881907e-05

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.540e+00  1.211e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.243e+00  1.978e+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.807e-01  1.606e-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.542e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/839192/cmap_HighResolution_340675201_340934401_4FGL_J2324.7+0801_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 16:22:06.895142', job_id='839192', GAL2='0.98', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632957726.9', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.00e-05', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='391' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 839192: <4FGL_J2324.7+0801_daily_bin391> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin391 351.19 8.0282 340675201 340934401 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

