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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin225
RA = 353.557, Dec = 7.602
tmin = 297648001, tmax = 297907201
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='16949', job_status='RUN', time_executed='2021-09-29 23:28:26.380297', time_epoch_executed='1632983306.38' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16949/ft1_4FGL_J2334.2+0736_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16949/ft1_4FGL_J2334.2+0736_daily_bin225.fits outfile=/scratch/kocevski/16949/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin225.fits ra=353.557 dec=7.602 rad=12.0 tmin=297648001.0 tmax=297907201.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.75
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.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/16949/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin225.fits evtable="EVENTS" outfile="/scratch/kocevski/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/16949/ltcube_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.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/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits
.....................!
real 12.09
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/16949/ltcube_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits outfile=/scratch/kocevski/16949/expmap_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.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/16949/ltcube_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits
.....................!
real 190.18
user 185.51
sys 4.29

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/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits scfile=/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits outfile=/scratch/kocevski/16949/cmap_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits scfile=/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits outfile=/scratch/kocevski/16949/cmap_HighResolution_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits', '/scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits', expMap='/scratch/kocevski/16949/expmap_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits', expCube='/scratch/kocevski/16949/ltcube_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16949/Model_4FGL_J2334.2+0736_daily_bin225.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/16949/ft1_filtered_4FGL_J2334.2+0736_daily_bin225.fits
Spacecraft file(s): /scratch/kocevski/16949/ft2_4FGL_J2334.2+0736_daily_bin225.fits
Exposure map: /scratch/kocevski/16949/expmap_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits
Exposure cube: /scratch/kocevski/16949/ltcube_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16949/Model_4FGL_J2334.2+0736_daily_bin225.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) = 6170.31099217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3750       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13369E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7427       1.0000         .10000E-03   10000.    
    16 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67093E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.944       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68038       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1238       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=   6170.303     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2649 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3116       -.19704E-07** at limit **
   2  Prefactor     .10000E-03    13.799        .11185E-07** at limit **
   3  Prefactor     6.1081        31.498        .13636E-06    .99244E-06
   4  Prefactor     .10000E-03    8.6489        .87723E-07** at limit **
   5  Prefactor     .10000E-03    10.296       -.41799E-07** at limit **
   6  Prefactor     8.3792        12.803        .67708E-07    .23148E-05
   7  norm          .10000E-03    .27205       -.61161E-07** at limit **
   8  Prefactor     17.401        12.279        .13146E-06    .30116E-04
   9  Prefactor     .10000E-03    12.700       -.14882E-07** at limit **
  10  Prefactor     .10000E-03    50.817       -.13181E-06** at limit **
  11  norm          2.6192        7.1558        .47595E-06    .62902E-04
  12  Prefactor     11.010        9.5434        .36196E-06    .52104E-04
  13  Prefactor     26.207        248.24        .19579E-04    .16575E-04
  14  Prefactor     .10000E-03    4.7708       -.22022E-06** at limit **
  15  Prefactor     6.7471        13.112        .79970E-07    .60944E-05
  16  norm          .10000E-03    6.7547       -.26714E-07** at limit **
  17  norm          .10000E-03    13.043       -.18410E-06** at limit **
  18  Prefactor     10.579        5.1543       -.22144E-06   -.83571E-05
  19  Prefactor     .10000E-03    9.8558       -.81218E-07** at limit **
  20  Prefactor     .10000E-03    13.728       -.19078E-07** at limit **
  21  Prefactor     .10002E-03    6.9225        .12221E-05** at limit **
  22  Prefactor     13.933        16.630        .87539E-07    .15613E-05
  23  Normalizat    .68041        .22041       -.10432E-05   -.53983E-04
  24  Prefactor     1.1238        .14189        .47855E-06   -.86339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.37917
  norm       = 0.0001
  Prefactor  = 17.401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61921
  Prefactor  = 11.0102
  Prefactor  = 26.2071
  Prefactor  = 0.0001
  Prefactor  = 6.74708
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 13.933
  Normalizat = 0.680408
  Prefactor  = 1.1238
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.303     FROM HESSE     STATUS=OK           395 CALLS     3044 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3155        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1081        31.443        .16245E-03   -1.5214    
   4  Prefactor     .10000E-03    8.8723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3792        12.802        .13853E-03   -1.5129    
   7  norm          .10000E-03    .27745        .40013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.401        12.279        .96038E-04   -1.4873    
   9  Prefactor     .10000E-03    12.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    51.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6192        7.2066        .12606E-02   -1.5384    
  12  Prefactor     11.010        9.5306        .60372E-03   -1.5044    
  13  Prefactor     26.207        254.86        .38778E-03   -1.4684    
  14  Prefactor     .10000E-03    4.7960        .16757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7471        13.095        .15452E-03   -1.5188    
  16  norm          .10000E-03    6.7646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.579        5.1533        .11734E-03   -1.5057    
  19  Prefactor     .10000E-03    9.8612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    22.555        .36165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.933        16.637        .10726E-03   -1.4961    
  23  Normalizat    .68041        .24541        .35526E-03   -1.0467    
  24  Prefactor     1.1238        .15981        .19072E-03   -.88710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06959e-09
Minuit parameter uncertainties:
  1  2.68762e-08
  2  9.51291e-08
  3  27.7396
  4  6.53421e-07
  5  3.89782e-06
  6  12.8064
  7  7.95831e-07
  8  12.2807
  9  1.58531e-06
  10  1.09956e-05
  11  7.20896
  12  9.53189
  13  164.374
  14  1.39023e-05
  15  13.1001
  16  2.92311e-06
  17  2.24189e-05
  18  5.15356
  19  2.30601e-06
  20  1.11512e-06
  21  0.0014584
  22  16.643
  23  0.245803
  24  0.159883
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  6.747e+00  1.310e+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:  1.124e+00  1.599e-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:  6.804e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 9.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16949/likelihoodResults_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.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) = 6169.83738518
delta logL = 0.465797942082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.78257417
delta logL = 0.520608957722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5011       1.0000          .0000       10.000    
     3 'Normalizat'    .69136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   6169.783     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.269        15.814        .35440E-05   -.18656E-03
   2  Index         1.5010        .75283        .29952E-04    .17158E-04
   3  Normalizat    .69144        .20630       -.58043E-06   -.21191E-03
   4  Prefactor     1.1177        .14008       -.79577E-07   -.31800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2687
  Index      = 1.50099
  Normalizat = 0.691443
  Prefactor  = 1.11773
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.783     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.269        15.509        .11936E-03   -1.5036    
   2  Index         1.5010        .73967        .12034E-01   -.77512    
   3  Normalizat    .69144        .23321        .35263E-03   -1.0423    
   4  Prefactor     1.1177        .15865        .19106E-03   -.88902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57014e-10
Minuit parameter uncertainties:
  1  15.5149
  2  0.745064
  3  0.233542
  4  0.158714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16949': 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) = 6169.78257398
delta logL = 0.520609145856

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.127e+01  1.551e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.501e+00  7.451e-01  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:  1.118e+00  1.587e-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:  6.914e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 353.557 7.602
Photon Index (Free Index): 1.50 +/- 0.75
Photon Flux (Free Index): 6.55e-09 +/- 1.01e-08
Energy Flux (Free Index): 2.07e-05 +/- 4.29e-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/16949/cmap_HighResolution_297648001_297907201_4FGL_J2334.2+0736_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', comment='SUCCESS', energy_flux2='2.07e-05', dlogl='5.21e-01', photon_flux2='6.55e-09', job_status='DONE', time_completed='2021-09-29 23:39:17.628866', photon_index_error2='0.75', photon_index2='1.50', ts='0.41', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.19e-08', energy_flux_error2='4.29e-05', EG='0.68', time_epoch_completed='1632983957.63', return_code='0', job_id='16949', GAL2='1.12', EG2='0.69', return_code2='0', photon_flux_error2='1.01e-08', ts2='1.45', photon_index='2.47' WHERE bin_id='225' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:39:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 16949: <4FGL_J2334.2+0736_daily_bin225> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin225> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:26 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:29 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:25:29 2021
Terminated at Wed Sep 29 23:39:18 2021
Results reported at Wed Sep 29 23:39:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin225 353.557 7.602 297648001 297907201 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 :                                   647.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            832 sec.

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

