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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1082
RA = 353.557, Dec = 7.602
tmin = 519782401, tmax = 520041601
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='19762', job_status='RUN', time_executed='2021-09-29 23:38:13.032740', time_epoch_executed='1632983893.03' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19762/ft1_4FGL_J2334.2+0736_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19762/ft2_4FGL_J2334.2+0736_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19762/ft1_4FGL_J2334.2+0736_daily_bin1082.fits outfile=/scratch/kocevski/19762/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1082.fits ra=353.557 dec=7.602 rad=12.0 tmin=519782401.0 tmax=520041601.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.55
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19762/ft1_filtered_4FGL_J2334.2+0736_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/19762/ft2_4FGL_J2334.2+0736_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/19762/ltcube_519782401_520041601_4FGL_J2334.2+0736_daily_bin1082.fits outfile=/scratch/kocevski/19762/expmap_519782401_520041601_4FGL_J2334.2+0736_daily_bin1082.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/19762/ltcube_519782401_520041601_4FGL_J2334.2+0736_daily_bin1082.fits
.....................!
real 191.49
user 185.88
sys 5.30

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8041       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1370       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28991E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.116       1.0000         .10000E-03   10000.    
    16 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5312       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.356       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74630       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0781       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=   8026.435     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2692 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1339       -.12515E-05** at limit **
   2  Prefactor     .10000E-03    5.0355       -.72584E-09** at limit **
   3  Prefactor     46.461        34.136       -.21533E-05   -.17474E-03
   4  Prefactor     .10000E-03    1.3660       -.32690E-07** at limit **
   5  Prefactor     .10000E-03    6.5586       -.10690E-05** at limit **
   6  Prefactor     5.8010        8.9872        .64960E-06   -.39006E-03
   7  norm          1.5675        .86817        .58106E-08   -.62584E-04
   8  Prefactor     .10000E-03    9.5379        .12067E-05** at limit **
   9  Prefactor     8.1368        14.434        .81280E-06   -.28598E-03
  10  Prefactor     .10000E-03    94.812       -.78939E-06** at limit **
  11  norm          .10001E-03    4.0602       -.44142E-06** at limit **
  12  Prefactor     .10000E-03    2.8221       -.26626E-07** at limit **
  13  Prefactor     .10000E-03    50.014       -.21012E-05** at limit **
  14  Prefactor     17.424        9.5397        .56536E-07   -.24245E-03
  15  Prefactor     24.137        22.532        .43369E-06    .64758E-04
  16  norm          .10000E-03    11.119       -.20076E-05** at limit **
  17  norm          .10000E-03    6.6787        .21552E-05** at limit **
  18  Prefactor     .10000E-03    .90275       -.61766E-07** at limit **
  19  Prefactor     .10000E-03    51.234        .29163E-05** at limit **
  20  Prefactor     .10000E-03    13.678        .16723E-05** at limit **
  21  Prefactor     7.5312        5.6098        .57879E-06   -.10632E-02
  22  Prefactor     14.352        17.676        .22212E-06    .22972E-04
  23  Normalizat    .74624        .18132        .12096E-06    .64941E-04
  24  Prefactor     1.0781        .11690        .45757E-07    .14487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.4615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80098
  norm       = 1.56752
  Prefactor  = 0.0001
  Prefactor  = 8.13676
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.4241
  Prefactor  = 24.1371
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.53123
  Prefactor  = 14.3524
  Normalizat = 0.746245
  Prefactor  = 1.07815
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.435     FROM HESSE     STATUS=OK           391 CALLS     3083 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.461        34.673        .58818E-04   -1.4344    
   4  Prefactor     .10000E-03    1.3694        .10226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8010        9.5075        .83353E-03   -1.5226    
   7  norm          1.5675        .86074        .59670E-04   -1.5458    
   8  Prefactor     .10000E-03    9.6978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1368        15.297        .70275E-03   -1.5137    
  10  Prefactor     .10000E-03    95.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    22.226        .34226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8490        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.424        9.6082        .47964E-03   -1.4873    
  15  Prefactor     24.137        22.364        .81570E-04   -1.4725    
  16  norm          .10000E-03    11.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.8146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .90489        .83104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5312        6.6936        .73068E-03   -1.5159    
  22  Prefactor     14.352        17.747        .10571E-03   -1.4950    
  23  Normalizat    .74624        .20692        .33540E-03   -1.0209    
  24  Prefactor     1.0781        .13346        .18948E-03   -.90168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87339e-09
Minuit parameter uncertainties:
  1  7.61579e-05
  2  3.55997e-08
  3  34.6885
  4  9.75487e-07
  5  5.65308e-05
  6  9.50998
  7  0.860746
  8  7.66904e-05
  9  15.3043
  10  0.000211852
  11  0.000780187
  12  1.11669e-06
  13  0.000328219
  14  9.609
  15  22.3714
  16  0.000144199
  17  0.000122008
  18  1.71283e-06
  19  0.000398373
  20  0.000120357
  21  6.69426
  22  17.7539
  23  0.20714
  24  0.133505
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.414e+01  2.237e+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.078e+00  1.335e-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.462e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/19762/likelihoodResults_519782401_520041601_4FGL_J2334.2+0736_daily_bin1082.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) = 8026.41488464
delta logL = 0.0197054258806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8026.40675342
delta logL = 0.0278366389293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.599       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3291       1.0000          .0000       10.000    
     3 'Normalizat'    .75131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       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=   8026.407     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      264 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.603        29.011        .76258E-04    .23108E-04
   2  Index         2.3286        .60204        .89207E-02    .32673E-03
   3  Normalizat    .75134        .19822        .33434E-03   -.82696E-04
   4  Prefactor     1.0758        .13310        .18966E-03   -.10841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6033
  Index      = 2.3286
  Normalizat = 0.751337
  Prefactor  = 1.07578
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.407     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.603        28.268        .30503E-05   -1.4657    
   2  Index         2.3286        .58660        .17841E-02   -.56366    
   3  Normalizat    .75134        .19824        .13374E-04   -1.0190    
   4  Prefactor     1.0758        .13312        .37932E-04   -.90244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20403e-11
Minuit parameter uncertainties:
  1  28.2818
  2  0.588496
  3  0.198434
  4  0.133163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19762': 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) = 8026.40675299
delta logL = 0.0278370706983

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.760e+01  2.828e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.329e+00  5.885e-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.076e+00  1.332e-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.513e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.33 +/- 0.59
Photon Flux (Free Index): 4.08e-08 +/- 4.18e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.51e-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/19762/cmap_HighResolution_519782401_520041601_4FGL_J2334.2+0736_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.48e-05', photon_flux_error='4.12e-08', dlogl='2.78e-02', energy_flux='1.34e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-29 23:50:28.426948', photon_index_error2='0.59', photon_index2='2.33', ts='1.69', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.51e-05', EG='0.75', time_epoch_completed='1632984628.43', return_code='0', job_id='19762', GAL2='1.08', EG2='0.75', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.18e-08', ts2='1.74', photon_index='2.47' WHERE bin_id='1082' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:50:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 19762: <4FGL_J2334.2+0736_daily_bin1082> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1082> 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) <bullet0088>, 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:50:29 2021
Results reported at Wed Sep 29 23:50:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1082 353.557 7.602 519782401 520041601 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 :                                   733.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            889 sec.

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

