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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1085
RA = 353.557, Dec = 7.602
tmin = 520560001, tmax = 520819201
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='19766', job_status='RUN', time_executed='2021-09-29 23:38:15.055516', time_epoch_executed='1632983895.06' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19766/ft1_4FGL_J2334.2+0736_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits


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

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

Done.
real 5.21
user 4.94
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/19766/ltcube_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.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/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits
.....................!
real 11.89
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/19766/ltcube_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.fits outfile=/scratch/kocevski/19766/expmap_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.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/19766/ltcube_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.fits
.....................!
real 190.38
user 185.13
sys 4.95

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/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits scfile=/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits outfile=/scratch/kocevski/19766/cmap_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits scfile=/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits outfile=/scratch/kocevski/19766/cmap_HighResolution_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.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/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/19766/ft2_4FGL_J2334.2+0736_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19766/Model_4FGL_J2334.2+0736_daily_bin1085.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/19766/ft1_filtered_4FGL_J2334.2+0736_daily_bin1085.fits.....................!
real 57.73
user 56.42
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3126       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.992       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.491       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.254       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.570       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4115       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99131       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72888       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=   5054.111     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2660 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5960        11.449        .26077E-05   -.20718E-03
   2  Prefactor     .10000E-03    6.7873        .34648E-06** at limit **
   3  Prefactor     14.384        32.650       -.24797E-05   -.14680E-03
   4  Prefactor     .10000E-03    2.2901        .26841E-08** at limit **
   5  Prefactor     .10000E-03    3.6791        .37489E-07** at limit **
   6  Prefactor     .10000E-03    7.2982       -.15721E-06** at limit **
   7  norm          1.3127        .92074        .26104E-07    .98527E-05
   8  Prefactor     .10000E-03    5.7197        .12434E-07** at limit **
   9  Prefactor     10.886        20.677        .13561E-05   -.66866E-04
  10  Prefactor     .10000E-03    30.083       -.66108E-07** at limit **
  11  norm          16.996        11.656        .40701E-08    .43769E-04
  12  Prefactor     .10000E-03    2.8271       -.66405E-08** at limit **
  13  Prefactor     .10000E-03    67.166       -.39579E-06** at limit **
  14  Prefactor     .10000E-03    5.0200        .17280E-06** at limit **
  15  Prefactor     17.497        35.669        .10072E-05    .63543E-04
  16  norm          .10000E-03    12.584       -.69504E-06** at limit **
  17  norm          .10000E-03    11.782        .82825E-06** at limit **
  18  Prefactor     4.2214        4.1349        .18988E-06   -.18461E-04
  19  Prefactor     25.246        28.346       -.10178E-05   -.12075E-03
  20  Prefactor     12.577        26.217        .90686E-06    .66901E-04
  21  Prefactor     9.4123        8.8526        .68723E-06   -.15842E-03
  22  Prefactor     .10000E-03    8.6402       -.14781E-06** at limit **
  23  Normalizat    .99099        .21069        .85192E-07    .23682E-05
  24  Prefactor     .72909        .12754       -.38780E-06    .57171E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.59597
  Prefactor  = 0.0001
  Prefactor  = 14.3838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31267
  Prefactor  = 0.0001
  Prefactor  = 10.8863
  Prefactor  = 0.0001
  norm       = 16.9955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4966
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22143
  Prefactor  = 25.2462
  Prefactor  = 12.5765
  Prefactor  = 9.41232
  Prefactor  = 0.0001
  Normalizat = 0.990994
  Prefactor  = 0.729091
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.111     FROM HESSE     STATUS=OK           393 CALLS     3053 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5960        11.803        .84925E-03   -1.5235    
   2  Prefactor     .10000E-03    6.8125        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.384        34.182        .10556E-03   -1.4949    
   4  Prefactor     .10000E-03    2.2980        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6825        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3127        .90925        .54961E-04   -1.5479    
   8  Prefactor     .10000E-03    5.7332        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.886        20.796        .60714E-03   -1.5048    
  10  Prefactor     .10000E-03    30.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.996        11.626        .97163E-04   -1.4883    
  12  Prefactor     .10000E-03    2.8388        .11667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0444        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.497        35.707        .95765E-04   -1.4871    
  16  norm          .10000E-03    12.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2214        4.1255        .13599E-03   -1.5297    
  19  Prefactor     25.246        28.819        .79713E-04   -1.4703    
  20  Prefactor     12.577        26.334        .11298E-03   -1.4999    
  21  Prefactor     9.4123        8.9090        .65317E-03   -1.5094    
  22  Prefactor     .10000E-03    8.6842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99099        .24141        .27349E-03   -.93333    
  24  Prefactor     .72909        .14532        .20006E-03   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77692e-10
Minuit parameter uncertainties:
  1  11.8079
  2  3.78762e-05
  3  34.2289
  4  2.14431e-08
  5  4.63859e-06
  6  1.19034e-05
  7  0.909255
  8  7.3952e-06
  9  20.8098
  10  1.37549e-05
  11  11.6279
  12  3.87884e-06
  13  0.000143536
  14  1.10981e-05
  15  35.7508
  16  0.00010271
  17  0.000110359
  18  4.1258
  19  28.8345
  20  26.3582
  21  8.91026
  22  2.08615e-05
  23  0.241674
  24  0.145395
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.750e+01  3.575e+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.291e-01  1.454e-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:  9.910e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
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/19766/likelihoodResults_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.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) = 5053.40173961
delta logL = 0.708968096414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.38269244
delta logL = 0.728015259916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0431       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8807       1.0000          .0000       10.000    
     3 'Normalizat'    .93314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75046       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=   5053.383     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      297 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0376        69.406        .50134E-02    .76971E-03
   2  Index         3.8813        3.0877        .13185        .20308E-03
   3  Normalizat    .93315        .63537E-01    .45324E-01    .28729E-04
   4  Prefactor     .75046        .40097E-01    .43069E-01    .43645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03765
  Index      = 3.88131
  Normalizat = 0.933148
  Prefactor  = 0.750464
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.383     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0376        136.88        .11295E-03   -1.5306    
   2  Index         3.8813        6.9203        .46415E-02   -.22565    
   3  Normalizat    .93315        .22234        .28035E-03   -.95305    
   4  Prefactor     .75046        .14403        .19726E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03884e-09
Minuit parameter uncertainties:
  1  47.1343
  2  5.93303
  3  0.222558
  4  0.144101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19766': 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) = 5053.38269232
delta logL = 0.728015387311

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.038e+00  4.713e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.881e+00  5.933e+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.505e-01  1.441e-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:  9.331e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 353.557 7.602
Photon Index (Free Index): 3.88 +/- 5.93
Photon Flux (Free Index): 9.34e-08 +/- 8.14e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.26e-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/19766/cmap_HighResolution_520560001_520819201_4FGL_J2334.2+0736_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='7.28e-01', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-09-29 23:48:01.834474', photon_index_error2='5.93', photon_index2='3.88', ts='0.35', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.26e-05', EG='0.99', time_epoch_completed='1632984481.83', return_code='0', job_id='19766', GAL2='0.75', EG2='0.93', return_code2='102', photon_flux_error2='8.14e-08', ts2='1.98', photon_index='2.47' WHERE bin_id='1085' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:48:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 19766: <4FGL_J2334.2+0736_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1085 353.557 7.602 520560001 520819201 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 :                                   584.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

