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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin489
RA = 351.17, Dec = 31.2573
tmin = 366076801, tmax = 366336001
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='831750', job_status='RUN', time_executed='2021-09-29 15:47:08.962521', time_epoch_executed='1632955628.96' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831750

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831750/ft1_4FGL_J2324.6+3115_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831750/ft2_4FGL_J2324.6+3115_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831750/ft1_4FGL_J2324.6+3115_daily_bin489.fits outfile=/scratch/kocevski/831750/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin489.fits ra=351.17 dec=31.2573 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.32
user 5.05
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831750/ft1_filtered_4FGL_J2324.6+3115_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/831750/ft2_4FGL_J2324.6+3115_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/831750/ltcube_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.fits outfile=/scratch/kocevski/831750/expmap_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.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/831750/ltcube_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.fits
.....................!
real 191.01
user 185.79
sys 4.84

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831750/ft1_filtered_4FGL_J2324.6+3115_daily_bin489.fits scfile=/scratch/kocevski/831750/ft2_4FGL_J2324.6+3115_daily_bin489.fits outfile=/scratch/kocevski/831750/cmap_HighResolution_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.573       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .60926E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5572       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4125       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9851       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46246E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12098E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31343       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96864       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=   8642.936     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2672 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.567        18.970        .10948E-05    .88880E-04
   2  Prefactor     .10000E-03    3.6930       -.49382E-06** at limit **
   3  norm          .47596        .77472       -.47476E-07    .23219E-04
   4  Prefactor     .10000E-03    30.050        .27978E-06** at limit **
   5  Prefactor     .10000E-03    9.5873        .11377E-06** at limit **
   6  Prefactor     6.5764        6.5808        .70662E-07    .16147E-04
   7  Prefactor     .10000E-03    3.3524       -.74449E-07** at limit **
   8  Prefactor     11.617        11.417       -.86838E-07    .20375E-04
   9  Prefactor     .10000E-03    11.862        .46401E-07** at limit **
  10  norm          .56796E-01    .48221       -.28134E-07   -.50310E-04
  11  Prefactor     18.897        18.332        .11611E-06    .54383E-04
  12  Prefactor     6.5573        7.4281       -.14542E-06    .12756E-04
  13  Prefactor     .10000E-03    5.7372        .88789E-07** at limit **
  14  norm          3.4288        3.1637        .23814E-06    .12693E-02
  15  norm          1.9853        3.9820        .32597E-07    .31671E-04
  16  Prefactor     .10124E-03    8.5358       -.10192E-05** at limit **
  17  norm          .10000E-03    .46305        .83950E-08** at limit **
  18  Prefactor     .10000E-03    4.9271       -.12264E-06** at limit **
  19  Prefactor     24.399        32.559       -.22081E-05   -.45948E-04
  20  Prefactor     .10000E-03    77.659       -.28598E-05** at limit **
  21  Prefactor     .30840        33.870        .26935E-05   -.14172E-03
  22  Normalizat    1.0733        .20466        .24663E-05    .10212E-03
  23  Prefactor     .96862        .97957E-01   -.67787E-06    .52118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.5674
  Prefactor  = 0.0001
  norm       = 0.475961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.57643
  Prefactor  = 0.0001
  Prefactor  = 11.6168
  Prefactor  = 0.0001
  norm       = 0.0567964
  Prefactor  = 18.8968
  Prefactor  = 6.55734
  Prefactor  = 0.0001
  norm       = 3.42883
  norm       = 1.98532
  Prefactor  = 0.000101235
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3992
  Prefactor  = 0.0001
  Prefactor  = 0.308401
  Normalizat = 1.07329
  Prefactor  = 0.968622
 **********
 **   18 **HESSE 
 **********

 FCN=   8642.936     FROM HESSE     STATUS=OK           386 CALLS     3058 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.567        19.695        .70208E-04   -1.4566    
   2  Prefactor     .10000E-03    3.7432        .17466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .47596        .77437        .44693E-04   -1.5570    
   4  Prefactor     .10000E-03    30.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5764        6.5843        .15649E-03   -1.5195    
   7  Prefactor     .10000E-03    13.622        .33000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.617        11.418        .11753E-03   -1.5026    
   9  Prefactor     .10000E-03    11.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56796E-01    3.9612        .12289E-02   -1.5660    
  11  Prefactor     18.897        18.354        .92122E-04   -1.4838    
  12  Prefactor     6.5573        7.4251        .15672E-03   -1.5196    
  13  Prefactor     .10000E-03    5.7405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4288        4.7879        .10942E-02   -1.5338    
  15  norm          1.9853        3.9512        .25639E-03   -1.5426    
  16  Prefactor     .10124E-03    9.9126        .78969E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .46433        .61769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.399        32.575        .81073E-04   -1.4720    
  20  Prefactor     .10000E-03    78.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .30840        46.385        .40447E-02   -1.5597    
  22  Normalizat    1.0733        .22284        .32679E-03   -.90614    
  23  Prefactor     .96862        .10925        .17197E-03   -.93783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95969e-08
Minuit parameter uncertainties:
  1  19.6993
  2  1.04058e-05
  3  0.774385
  4  2.06548e-05
  5  7.5294e-06
  6  6.58501
  7  2.22122e-05
  8  11.4199
  9  3.30848e-06
  10  0.947881
  11  18.3598
  12  7.42611
  13  1.5233e-06
  14  4.7884
  15  3.95169
  16  0.0069998
  17  2.21397e-07
  18  2.29992e-06
  19  32.5988
  20  0.000359845
  21  7.56921
  22  0.223031
  23  0.109278
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.012e-04  7.000e-03  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.686e-01  1.093e-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.073e+00  2.230e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831750/likelihoodResults_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.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) = 8642.93582653
delta logL = -7.33016167942e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8642.85749426
delta logL = 0.0783249365013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2707       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0757       1.0000          .0000       10.000    
     3 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8642.857     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      345 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2681        9.4120        .22391E-03   -.60927E-05
   2  Index         2.0749        1.2394        .13175E-01   -.89049E-04
   3  Normalizat    1.0738        .21342        .32672E-03   -.44539E-04
   4  Prefactor     .96614        .10807        .17214E-03    .77852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26809
  Index      = 2.07495
  Normalizat = 1.07385
  Prefactor  = 0.966138
 **********
 **   18 **HESSE 
 **********

 FCN=   8642.857     FROM HESSE     STATUS=OK            25 CALLS      370 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2681        9.4938        .89565E-05   -1.5346    
   2  Index         2.0749        1.2506        .26349E-02   -.62489    
   3  Normalizat    1.0738        .21357        .13069E-04   -.90596    
   4  Prefactor     .96614        .10814        .34428E-04   -.93867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36655e-11
Minuit parameter uncertainties:
  1  9.49821
  2  1.27136
  3  0.213742
  4  0.108167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831750': 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) = 8642.85749329
delta logL = 0.0783259108721

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.268e+00  9.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.075e+00  1.271e+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.661e-01  1.082e-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.074e+00  2.137e-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/831750/cmap_HighResolution_366076801_366336001_4FGL_J2324.6+3115_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-29 16:01:09.513369', job_id='831750', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632956469.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.83e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='489' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:01:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 831750: <4FGL_J2324.6+3115_daily_bin489> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin489> 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) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:16 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:16 2021
Terminated at Wed Sep 29 16:01:09 2021
Results reported at Wed Sep 29 16:01:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin489 351.17 31.2573 366076801 366336001 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 :                                   838.40 sec.
    Max Memory :                                 1043 MB
    Average Memory :                             322.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

