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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin360
RA = 353.557, Dec = 7.602
tmin = 332640001, tmax = 332899201
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='17153', job_status='RUN', time_executed='2021-09-29 23:29:16.290949', time_epoch_executed='1632983356.29' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17153/ft1_4FGL_J2334.2+0736_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17153/ft2_4FGL_J2334.2+0736_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17153/ft1_4FGL_J2334.2+0736_daily_bin360.fits outfile=/scratch/kocevski/17153/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin360.fits ra=353.557 dec=7.602 rad=12.0 tmin=332640001.0 tmax=332899201.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.36
user 3.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17153/ft1_filtered_4FGL_J2334.2+0736_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/17153/ft2_4FGL_J2334.2+0736_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/17153/ltcube_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.fits outfile=/scratch/kocevski/17153/expmap_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.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/17153/ltcube_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.fits
.....................!
real 190.15
user 185.11
sys 4.74

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/17153/ft1_filtered_4FGL_J2334.2+0736_daily_bin360.fits scfile=/scratch/kocevski/17153/ft2_4FGL_J2334.2+0736_daily_bin360.fits outfile=/scratch/kocevski/17153/cmap_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17153/ft1_filtered_4FGL_J2334.2+0736_daily_bin360.fits scfile=/scratch/kocevski/17153/ft2_4FGL_J2334.2+0736_daily_bin360.fits outfile=/scratch/kocevski/17153/cmap_HighResolution_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88773E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.460       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.505       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.084       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13172E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62946E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77294       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=   8415.805     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2805 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.766        .15819E-06** at limit **
   2  Prefactor     .10000E-03    6.2904        .88126E-08** at limit **
   3  Prefactor     13.746        24.462        .50127E-06   -.39953E-04
   4  Prefactor     .10000E-03    1.2150        .37900E-08** at limit **
   5  Prefactor     .10004E-03    10.271        .70928E-05** at limit **
   6  Prefactor     .10000E-03    21.209        .11972E-05** at limit **
   7  norm          1.8164        .97729       -.33567E-06   -.20175E-02
   8  Prefactor     .10000E-03    4.2142        .29855E-06** at limit **
   9  Prefactor     32.895        19.819        .23666E-06   -.62069E-04
  10  Prefactor     27.436        53.865       -.26023E-05   -.55664E-04
  11  norm          2.2096        7.4279       -.23593E-06    .12795E-03
  12  Prefactor     3.4905        5.1861        .27512E-06    .26553E-03
  13  Prefactor     14.311        243.37       -.96032E-05    .42387E-05
  14  Prefactor     .39926        34.113        .16881E-04   -.13936E-03
  15  Prefactor     33.507        20.962        .29652E-06   -.74134E-04
  16  norm          .10000E-03    7.1490       -.13627E-07** at limit **
  17  norm          .10000E-03    8.3934        .34603E-06** at limit **
  18  Prefactor     .10000E-03    1.5504        .38110E-06** at limit **
  19  Prefactor     85.055        42.957       -.91135E-06   -.13538E-03
  20  Prefactor     21.620        23.621        .17508E-06   -.13761E-03
  21  Prefactor     .10000E-03    5.8199        .49139E-05** at limit **
  22  Prefactor     .10000E-03    9.2558        .36592E-06** at limit **
  23  Normalizat    1.1818        .18574        .45375E-06   -.60262E-03
  24  Prefactor     .77323        .10781       -.17669E-05   -.17399E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7455
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.000100001
  norm       = 1.8164
  Prefactor  = 0.0001
  Prefactor  = 32.8947
  Prefactor  = 27.4362
  norm       = 2.20961
  Prefactor  = 3.4905
  Prefactor  = 14.3109
  Prefactor  = 0.399258
  Prefactor  = 33.5073
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.0548
  Prefactor  = 21.6201
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.18183
  Prefactor  = 0.773231
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.805     FROM HESSE     STATUS=OK           397 CALLS     3202 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.746        24.466        .10803E-03   -1.4966    
   4  Prefactor     .10000E-03    1.2173        .98753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    46.229        .39349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8164        .97185        .62217E-04   -1.5438    
   8  Prefactor     .10000E-03    4.2406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.895        19.824        .69866E-04   -1.4560    
  10  Prefactor     27.436        53.846        .76450E-04   -1.4660    
  11  norm          2.2096        7.2280        .27653E-03   -1.5411    
  12  Prefactor     3.4905        5.0762        .21648E-03   -1.5334    
  13  Prefactor     14.311        248.41        .10543E-03   -1.4951    
  14  Prefactor     .39926        46.524        .42419E-02   -1.5582    
  15  Prefactor     33.507        20.906        .69228E-04   -1.4550    
  16  norm          .10000E-03    7.1973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5802        .11127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.055        43.131        .43551E-04   -1.3861    
  20  Prefactor     21.620        23.666        .86155E-04   -1.4778    
  21  Prefactor     .10000E-03    22.778        .33410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.846        .53535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1818        .21048        .27983E-03   -.87166    
  24  Prefactor     .77323        .12587        .21544E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12364e-09
Minuit parameter uncertainties:
  1  7.94939e-05
  2  3.84173e-06
  3  24.4843
  4  1.70863e-06
  5  0.00269759
  6  0.000317871
  7  0.971857
  8  3.97871e-05
  9  19.8283
  10  53.9411
  11  7.2309
  12  5.07686
  13  119.833
  14  8.62556
  15  20.9102
  16  1.80174e-05
  17  1.04173e-05
  18  3.98067e-06
  19  43.1471
  20  23.6762
  21  6.09489e-05
  22  0.000657784
  23  0.21063
  24  0.125917
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.351e+01  2.091e+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.732e-01  1.259e-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.182e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.55
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.16e-05

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) = 8415.59830926
delta logL = 0.206997010286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8415.59786675
delta logL = 0.207439514652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1613       1.0000          .0000       10.000    
     3 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76825       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=   8415.598     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      266 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.025        610.87        .15640E-02    .61351E-05
   2  Index         2.1605        6.0682        .21831        .45860E-04
   3  Normalizat    1.1959        .11727        .62954E-01    .14769E-04
   4  Prefactor     .76823        .50581E-01    .43303E-01    .19805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0253
  Index      = 2.16046
  Normalizat = 1.1959
  Prefactor  = 0.768231
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.598     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.025        26.559        .62559E-04   -1.4426    
   2  Index         2.1605        .46797        .74525E-02   -.60396    
   3  Normalizat    1.1959        .19590        .27846E-03   -.86730    
   4  Prefactor     .76823        .12490        .21607E-03   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17921e-13
Minuit parameter uncertainties:
  1  26.5668
  2  0.468985
  3  0.196022
  4  0.124943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17153': 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) = 8415.5978635
delta logL = 0.207442764939

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.103e+01  2.657e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.160e+00  4.690e-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:  7.682e-01  1.249e-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.196e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.16 +/- 0.47
Photon Flux (Free Index): 4.74e-08 +/- 3.73e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.75e-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/17153/cmap_HighResolution_332640001_332899201_4FGL_J2334.2+0736_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.30e-05', photon_flux_error='3.85e-08', dlogl='2.07e-01', energy_flux='1.86e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-29 23:41:07.793890', photon_index_error2='0.47', photon_index2='2.16', ts='5.55', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.18', time_epoch_completed='1632984067.79', return_code='0', job_id='17153', GAL2='0.77', EG2='1.20', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.73e-08', ts2='5.93', photon_index='2.47' WHERE bin_id='360' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 17153: <4FGL_J2334.2+0736_daily_bin360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin360 353.557 7.602 332640001 332899201 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 :                                   707.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

