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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin459
RA = 351.17, Dec = 31.2573
tmin = 358300801, tmax = 358560001
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='830655', job_status='RUN', time_executed='2021-09-29 15:43:17.665617', time_epoch_executed='1632955397.67' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830655

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830655/ft1_4FGL_J2324.6+3115_daily_bin459.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830655/ft2_4FGL_J2324.6+3115_daily_bin459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830655/ft1_4FGL_J2324.6+3115_daily_bin459.fits outfile=/scratch/kocevski/830655/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin459.fits ra=351.17 dec=31.2573 rad=12.0 tmin=358300801.0 tmax=358560001.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.33
user 5.06
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830655/ft2_4FGL_J2324.6+3115_daily_bin459.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/830655/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin459.fits evtable="EVENTS" outfile="/scratch/kocevski/830655/ft1_filtered_4FGL_J2324.6+3115_daily_bin459.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830655/ft1_filtered_4FGL_J2324.6+3115_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/830655/ft2_4FGL_J2324.6+3115_daily_bin459.fits sctable="SC_DATA" expcube=/scratch/kocevski/830655/ltcube_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.fits outfile=/scratch/kocevski/830655/expmap_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.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/830655/ltcube_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.fits
.....................!
real 190.96
user 185.71
sys 4.83

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/830655/ft1_filtered_4FGL_J2324.6+3115_daily_bin459.fits scfile=/scratch/kocevski/830655/ft2_4FGL_J2324.6+3115_daily_bin459.fits outfile=/scratch/kocevski/830655/cmap_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830655/ft1_filtered_4FGL_J2324.6+3115_daily_bin459.fits scfile=/scratch/kocevski/830655/ft2_4FGL_J2324.6+3115_daily_bin459.fits outfile=/scratch/kocevski/830655/cmap_HighResolution_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.048       1.0000         .10000E-03   10000.    
     3 'norm      '    .23842E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10645E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96342E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4201       1.0000         .10000E-03   10000.    
    15 'norm      '    .37829E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0549       1.0000         .10000E-03   10000.    
    17 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.019       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9430       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72421       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0644       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=   8217.664     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2318 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9048        .24868E-08** at limit **
   2  Prefactor     12.050        8.5780        .37105E-07    .60640E-05
   3  norm          .10009E-03    .41001        .32673E-06** at limit **
   4  Prefactor     .10000E-03    30.035        .30744E-05** at limit **
   5  Prefactor     .10019E-03    20.306       -.54533E-05** at limit **
   6  Prefactor     .10000E-03    32.846       -.40438E-05** at limit **
   7  Prefactor     3.7566        3.6066        .14766E-06   -.85033E-03
   8  Prefactor     8.5378        7.7311       -.97916E-08   -.10097E-05
   9  Prefactor     .10000E-03    7.9626        .58949E-07** at limit **
  10  norm          .95903E-01    .35380        .26758E-06    .10850E-02
  11  Prefactor     .10000E-03    10.051        .36849E-06** at limit **
  12  Prefactor     11.298        10.607       -.38576E-06   -.99657E-04
  13  Prefactor     .10000E-03    11.949       -.30047E-06** at limit **
  14  norm          4.4138        5.0861        .72980E-07    .10658E-03
  15  norm          .10000E-03    18.844       -.63868E-05** at limit **
  16  Prefactor     1.0494        9.2464        .39861E-06   -.29016E-04
  17  norm          .10000E-03    1.8570       -.57823E-07** at limit **
  18  Prefactor     .10000E-03    11.862       -.32395E-06** at limit **
  19  Prefactor     14.022        27.057       -.41531E-06   -.39359E-04
  20  Prefactor     .10002E-03    126.28        .99494E-05** at limit **
  21  Prefactor     3.9671        6.0809        .32544E-06   -.42785E-05
  22  Normalizat    .72400        .19406        .58407E-07   -.12448E-04
  23  Prefactor     1.0645        .95809E-01   -.92747E-07    .50196E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.0497
  norm       = 0.000100094
  Prefactor  = 0.000100003
  Prefactor  = 0.000100193
  Prefactor  = 0.000100004
  Prefactor  = 3.75657
  Prefactor  = 8.53778
  Prefactor  = 0.0001
  norm       = 0.0959029
  Prefactor  = 0.0001
  Prefactor  = 11.2984
  Prefactor  = 0.0001
  norm       = 4.41382
  norm       = 0.0001
  Prefactor  = 1.04938
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0224
  Prefactor  = 0.000100022
  Prefactor  = 3.96711
  Normalizat = 0.723999
  Prefactor  = 1.06445
 **********
 **   18 **HESSE 
 **********

 FCN=   8217.664     FROM HESSE     STATUS=OK           386 CALLS     2704 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.050        8.6125        .11541E-03   -1.5014    
   3  norm          .10009E-03    .57357        .20105E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10019E-03    84.828        .53054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7566        3.7830        .86058E-03   -1.5320    
   8  Prefactor     8.5378        7.7308        .13719E-03   -1.5123    
   9  Prefactor     .10000E-03    7.9672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95903E-01    .50014        .99066E-03   -1.5646    
  11  Prefactor     .10000E-03    10.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.298        10.564        .11922E-03   -1.5036    
  13  Prefactor     .10000E-03    12.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4138        5.3686        .18355E-03   -1.5288    
  15  norm          .10000E-03    23.566        .43121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0494        59.556        .44349E-02   -1.5503    
  17  norm          .10000E-03    1.9405        .24078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.022        27.084        .10697E-03   -1.4959    
  20  Prefactor     .10002E-03    130.84        .21322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9671        6.0341        .20315E-03   -1.5310    
  22  Normalizat    .72400        .21971        .36433E-03   -1.0295    
  23  Prefactor     1.0645        .10919        .15828E-03   -.90611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82356e-08
Minuit parameter uncertainties:
  1  1.27737e-05
  2  8.61343
  3  0.000464253
  4  0.000649235
  5  0.00810616
  6  0.000778046
  7  3.78322
  8  7.73166
  9  8.01965e-06
  10  0.437795
  11  4.32253e-05
  12  10.5662
  13  4.13898e-05
  14  5.36921
  15  4.57812e-06
  16  15.8267
  17  2.61816e-06
  18  4.11723e-05
  19  27.1074
  20  0.00338816
  21  6.03507
  22  0.219978
  23  0.109212
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.049e+00  1.583e+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.064e+00  1.092e-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:  7.240e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/830655/likelihoodResults_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.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) = 8217.66374671
delta logL = 0.000124641037473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8217.6637283
delta logL = 0.000143050610859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0494       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9450       1.0000          .0000       10.000    
     3 'Normalizat'    .72366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0647       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=   8217.664     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      227 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99799        46.070        .12096        .31899E-03
   2  Index         2.9625        6.4786        .50000        .18364E-04
   3  Normalizat    .72381        .13779E-01    .82287E-01   -.14016E-03
   4  Prefactor     1.0645        .71721E-02    .39117E-01   -.14433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.997992
  Index      = 2.9625
  Normalizat = 0.723815
  Prefactor  = 1.06452
 **********
 **   18 **HESSE 
 **********

 FCN=   8217.664     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99799        187.92        .41718E-02   -1.5508    
   2  Index         2.9625        5.0853        .33937E-01   -.41971    
   3  Normalizat    .72381        .21200        .36438E-03   -1.0296    
   4  Prefactor     1.0645        .10703        .15827E-03   -.90609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01994e-10
Minuit parameter uncertainties:
  1  27.4754
  2  10.681
  3  0.212243
  4  0.107052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830655': 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) = 8217.66371472
delta logL = 0.00015663247359

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  9.980e-01  2.748e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.963e+00  1.068e+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.065e+00  1.071e-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:  7.238e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/830655/cmap_HighResolution_358300801_358560001_4FGL_J2324.6+3115_daily_bin459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-29 15:56:03.500092', job_id='830655', GAL2='1.06', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632956163.5', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.57e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='459' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 830655: <4FGL_J2324.6+3115_daily_bin459> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin459> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:37 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40:38 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:40:38 2021
Terminated at Wed Sep 29 15:56:04 2021
Results reported at Wed Sep 29 15:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin459 351.17 31.2573 358300801 358560001 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 :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

