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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin992
RA = 353.557, Dec = 7.602
tmin = 496454401, tmax = 496713601
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='19627', job_status='RUN', time_executed='2021-09-29 23:39:23.813265', time_epoch_executed='1632983963.81' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19627

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19627/ft1_4FGL_J2334.2+0736_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19627/ft1_4FGL_J2334.2+0736_daily_bin992.fits outfile=/scratch/kocevski/19627/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin992.fits ra=353.557 dec=7.602 rad=12.0 tmin=496454401.0 tmax=496713601.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.44
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.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/19627/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin992.fits evtable="EVENTS" outfile="/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.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/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits" evtable="EVENTS" scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits sctable="SC_DATA" outfile=/scratch/kocevski/19627/ltcube_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.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/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits
.....................!
real 11.67
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/19627/ltcube_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits outfile=/scratch/kocevski/19627/expmap_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.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/19627/ltcube_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits
.....................!
real 190.65
user 185.42
sys 4.91

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits outfile=/scratch/kocevski/19627/cmap_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.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=353.557 yref=7.602 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits outfile=/scratch/kocevski/19627/cmap_HighResolution_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.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=353.557 yref=7.602 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19627/Model_4FGL_J2334.2+0736_daily_bin992.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/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits....................!
real 74.13
user 72.80
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits', '/scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits', expMap='/scratch/kocevski/19627/expmap_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits', expCube='/scratch/kocevski/19627/ltcube_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19627/Model_4FGL_J2334.2+0736_daily_bin992.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19627/ft1_filtered_4FGL_J2334.2+0736_daily_bin992.fits
Spacecraft file(s): /scratch/kocevski/19627/ft2_4FGL_J2334.2+0736_daily_bin992.fits
Exposure map: /scratch/kocevski/19627/expmap_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits
Exposure cube: /scratch/kocevski/19627/ltcube_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19627/Model_4FGL_J2334.2+0736_daily_bin992.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) = 6599.15201825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.252       1.0000         .10000E-03   10000.    
     7 'norm      '    .58766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16500E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.894       1.0000         .10000E-03   10000.    
    16 'norm      '    14.871       1.0000         .10000E-03   10000.    
    17 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4996       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2326       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6599.129     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2746 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.510       -.11631E-05** at limit **
   2  Prefactor     .10000E-03    10.274       -.99633E-06** at limit **
   3  Prefactor     68.318        52.197        .75487E-07    .38235E-04
   4  Prefactor     .10000E-03    2.4166       -.64576E-09** at limit **
   5  Prefactor     .10000E-03    4.7090       -.56078E-07** at limit **
   6  Prefactor     21.254        20.602       -.10130E-05   -.79378E-04
   7  norm          .58576        .91905       -.12484E-06   -.99024E-04
   8  Prefactor     .10000E-03    4.8917        .11242E-06** at limit **
   9  Prefactor     .10000E-03    7.0413        .78992E-07** at limit **
  10  Prefactor     .10000E-03    17.566        .70774E-07** at limit **
  11  norm          23.414        13.801       -.34443E-06   -.13748E-04
  12  Prefactor     10.854        10.625        .38350E-06   -.79099E-03
  13  Prefactor     .10000E-03    192.48       -.17175E-05** at limit **
  14  Prefactor     4.1380        9.0800        .27427E-05   -.97490E-03
  15  Prefactor     11.895        31.937       -.18872E-06   -.11920E-04
  16  norm          14.871        10.993       -.13306E-06    .13149E-03
  17  norm          .10000E-03    11.321        .17633E-05** at limit **
  18  Prefactor     .10000E-03    5.1890       -.47905E-06** at limit **
  19  Prefactor     59.364        46.797       -.53351E-05   -.27876E-03
  20  Prefactor     3.9932        37.891       -.67609E-05   -.10681E-03
  21  Prefactor     .10000E-03    3.4598        .55152E-08** at limit **
  22  Prefactor     9.5027        19.190       -.34627E-05   -.16877E-03
  23  Normalizat    1.2326        .22092        .18006E-05   -.35622E-04
  24  Prefactor     .76234        .13135       -.11092E-06    .11935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2541
  norm       = 0.58576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.4138
  Prefactor  = 10.8537
  Prefactor  = 0.0001
  Prefactor  = 4.13795
  Prefactor  = 11.8954
  norm       = 14.8711
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.3638
  Prefactor  = 3.99319
  Prefactor  = 0.0001
  Prefactor  = 9.50272
  Normalizat = 1.23259
  Prefactor  = 0.762337
 **********
 **   18 **HESSE 
 **********

 FCN=   6599.129     FROM HESSE     STATUS=OK           395 CALLS     3141 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     68.318        52.311        .48561E-04   -1.4053    
   4  Prefactor     .10000E-03    2.4264        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7208        .17217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.254        20.657        .86884E-04   -1.4786    
   7  norm          .58576        .92044        .46495E-04   -1.5555    
   8  Prefactor     .10000E-03    4.8998        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.414        13.927        .82780E-04   -1.4740    
  12  Prefactor     10.854        11.320        .60802E-03   -1.5049    
  13  Prefactor     .10000E-03    192.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1380        12.449        .99035E-03   -1.5301    
  15  Prefactor     11.895        31.848        .11615E-03   -1.5018    
  16  norm          14.871        11.001        .51931E-03   -1.4937    
  17  norm          .10000E-03    11.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3227        .36102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     59.364        47.036        .52067E-04   -1.4165    
  20  Prefactor     3.9932        38.724        .20207E-03   -1.5308    
  21  Prefactor     .10000E-03    3.4802        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.5027        19.323        .13002E-03   -1.5091    
  23  Normalizat    1.2326        .26157        .29505E-03   -.85602    
  24  Prefactor     .76234        .15294        .22753E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80432e-09
Minuit parameter uncertainties:
  1  8.03498e-05
  2  6.86907e-05
  3  52.3463
  4  2.47079e-06
  5  7.13089e-06
  6  20.6634
  7  0.920464
  8  5.63996e-06
  9  2.55659e-06
  10  1.56011e-05
  11  13.9291
  12  11.3227
  13  0.000511145
  14  12.4564
  15  31.8937
  16  11.0029
  17  0.000123706
  18  1.15592e-05
  19  47.0657
  20  24.891
  21  6.3969e-06
  22  19.3354
  23  0.261849
  24  0.153021
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.190e+01  3.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  7.623e-01  1.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.233e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19627/likelihoodResults_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.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) = 6598.81120242
delta logL = 0.318069261632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6598.80193778
delta logL = 0.327333900863

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6598.802     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      349 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2442        48.294        .68831E-02    .77190E-03
   2  Index         4.0828        2.9153        .16519        .11005E-03
   3  Normalizat    1.1758        .50035E-01    .67970E-01    .25042E-05
   4  Prefactor     .78519        .31089E-01    .43522E-01   -.34072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24416
  Index      = 4.08275
  Normalizat = 1.17583
  Prefactor  = 0.785193
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.802     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      382 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2442        138.34        .13207E-03   -1.5408    
   2  Index         4.0828        6.9555        .60255E-02   -.18449    
   3  Normalizat    1.1758        .22217        .30071E-03   -.87353    
   4  Prefactor     .78519        .13957        .22440E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.61734e-07
Minuit parameter uncertainties:
  1  35.3246
  2  8.10567
  3  0.222347
  4  0.139637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19627': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6598.80193032
delta logL = 0.327341361536

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.244e+00  3.532e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  4.083e+00  8.106e+00  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  7.852e-01  1.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.176e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 353.557 7.602

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/19627/cmap_HighResolution_496454401_496713601_4FGL_J2334.2+0736_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-29 23:50:45.942891', job_id='19627', GAL2='0.79', fit_tolerance='1e-08', EG2='1.18', EG='1.23', time_epoch_completed='1632984645.94', return_code2='102', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.27e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='992' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 19627: <4FGL_J2334.2+0736_daily_bin992> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin992> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:27 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:35:28 2021
Terminated at Wed Sep 29 23:50:46 2021
Results reported at Wed Sep 29 23:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin992 353.557 7.602 496454401 496713601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

