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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin1085
RA = 351.17, Dec = 31.2573
tmin = 520560001, tmax = 520819201
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='834834', job_status='RUN', time_executed='2021-09-29 15:55:51.496518', time_epoch_executed='1632956151.5' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834834/ft1_4FGL_J2324.6+3115_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834834/ft2_4FGL_J2324.6+3115_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834834/ft1_4FGL_J2324.6+3115_daily_bin1085.fits outfile=/scratch/kocevski/834834/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin1085.fits ra=351.17 dec=31.2573 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.29
user 5.00
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834834/ft1_filtered_4FGL_J2324.6+3115_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/834834/ft2_4FGL_J2324.6+3115_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/834834/ltcube_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.fits outfile=/scratch/kocevski/834834/expmap_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.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/834834/ltcube_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.fits
.....................!
real 191.12
user 185.89
sys 4.81

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834834/ft1_filtered_4FGL_J2324.6+3115_daily_bin1085.fits scfile=/scratch/kocevski/834834/ft2_4FGL_J2324.6+3115_daily_bin1085.fits outfile=/scratch/kocevski/834834/cmap_HighResolution_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.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/834834/ft1_filtered_4FGL_J2324.6+3115_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/834834/ft2_4FGL_J2324.6+3115_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834834/Model_4FGL_J2324.6+3115_daily_bin1085.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/834834/ft1_filtered_4FGL_J2324.6+3115_daily_bin1085.fits.....................!
real 67.40
user 65.97
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4105       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1742       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.5371       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.305       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7259       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.141       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24836E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97801       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84270       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=   5625.711     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2534 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.934        23.413        .24858E-05    .68988E-04
   2  Prefactor     2.4099        7.4659       -.41067E-06   -.11281E-03
   3  norm          3.4638        1.6468        .19990E-07   -.11993E-04
   4  Prefactor     .10000E-03    33.643        .15010E-06** at limit **
   5  Prefactor     27.922        30.535       -.45897E-07   -.69261E-05
   6  Prefactor     57.891        32.009       -.18472E-06   -.36997E-05
   7  Prefactor     3.1730        6.9959        .14537E-05   -.78081E-03
   8  Prefactor     1.6022        22.156        .42391E-06   -.53425E-04
   9  Prefactor     .10000E-03    15.338       -.31070E-06** at limit **
  10  norm          2.4962        1.7515       -.10513E-06   -.12319E-03
  11  Prefactor     19.037        29.791       -.17598E-06   -.11676E-04
  12  Prefactor     4.9506        10.921        .76365E-06   -.11828E-05
  13  Prefactor     .10000E-03    10.404       -.17838E-06** at limit **
  14  norm          6.5366        6.9445        .28003E-05    .30965E-03
  15  norm          .10000E-03    5.1407        .53312E-07** at limit **
  16  Prefactor     22.305        26.029        .94854E-07    .49542E-04
  17  norm          2.7259        2.4712        .35005E-08   -.10807E-04
  18  Prefactor     .10000E-03    12.332        .23705E-06** at limit **
  19  Prefactor     57.140        46.469       -.29577E-06   -.11345E-04
  20  Prefactor     .10000E-03    205.78       -.15268E-05** at limit **
  21  Prefactor     10.593        9.2923       -.10745E-05   -.74332E-04
  22  Normalizat    .97807        .25417       -.73696E-06   -.12246E-04
  23  Prefactor     .84268        .11771       -.25285E-06   -.16973E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.934
  Prefactor  = 2.40986
  norm       = 3.46379
  Prefactor  = 0.0001
  Prefactor  = 27.9221
  Prefactor  = 57.8913
  Prefactor  = 3.173
  Prefactor  = 1.60221
  Prefactor  = 0.0001
  norm       = 2.49619
  Prefactor  = 19.0368
  Prefactor  = 4.95062
  Prefactor  = 0.0001
  norm       = 6.53663
  norm       = 0.0001
  Prefactor  = 22.3052
  norm       = 2.72592
  Prefactor  = 0.0001
  Prefactor  = 57.1402
  Prefactor  = 0.0001
  Prefactor  = 10.5929
  Normalizat = 0.978068
  Prefactor  = 0.84268
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.711     FROM HESSE     STATUS=OK           376 CALLS     2910 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.934        23.431        .81873E-04   -1.4729    
   2  Prefactor     2.4099        7.4909        .26368E-03   -1.5397    
   3  norm          3.4638        1.6484        .61993E-04   -1.5336    
   4  Prefactor     .10000E-03    33.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.922        30.574        .75816E-04   -1.4651    
   6  Prefactor     57.891        32.679        .52727E-04   -1.4185    
   7  Prefactor     3.1730        14.984        .11373E-02   -1.5352    
   8  Prefactor     1.6022        22.442        .33490E-03   -1.5455    
   9  Prefactor     .10000E-03    15.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4962        1.7477        .79351E-04   -1.5392    
  11  Prefactor     19.037        29.840        .91797E-04   -1.4835    
  12  Prefactor     4.9506        10.917        .18078E-03   -1.5263    
  13  Prefactor     .10000E-03    10.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5366        6.9727        .15696E-03   -1.5197    
  15  norm          .10000E-03    5.1464        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.305        26.156        .84811E-04   -1.4763    
  17  norm          2.7259        2.4716        .10867E-03   -1.5378    
  18  Prefactor     .10000E-03    12.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.140        46.615        .53070E-04   -1.4195    
  20  Prefactor     .10000E-03    206.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.593        9.2974        .12310E-03   -1.5057    
  22  Normalizat    .97807        .29652        .34744E-03   -.93769    
  23  Prefactor     .84268        .13924        .17983E-03   -.98174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75204e-09
Minuit parameter uncertainties:
  1  23.4401
  2  7.4938
  3  1.64839
  4  8.06194e-06
  5  30.5909
  6  32.6889
  7  13.7961
  8  11.9979
  9  8.60316e-06
  10  1.7477
  11  29.8637
  12  10.9212
  13  8.82442e-06
  14  6.9736
  15  1.31889e-06
  16  26.1698
  17  2.47173
  18  5.42622e-06
  19  46.6446
  20  0.0001658
  21  9.29868
  22  0.297025
  23  0.139301
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.231e+01  2.617e+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.427e-01  1.393e-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.781e-01  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 8.41e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/834834/likelihoodResults_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.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) = 5625.10029301
delta logL = 0.610539215077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5625.09229333
delta logL = 0.618538895162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.809       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0495       1.0000          .0000       10.000    
     3 'Normalizat'    .91815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86202       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=   5625.092     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.798        191.38        .29143E-02    .36101E-03
   2  Index         4.0503        6.9590        .20320        .14130E-03
   3  Normalizat    .91820        .87214E-01    .80678E-01    .58713E-04
   4  Prefactor     .86198        .42450E-01    .44519E-01   -.91440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7984
  Index      = 4.05033
  Normalizat = 0.918199
  Prefactor  = 0.861983
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.092     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.798        22.560        .11657E-03   -1.5021    
   2  Index         4.0503        1.5602        .74877E-02   -.19109    
   3  Normalizat    .91820        .28736        .35714E-03   -.95824    
   4  Prefactor     .86198        .13624        .17795E-03   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4653e-10
Minuit parameter uncertainties:
  1  22.5768
  2  1.58779
  3  0.287844
  4  0.13629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834834': 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) = 5625.09229306
delta logL = 0.618539164315

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.180e+01  2.258e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  4.050e+00  1.588e+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:  8.620e-01  1.363e-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.182e-01  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.05 +/- 1.59
Photon Flux (Free Index): 1.25e-07 +/- 9.52e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.50e-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/834834/cmap_HighResolution_520560001_520819201_4FGL_J2324.6+3115_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='1.85e-05', photon_flux_error='8.41e-08', dlogl='6.19e-01', energy_flux='1.53e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-29 16:06:22.648471', photon_index_error2='1.59', photon_index2='4.05', ts='1.14', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='1.50e-05', EG='0.98', time_epoch_completed='1632956782.65', return_code='0', job_id='834834', GAL2='0.86', EG2='0.92', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='9.52e-08', ts2='2.50', photon_index='2.88' WHERE bin_id='1085' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:06:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 834834: <4FGL_J2324.6+3115_daily_bin1085> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:55:41 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:55:43 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:55:43 2021
Terminated at Wed Sep 29 16:06:23 2021
Results reported at Wed Sep 29 16:06:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin1085 351.17 31.2573 520560001 520819201 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             408.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            642 sec.

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

