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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin15
RA = 351.17, Dec = 31.2573
tmin = 243216001, tmax = 243475201
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='829043', job_status='RUN', time_executed='2021-09-29 15:36:19.192569', time_epoch_executed='1632954979.19' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829043

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829043/ft1_4FGL_J2324.6+3115_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829043/ft1_4FGL_J2324.6+3115_daily_bin15.fits outfile=/scratch/kocevski/829043/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin15.fits ra=351.17 dec=31.2573 rad=12.0 tmin=243216001.0 tmax=243475201.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.38
user 1.18
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/829043/ft1_filtered_4FGL_J2324.6+3115_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/829043/ltcube_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.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/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits
.....................!
real 12.75
user 12.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829043/ft1_filtered_4FGL_J2324.6+3115_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/829043/ltcube_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.fits outfile=/scratch/kocevski/829043/expmap_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.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/829043/ltcube_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.fits
.....................!
real 190.13
user 184.82
sys 5.00

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/829043/ft1_filtered_4FGL_J2324.6+3115_daily_bin15.fits scfile=/scratch/kocevski/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits outfile=/scratch/kocevski/829043/cmap_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.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/829043/ft1_filtered_4FGL_J2324.6+3115_daily_bin15.fits scfile=/scratch/kocevski/829043/ft2_4FGL_J2324.6+3115_daily_bin15.fits outfile=/scratch/kocevski/829043/cmap_HighResolution_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .72112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.560       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12429E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.650       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35364E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1544       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88152       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=   8006.687     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2926 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.591        21.041        .67136E-07   -.12693E-03
   2  Prefactor     .10000E-03    5.3048       -.26091E-06** at limit **
   3  norm          .72103        .79559       -.59864E-06   -.21151E-02
   4  Prefactor     .10000E-03    18.574       -.18703E-06** at limit **
   5  Prefactor     .10000E-03    5.0929       -.15989E-07** at limit **
   6  Prefactor     .10000E-03    45.050       -.20751E-05** at limit **
   7  Prefactor     .10000E-03    1.8849       -.77909E-07** at limit **
   8  Prefactor     .10000E-03    4.2305       -.24261E-06** at limit **
   9  Prefactor     .10000E-03    55.473       -.19137E-05** at limit **
  10  norm          .10000E-03    .46650       -.23041E-06** at limit **
  11  Prefactor     30.568        22.977       -.71977E-06   -.11068E-04
  12  Prefactor     .46423        5.5893       -.40536E-06   -.97232E-05
  13  Prefactor     .10000E-03    16.813       -.19071E-05** at limit **
  14  norm          .10000E-03    1.6845       -.52539E-07** at limit **
  15  norm          8.5819        6.6943        .94693E-07    .67106E-05
  16  Prefactor     .10000E-03    19.201        .49468E-06** at limit **
  17  norm          .10000E-03    .80343       -.53119E-07** at limit **
  18  Prefactor     .10106E-03    75.755       -.80314E-05** at limit **
  19  Prefactor     14.644        27.992       -.58678E-07    .78238E-04
  20  Prefactor     .10000E-03    19.075        .25046E-06** at limit **
  21  Prefactor     .10012E-03    11.896       -.49864E-06** at limit **
  22  Normalizat    1.1544        .19369        .71286E-06    .45530E-03
  23  Prefactor     .88149        .95528E-01    .98180E-06    .69452E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.5909
  Prefactor  = 0.0001
  norm       = 0.72103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 30.5682
  Prefactor  = 0.464228
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 8.58191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101065
  Prefactor  = 14.6435
  Prefactor  = 0.0001
  Prefactor  = 0.000100123
  Normalizat = 1.15444
  Prefactor  = 0.881492
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.687     FROM HESSE     STATUS=OK           368 CALLS     3294 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.591        20.667        .63694E-04   -1.4449    
   2  Prefactor     .10000E-03    5.5541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .72103        .76733        .87862E-03   -1.5538    
   4  Prefactor     .10000E-03    18.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8884        .11998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2397        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .82123        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.568        23.050        .72478E-04   -1.4602    
  12  Prefactor     .46423        62.992        .39754E-02   -1.5572    
  13  Prefactor     .10000E-03    16.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6914        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5819        6.6970        .13683E-03   -1.5122    
  16  Prefactor     .10000E-03    19.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .80998        .78297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10106E-03    129.97        .63183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.644        28.065        .10465E-03   -1.4942    
  20  Prefactor     .10000E-03    19.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10012E-03    18.428        .34071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1544        .23271        .30549E-03   -.88023    
  23  Prefactor     .88149        .11302        .17205E-03   -.96791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65728e-08
Minuit parameter uncertainties:
  1  20.6711
  2  2.15399e-05
  3  0.76734
  4  3.63976e-05
  5  3.86106e-06
  6  0.000317349
  7  3.24109e-06
  8  8.15204e-06
  9  0.00042759
  10  2.66546e-06
  11  23.0563
  12  10.8258
  13  0.000236801
  14  3.85082e-06
  15  6.69753
  16  9.01874e-05
  17  1.82512e-06
  18  0.0235781
  19  28.0899
  20  3.81138e-05
  21  0.00301626
  22  0.232921
  23  0.113049
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  9.019e-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:  8.815e-01  1.130e-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.154e+00  2.329e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/829043/likelihoodResults_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.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) = 8006.68676121
delta logL = -0.000244597115852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8006.68651667
delta logL = -5.37638698006e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8982       1.0000          .0000       10.000    
     3 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88148       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=   8006.687     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      273 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .19512        .11193    ** at limit **
   2  Index         3.4669        6.7282        .50000        .26216E-07
   3  Normalizat    1.1544        .11795E-02    .30549E-03    .37438E-04
   4  Prefactor     .88149        .59251E-03    .17205E-03    .32643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.46686
  Normalizat = 1.15444
  Prefactor  = 0.881492
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.687     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    234.53        .32483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4669        7.4843        .50000       -.31165    
   3  Normalizat    1.1544        .14842E-01    .12220E-04   -.88023    
   4  Prefactor     .88149        .74557E-02    .68820E-05   -.96791    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43837e-11
Minuit parameter uncertainties:
  1  4.10868e-05
  2  824.443
  3  0.0148424
  4  0.00745572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829043': 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): 102
logL (Free Index) = 8006.68651589
delta logL = 7.21966898709e-07

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  4.109e-05  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.467e+00  8.244e+02  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:  8.815e-01  7.456e-03  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.154e+00  1.484e-02  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/829043/cmap_HighResolution_243216001_243475201_4FGL_J2324.6+3115_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-29 15:49:37.047221', job_id='829043', GAL2='0.88', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632955777.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='15' 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@bullet0261>
Subject: Job 829043: <4FGL_J2324.6+3115_daily_bin15> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin15> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:33 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35: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:35:34 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_bin15 351.17 31.2573 243216001 243475201 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 :                                   795.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

