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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin975
RA = 351.17, Dec = 31.2573
tmin = 492048001, tmax = 492307201
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='834666', job_status='RUN', time_executed='2021-09-29 15:59:24.139806', time_epoch_executed='1632956364.14' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834666/ft1_4FGL_J2324.6+3115_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834666/ft1_4FGL_J2324.6+3115_daily_bin975.fits outfile=/scratch/kocevski/834666/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin975.fits ra=351.17 dec=31.2573 rad=12.0 tmin=492048001.0 tmax=492307201.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 3.70
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/834666/ltcube_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.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/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits
.....................!
real 11.54
user 11.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/834666/ltcube_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits outfile=/scratch/kocevski/834666/expmap_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.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/834666/ltcube_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits
.....................!
real 192.02
user 186.19
sys 5.45

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/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits scfile=/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits outfile=/scratch/kocevski/834666/cmap_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits scfile=/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits outfile=/scratch/kocevski/834666/cmap_HighResolution_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.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.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits', '/scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits', expMap='/scratch/kocevski/834666/expmap_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits', expCube='/scratch/kocevski/834666/ltcube_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834666/Model_4FGL_J2324.6+3115_daily_bin975.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/834666/ft1_filtered_4FGL_J2324.6+3115_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/834666/ft2_4FGL_J2324.6+3115_daily_bin975.fits
Exposure map: /scratch/kocevski/834666/expmap_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits
Exposure cube: /scratch/kocevski/834666/ltcube_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834666/Model_4FGL_J2324.6+3115_daily_bin975.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 581.435259313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 580.359561358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11905E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.440       1.0000         .10000E-03   10000.    
     3 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99432E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0658       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25191E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0924       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.593       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56352E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .39987E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1542       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55100E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64433E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17373       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0549       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   580.3539     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      397 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10301E-03    140.14        .90825E-02** at limit **
   2  Prefactor     40.491        42.684        .15758E-02    .10088E-01
   3  norm          .10000E-03    9.3956        .90712E-02** at limit **
   4  Prefactor     2.2516        1.0271         .0000         .0000    
   5  Prefactor     .34198E-03    .20578        .65133E-06** at limit **
   6  Prefactor     3.0658        1.0140         .0000         .0000    
   7  Prefactor     2.0929        1.0318         .0000         .0000    
   8  Prefactor     .10000E-03    .25025        .25211E-06** at limit **
   9  Prefactor     .10635E-02    .62056E-01   -.83031E-04** at limit **
  10  norm          .10000E-03    .20571       -.46197E-05** at limit **
  11  Prefactor     75.402        1.0054        .12370E-05    .12606E-01
  12  Prefactor     4.1952        1.0073         .0000         .0000    
  13  Prefactor     .10045E-03    .21627       -.14182E-04** at limit **
  14  norm          .10000E-03    .23753        .54906E-05** at limit **
  15  norm          5.1542        1.0048         .0000         .0000    
  16  Prefactor     .10000E-03    .21599        .15564E-05** at limit **
  17  norm          1.2731        1.1115         .0000         .0000    
  18  Prefactor     .10000E-03    .23886        .62594E-04** at limit **
  19  Prefactor     .14625E-03    .21810        .25593E-05** at limit **
  20  Prefactor     .10027E-03    .50896E-01    .80180E-04** at limit **
  21  Prefactor     .10045E-03    .24290       -.46621E-06** at limit **
  22  Normalizat    .10000E-01    .25770       -.18329E-03** at limit **
  23  Prefactor     1.0544        1.1855       -.11072E-05   -.27082E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000103008
  Prefactor  = 40.491
  norm       = 0.0001
  Prefactor  = 2.25161
  Prefactor  = 0.000341976
  Prefactor  = 3.06575
  Prefactor  = 2.09286
  Prefactor  = 0.0001
  Prefactor  = 0.00106354
  norm       = 0.0001
  Prefactor  = 75.4024
  Prefactor  = 4.19522
  Prefactor  = 0.000100447
  norm       = 0.0001
  norm       = 5.15417
  Prefactor  = 0.0001
  norm       = 1.27313
  Prefactor  = 0.000100002
  Prefactor  = 0.000146249
  Prefactor  = 0.000100274
  Prefactor  = 0.000100446
  Normalizat = 0.01
  Prefactor  = 1.05439
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   580.3539     FROM HESSE     STATUS=FAILED        15 CALLS      412 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10301E-03    140.14        .90825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.491        42.684        .15758E-02   -1.4434    
   3  norm          .10000E-03    9.3956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     565.00        562.63         .0000       -1.5408    
   5  Prefactor     .34198E-03    .20578        .65133E-06   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0658        1.0140         .0000       -1.5358    
   7  Prefactor     2.0929        1.0318         .0000       -1.5419    
   8  Prefactor     .10000E-03    .25025        .25211E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10635E-02    .62056E-01   -.83031E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.46197E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     75.402        1.0054        .12370E-05   -1.3969    
  12  Prefactor     4.1952        1.0073         .0000       -1.5298    
  13  Prefactor     .10045E-03    .21627       -.14182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .23753        .54906E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1542        1.0048         .0000       -1.5254    
  16  Prefactor     .10000E-03    .21599        .15564E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2731        1.1115         .0000       -1.5482    
  18  Prefactor     .10000E-03    .23886        .62594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14625E-03    .21810        .25593E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10027E-03    .50896E-01    .80180E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10045E-03    .24290       -.46621E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25770       -.18329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0544        1.1855       -.11072E-05   -.90938    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.73831e-09
Minuit parameter uncertainties:
  1  0.0411607
  2  42.7163
  3  7.93785e-07
  4  1.02707
  5  0.0141131
  6  1.01396
  7  1.03184
  8  2.76532e-06
  9  0.0154653
  10  1.48731e-06
  11  1.00539
  12  1.00728
  13  0.000621707
  14  5.49623e-07
  15  1.00478
  16  1.58206e-06
  17  1.11151
  18  3.83708e-05
  19  0.00635199
  20  0.000236387
  21  0.000658087
  22  1.85907e-06
  23  1.21713
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 580.353888045

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  1.582e-06  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.054e+00  1.217e+00  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.000e-02  1.859e-06  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.29e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834666/likelihoodResults_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.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) = 580.353942469
delta logL = -5.442434815e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 580.353888752
delta logL = -7.06971150066e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8240       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0543       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=   580.3539     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10695E-03    169.55        .18142E-01** at limit **
   2  Index         3.5800        6.6220        .50000        .20547E-05
   3  Normalizat    .10000E-01    .35482E-02    .10330E-01** at limit **
   4  Prefactor     1.0544        .13370E-01    .14949E-03    .17634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106945
  Index      = 3.58004
  Normalizat = 0.01
  Prefactor  = 1.05439
 **********
 **   18 **HESSE 
 **********

 FCN=   580.3539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10695E-03    1373.8        .20085E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5800        5.7914        .50000       -.28795    
   3  Normalizat    .10000E-01    .31045E-01    .20659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0544        .39535E-01    .59796E-05   -.90938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44424e-08
Minuit parameter uncertainties:
  1  0.200132
  2  3435.67
  3  1.01657e-06
  4  0.0395361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834666': 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) = 580.353888236
delta logL = -1.91166691366e-07

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.069e-04  2.001e-01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.580e+00  3.436e+03  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.054e+00  3.954e-02  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.000e-02  1.017e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/834666/cmap_HighResolution_492048001_492307201_4FGL_J2324.6+3115_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-01', job_status='DONE', photon_flux_upper_limit='1.29e-06', time_completed='2021-09-29 16:04:56.257319', job_id='834666', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632956696.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.05', dlogl='-1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='975' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 834666: <4FGL_J2324.6+3115_daily_bin975> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin975 351.17 31.2573 492048001 492307201 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 :                                   329.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            572 sec.

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

