/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 113 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 = 7418
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin120
RA = 351.17, Dec = 31.2573
tmin = 270432001, tmax = 270691201
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='829197', job_status='RUN', time_executed='2021-09-29 15:37:48.785106', time_epoch_executed='1632955068.79' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829197/ft1_4FGL_J2324.6+3115_daily_bin120.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829197/ft2_4FGL_J2324.6+3115_daily_bin120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829197/ft1_4FGL_J2324.6+3115_daily_bin120.fits outfile=/scratch/kocevski/829197/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin120.fits ra=351.17 dec=31.2573 rad=12.0 tmin=270432001.0 tmax=270691201.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 1.68
user 1.49
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829197/ft1_filtered_4FGL_J2324.6+3115_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/829197/ft2_4FGL_J2324.6+3115_daily_bin120.fits sctable="SC_DATA" expcube=/scratch/kocevski/829197/ltcube_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.fits outfile=/scratch/kocevski/829197/expmap_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.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/829197/ltcube_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.fits
.....................!
real 190.79
user 185.71
sys 4.72

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/829197/ft1_filtered_4FGL_J2324.6+3115_daily_bin120.fits scfile=/scratch/kocevski/829197/ft2_4FGL_J2324.6+3115_daily_bin120.fits outfile=/scratch/kocevski/829197/cmap_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/829197/ft1_filtered_4FGL_J2324.6+3115_daily_bin120.fits scfile=/scratch/kocevski/829197/ft2_4FGL_J2324.6+3115_daily_bin120.fits outfile=/scratch/kocevski/829197/cmap_HighResolution_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1472       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.786       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.888       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    112.72       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92842       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7742.113     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     2117 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    34.061        .64794E-04** at limit **
   2  Prefactor     1.1472        1.1695       -.10871E-05   -.19444E-03
   3  norm          2.8832        1.4236        .34846E-06    .46149E-03
   4  Prefactor     46.920        1.1590        .61456E-06   -.13357E-02
   5  Prefactor     .10000E-03    11.739       -.16523E-05** at limit **
   6  Prefactor     6.6209        1.0712       -.10402E-05    .25872E-03
   7  Prefactor     12.631        1.1133        .99440E-06    .52316E-03
   8  Prefactor     22.927        1.0131       -.24232E-06   -.36569E-07
   9  Prefactor     .10003E-03    14.814       -.29234E-05** at limit **
  10  norm          .10000E-03    .33751        .63690E-06** at limit **
  11  Prefactor     .10000E-03    7.8040        .25762E-05** at limit **
  12  Prefactor     .10000E-03    5.9160        .37436E-07** at limit **
  13  Prefactor     20.787        1.0065        .15962E-06   -.37154E-04
  14  norm          .10000E-03    1.7866       -.60149E-06** at limit **
  15  norm          4.8769        1.0402       -.90950E-06   -.16658E-02
  16  Prefactor     13.890        1.0169        .26870E-06    .20263E-04
  17  norm          2.5544        2.0319       -.11363E-06   -.15485E-04
  18  Prefactor     9.2202        1.0015        .11743E-07    .77806E-05
  19  Prefactor     .10001E-03    38.545       -.69717E-04** at limit **
  20  Prefactor     112.72        1.1595       -.39753E-06    .19959E-02
  21  Prefactor     .10000E-03    2.7896       -.50894E-07** at limit **
  22  Normalizat    .92820        .23421        .58961E-06    .77214E-04
  23  Prefactor     1.0523        .12173        .13486E-05    .18789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  Prefactor  = 1.14717
  norm       = 2.88319
  Prefactor  = 46.9203
  Prefactor  = 0.0001
  Prefactor  = 6.62086
  Prefactor  = 12.6309
  Prefactor  = 22.9269
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7872
  norm       = 0.0001
  norm       = 4.87693
  Prefactor  = 13.8903
  norm       = 2.55436
  Prefactor  = 9.22023
  Prefactor  = 0.000100012
  Prefactor  = 112.72
  Prefactor  = 0.0001
  Normalizat = 0.928195
  Prefactor  = 1.05227
 **********
 **   18 **HESSE 
 **********

 FCN=   7742.113     FROM HESSE     STATUS=OK           418 CALLS     2535 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    39.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1472        11.558        .10818E-01   -1.5494    
   3  norm          2.8832        1.4297        .59839E-02   -1.5368    
   4  Prefactor     46.920        87.110        .14634E-02   -1.4337    
   5  Prefactor     .10000E-03    11.709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6209        21.586        .38984E-02   -1.5193    
   7  Prefactor     12.631        10.694        .28177E-02   -1.4997    
   8  Prefactor     22.927        14.148        .20914E-02   -1.4750    
   9  Prefactor     .10003E-03    42.864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .33277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.787        19.293        .21963E-02   -1.4796    
  14  norm          .10000E-03    1.7825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8769        4.8950        .45535E-02   -1.5266    
  16  Prefactor     13.890        16.051        .26870E-02   -1.4962    
  17  norm          2.5544        2.0303        .63864E-02   -1.5388    
  18  Prefactor     9.2202        9.8816        .32997E-02   -1.5101    
  19  Prefactor     .10001E-03    46.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     112.72        60.552        .94725E-03   -1.3581    
  21  Prefactor     .10000E-03    2.7844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92820        .21360        .80851E-01   -.95476    
  23  Prefactor     1.0523        .10857        .39785E-01   -.91007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40581e-06
Minuit parameter uncertainties:
  1  0.00106614
  2  7.28418
  3  1.42974
  4  87.3473
  5  1.39998e-05
  6  21.6113
  7  10.6958
  8  14.1498
  9  0.00241462
  10  2.59457e-06
  11  3.0049e-05
  12  7.05397e-06
  13  19.299
  14  6.28086e-06
  15  4.89545
  16  16.0556
  17  2.03036
  18  9.88336
  19  0.00148291
  20  60.585
  21  7.26456e-07
  22  0.213794
  23  0.108596
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.389e+01  1.606e+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.052e+00  1.086e-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.282e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/829197/likelihoodResults_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.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) = 7741.87136488
delta logL = 0.24206488243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7741.84572429
delta logL = 0.267705465093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.994       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1081       1.0000          .0000       10.000    
     3 'Normalizat'    .95970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0385       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=   7741.846     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      223 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.006        20.408        .23605E-02    .13433E-04
   2  Index         2.1083        .57578        .25202       -.72393E-04
   3  Normalizat    .95962        .20465        .79659E-01    .24193E-04
   4  Prefactor     1.0385        .10600        .40638E-01   -.58291E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.006
  Index      = 2.10827
  Normalizat = 0.959621
  Prefactor  = 1.03852
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.846     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.006        18.895        .94419E-04   -1.4859    
   2  Index         2.1083        .74727        .10707E-01   -.61670    
   3  Normalizat    .95962        .23616        .35259E-03   -.94396    
   4  Prefactor     1.0385        .12189        .17553E-03   -.91456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67912e-12
Minuit parameter uncertainties:
  1  18.9017
  2  0.751511
  3  0.236415
  4  0.121919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829197': 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) = 7741.84572395
delta logL = 0.267705804634

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.801e+01  1.890e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.108e+00  7.515e-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.039e+00  1.219e-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.596e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.11 +/- 0.75
Photon Flux (Free Index): 3.28e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.40e-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/829197/cmap_HighResolution_270432001_270691201_4FGL_J2324.6+3115_daily_bin120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='2.68e-01', photon_flux2='3.28e-08', job_status='DONE', time_completed='2021-09-29 15:49:36.984970', photon_index_error2='0.75', photon_index2='2.11', ts='0.94', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.40e-05', EG='0.93', time_epoch_completed='1632955776.99', return_code='0', job_id='829197', GAL2='1.04', EG2='0.96', return_code2='0', photon_flux_error2='4.01e-08', ts2='1.46', photon_index='2.88' WHERE bin_id='120' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 829197: <4FGL_J2324.6+3115_daily_bin120> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin120> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:46 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:47 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:35:47 2021
Terminated at Wed Sep 29 15:49:37 2021
Results reported at Wed Sep 29 15:49:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin120 351.17 31.2573 270432001 270691201 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 :                                   705.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

