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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1017
RA = 353.557, Dec = 7.602
tmin = 502934401, tmax = 503193601
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='19665', job_status='RUN', time_executed='2021-09-29 23:37:46.336089', time_epoch_executed='1632983866.34' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19665/ft1_4FGL_J2334.2+0736_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19665/ft1_4FGL_J2334.2+0736_daily_bin1017.fits outfile=/scratch/kocevski/19665/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1017.fits ra=353.557 dec=7.602 rad=12.0 tmin=502934401.0 tmax=503193601.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.63
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19665/ft1_filtered_4FGL_J2334.2+0736_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/19665/ltcube_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.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/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits
.....................!
real 11.91
user 11.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19665/ft1_filtered_4FGL_J2334.2+0736_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/19665/ltcube_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.fits outfile=/scratch/kocevski/19665/expmap_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.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/19665/ltcube_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.fits
.....................!
real 192.12
user 186.97
sys 4.80

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/19665/ft1_filtered_4FGL_J2334.2+0736_daily_bin1017.fits scfile=/scratch/kocevski/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits outfile=/scratch/kocevski/19665/cmap_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19665/ft1_filtered_4FGL_J2334.2+0736_daily_bin1017.fits scfile=/scratch/kocevski/19665/ft2_4FGL_J2334.2+0736_daily_bin1017.fits outfile=/scratch/kocevski/19665/cmap_HighResolution_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.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.56
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
     7 'norm      '    .34578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.539       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91948       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21575E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2773       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7334       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.020       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1349       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91697       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=   7700.967     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2833 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9421        13.224       -.44917E-06   -.11840E-03
   2  Prefactor     11.179        12.772        .45970E-06    .12358E-03
   3  Prefactor     33.917        41.115        .71611E-06    .16367E-04
   4  Prefactor     .10000E-03    2.7521        .51098E-07** at limit **
   5  Prefactor     .10000E-03    3.8341       -.79953E-07** at limit **
   6  Prefactor     11.497        11.361        .63879E-07    .13198E-04
   7  norm          .34597        .88364        .51613E-06   -.13961E-03
   8  Prefactor     12.006        9.8222       -.11627E-06   -.12790E-03
   9  Prefactor     16.870        14.125       -.15181E-06   -.73532E-04
  10  Prefactor     62.611        55.186        .36127E-05    .26043E-03
  11  norm          6.5420        6.8768       -.84874E-06   -.26109E-03
  12  Prefactor     .91544        9.7939        .54223E-05   -.23906E-03
  13  Prefactor     .10000E-03    148.26       -.46796E-07** at limit **
  14  Prefactor     11.260        24.008       -.22385E-05   -.15225E-03
  15  Prefactor     .10000E-03    21.590       -.17329E-07** at limit **
  16  norm          .10000E-03    3.8005       -.36811E-07** at limit **
  17  norm          14.485        36.168        .23446E-05    .51694E-04
  18  Prefactor     6.0143        7.2960        .43607E-06   -.79655E-04
  19  Prefactor     .10166E-03    21.099       -.93161E-06** at limit **
  20  Prefactor     3.2773        26.426        .44193E-06   -.19779E-04
  21  Prefactor     9.7341        9.6127       -.19242E-06   -.20324E-03
  22  Prefactor     19.020        18.319       -.24106E-06   -.97540E-04
  23  Normalizat    1.1346        .21426       -.69463E-06   -.12913E-03
  24  Prefactor     .91703        .12766       -.58408E-06   -.13498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94211
  Prefactor  = 11.1789
  Prefactor  = 33.9171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4973
  norm       = 0.345971
  Prefactor  = 12.0063
  Prefactor  = 16.8701
  Prefactor  = 62.6106
  norm       = 6.54198
  Prefactor  = 0.915436
  Prefactor  = 0.0001
  Prefactor  = 11.2605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.4847
  Prefactor  = 6.01427
  Prefactor  = 0.000101664
  Prefactor  = 3.2773
  Prefactor  = 9.73413
  Prefactor  = 19.0202
  Normalizat = 1.13464
  Prefactor  = 0.91703
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.967     FROM HESSE     STATUS=OK           415 CALLS     3248 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9421        13.296        .16476E-03   -1.5220    
   2  Prefactor     11.179        12.801        .11982E-03   -1.5039    
   3  Prefactor     33.917        41.179        .68811E-04   -1.4543    
   4  Prefactor     .10000E-03    2.7701        .14217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8411        .16782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.497        11.364        .11815E-03   -1.5030    
   7  norm          .34597        .87213        .12392E-03   -1.5590    
   8  Prefactor     12.006        9.8130        .11559E-03   -1.5015    
   9  Prefactor     16.870        14.135        .97515E-04   -1.4886    
  10  Prefactor     62.611        57.378        .50741E-04   -1.4124    
  11  norm          6.5420        6.8602        .15691E-03   -1.5196    
  12  Prefactor     .91544        10.534        .50952E-03   -1.5517    
  13  Prefactor     .10000E-03    148.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.260        24.020        .11956E-03   -1.5037    
  15  Prefactor     .10000E-03    21.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8014        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.485        36.344        .10490E-03   -1.4947    
  18  Prefactor     6.0143        7.2233        .16374E-03   -1.5217    
  19  Prefactor     .10166E-03    23.502        .12347       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2773        26.426        .22368E-03   -1.5346    
  21  Prefactor     9.7341        9.6534        .12844E-03   -1.5084    
  22  Prefactor     19.020        18.372        .91837E-04   -1.4835    
  23  Normalizat    1.1346        .25105        .31767E-03   -.88647    
  24  Prefactor     .91703        .14894        .22043E-03   -.95549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08981e-09
Minuit parameter uncertainties:
  1  13.3028
  2  12.8044
  3  41.2139
  4  3.96615e-06
  5  6.30313e-06
  6  11.3664
  7  0.872158
  8  9.81429
  9  14.1377
  10  57.4287
  11  6.86101
  12  6.21162
  13  5.48313e-05
  14  24.0404
  15  1.1725e-05
  16  2.05112e-06
  17  36.3995
  18  7.22432
  19  0.0125106
  20  18.6234
  21  9.65495
  22  18.3776
  23  0.251319
  24  0.149001
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.173e-05  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:  9.170e-01  1.490e-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.135e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19665/likelihoodResults_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.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): 102
logL (Free Index) = 7700.96675463
delta logL = -0.000218668464186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7700.96653752
delta logL = -1.55320867634e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7404       1.0000          .0000       10.000    
     3 'Normalizat'    1.1346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91703       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=   7700.967     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      289 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10678E-03    7.8429        .18142E-01** at limit **
   2  Index         2.6197        8.6548        .50000        .26638E-04
   3  Normalizat    1.1346        .36412E-02    .31767E-03    .31779E-04
   4  Prefactor     .91703        .23117E-02    .22043E-03    .44510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106776
  Index      = 2.61973
  Normalizat = 1.13464
  Prefactor  = 0.91703
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.967     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10678E-03    270.35        .68876E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6197        8.4760        .50000       -.49616    
   3  Normalizat    1.1346        .21410E-01    .12707E-04   -.88647    
   4  Prefactor     .91703        .13593E-01    .88170E-05   -.95549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63507e-08
Minuit parameter uncertainties:
  1  0.0859914
  2  431.121
  3  0.02141
  4  0.0135926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19665': 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) = 7700.96653685
delta logL = -8.88519934961e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.068e-04  8.599e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.620e+00  4.311e+02  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:  9.170e-01  1.359e-02  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.135e+00  2.141e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

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/19665/cmap_HighResolution_502934401_503193601_4FGL_J2334.2+0736_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-29 23:50:13.101615', job_id='19665', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632984613.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-8.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1017' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 19665: <4FGL_J2334.2+0736_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1017 353.557 7.602 502934401 503193601 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 :                                   745.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

