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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin317
RA = 351.17, Dec = 31.2573
tmin = 321494401, tmax = 321753601
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='830453', job_status='RUN', time_executed='2021-09-29 15:43:11.264494', time_epoch_executed='1632955391.26' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830453/ft1_4FGL_J2324.6+3115_daily_bin317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830453/ft1_4FGL_J2324.6+3115_daily_bin317.fits outfile=/scratch/kocevski/830453/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin317.fits ra=351.17 dec=31.2573 rad=12.0 tmin=321494401.0 tmax=321753601.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.93
user 3.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.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/830453/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin317.fits evtable="EVENTS" outfile="/scratch/kocevski/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits" evtable="EVENTS" scfile=/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits sctable="SC_DATA" outfile=/scratch/kocevski/830453/ltcube_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.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/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits
.....................!
real 12.04
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/830453/ltcube_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits outfile=/scratch/kocevski/830453/expmap_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.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/830453/ltcube_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits
.....................!
real 189.71
user 185.19
sys 4.17

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/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits scfile=/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits outfile=/scratch/kocevski/830453/cmap_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits scfile=/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits outfile=/scratch/kocevski/830453/cmap_HighResolution_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits', '/scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits', expMap='/scratch/kocevski/830453/expmap_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits', expCube='/scratch/kocevski/830453/ltcube_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830453/Model_4FGL_J2324.6+3115_daily_bin317.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/830453/ft1_filtered_4FGL_J2324.6+3115_daily_bin317.fits
Spacecraft file(s): /scratch/kocevski/830453/ft2_4FGL_J2324.6+3115_daily_bin317.fits
Exposure map: /scratch/kocevski/830453/expmap_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits
Exposure cube: /scratch/kocevski/830453/ltcube_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830453/Model_4FGL_J2324.6+3115_daily_bin317.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) = 8881.08452375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21853E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.581       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3243       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7572       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4020       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91008       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1037       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=   8880.980     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2180 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.597        16.987        .28235E-02    .20190E-02
   2  Prefactor     .10000E-03    4.0585        .90712E-02** at limit **
   3  norm          1.0479        .87332        .12122E-01    .84579E-03
   4  Prefactor     .10000E-03    112.63        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.1760        .90712E-02** at limit **
   6  Prefactor     .10000E-03    31.479        .90712E-02** at limit **
   7  Prefactor     .10000E-03    1.6632        .90712E-02** at limit **
   8  Prefactor     .10005E-03    4.8498        .10074    ** at limit **
   9  Prefactor     .10001E-03    18.771        .90712E-02** at limit **
  10  norm          13.362        2.4429        .27395E-02    .43906E-03
  11  Prefactor     .10001E-03    19.431        .90712E-02** at limit **
  12  Prefactor     .10000E-03    9.9159        .90712E-02** at limit **
  13  Prefactor     12.581        15.010        .28233E-02   -.55948E-04
  14  norm          9.3243        5.6229        .32811E-02    .25910E-02
  15  norm          .10000E-03    3.8616        .90712E-02** at limit **
  16  Prefactor     8.7562        11.144        .33863E-02    .40502E-04
  17  norm          .10000E-03    .93839        .37049E-01** at limit **
  18  Prefactor     .10000E-03    5.0444        .90712E-02** at limit **
  19  Prefactor     .10000E-03    8.8276        .90712E-02** at limit **
  20  Prefactor     .10002E-03    22.627        .90712E-02** at limit **
  21  Prefactor     1.3887        14.844        .91592E-02    .61738E-03
  22  Normalizat    .91014        .20614        .84592E-01    .21864E-03
  23  Prefactor     1.1037        .10431        .37449E-01    .42218E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5974
  Prefactor  = 0.0001
  norm       = 1.0479
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 0.000100006
  norm       = 13.3617
  Prefactor  = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 12.5805
  norm       = 9.32433
  norm       = 0.0001
  Prefactor  = 8.75617
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 1.3887
  Normalizat = 0.910136
  Prefactor  = 1.10366
 **********
 **   18 **HESSE 
 **********

 FCN=   8880.980     FROM HESSE     STATUS=OK           364 CALLS     2544 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.597        16.460        .11294E-03   -1.4998    
   2  Prefactor     .10000E-03    4.1231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0479        .86058        .77861E-04   -1.5503    
   4  Prefactor     .10000E-03    113.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6663        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    20.097        .40180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    18.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.362        2.4419        .59588E-04   -1.4977    
  11  Prefactor     .10001E-03    19.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.581        15.007        .11293E-03   -1.4998    
  14  norm          9.3243        5.6168        .65622E-03   -1.5097    
  15  norm          .10000E-03    3.8693        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7562        11.132        .13545E-03   -1.5116    
  17  norm          .10000E-03    1.5544        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    22.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3887        14.092        .36637E-03   -1.5472    
  22  Normalizat    .91014        .23353        .37454E-03   -.96105    
  23  Prefactor     1.1037        .11883        .17603E-03   -.89350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30543e-08
Minuit parameter uncertainties:
  1  16.4656
  2  3.45455e-05
  3  0.860593
  4  0.00102116
  5  3.87594e-05
  6  0.000190218
  7  2.72334e-06
  8  0.00207724
  9  0.000674575
  10  2.4419
  11  0.00105351
  12  0.000180767
  13  15.0117
  14  5.61716
  15  2.11519e-05
  16  11.1342
  17  6.33274e-06
  18  1.51846e-05
  19  3.01531e-05
  20  0.00133886
  21  8.84976
  22  0.233793
  23  0.118854
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  8.756e+00  1.113e+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:  1.104e+00  1.189e-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:  9.101e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 6.01e-06 +/- 7.64e-06

TS (Fixed Index): 1.20
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830453/likelihoodResults_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.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) = 8878.99114074
delta logL = 1.98914584667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8878.96310193
delta logL = 2.01718465261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2417       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4980       1.0000          .0000       10.000    
     3 'Normalizat'    .93071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0971       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=   8878.963     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2286        6.3620        .40169E-02   -.11356E-03
   2  Index         1.4974        .32554        .22518       -.88314E-04
   3  Normalizat    .93077        .20100        .83758E-01    .30070E-04
   4  Prefactor     1.0971        .10350        .37698E-01   -.57217E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.2286
  Index      = 1.49744
  Normalizat = 0.930774
  Prefactor  = 1.09708
 **********
 **   18 **HESSE 
 **********

 FCN=   8878.963     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2286        9.8214        .16068E-03   -1.5209    
   2  Index         1.4974        .60702        .82344E-02   -.77612    
   3  Normalizat    .93077        .22961        .37082E-03   -.95387    
   4  Prefactor     1.0971        .11853        .17644E-03   -.89560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07003e-09
Minuit parameter uncertainties:
  1  9.8239
  2  0.609986
  3  0.229849
  4  0.11856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830453': 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) = 8878.96310108
delta logL = 2.01718550051

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  6.229e+00  9.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.497e+00  6.100e-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:  1.097e+00  1.186e-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:  9.308e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 351.170 31.257
Photon Index (Free Index): 1.50 +/- 0.61
Photon Flux (Free Index): 1.02e-08 +/- 1.45e-08
Energy Flux (Free Index): 3.27e-05 +/- 4.73e-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/830453/cmap_HighResolution_321494401_321753601_4FGL_J2324.6+3115_daily_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='3.27e-05', photon_flux_error='3.58e-08', dlogl='2.02e+00', energy_flux='6.01e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-29 15:56:06.071069', photon_index_error2='0.61', photon_index2='1.50', ts='1.20', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='4.73e-05', EG='0.91', time_epoch_completed='1632956166.07', return_code='0', job_id='830453', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='1.45e-08', ts2='5.24', photon_index='2.88' WHERE bin_id='317' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 830453: <4FGL_J2324.6+3115_daily_bin317> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin317> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:22 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40:24 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:24 2021
Terminated at Wed Sep 29 15:56:06 2021
Results reported at Wed Sep 29 15:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin317 351.17 31.2573 321494401 321753601 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

