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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin161
RA = 351.17, Dec = 31.2573
tmin = 281059201, tmax = 281318401
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='829256', job_status='RUN', time_executed='2021-09-29 15:38:34.417817', time_epoch_executed='1632955114.42' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829256/ft1_4FGL_J2324.6+3115_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829256/ft1_4FGL_J2324.6+3115_daily_bin161.fits outfile=/scratch/kocevski/829256/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin161.fits ra=351.17 dec=31.2573 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.52
user 4.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.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/829256/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/829256/ltcube_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.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/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits
.....................!
real 11.52
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/829256/ltcube_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.fits outfile=/scratch/kocevski/829256/expmap_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.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/829256/ltcube_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.fits
.....................!
real 189.57
user 185.01
sys 4.23

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/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits outfile=/scratch/kocevski/829256/cmap_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.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/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits outfile=/scratch/kocevski/829256/cmap_HighResolution_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.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/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/829256/ft2_4FGL_J2324.6+3115_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/829256/Model_4FGL_J2324.6+3115_daily_bin161.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/829256/ft1_filtered_4FGL_J2324.6+3115_daily_bin161.fits.....................!
real 100.84
user 99.49
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3332       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10259E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.953       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.110       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.617       1.0000         .10000E-03   10000.    
    17 'norm      '    .13050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24093E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2000       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96436       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=   9257.428     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2548 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.837        18.096        .47092E-06    .67716E-04
   2  Prefactor     6.3321        7.0340        .19705E-05   -.11570E-02
   3  norm          1.4673        1.0527        .24955E-07   -.10400E-03
   4  Prefactor     .10000E-03    38.891        .26478E-06** at limit **
   5  Prefactor     .10000E-03    10.194        .67992E-07** at limit **
   6  Prefactor     .10000E-03    15.040        .37385E-05** at limit **
   7  Prefactor     1.3711        3.1415        .31581E-06   -.23670E-03
   8  Prefactor     .10000E-03    6.4002        .33744E-07** at limit **
   9  Prefactor     25.934        20.102       -.15341E-05   -.28313E-03
  10  norm          4.4852        1.6574        .24214E-07   -.79848E-04
  11  Prefactor     .10000E-03    39.638        .15608E-05** at limit **
  12  Prefactor     .10000E-03    2.2714        .12851E-07** at limit **
  13  Prefactor     16.556        28.306       -.35122E-05   -.21024E-03
  14  norm          .10000E-03    3.0935        .73726E-08** at limit **
  15  norm          15.110        9.5906        .50335E-08    .97201E-06
  16  Prefactor     10.618        19.089        .12313E-05    .42361E-04
  17  norm          .10000E-03    .87007        .16870E-07** at limit **
  18  Prefactor     15.686        13.958       -.40398E-07   -.33237E-05
  19  Prefactor     .10000E-03    19.078       -.23989E-05** at limit **
  20  Prefactor     .10000E-03    14.119       -.22769E-05** at limit **
  21  Prefactor     .10000E-03    3.1575        .57174E-07** at limit **
  22  Normalizat    1.1999        .20312       -.65961E-06   -.59808E-05
  23  Prefactor     .96435        .95677E-01    .15699E-06   -.10862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8372
  Prefactor  = 6.33213
  norm       = 1.46731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.37113
  Prefactor  = 0.000100003
  Prefactor  = 25.9335
  norm       = 4.48523
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.5564
  norm       = 0.0001
  norm       = 15.1101
  Prefactor  = 10.6185
  norm       = 0.0001
  Prefactor  = 15.6863
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 1.19992
  Prefactor  = 0.964353
 **********
 **   18 **HESSE 
 **********

 FCN=   9257.428     FROM HESSE     STATUS=OK           370 CALLS     2918 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.837        17.691        .11189E-03   -1.4991    
   2  Prefactor     6.3321        8.5674        .79749E-03   -1.5205    
   3  norm          1.4673        1.0484        .80870E-04   -1.5466    
   4  Prefactor     .10000E-03    39.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3711        3.1042        .25279E-03   -1.5474    
   8  Prefactor     .10000E-03    52.203        .46464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.934        20.380        .78634E-04   -1.4689    
  10  norm          4.4852        1.6552        .71809E-04   -1.5284    
  11  Prefactor     .10000E-03    40.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2745        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.556        29.121        .98402E-04   -1.4894    
  14  norm          .10000E-03    3.1174        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.110        9.5944        .10304E-03   -1.4930    
  16  Prefactor     10.618        19.089        .12296E-03   -1.5056    
  17  norm          .10000E-03    5.9037        .17417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.686        13.958        .10113E-03   -1.4916    
  19  Prefactor     .10000E-03    19.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.315        .32305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1999        .23473        .34159E-03   -.86605    
  23  Prefactor     .96435        .11086        .18382E-03   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50759e-09
Minuit parameter uncertainties:
  1  17.6983
  2  8.56909
  3  1.0484
  4  4.35948e-05
  5  5.4645e-06
  6  0.000408592
  7  3.10457
  8  0.000734131
  9  20.3853
  10  1.65518
  11  0.000404915
  12  8.57997e-07
  13  29.1463
  14  6.9104e-06
  15  9.59536
  16  19.0995
  17  1.17239e-05
  18  13.9609
  19  0.000305176
  20  0.000251113
  21  0.000356774
  22  0.234939
  23  0.110884
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.062e+01  1.910e+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:  9.644e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.200e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/829256/likelihoodResults_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.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) = 9257.27105283
delta logL = 0.156575798816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9257.26554008
delta logL = 0.162088551044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6628       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0907       1.0000          .0000       10.000    
     3 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97389       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=   9257.266     FROM MIGRAD    STATUS=FAILED        84 CALLS      301 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6610        366.56        .18637E-03   -.17323E-02
   2  Index         4.0909        5.6479        .14023E-01   -.32944E-03
   3  Normalizat    1.1745        .19412        .34479E-03   -.11651E-02
   4  Prefactor     .97383        .99703E-01    .18303E-03   -.14804E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9257.266     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      383 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6610        366.56        .54136E-03   -.17323E-02
   2  Index         4.0909        5.6479        .35900E-02   -.32944E-03
   3  Normalizat    1.1745        .19412        .22221E-03   -.11651E-02
   4  Prefactor     .97383        .99703E-01    .65863E-04   -.14804E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9257.266     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      417 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6595        20.453        .74549E-05   -.91500E-05
   2  Index         4.0912        3.2138        .56091E-03   -.16215E-05
   3  Normalizat    1.1745        .23179        .68958E-04    .21828E-04
   4  Prefactor     .97383        .11101        .36606E-04    .12646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.65949
  Index      = 4.09119
  Normalizat = 1.17447
  Prefactor  = 0.97383
 **********
 **   18 **HESSE 
 **********

 FCN=   9257.266     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6595        18.697        .14910E-05   -1.5276    
   2  Index         4.0912        3.0946        .22436E-04   -.18278    
   3  Normalizat    1.1745        .23181        .13792E-04   -.87396    
   4  Prefactor     .97383        .11097        .73211E-05   -.93607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20357e-11
Minuit parameter uncertainties:
  1  18.6773
  2  3.34728
  3  0.232017
  4  0.110992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829256': 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) = 9257.2655399
delta logL = 0.162088732828

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.659e+00  1.868e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  4.091e+00  3.347e+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:  9.738e-01  1.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.174e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/829256/cmap_HighResolution_281059201_281318401_4FGL_J2324.6+3115_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-29 15:52:28.889104', job_id='829256', GAL2='0.97', fit_tolerance='1e-08', EG2='1.17', EG='1.20', time_epoch_completed='1632955948.89', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.62e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='161' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:52:28 PDT 2021


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

Job <4FGL_J2324.6+3115_daily_bin161> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:50 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:35:51 2021
Terminated at Wed Sep 29 15:52:29 2021
Results reported at Wed Sep 29 15:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin161 351.17 31.2573 281059201 281318401 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 :                                   833.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

