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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin680
RA = 351.17, Dec = 31.2573
tmin = 415584001, tmax = 415843201
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='833150', job_status='RUN', time_executed='2021-09-29 15:52:16.782428', time_epoch_executed='1632955936.78' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833150/ft1_4FGL_J2324.6+3115_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833150/ft2_4FGL_J2324.6+3115_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833150/ft1_4FGL_J2324.6+3115_daily_bin680.fits outfile=/scratch/kocevski/833150/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin680.fits ra=351.17 dec=31.2573 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.30
user 5.99
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833150/ft1_filtered_4FGL_J2324.6+3115_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/833150/ft2_4FGL_J2324.6+3115_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/833150/ltcube_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.fits outfile=/scratch/kocevski/833150/expmap_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.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/833150/ltcube_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.fits
.....................!
real 190.75
user 185.20
sys 5.04

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/833150/ft1_filtered_4FGL_J2324.6+3115_daily_bin680.fits scfile=/scratch/kocevski/833150/ft2_4FGL_J2324.6+3115_daily_bin680.fits outfile=/scratch/kocevski/833150/cmap_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833150/ft1_filtered_4FGL_J2324.6+3115_daily_bin680.fits scfile=/scratch/kocevski/833150/ft2_4FGL_J2324.6+3115_daily_bin680.fits outfile=/scratch/kocevski/833150/cmap_HighResolution_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.238       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4620       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7336       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7212       1.0000         .10000E-03   10000.    
    15 'norm      '    13.789       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.119       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.932       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.744       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8701       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2960       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88884       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=   5297.127     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2582 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.236        21.933       -.60442E-06   -.15255E-04
   2  Prefactor     .10000E-03    3.6688       -.14835E-06** at limit **
   3  norm          1.5695        1.9311        .51831E-07   -.48256E-04
   4  Prefactor     .10000E-03    58.814        .62245E-06** at limit **
   5  Prefactor     .10000E-03    32.394        .32526E-07** at limit **
   6  Prefactor     5.8649        39.318        .81348E-06   -.18924E-04
   7  Prefactor     4.4620        5.6274       -.11691E-06   -.79492E-04
   8  Prefactor     11.887        17.748       -.22076E-06   -.80754E-05
   9  Prefactor     .10000E-03    12.020       -.11272E-06** at limit **
  10  norm          5.7335        2.5319       -.21565E-06   -.14516E-03
  11  Prefactor     .10000E-03    17.395       -.88218E-06** at limit **
  12  Prefactor     7.6975        16.592        .14627E-06   -.21554E-04
  13  Prefactor     .10000E-03    10.694        .10319E-06** at limit **
  14  norm          4.7214        10.139        .90791E-05   -.30316E-03
  15  norm          13.788        14.538        .60899E-06   -.43680E-04
  16  Prefactor     70.113        37.969       -.53499E-05   -.18049E-03
  17  norm          4.9504        4.1116       -.15831E-07   -.40038E-04
  18  Prefactor     .10000E-03    16.425        .97678E-06** at limit **
  19  Prefactor     12.871        54.472       -.20691E-04   -.31779E-03
  20  Prefactor     51.762        87.019        .26710E-06    .90630E-04
  21  Prefactor     1.8706        14.349        .17931E-05   -.37064E-04
  22  Normalizat    1.2963        .29738        .69207E-05   -.21135E-03
  23  Prefactor     .88873        .13894       -.31421E-05    .26283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.2361
  Prefactor  = 0.0001
  norm       = 1.56953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86492
  Prefactor  = 4.46197
  Prefactor  = 11.8872
  Prefactor  = 0.0001
  norm       = 5.73355
  Prefactor  = 0.0001
  Prefactor  = 7.69751
  Prefactor  = 0.0001
  norm       = 4.72141
  norm       = 13.7882
  Prefactor  = 70.1128
  norm       = 4.95044
  Prefactor  = 0.000100001
  Prefactor  = 12.8709
  Prefactor  = 51.7623
  Prefactor  = 1.87055
  Normalizat = 1.29633
  Prefactor  = 0.888728
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.127     FROM HESSE     STATUS=OK           368 CALLS     2950 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.236        21.924        .79739E-04   -1.4703    
   2  Prefactor     .10000E-03    3.6819        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5695        1.9117        .10763E-03   -1.5457    
   4  Prefactor     .10000E-03    58.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8649        39.850        .16580E-03   -1.5224    
   7  Prefactor     4.4620        5.6237        .18859E-03   -1.5285    
   8  Prefactor     11.887        17.756        .11618E-03   -1.5018    
   9  Prefactor     .10000E-03    12.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7335        2.5313        .73056E-04   -1.5229    
  11  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6975        16.585        .14454E-03   -1.5153    
  13  Prefactor     .10000E-03    10.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7214        10.500        .92596E-03   -1.5273    
  15  norm          13.788        14.552        .53933E-03   -1.4965    
  16  Prefactor     70.113        38.226        .47938E-04   -1.4031    
  17  norm          4.9504        4.1063        .12625E-03   -1.5263    
  18  Prefactor     .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.871        62.198        .11139E-03   -1.4990    
  20  Prefactor     51.762        85.121        .55754E-04   -1.4268    
  21  Prefactor     1.8706        13.586        .30457E-03   -1.5434    
  22  Normalizat    1.2963        .33979        .34646E-03   -.83676    
  23  Prefactor     .88873        .16064        .19608E-03   -.96536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43794e-09
Minuit parameter uncertainties:
  1  21.931
  2  5.81189e-06
  3  1.91173
  4  0.000166859
  5  4.41208e-05
  6  30.6048
  7  5.62433
  8  17.7639
  9  1.78044e-05
  10  2.53137
  11  0.00018652
  12  16.5946
  13  9.05747e-06
  14  10.5043
  15  14.5561
  16  38.2392
  17  4.10658
  18  0.000202609
  19  56.6828
  20  85.3221
  21  10.0852
  22  0.340381
  23  0.160725
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  7.011e+01  3.824e+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:  8.887e-01  1.607e-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.296e+00  3.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 2.26e-07 +/- 1.23e-07
Energy Flux (Fixed Index): 4.82e-05 +/- 2.63e-05

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) = 5296.96225228
delta logL = 0.164715853018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5296.95752562
delta logL = 0.169442512359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.284       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3697       1.0000          .0000       10.000    
     3 'Normalizat'    1.2354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91086       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=   5296.958     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      292 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.272        58.844        .54947E-04   -.11479E-03
   2  Index         3.3694        1.2430        .60379E-02   -.55080E-04
   3  Normalizat    1.2363        .33971        .35316E-03   -.59136E-04
   4  Prefactor     .91048        .15836        .19407E-03   -.55764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.2721
  Index      = 3.36941
  Normalizat = 1.23633
  Prefactor  = 0.910478
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.958     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.272        49.334        .10989E-04   -1.4247    
   2  Index         3.3694        1.0441        .24152E-03   -.33219    
   3  Normalizat    1.2363        .33623        .14126E-04   -.85487    
   4  Prefactor     .91048        .15670        .38814E-04   -.95776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47698e-10
Minuit parameter uncertainties:
  1  49.3716
  2  1.05278
  3  0.336827
  4  0.156773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833150': 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) = 5296.95752132
delta logL = 0.169446808974

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.327e+01  4.937e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.369e+00  1.053e+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.105e-01  1.568e-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.236e+00  3.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.35
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.37 +/- 1.05
Photon Flux (Free Index): 2.75e-07 +/- 1.37e-07
Energy Flux (Free Index): 4.74e-05 +/- 2.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/833150/cmap_HighResolution_415584001_415843201_4FGL_J2324.6+3115_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.26e-07', energy_flux2='4.74e-05', photon_flux_error='1.23e-07', dlogl='1.69e-01', energy_flux='4.82e-05', photon_flux2='2.75e-07', job_status='DONE', time_completed='2021-09-29 16:01:54.088583', photon_index_error2='1.05', photon_index2='3.37', ts='7.73', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.30', time_epoch_completed='1632956514.09', return_code='0', job_id='833150', GAL2='0.91', EG2='1.24', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='1.37e-07', ts2='8.35', photon_index='2.88' WHERE bin_id='680' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 833150: <4FGL_J2324.6+3115_daily_bin680> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin680> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:50:13 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:50:14 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:50:14 2021
Terminated at Wed Sep 29 16:01:54 2021
Results reported at Wed Sep 29 16:01:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin680 351.17 31.2573 415584001 415843201 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 :                                   574.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

