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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin660
RA = 351.17, Dec = 31.2573
tmin = 410400001, tmax = 410659201
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='832024', job_status='RUN', time_executed='2021-09-29 15:49:28.026751', time_epoch_executed='1632955768.03' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832024

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832024/ft1_4FGL_J2324.6+3115_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832024/ft2_4FGL_J2324.6+3115_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832024/ft1_4FGL_J2324.6+3115_daily_bin660.fits outfile=/scratch/kocevski/832024/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin660.fits ra=351.17 dec=31.2573 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.54
user 6.26
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832024/ft1_filtered_4FGL_J2324.6+3115_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/832024/ft2_4FGL_J2324.6+3115_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/832024/ltcube_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.fits outfile=/scratch/kocevski/832024/expmap_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.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/832024/ltcube_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.fits
.....................!
real 190.42
user 184.96
sys 5.13

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/832024/ft1_filtered_4FGL_J2324.6+3115_daily_bin660.fits scfile=/scratch/kocevski/832024/ft2_4FGL_J2324.6+3115_daily_bin660.fits outfile=/scratch/kocevski/832024/cmap_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832024/ft1_filtered_4FGL_J2324.6+3115_daily_bin660.fits scfile=/scratch/kocevski/832024/ft2_4FGL_J2324.6+3115_daily_bin660.fits outfile=/scratch/kocevski/832024/cmap_HighResolution_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .77045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    172.94       1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.507       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.363       1.0000         .10000E-03   10000.    
    10 'norm      '    6.3579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13567E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75646       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4141       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2660       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96201       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=   4277.478     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2511 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.733        .27913E-06** at limit **
   2  Prefactor     .10000E-03    8.1283        .65950E-08** at limit **
   3  norm          .77131        2.3906        .71645E-06    .61519E-04
   4  Prefactor     172.77        139.73       -.27382E-06   -.42733E-04
   5  Prefactor     60.494        46.019       -.58976E-06   -.39121E-04
   6  Prefactor     14.424        19.649        .30299E-07   -.14328E-05
   7  Prefactor     .10000E-03    4.0358        .55020E-07** at limit **
   8  Prefactor     .10000E-03    9.9367        .27939E-07** at limit **
   9  Prefactor     32.327        45.219       -.26744E-06   -.21943E-04
  10  norm          6.3585        3.2362       -.99046E-08    .10795E-04
  11  Prefactor     34.638        37.526        .19273E-07   -.53400E-04
  12  Prefactor     .10000E-03    31.869       -.92967E-07** at limit **
  13  Prefactor     .10000E-03    67.439        .31582E-07** at limit **
  14  norm          .10000E-03    4.1051        .14423E-06** at limit **
  15  norm          .10000E-03    5.7005        .21132E-07** at limit **
  16  Prefactor     .10000E-03    26.222        .10831E-07** at limit **
  17  norm          .76490        4.5413       -.73189E-06    .29746E-03
  18  Prefactor     52.191        38.284       -.14128E-06   -.52559E-06
  19  Prefactor     12.418        76.283       -.72162E-06   -.17192E-04
  20  Prefactor     .10000E-03    49.978        .12687E-06** at limit **
  21  Prefactor     4.4134        7.6705        .36139E-05   -.20750E-04
  22  Normalizat    1.2643        .32153       -.25319E-07   -.24860E-04
  23  Prefactor     .96290        .15563       -.11905E-05    .56142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.771312
  Prefactor  = 172.765
  Prefactor  = 60.4937
  Prefactor  = 14.4238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3266
  norm       = 6.35852
  Prefactor  = 34.6379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.764898
  Prefactor  = 52.1907
  Prefactor  = 12.4175
  Prefactor  = 0.0001
  Prefactor  = 4.41339
  Normalizat = 1.26433
  Prefactor  = 0.962902
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.478     FROM HESSE     STATUS=OK           364 CALLS     2875 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77131        2.3219        .15751E-03   -1.5532    
   4  Prefactor     172.77        139.84        .15342E-03   -1.3072    
   5  Prefactor     60.494        45.105        .51581E-04   -1.4151    
   6  Prefactor     14.424        19.663        .10543E-03   -1.4948    
   7  Prefactor     .10000E-03    4.0412        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.327        45.306        .70435E-04   -1.4570    
  10  norm          6.3585        3.2358        .79230E-04   -1.5204    
  11  Prefactor     34.638        37.546        .68031E-04   -1.4530    
  12  Prefactor     .10000E-03    32.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1194        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7018        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76490        8.0211        .25377E-02   -1.5533    
  18  Prefactor     52.191        38.292        .55517E-04   -1.4262    
  19  Prefactor     12.418        77.853        .11339E-03   -1.5003    
  20  Prefactor     .10000E-03    49.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4134        7.6975        .95841E-03   -1.5288    
  22  Normalizat    1.2643        .37908        .35780E-03   -.84637    
  23  Prefactor     .96290        .18340        .19370E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28209e-10
Minuit parameter uncertainties:
  1  0.00013671
  2  7.7859e-06
  3  2.32217
  4  140.109
  5  45.131
  6  19.6713
  7  3.21091e-06
  8  3.5901e-06
  9  45.354
  10  3.23591
  11  37.5714
  12  9.96154e-05
  13  0.000116951
  14  4.82863e-06
  15  3.90062e-06
  16  6.24963e-05
  17  4.95444
  18  38.3102
  19  62.3047
  20  6.87357e-06
  21  7.69919
  22  0.379911
  23  0.183519
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  6.250e-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:  9.629e-01  1.835e-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.264e+00  3.799e-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: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832024/likelihoodResults_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.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) = 4277.47786351
delta logL = -0.000181150135177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4277.47786348
delta logL = -0.000181124961273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96341E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8754       1.0000          .0000       10.000    
     3 'Normalizat'    1.2643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96290       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=   4277.009     FROM MIGRAD    STATUS=FAILED       174 CALLS      319 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58953E-02    .34227        .13847E-02   -.36814E-01
   2  Index        10.0000        6.7068        .50000    ** at limit **
   3  Normalizat    1.1480        .14580        .35779E-02   -.18889E-03
   4  Prefactor     1.0008        .68210E-01    .19370E-03   -.29440E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4277.009     FROM SIMPLEX   STATUS=PROGRESS     162 CALLS      481 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58956E-02    .34227        .56643E-07   -.36814E-01
   2  Index        10.0000        6.7068        .14680E-01** at limit **
   3  Normalizat    1.1480        .14580        .61041E-07   -.18889E-03
   4  Prefactor     1.0008        .68210E-01    .45378E-08   -.29440E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4277.009     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      517 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58956E-02    .80447E-02    .59560E-04    .23734E-02
   2  Index        10.0000        6.3175        .50000    ** at limit **
   3  Normalizat    1.1480        .38661        .14311E-03    .80105E-04
   4  Prefactor     1.0008        .18150        .38740E-04    .30361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00589561
  Index      = 10
  Normalizat = 1.14798
  Prefactor  = 1.00077
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.009     FROM HESSE     STATUS=OK            31 CALLS      548 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58956E-02    .77984E-02    .23824E-05   -1.5693    
   2  Index        10.0000        6.2470        .50000        20.420    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1480        .38740        .28623E-04   -.88226    
   4  Prefactor     1.0008        .18170        .77480E-05   -.92704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24117e-10
Minuit parameter uncertainties:
  1  0.00779845
  2  9.16543e-06
  3  0.388372
  4  0.181814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832024': 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) = 4277.00853121
delta logL = 0.469151148932

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.896e-03  7.798e-03  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.000e+01  9.165e-06  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.001e+00  1.818e-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.148e+00  3.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 351.170 31.257
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.05e-07 +/- 1.34e-07
Energy Flux (Free Index): 1.17e-05 +/- 1.51e-05

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/832024/cmap_HighResolution_410400001_410659201_4FGL_J2324.6+3115_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='4.69e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-29 15:58:54.511818', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='1.51e-05', EG='1.26', time_epoch_completed='1632956334.51', return_code='0', job_id='832024', GAL2='1.00', EG2='1.15', return_code2='0', photon_flux_error2='1.34e-07', ts2='1.03', photon_index='2.88' WHERE bin_id='660' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 832024: <4FGL_J2324.6+3115_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin660 351.17 31.2573 410400001 410659201 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 :                                   565.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             241.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            801 sec.

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

