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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin259
RA = 353.557, Dec = 7.602
tmin = 306460801, tmax = 306720001
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='16997', job_status='RUN', time_executed='2021-09-29 23:27:41.328186', time_epoch_executed='1632983261.33' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16997/ft1_4FGL_J2334.2+0736_daily_bin259.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16997/ft1_4FGL_J2334.2+0736_daily_bin259.fits outfile=/scratch/kocevski/16997/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin259.fits ra=353.557 dec=7.602 rad=12.0 tmin=306460801.0 tmax=306720001.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.51
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.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/16997/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin259.fits evtable="EVENTS" outfile="/scratch/kocevski/16997/ft1_filtered_4FGL_J2334.2+0736_daily_bin259.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/16997/ft1_filtered_4FGL_J2334.2+0736_daily_bin259.fits" evtable="EVENTS" scfile=/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits sctable="SC_DATA" outfile=/scratch/kocevski/16997/ltcube_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.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/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits
.....................!
real 15.20
user 14.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16997/ft1_filtered_4FGL_J2334.2+0736_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits sctable="SC_DATA" expcube=/scratch/kocevski/16997/ltcube_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.fits outfile=/scratch/kocevski/16997/expmap_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.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/16997/ltcube_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.fits
.....................!
real 191.37
user 185.77
sys 5.28

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/16997/ft1_filtered_4FGL_J2334.2+0736_daily_bin259.fits scfile=/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits outfile=/scratch/kocevski/16997/cmap_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16997/ft1_filtered_4FGL_J2334.2+0736_daily_bin259.fits scfile=/scratch/kocevski/16997/ft2_4FGL_J2334.2+0736_daily_bin259.fits outfile=/scratch/kocevski/16997/cmap_HighResolution_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    137.27       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.219       1.0000         .10000E-03   10000.    
    11 'norm      '    8.7360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.606       1.0000         .10000E-03   10000.    
    16 'norm      '    23.955       1.0000         .10000E-03   10000.    
    17 'norm      '    22.489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8260       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71193       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1186       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=   6553.311     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2658 TOTAL
                     EDM=   .94E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1217        21.630        .12130E-05   -.45869E-05
   2  Prefactor     137.26        62.901        .57248E-06   -.21365E-05
   3  Prefactor     .10000E-03    22.500        .22462E-05** at limit **
   4  Prefactor     5.2353        9.6071        .25158E-05   -.31147E-05
   5  Prefactor     .10000E-03    10.140       -.34664E-06** at limit **
   6  Prefactor     .10000E-03    26.868       -.18408E-05** at limit **
   7  norm          2.5147        1.1591       -.16119E-07    .45390E-05
   8  Prefactor     .10000E-03    5.0901       -.12419E-07** at limit **
   9  Prefactor     .10000E-03    16.911       -.19248E-05** at limit **
  10  Prefactor     27.220        27.641        .63935E-07    .16999E-05
  11  norm          8.7353        8.9422        .76743E-07   -.38213E-05
  12  Prefactor     .10000E-03    5.3649       -.20612E-09** at limit **
  13  Prefactor     .10000E-03    93.893       -.78167E-06** at limit **
  14  Prefactor     .10000E-03    8.7582       -.46660E-06** at limit **
  15  Prefactor     28.607        25.839        .60446E-06   -.37742E-05
  16  norm          23.951        17.005        .14385E-06    .20756E-05
  17  norm          22.461        36.619        .23645E-05   -.97623E-06
  18  Prefactor     7.8255        8.2135        .62830E-06    .14484E-05
  19  Prefactor     5.6712        78.124       -.20079E-05   -.30065E-05
  20  Prefactor     .10000E-03    19.604        .10108E-05** at limit **
  21  Prefactor     2.5333        5.8331        .78276E-06    .24749E-05
  22  Prefactor     .10000E-03    12.054        .76435E-06** at limit **
  23  Normalizat    .71146        .23315       -.15889E-05   -.21466E-06
  24  Prefactor     1.1190        .14525        .10265E-06    .12079E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.12169
  Prefactor  = 137.259
  Prefactor  = 0.0001
  Prefactor  = 5.23527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.22
  norm       = 8.73526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6071
  norm       = 23.9515
  norm       = 22.4613
  Prefactor  = 7.82549
  Prefactor  = 5.67123
  Prefactor  = 0.0001
  Prefactor  = 2.53329
  Prefactor  = 0.0001
  Normalizat = 0.711462
  Prefactor  = 1.11898
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.311     FROM HESSE     STATUS=OK           399 CALLS     3057 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1217        21.747        .14930E-03   -1.5174    
   2  Prefactor     137.26        62.854        .34378E-04   -1.3359    
   3  Prefactor     .10000E-03    22.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2353        9.6023        .87757E-03   -1.5250    
   5  Prefactor     .10000E-03    10.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5147        1.1591        .57295E-04   -1.5391    
   8  Prefactor     .10000E-03    5.1012        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.220        27.641        .76788E-04   -1.4664    
  11  norm          8.7353        8.9271        .13562E-03   -1.5117    
  12  Prefactor     .10000E-03    5.3975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    93.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.607        25.816        .74907E-04   -1.4638    
  16  norm          23.951        17.005        .81843E-04   -1.4729    
  17  norm          22.461        36.621        .84463E-04   -1.4760    
  18  Prefactor     7.8255        8.2208        .71668E-03   -1.5148    
  19  Prefactor     5.6712        78.088        .16878E-03   -1.5232    
  20  Prefactor     .10000E-03    19.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5333        5.8215        .25653E-03   -1.5390    
  22  Prefactor     .10000E-03    12.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71146        .26124        .37640E-03   -1.0344    
  24  Prefactor     1.1190        .16427        .20396E-03   -.88862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22909e-11
Minuit parameter uncertainties:
  1  21.7711
  2  62.8846
  3  2.12159e-06
  4  9.60514
  5  1.15293e-06
  6  4.80028e-05
  7  1.15911
  8  5.91025e-07
  9  1.56492e-05
  10  27.654
  11  8.92846
  12  1.70566e-07
  13  1.69083e-05
  14  6.92468e-05
  15  25.826
  16  17.0083
  17  36.6578
  18  8.22197
  19  42.155
  20  1.18721e-05
  21  5.82276
  22  5.18e-07
  23  0.261703
  24  0.164346
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.861e+01  2.583e+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.119e+00  1.643e-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:  7.115e-01  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/16997/likelihoodResults_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.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) = 6553.29714024
delta logL = 0.0135310984215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6553.29079786
delta logL = 0.0198734764645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6548       1.0000          .0000       10.000    
     3 'Normalizat'    .69921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1232       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=   6553.291     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      251 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.529        31.282        .79284E-04   -.20362E-04
   2  Index         2.6559        1.0226        .87938E-02    .47732E-03
   3  Normalizat    .69913        .25172        .37941E-03    .10278E-04
   4  Prefactor     1.1233        .16331        .20360E-03    .33380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5286
  Index      = 2.65587
  Normalizat = 0.699126
  Prefactor  = 1.12326
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.291     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.529        28.678        .31714E-05   -1.4697    
   2  Index         2.6559        .93662        .17588E-02   -.48796    
   3  Normalizat    .69913        .25042        .15176E-04   -1.0393    
   4  Prefactor     1.1233        .16297        .40720E-04   -.88726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83332e-12
Minuit parameter uncertainties:
  1  28.6937
  2  0.943788
  3  0.250826
  4  0.163044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16997': 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) = 6553.29079661
delta logL = 0.0198747282448

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.553e+01  2.869e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.656e+00  9.438e-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.123e+00  1.630e-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.991e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.66 +/- 0.94
Photon Flux (Free Index): 6.37e-08 +/- 7.40e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/16997/cmap_HighResolution_306460801_306720001_4FGL_J2334.2+0736_daily_bin259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='1.59e-05', photon_flux_error='4.76e-08', dlogl='1.99e-02', energy_flux='1.58e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-09-29 23:39:10.904034', photon_index_error2='0.94', photon_index2='2.66', ts='2.85', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.32e-05', EG='0.71', time_epoch_completed='1632983950.9', return_code='0', job_id='16997', GAL2='1.12', EG2='0.70', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.40e-08', ts2='2.93', photon_index='2.47' WHERE bin_id='259' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:39:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 16997: <4FGL_J2334.2+0736_daily_bin259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin259 353.557 7.602 306460801 306720001 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 :                                   682.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

