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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin373
RA = 351.17, Dec = 31.2573
tmin = 336009601, tmax = 336268801
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='830530', job_status='RUN', time_executed='2021-09-29 15:44:24.913383', time_epoch_executed='1632955464.91' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830530/ft1_4FGL_J2324.6+3115_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830530/ft1_4FGL_J2324.6+3115_daily_bin373.fits outfile=/scratch/kocevski/830530/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin373.fits ra=351.17 dec=31.2573 rad=12.0 tmin=336009601.0 tmax=336268801.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.28
user 3.06
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.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/830530/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.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/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/830530/ltcube_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.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/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits
.....................!
real 11.60
user 11.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/830530/ltcube_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits outfile=/scratch/kocevski/830530/expmap_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.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/830530/ltcube_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits
.....................!
real 191.52
user 186.59
sys 4.58

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits outfile=/scratch/kocevski/830530/cmap_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.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.17 yref=31.2573 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/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits outfile=/scratch/kocevski/830530/cmap_HighResolution_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.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.17 yref=31.2573 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830530/Model_4FGL_J2324.6+3115_daily_bin373.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/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits.....................!
real 83.27
user 81.85
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits', '/scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits', expMap='/scratch/kocevski/830530/expmap_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits', expCube='/scratch/kocevski/830530/ltcube_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830530/Model_4FGL_J2324.6+3115_daily_bin373.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830530/ft1_filtered_4FGL_J2324.6+3115_daily_bin373.fits
Spacecraft file(s): /scratch/kocevski/830530/ft2_4FGL_J2324.6+3115_daily_bin373.fits
Exposure map: /scratch/kocevski/830530/expmap_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits
Exposure cube: /scratch/kocevski/830530/ltcube_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830530/Model_4FGL_J2324.6+3115_daily_bin373.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) = 7465.4013926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.839       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8074       1.0000         .10000E-03   10000.    
    15 'norm      '    15.679       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.579       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1398       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17328E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0937       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7465.368     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2524 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.416        20.326       -.65671E-07   -.21428E-03
   2  Prefactor     17.836        9.0561        .66119E-07   -.45897E-04
   3  norm          .10000E-03    .32086       -.22970E-06** at limit **
   4  Prefactor     21.371        48.246       -.78650E-05   -.22930E-03
   5  Prefactor     4.3214        12.107        .68685E-05   -.66095E-04
   6  Prefactor     .10000E-03    4.5056        .44564E-07** at limit **
   7  Prefactor     .10000E-03    1.4106        .12085E-08** at limit **
   8  Prefactor     .10000E-03    4.4995       -.33865E-07** at limit **
   9  Prefactor     .10000E-03    9.6961       -.13808E-06** at limit **
  10  norm          .10000E-03    .75311        .69974E-07** at limit **
  11  Prefactor     4.2467        16.681        .43197E-06   -.14420E-04
  12  Prefactor     .10000E-03    5.3389        .90526E-07** at limit **
  13  Prefactor     .10000E-03    12.347        .56498E-06** at limit **
  14  norm          3.8075        3.6873        .12104E-07   -.30078E-04
  15  norm          15.681        10.201       -.39015E-08   -.10893E-04
  16  Prefactor     17.564        14.786        .59620E-07   -.58650E-04
  17  norm          4.1406        2.4229        .19111E-07   -.68320E-04
  18  Prefactor     .10000E-03    5.0204       -.21789E-07** at limit **
  19  Prefactor     .10000E-03    14.205       -.42239E-06** at limit **
  20  Prefactor     .10000E-03    20.280       -.46902E-07** at limit **
  21  Prefactor     .10026E-03    6.5276        .18073E-05** at limit **
  22  Normalizat    1.0943        .18715       -.11679E-05   -.12499E-03
  23  Prefactor     .74539        .88673E-01    .29889E-06   -.36963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.4159
  Prefactor  = 17.8364
  norm       = 0.0001
  Prefactor  = 21.3707
  Prefactor  = 4.32137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.24669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80753
  norm       = 15.6807
  Prefactor  = 17.5637
  norm       = 4.1406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100262
  Normalizat = 1.09435
  Prefactor  = 0.745389
 **********
 **   18 **HESSE 
 **********

 FCN=   7465.368     FROM HESSE     STATUS=OK           370 CALLS     2894 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.416        19.341        .73889E-04   -1.4623    
   2  Prefactor     17.836        9.0667        .94826E-04   -1.4863    
   3  norm          .10000E-03    .43819        .95400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.371        50.968        .86563E-04   -1.4783    
   5  Prefactor     4.3214        12.451        .96851E-03   -1.5292    
   6  Prefactor     .10000E-03    4.5102        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4136        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5241        .17898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3693        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2467        16.679        .19541E-03   -1.5296    
  12  Prefactor     .10000E-03    5.3934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8075        3.6780        .15466E-03   -1.5318    
  15  norm          15.681        10.207        .10115E-03   -1.4916    
  16  Prefactor     17.564        14.822        .95526E-04   -1.4870    
  17  norm          4.1406        2.4221        .99196E-04   -1.5301    
  18  Prefactor     .10000E-03    5.0264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10026E-03    39.429        .39116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0943        .21725        .29469E-03   -.89934    
  23  Prefactor     .74539        .10375        .17069E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05781e-09
Minuit parameter uncertainties:
  1  19.3451
  2  9.06742
  3  5.94318e-06
  4  51.0723
  5  12.4583
  6  5.49534e-06
  7  2.50817e-07
  8  2.48813e-06
  9  1.53619e-05
  10  2.74608e-06
  11  16.6971
  12  5.79222e-06
  13  7.20058e-05
  14  3.67822
  15  10.2084
  16  14.8252
  17  2.42214
  18  2.67767e-06
  19  5.56186e-05
  20  4.85103e-05
  21  0.00643471
  22  0.217425
  23  0.103777
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.756e+01  1.483e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  7.454e-01  1.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.094e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.02e-05

TS (Fixed Index): 3.01
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830530/likelihoodResults_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.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) = 7465.24935605
delta logL = 0.118871652505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7464.94214236
delta logL = 0.426085340474

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7464.942     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      231 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8419        5.2865        .45726E-02   -.41949E-02
   2  Index         1.5460        .39027        .25611       -.83799E-04
   3  Normalizat    1.1558        .17809        .65054E-01    .31541E-04
   4  Prefactor     .72957        .87138E-01    .42794E-01    .98754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84192
  Index      = 1.54596
  Normalizat = 1.15578
  Prefactor  = 0.72957
 **********
 **   18 **HESSE 
 **********

 FCN=   7464.942     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8419        8.2025        .91452E-03   -1.5268    
   2  Index         1.5460        .77415        .88258E-02   -.76261    
   3  Normalizat    1.1558        .20775        .28778E-03   -.87980    
   4  Prefactor     .72957        .10168        .17235E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87406e-11
Minuit parameter uncertainties:
  1  8.20442
  2  0.780191
  3  0.207899
  4  0.101703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830530': 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) = 7464.94214146
delta logL = 0.426086236846

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.842e+00  8.204e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.546e+00  7.802e-01  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  7.296e-01  1.017e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.156e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 351.170 31.257
Photon Index (Free Index): 1.55 +/- 0.78
Photon Flux (Free Index): 7.85e-09 +/- 1.22e-08
Energy Flux (Free Index): 2.13e-05 +/- 3.87e-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/830530/cmap_HighResolution_336009601_336268801_4FGL_J2324.6+3115_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='2.13e-05', photon_flux_error='4.76e-08', dlogl='4.26e-01', energy_flux='1.21e-05', photon_flux2='7.85e-09', job_status='DONE', time_completed='2021-09-29 15:56:19.533073', photon_index_error2='0.78', photon_index2='1.55', ts='3.01', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='3.87e-05', EG='1.09', time_epoch_completed='1632956179.53', return_code='0', job_id='830530', GAL2='0.73', EG2='1.16', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.22e-08', ts2='3.79', photon_index='2.88' WHERE bin_id='373' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 830530: <4FGL_J2324.6+3115_daily_bin373> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin373> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:28 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:40:31 2021
Terminated at Wed Sep 29 15:56:20 2021
Results reported at Wed Sep 29 15:56:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin373 351.17 31.2573 336009601 336268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            952 sec.

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

