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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin930
RA = 353.557, Dec = 7.602
tmin = 480384001, tmax = 480643201
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='19534', job_status='RUN', time_executed='2021-09-29 23:36:24.492303', time_epoch_executed='1632983784.49' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19534/ft1_4FGL_J2334.2+0736_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19534/ft1_4FGL_J2334.2+0736_daily_bin930.fits outfile=/scratch/kocevski/19534/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin930.fits ra=353.557 dec=7.602 rad=12.0 tmin=480384001.0 tmax=480643201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.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/19534/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin930.fits evtable="EVENTS" outfile="/scratch/kocevski/19534/ft1_filtered_4FGL_J2334.2+0736_daily_bin930.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19534/ft1_filtered_4FGL_J2334.2+0736_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/19534/ltcube_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.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/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits
.....................!
real 12.41
user 12.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19534/ft1_filtered_4FGL_J2334.2+0736_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/19534/ltcube_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.fits outfile=/scratch/kocevski/19534/expmap_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.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/19534/ltcube_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.fits
.....................!
real 191.40
user 185.43
sys 5.60

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/19534/ft1_filtered_4FGL_J2334.2+0736_daily_bin930.fits scfile=/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits outfile=/scratch/kocevski/19534/cmap_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19534/ft1_filtered_4FGL_J2334.2+0736_daily_bin930.fits scfile=/scratch/kocevski/19534/ft2_4FGL_J2334.2+0736_daily_bin930.fits outfile=/scratch/kocevski/19534/cmap_HighResolution_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    122.50       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9197       1.0000         .10000E-03   10000.    
     7 'norm      '    .54751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.801       1.0000         .10000E-03   10000.    
    16 'norm      '    .13692E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5593       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67465       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=   7387.228     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2422 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     122.50        34.925        .19835E-06    .42373E-04
   2  Prefactor     .10000E-03    52.284       -.43638E-06** at limit **
   3  Prefactor     .10000E-03    8.9982       -.43944E-08** at limit **
   4  Prefactor     .34314        5.8894        .61748E-06   -.20765E-03
   5  Prefactor     4.8331        9.4404       -.67942E-06   -.24904E-03
   6  Prefactor     6.9181        14.237        .29749E-06    .56134E-05
   7  norm          .54750        1.0057        .32453E-06   -.93078E-04
   8  Prefactor     5.2440        7.0810        .16011E-06    .70815E-05
   9  Prefactor     17.214        19.919        .10735E-06   -.35696E-05
  10  Prefactor     .10000E-03    32.479        .10312E-05** at limit **
  11  norm          .10000E-03    4.7713       -.10534E-07** at limit **
  12  Prefactor     .10000E-03    2.2020       -.62646E-08** at limit **
  13  Prefactor     .10000E-03    109.63        .24561E-06** at limit **
  14  Prefactor     .10000E-03    4.8601        .37276E-08** at limit **
  15  Prefactor     27.791        23.426        .14480E-06    .72952E-05
  16  norm          .10093E-03    10.885       -.26451E-06** at limit **
  17  norm          .10000E-03    28.054       -.99556E-06** at limit **
  18  Prefactor     .10000E-03    2.0555        .12906E-07** at limit **
  19  Prefactor     10.057        42.066        .20994E-05    .39991E-04
  20  Prefactor     .10000E-03    15.826        .16791E-06** at limit **
  21  Prefactor     3.9328        5.1181        .12883E-05   -.21004E-03
  22  Prefactor     .10000E-03    6.6590        .22072E-07** at limit **
  23  Normalizat    1.5591        .21996       -.84930E-06   -.16825E-04
  24  Prefactor     .67495        .12941        .17290E-06   -.93810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 122.497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.343141
  Prefactor  = 4.83311
  Prefactor  = 6.91806
  norm       = 0.547503
  Prefactor  = 5.24403
  Prefactor  = 17.2138
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.7907
  norm       = 0.00010093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0566
  Prefactor  = 0.0001
  Prefactor  = 3.9328
  Prefactor  = 0.0001
  Normalizat = 1.55905
  Prefactor  = 0.674948
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.228     FROM HESSE     STATUS=OK           407 CALLS     2829 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     122.50        35.046        .36364E-04   -1.3490    
   2  Prefactor     .10000E-03    52.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34314        31.048        .39177E-02   -1.5591    
   5  Prefactor     4.8331        9.7836        .18302E-03   -1.5268    
   6  Prefactor     6.9181        14.237        .15251E-03   -1.5182    
   7  norm          .54750        .99155        .11254E-03   -1.5560    
   8  Prefactor     5.2440        7.0701        .17551E-03   -1.5250    
   9  Prefactor     17.214        19.921        .96533E-04   -1.4878    
  10  Prefactor     .10000E-03    32.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2106        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    109.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.791        23.417        .75980E-04   -1.4653    
  16  norm          .10093E-03    11.054        .89315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0699        .12029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.057        43.059        .12623E-03   -1.5074    
  20  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9328        5.1712        .10170E-02   -1.5311    
  22  Prefactor     .10000E-03    6.6660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5591        .25751        .28173E-03   -.76132    
  24  Prefactor     .67495        .15213        .24807E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07044e-10
Minuit parameter uncertainties:
  1  35.0523
  2  9.1565e-05
  3  2.68492e-06
  4  6.53057
  5  9.78681
  6  14.2436
  7  0.991578
  8  7.07118
  9  19.9287
  10  0.000231629
  11  2.42752e-06
  12  1.32185e-06
  13  0.0001118
  14  2.1146e-06
  15  23.4245
  16  0.00641288
  17  0.000223139
  18  5.8065e-07
  19  41.6694
  20  4.02838e-06
  21  5.17178
  22  2.66556e-07
  23  0.257728
  24  0.152224
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.779e+01  2.342e+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:  6.749e-01  1.522e-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.559e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.15
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 4.32e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/19534/likelihoodResults_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.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) = 7387.21280533
delta logL = 0.0155774698624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7387.20235247
delta logL = 0.0260303247214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.072       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2910       1.0000          .0000       10.000    
     3 'Normalizat'    1.5684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67064       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7387.202     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      247 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.072        32.215        .70753E-04    .10100E-03
   2  Index         2.2909        .77560        .97818E-02    .48815E-04
   3  Normalizat    1.5684        .24784        .28105E-03   -.51210E-04
   4  Prefactor     .67064        .15041        .24878E-03   -.86964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.0718
  Index      = 2.2909
  Normalizat = 1.56843
  Prefactor  = 0.670641
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.202     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.072        31.052        .14151E-04   -1.4575    
   2  Index         2.2909        .74729        .39127E-03   -.57260    
   3  Normalizat    1.5684        .24768        .11242E-04   -.75873    
   4  Prefactor     .67064        .15038        .99511E-05   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29202e-11
Minuit parameter uncertainties:
  1  31.0675
  2  0.751281
  3  0.247874
  4  0.15047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19534': 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) = 7387.20235243
delta logL = 0.0260303714313

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.207e+01  3.107e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.291e+00  7.513e-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:  6.706e-01  1.505e-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.568e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.29 +/- 0.75
Photon Flux (Free Index): 4.48e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.74e-05

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/19534/cmap_HighResolution_480384001_480643201_4FGL_J2334.2+0736_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='1.72e-05', photon_flux_error='4.32e-08', dlogl='2.60e-02', energy_flux='1.54e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-29 23:47:56.573366', photon_index_error2='0.75', photon_index2='2.29', ts='2.15', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.74e-05', EG='1.56', time_epoch_completed='1632984476.57', return_code='0', job_id='19534', GAL2='0.67', EG2='1.57', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.72e-08', ts2='2.19', photon_index='2.47' WHERE bin_id='930' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:47:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 19534: <4FGL_J2334.2+0736_daily_bin930> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin930> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:19 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:20 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:20 2021
Terminated at Wed Sep 29 23:47:57 2021
Results reported at Wed Sep 29 23:47:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin930 353.557 7.602 480384001 480643201 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

