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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin487
RA = 351.17, Dec = 31.2573
tmin = 365558401, tmax = 365817601
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='831746', job_status='RUN', time_executed='2021-09-29 15:47:27.830900', time_epoch_executed='1632955647.83' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831746

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831746/ft1_4FGL_J2324.6+3115_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831746/ft2_4FGL_J2324.6+3115_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831746/ft1_4FGL_J2324.6+3115_daily_bin487.fits outfile=/scratch/kocevski/831746/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin487.fits ra=351.17 dec=31.2573 rad=12.0 tmin=365558401.0 tmax=365817601.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.60
user 3.34
sys 0.24

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831746/ft1_filtered_4FGL_J2324.6+3115_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/831746/ft2_4FGL_J2324.6+3115_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/831746/ltcube_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.fits outfile=/scratch/kocevski/831746/expmap_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.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/831746/ltcube_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.fits
.....................!
real 191.96
user 186.83
sys 4.79

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/831746/ft1_filtered_4FGL_J2324.6+3115_daily_bin487.fits scfile=/scratch/kocevski/831746/ft2_4FGL_J2324.6+3115_daily_bin487.fits outfile=/scratch/kocevski/831746/cmap_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831746/ft1_filtered_4FGL_J2324.6+3115_daily_bin487.fits scfile=/scratch/kocevski/831746/ft2_4FGL_J2324.6+3115_daily_bin487.fits outfile=/scratch/kocevski/831746/cmap_HighResolution_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6437       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17385E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3551       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7405       1.0000         .10000E-03   10000.    
    15 'norm      '    21.243       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .68695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9779       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6465       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0832       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90630       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=   7948.246     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2207 TOTAL
                     EDM=   .42E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.110       -.30922E-06** at limit **
   2  Prefactor     3.6450        7.9355        .29823E-06    .79916E-05
   3  norm          2.7626        1.2230       -.16415E-08   -.51616E-04
   4  Prefactor     .10000E-03    79.999       -.91274E-07** at limit **
   5  Prefactor     .10000E-03    11.697        .45174E-06** at limit **
   6  Prefactor     .10000E-03    8.2508        .10594E-06** at limit **
   7  Prefactor     .10000E-03    3.8738       -.17216E-07** at limit **
   8  Prefactor     4.6422        12.872        .12074E-05   -.75357E-05
   9  Prefactor     .10000E-03    10.086       -.32595E-06** at limit **
  10  norm          .10000E-03    .61081       -.36511E-08** at limit **
  11  Prefactor     .10000E-03    6.7227        .16429E-06** at limit **
  12  Prefactor     .10000E-03    4.3563        .25248E-07** at limit **
  13  Prefactor     2.3509        35.213        .67654E-05   -.50359E-05
  14  norm          2.7410        2.6573       -.12425E-07    .12483E-04
  15  norm          21.248        11.442       -.79699E-06    .11773E-04
  16  Prefactor     .10000E-03    12.208       -.76596E-07** at limit **
  17  norm          .68553        2.4592        .71311E-06    .57547E-04
  18  Prefactor     6.9915        8.4882        .59935E-07    .38084E-06
  19  Prefactor     13.767        22.722       -.14910E-05    .77344E-05
  20  Prefactor     1.4428        235.69        .40301E-05    .22643E-05
  21  Prefactor     .10000E-03    6.7271       -.41684E-06** at limit **
  22  Normalizat    1.0832        .19617       -.53414E-07   -.97677E-05
  23  Prefactor     .90639        .96804E-01   -.21284E-06    .10602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.64505
  norm       = 2.76258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35087
  norm       = 2.74097
  norm       = 21.2479
  Prefactor  = 0.0001
  norm       = 0.685526
  Prefactor  = 6.99147
  Prefactor  = 13.7672
  Prefactor  = 1.44277
  Prefactor  = 0.0001
  Normalizat = 1.08319
  Prefactor  = 0.906387
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.246     FROM HESSE     STATUS=OK           372 CALLS     2579 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6450        7.9423        .21163E-03   -1.5326    
   3  norm          2.7626        1.2222        .63590E-04   -1.5376    
   4  Prefactor     .10000E-03    80.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9007        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6422        12.852        .18668E-03   -1.5277    
   9  Prefactor     .10000E-03    10.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0315        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3509        35.253        .13354E-02   -1.5401    
  14  norm          2.7410        2.6643        .13922E-03   -1.5377    
  15  norm          21.248        11.439        .86904E-04   -1.4786    
  16  Prefactor     .10000E-03    12.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68553        2.4813        .25094E-03   -1.5542    
  18  Prefactor     6.9915        8.4872        .15187E-03   -1.5179    
  19  Prefactor     13.767        22.709        .10783E-03   -1.4966    
  20  Prefactor     1.4428        239.73        .32914E-03   -1.5468    
  21  Prefactor     .10000E-03    6.8353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0832        .23128        .32381E-03   -.90293    
  23  Prefactor     .90639        .11415        .17259E-03   -.95918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89218e-11
Minuit parameter uncertainties:
  1  2.15361e-05
  2  7.94456
  3  1.22224
  4  5.51106e-06
  5  8.03984e-06
  6  1.41497e-06
  7  4.4231e-07
  8  12.8594
  9  2.34957e-06
  10  6.51945e-07
  11  5.3547e-06
  12  1.31164e-06
  13  18.2196
  14  2.66443
  15  11.4406
  16  2.16761e-06
  17  2.48162
  18  8.48862
  19  22.7236
  20  37.3468
  21  1.87564e-05
  22  0.231501
  23  0.11418
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  2.168e-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:  9.064e-01  1.142e-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.083e+00  2.315e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831746/likelihoodResults_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.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) = 7948.24673447
delta logL = -0.000386417492336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.24634805
delta logL = 1.16106093628e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8867       1.0000          .0000       10.000    
     3 'Normalizat'    1.0832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90639       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=   7948.187     FROM MIGRAD    STATUS=FAILED       141 CALLS      295 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19832        66.250        .18142E-01    .27637E-02
   2  Index         5.8742        6.5817        .34303       -.64073E-04
   3  Normalizat    1.0608        .51242        .32381E-03    .10743E-04
   4  Prefactor     .91308        .10930        .17259E-03   -.39522E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7948.187     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      388 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19832        66.250        .90267E-04    .27637E-02
   2  Index         5.8742        6.5817        .44287E-02   -.64073E-04
   3  Normalizat    1.0608        .51242        .50741E-04    .10743E-04
   4  Prefactor     .91308        .10930        .10606E-04   -.39522E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7948.187     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      421 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19832        3.8928        .97190E-03    .45505E-03
   2  Index         5.8742        7.0549        .21363E-01   -.10577E-04
   3  Normalizat    1.0608        .23649        .12952E-04    .10708E-04
   4  Prefactor     .91308        .11378        .69036E-05   -.32935E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.19832
  Index      = 5.87425
  Normalizat = 1.06083
  Prefactor  = 0.91308
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.187     FROM HESSE     STATUS=OK            27 CALLS      448 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19832        2.0953        .38876E-04   -1.5619    
   2  Index         5.8742        4.0762        .85454E-03    2.9658    
   3  Normalizat    1.0608        .23403        .25905E-05   -.91020    
   4  Prefactor     .91308        .11327        .13807E-05   -.95686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90321e-13
Minuit parameter uncertainties:
  1  1.28898
  2  4.80256
  3  0.234253
  4  0.113304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831746': 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) = 7948.18685483
delta logL = 0.0594932273898

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.983e-01  1.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  5.874e+00  4.803e+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.131e-01  1.133e-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.061e+00  2.343e-01  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/831746/cmap_HighResolution_365558401_365817601_4FGL_J2324.6+3115_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-29 15:59:40.469037', job_id='831746', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.08', time_epoch_completed='1632956380.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.95e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='487' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:59:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 831746: <4FGL_J2324.6+3115_daily_bin487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin487 351.17 31.2573 365558401 365817601 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

