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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin357
RA = 351.17, Dec = 31.2573
tmin = 331862401, tmax = 332121601
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='830508', job_status='RUN', time_executed='2021-09-29 15:42:19.563736', time_epoch_executed='1632955339.56' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830508/ft1_4FGL_J2324.6+3115_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830508/ft1_4FGL_J2324.6+3115_daily_bin357.fits outfile=/scratch/kocevski/830508/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin357.fits ra=351.17 dec=31.2573 rad=12.0 tmin=331862401.0 tmax=332121601.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 4.39
user 4.10
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.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/830508/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin357.fits evtable="EVENTS" outfile="/scratch/kocevski/830508/ft1_filtered_4FGL_J2324.6+3115_daily_bin357.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830508/ft1_filtered_4FGL_J2324.6+3115_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/830508/ltcube_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.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/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830508/ft1_filtered_4FGL_J2324.6+3115_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/830508/ltcube_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.fits outfile=/scratch/kocevski/830508/expmap_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.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/830508/ltcube_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.fits
.....................!
real 192.86
user 187.50
sys 5.01

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/830508/ft1_filtered_4FGL_J2324.6+3115_daily_bin357.fits scfile=/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits outfile=/scratch/kocevski/830508/cmap_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830508/ft1_filtered_4FGL_J2324.6+3115_daily_bin357.fits scfile=/scratch/kocevski/830508/ft2_4FGL_J2324.6+3115_daily_bin357.fits outfile=/scratch/kocevski/830508/cmap_HighResolution_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4015       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4155       1.0000         .10000E-03   10000.    
    14 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0919       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.016       1.0000         .10000E-03   10000.    
    17 'norm      '    .92034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7555       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94981       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96323       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=   9491.493     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2561 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1879        2.1936        .38354E-06   -.66874E-03
   2  Prefactor     2.4010        4.8477       -.94686E-07   -.31560E-04
   3  norm          .10000E-03    .26767       -.57038E-07** at limit **
   4  Prefactor     2.9529        95.823       -.29160E-04   -.20184E-06
   5  Prefactor     4.4699        16.115        .11468E-05    .25436E-05
   6  Prefactor     .10000E-03    11.565        .16668E-05** at limit **
   7  Prefactor     .10000E-03    5.6810       -.80467E-06** at limit **
   8  Prefactor     1.1781        5.4064       -.69195E-06   -.74237E-04
   9  Prefactor     .10000E-03    7.2048       -.16029E-05** at limit **
  10  norm          1.9105        1.2464        .86007E-08    .73114E-05
  11  Prefactor     .10000E-03    6.0869        .18171E-05** at limit **
  12  Prefactor     23.145        11.440       -.41713E-06   -.41403E-05
  13  Prefactor     8.4080        19.700       -.11486E-04   -.15914E-04
  14  norm          .10000E-03    2.7264        .42657E-06** at limit **
  15  norm          9.0921        6.5218       -.28893E-07    .63292E-04
  16  Prefactor     30.015        20.334        .97216E-06    .72186E-05
  17  norm          .92232        1.6930        .10458E-06    .18931E-03
  18  Prefactor     20.932        14.633       -.19351E-06    .42531E-05
  19  Prefactor     .10000E-03    20.904       -.39295E-05** at limit **
  20  Prefactor     .10000E-03    20.455        .17284E-05** at limit **
  21  Prefactor     3.7556        4.1417        .80907E-06   -.14519E-04
  22  Normalizat    .95009        .18810        .36331E-06    .22223E-04
  23  Prefactor     .96309        .90729E-01    .24016E-07    .25696E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18786
  Prefactor  = 2.40102
  norm       = 0.0001
  Prefactor  = 2.9529
  Prefactor  = 4.46988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17807
  Prefactor  = 0.0001
  norm       = 1.91053
  Prefactor  = 0.0001
  Prefactor  = 23.1454
  Prefactor  = 8.40799
  norm       = 0.0001
  norm       = 9.09214
  Prefactor  = 30.0152
  norm       = 0.922319
  Prefactor  = 20.9316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75556
  Normalizat = 0.950095
  Prefactor  = 0.963087
 **********
 **   18 **HESSE 
 **********

 FCN=   9491.493     FROM HESSE     STATUS=OK           376 CALLS     2937 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1879        17.181        .20903E-02   -1.5490    
   2  Prefactor     2.4010        4.8321        .26423E-03   -1.5398    
   3  norm          .10000E-03    .27218        .49160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9529        96.159        .23604E-03   -1.5364    
   5  Prefactor     4.4699        16.107        .19048E-03   -1.5285    
   6  Prefactor     .10000E-03    11.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1781        5.3243        .42170E-03   -1.5491    
   9  Prefactor     .10000E-03    7.2113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9105        1.2393        .83900E-04   -1.5432    
  11  Prefactor     .10000E-03    6.1004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.145        11.340        .83254E-04   -1.4745    
  13  Prefactor     8.4080        19.715        .13819E-03   -1.5128    
  14  norm          .10000E-03    2.7538        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0921        6.5251        .66460E-03   -1.5105    
  16  Prefactor     30.015        20.410        .73130E-04   -1.4612    
  17  norm          .92232        1.3410        .16429E-02   -1.5516    
  18  Prefactor     20.932        14.635        .87546E-04   -1.4793    
  19  Prefactor     .10000E-03    20.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7556        4.1626        .20240E-03   -1.5320    
  22  Normalizat    .95009        .21992        .35088E-03   -.94722    
  23  Prefactor     .96309        .10658        .17208E-03   -.93970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93519e-09
Minuit parameter uncertainties:
  1  9.0379
  2  4.83292
  3  3.44496e-07
  4  33.7603
  5  16.1226
  6  8.65798e-07
  7  9.46475e-06
  8  5.00947
  9  4.46552e-08
  10  1.23934
  11  1.24865e-05
  12  11.3409
  13  19.7298
  14  9.56441e-07
  15  6.52563
  16  20.4144
  17  1.34102
  18  14.6375
  19  6.12626e-06
  20  2.80216e-05
  21  4.16295
  22  0.220132
  23  0.106604
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.002e+01  2.041e+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:  9.631e-01  1.066e-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.501e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.66e-08 +/- 6.56e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/830508/likelihoodResults_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.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) = 9490.1656165
delta logL = 1.32758969427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9490.15361917
delta logL = 1.33958702841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3976       1.0000          .0000       10.000    
     3 'Normalizat'    .86027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99616       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9490.154     FROM MIGRAD    STATUS=FAILED       104 CALLS      308 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.204        106.33        .62690E-03    .29541E-03
   2  Index         4.3984        7.0489        .64227E-02    .62756E-03
   3  Normalizat    .86033        .21778        .36650E-03   -.19853E-05
   4  Prefactor     .99613        .10866        .16945E-03    .81851E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9490.154     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      388 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.204        106.33        .24802E-03    .29541E-03
   2  Index         4.3984        7.0489        .11984E-02    .62756E-03
   3  Normalizat    .86033        .21778        .24038E-03   -.19853E-05
   4  Prefactor     .99613        .10866        .15073E-03    .81851E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9490.154     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      420 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.204        16.069        .12538E-03   -.20674E-04
   2  Index         4.3984        1.3144        .12845E-02   -.24250E-05
   3  Normalizat    .86033        .22387        .14660E-04   -.18612E-05
   4  Prefactor     .99613        .10740        .67781E-05    .80509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2037
  Index      = 4.39838
  Normalizat = 0.860327
  Prefactor  = 0.996134
 **********
 **   18 **HESSE 
 **********

 FCN=   9490.154     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.204        14.343        .50152E-05   -1.5069    
   2  Index         4.3984        1.1757        .51382E-04   -.12062    
   3  Normalizat    .86033        .22368        .29320E-05   -.97869    
   4  Prefactor     .99613        .10725        .13556E-05   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96094e-13
Minuit parameter uncertainties:
  1  14.3479
  2  1.18697
  3  0.223916
  4  0.107273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830508': 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) = 9490.15361888
delta logL = 1.33958731643

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.020e+01  1.435e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  4.398e+00  1.187e+00  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:  9.961e-01  1.073e-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:  8.603e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.40 +/- 1.19
Photon Flux (Free Index): 1.59e-07 +/- 7.78e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.13e-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/830508/cmap_HighResolution_331862401_332121601_4FGL_J2324.6+3115_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', photon_flux='9.66e-08', energy_flux2='2.25e-05', photon_flux_error='6.56e-08', dlogl='1.34e+00', energy_flux='2.06e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-29 15:56:38.001550', photon_index_error2='1.19', photon_index2='4.40', ts='2.83', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.13e-05', EG='0.95', time_epoch_completed='1632956198.0', return_code='0', job_id='830508', GAL2='1.00', EG2='0.86', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='7.78e-08', ts2='6.01', photon_index='2.88' WHERE bin_id='357' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 830508: <4FGL_J2324.6+3115_daily_bin357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin357 351.17 31.2573 331862401 332121601 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 :                                   853.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

