/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 194 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin405
RA = 351.17, Dec = 31.2573
tmin = 344304001, tmax = 344563201
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='830577', job_status='RUN', time_executed='2021-09-29 15:43:55.390845', time_epoch_executed='1632955435.39' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830577/ft1_4FGL_J2324.6+3115_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830577/ft1_4FGL_J2324.6+3115_daily_bin405.fits outfile=/scratch/kocevski/830577/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin405.fits ra=351.17 dec=31.2573 rad=12.0 tmin=344304001.0 tmax=344563201.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830577/ft1_filtered_4FGL_J2324.6+3115_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/830577/ltcube_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.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/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830577/ft1_filtered_4FGL_J2324.6+3115_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/830577/ltcube_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.fits outfile=/scratch/kocevski/830577/expmap_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.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/830577/ltcube_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.fits
.....................!
real 190.42
user 185.65
sys 4.46

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/830577/ft1_filtered_4FGL_J2324.6+3115_daily_bin405.fits scfile=/scratch/kocevski/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits outfile=/scratch/kocevski/830577/cmap_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830577/ft1_filtered_4FGL_J2324.6+3115_daily_bin405.fits scfile=/scratch/kocevski/830577/ft2_4FGL_J2324.6+3115_daily_bin405.fits outfile=/scratch/kocevski/830577/cmap_HighResolution_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.536       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9562       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20345E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.754       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74494       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0445       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=   8219.479     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2562 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.167        16.188        .69648E-07   -.24169E-04
   2  Prefactor     .10000E-03    2.1203       -.65652E-07** at limit **
   3  norm          .10000E-03    .63543        .71853E-06** at limit **
   4  Prefactor     57.803        86.507        .43365E-07   -.19236E-04
   5  Prefactor     .44269        79.787        .10475E-04    .68254E-05
   6  Prefactor     .10000E-03    5.2803       -.14085E-06** at limit **
   7  Prefactor     5.5879        4.9323        .27791E-07    .90438E-05
   8  Prefactor     12.459        9.0785       -.58290E-08   -.19369E-04
   9  Prefactor     17.526        26.565        .21656E-06   -.31558E-04
  10  norm          1.6897        1.1294       -.36195E-07   -.83461E-05
  11  Prefactor     19.859        21.859        .17598E-06   -.51818E-04
  12  Prefactor     5.5111        11.649        .75893E-07   -.22295E-04
  13  Prefactor     .10000E-03    34.489        .32869E-05** at limit **
  14  norm          1.9634        3.4543       -.11581E-05   -.20560E-03
  15  norm          .10000E-03    3.6896        .18756E-06** at limit **
  16  Prefactor     .10000E-03    12.302        .37418E-05** at limit **
  17  norm          .10000E-03    .83476        .27752E-06** at limit **
  18  Prefactor     9.2392        11.313       -.20276E-07    .55968E-05
  19  Prefactor     32.737        33.392       -.10175E-06   -.45813E-04
  20  Prefactor     .10000E-03    23.808        .18866E-06** at limit **
  21  Prefactor     .10000E-03    2.7792        .15376E-06** at limit **
  22  Normalizat    .74490        .18982       -.96675E-06   -.23076E-03
  23  Prefactor     1.0446        .96317E-01   -.35450E-06   -.34313E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.1671
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 57.8031
  Prefactor  = 0.442686
  Prefactor  = 0.0001
  Prefactor  = 5.58792
  Prefactor  = 12.4586
  Prefactor  = 17.5259
  norm       = 1.68969
  Prefactor  = 19.8594
  Prefactor  = 5.5111
  Prefactor  = 0.000100001
  norm       = 1.96342
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.23924
  Prefactor  = 32.7371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.744904
  Prefactor  = 1.04457
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.479     FROM HESSE     STATUS=OK           376 CALLS     2938 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.167        16.178        .72941E-04   -1.4609    
   2  Prefactor     .10000E-03    2.1335        .12879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5409        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.803        86.635        .52754E-04   -1.4186    
   5  Prefactor     .44269        78.641        .55771E-02   -1.5575    
   6  Prefactor     .10000E-03    5.2787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5879        4.9363        .16994E-03   -1.5235    
   8  Prefactor     12.459        9.0765        .11349E-03   -1.5002    
   9  Prefactor     17.526        26.567        .95642E-04   -1.4870    
  10  norm          1.6897        1.1211        .75152E-04   -1.5448    
  11  Prefactor     19.859        21.855        .89891E-04   -1.4816    
  12  Prefactor     5.5111        11.609        .17112E-03   -1.5238    
  13  Prefactor     .10000E-03    34.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9634        4.0498        .12595E-02   -1.5428    
  15  norm          .10000E-03    3.7262        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.855        .42899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .84253        .80907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2392        11.310        .13185E-03   -1.5100    
  19  Prefactor     32.737        33.512        .70015E-04   -1.4563    
  20  Prefactor     .10000E-03    23.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7970        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74490        .21281        .36328E-03   -1.0215    
  23  Prefactor     1.0446        .10922        .16245E-03   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07697e-10
Minuit parameter uncertainties:
  1  16.18
  2  1.21171e-05
  3  0.000100506
  4  86.825
  5  11.815
  6  1.3797e-05
  7  4.93663
  8  9.07753
  9  26.5847
  10  1.12111
  11  21.8633
  12  11.6134
  13  0.000416182
  14  4.05032
  15  2.04347e-06
  16  1.10194e-05
  17  1.34326e-06
  18  11.3128
  19  33.5317
  20  2.46394e-05
  21  4.72063e-06
  22  0.21305
  23  0.109239
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  1.102e-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:  1.045e+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.449e-01  2.131e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830577/likelihoodResults_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.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) = 8219.47908853
delta logL = -0.000169986757101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8219.47891858
delta logL = -3.78331606044e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8316       1.0000          .0000       10.000    
     3 'Normalizat'    .74495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8219.479     FROM MIGRAD    STATUS=FAILED       100 CALLS      267 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10644E-03    399.80        .47183E-02** at limit **
   2  Index         2.6011        5.3324        .50000        .41330E-05
   3  Normalizat    .74491        .15117E-01    .36328E-03    .84496E-05
   4  Prefactor     1.0446        .79469E-02    .16245E-03    .55425E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8219.479     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      395 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10644E-03    399.80        .10943E-02** at limit **
   2  Index         2.6011        5.3324        .56683E-04    .41330E-05
   3  Normalizat    .74491        .15117E-01    .43575E-06    .84496E-05
   4  Prefactor     1.0446        .79469E-02    .16276E-06    .55425E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8219.479     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      449 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0665        .94367E-01** at limit **
   2  Index         2.5114        8.4801        .50000        .13597E-07
   3  Normalizat    .74491        .29278E-02    .14531E-04   -.13425E-03
   4  Prefactor     1.0446        .15391E-02    .64982E-05   -.28552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5114
  Normalizat = 0.744906
  Prefactor  = 1.04457
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.479     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      480 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    451.78        .50532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5114        6.0185        .50000       -.52097    
   3  Normalizat    .74491        .15841E-01    .29062E-05   -1.0215    
   4  Prefactor     1.0446        .83285E-02    .12996E-05   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29517e-12
Minuit parameter uncertainties:
  1  0.000229733
  2  524.173
  3  0.0158407
  4  0.0083285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830577': 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) = 8219.47891791
delta logL = 6.26716428087e-07

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  2.297e-04  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.511e+00  5.242e+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:  1.045e+00  8.329e-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:  7.449e-01  1.584e-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/830577/cmap_HighResolution_344304001_344563201_4FGL_J2324.6+3115_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-29 15:56:48.512670', job_id='830577', GAL2='1.04', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632956208.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='405' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 830577: <4FGL_J2324.6+3115_daily_bin405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin405 351.17 31.2573 344304001 344563201 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 :                                   771.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

