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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin624
RA = 351.17, Dec = 31.2573
tmin = 401068801, tmax = 401328001
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='831965', job_status='RUN', time_executed='2021-09-29 15:48:42.742427', time_epoch_executed='1632955722.74' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831965/ft1_4FGL_J2324.6+3115_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831965/ft1_4FGL_J2324.6+3115_daily_bin624.fits outfile=/scratch/kocevski/831965/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin624.fits ra=351.17 dec=31.2573 rad=12.0 tmin=401068801.0 tmax=401328001.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.39
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.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/831965/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin624.fits evtable="EVENTS" outfile="/scratch/kocevski/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.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/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/831965/ltcube_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.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/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits
.....................!
real 11.85
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/831965/ltcube_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.fits outfile=/scratch/kocevski/831965/expmap_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.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/831965/ltcube_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.fits
.....................!
real 189.93
user 184.93
sys 4.64

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/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits outfile=/scratch/kocevski/831965/cmap_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits outfile=/scratch/kocevski/831965/cmap_HighResolution_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.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/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/831965/ft2_4FGL_J2324.6+3115_daily_bin624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831965/Model_4FGL_J2324.6+3115_daily_bin624.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/831965/ft1_filtered_4FGL_J2324.6+3115_daily_bin624.fits.....................!
real 93.56
user 92.13
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85327E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5784       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    80.904       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71379E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.4801       1.0000         .10000E-03   10000.    
    15 'norm      '    9.8773       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    92.567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0434       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=   8920.081     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2550 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11705E-03    23.000        .12053E-05** at limit **
   2  Prefactor     6.5776        8.8123        .30072E-06   -.16194E-04
   3  norm          .10000E-03    .31909        .12343E-07** at limit **
   4  Prefactor     80.875        67.095       -.26128E-05   -.28182E-04
   5  Prefactor     .10000E-03    4.9369        .42481E-08** at limit **
   6  Prefactor     .10000E-03    24.054       -.29020E-07** at limit **
   7  Prefactor     6.7143        5.7198        .20273E-06    .13179E-03
   8  Prefactor     8.3101        9.7115       -.31684E-06    .61113E-06
   9  Prefactor     10.191        12.540       -.13284E-06    .24997E-04
  10  norm          2.4321        1.3563       -.10380E-06    .12944E-03
  11  Prefactor     9.1116        19.117       -.23667E-05   -.24042E-04
  12  Prefactor     .10000E-03    7.7643       -.12224E-05** at limit **
  13  Prefactor     .10000E-03    19.264        .89486E-07** at limit **
  14  norm          8.4804        6.1306        .36616E-06    .13683E-03
  15  norm          9.8779        11.284       -.18909E-06    .60764E-04
  16  Prefactor     .10000E-03    15.367        .77097E-07** at limit **
  17  norm          .10000E-03    1.2067       -.10112E-06** at limit **
  18  Prefactor     .10000E-03    7.1062       -.65044E-07** at limit **
  19  Prefactor     11.072        37.829       -.70386E-05   -.36489E-04
  20  Prefactor     92.401        62.329        .14770E-05   -.21580E-03
  21  Prefactor     .10000E-03    9.7533       -.32157E-05** at limit **
  22  Normalizat    1.0128        .21661        .40921E-05    .69246E-04
  23  Prefactor     1.0434        .10109       -.14562E-06    .44901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000117045
  Prefactor  = 6.57759
  norm       = 0.0001
  Prefactor  = 80.8753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71433
  Prefactor  = 8.31007
  Prefactor  = 10.1907
  norm       = 2.43208
  Prefactor  = 9.11163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.48036
  norm       = 9.87788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0724
  Prefactor  = 92.4009
  Prefactor  = 0.0001
  Normalizat = 1.01277
  Prefactor  = 1.04337
 **********
 **   18 **HESSE 
 **********

 FCN=   8920.081     FROM HESSE     STATUS=OK           378 CALLS     2928 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11705E-03    26.812        .10742       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5776        8.8032        .15646E-03   -1.5195    
   3  norm          .10000E-03    .32543        .52080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     80.875        67.144        .22326E-03   -1.3907    
   5  Prefactor     .10000E-03    4.9391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7143        5.7183        .15487E-03   -1.5190    
   8  Prefactor     8.3101        9.7095        .13909E-03   -1.5131    
   9  Prefactor     10.191        12.536        .12552E-03   -1.5069    
  10  norm          2.4321        1.3519        .78691E-04   -1.5396    
  11  Prefactor     9.1116        19.134        .13279E-03   -1.5104    
  12  Prefactor     .10000E-03    57.611        .49256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.4804        6.1147        .13766E-03   -1.5125    
  15  norm          9.8779        11.258        .12750E-03   -1.5079    
  16  Prefactor     .10000E-03    15.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2018        .19960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.072        37.847        .12053E-03   -1.5042    
  20  Prefactor     92.401        68.852        .20885E-03   -1.3782    
  21  Prefactor     .10000E-03    9.8657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0128        .24329        .36856E-03   -.92604    
  23  Prefactor     1.0434        .11670        .17796E-03   -.91297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84876e-09
Minuit parameter uncertainties:
  1  0.0427748
  2  8.80492
  3  1.66014e-06
  4  67.2073
  5  4.70972e-06
  6  4.09609e-05
  7  5.71873
  8  9.71136
  9  12.5396
  10  1.35196
  11  19.1471
  12  0.000217766
  13  3.48373e-05
  14  6.11519
  15  11.2599
  16  7.99366e-05
  17  1.19184e-05
  18  5.06136e-06
  19  37.9292
  20  68.9118
  21  6.76596e-05
  22  0.243557
  23  0.116732
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  7.994e-05  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.043e+00  1.167e-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.013e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/831965/likelihoodResults_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.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): 102
logL (Free Index) = 8920.08131799
delta logL = -0.000308912818582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8920.08100907
delta logL = 4.38194547314e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0434       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8919.891     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      351 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11189        15.628        .11704E-01    .40952E-02
   2  Index         6.9737        5.7022        .31353       -.91708E-04
   3  Normalizat    .96733        .41039        .36856E-03    .11481E-03
   4  Prefactor     1.0573        .74470E-01    .17796E-03    .14778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.111889
  Index      = 6.97371
  Normalizat = 0.967329
  Prefactor  = 1.05727
 **********
 **   18 **HESSE 
 **********

 FCN=   8919.891     FROM HESSE     STATUS=OK            29 CALLS      380 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11189        .37805        .51291E-04   -1.5641    
   2  Index         6.9737        2.3664        .17625E-01    2.7358    
   3  Normalizat    .96733        .24369        .14742E-04   -.94133    
   4  Prefactor     1.0573        .11681        .35591E-04   -.90844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52406e-08
Minuit parameter uncertainties:
  1  0.37806
  2  2.48596
  3  0.243965
  4  0.116842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831965': 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) = 8919.89108824
delta logL = 0.189920834631

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.119e-01  3.781e-01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  6.974e+00  2.486e+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:  1.057e+00  1.168e-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.673e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.170 31.257

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/831965/cmap_HighResolution_401068801_401328001_4FGL_J2324.6+3115_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-29 16:02:09.724451', job_id='831965', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='1.01', time_epoch_completed='1632956529.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.90e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='624' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 831965: <4FGL_J2324.6+3115_daily_bin624> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin624> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:32 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:34 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:45:34 2021
Terminated at Wed Sep 29 16:02:10 2021
Results reported at Wed Sep 29 16:02:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin624 351.17 31.2573 401068801 401328001 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

