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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1291
RA = 353.557, Dec = 7.602
tmin = 573955201, tmax = 574214401
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='21103', job_status='RUN', time_executed='2021-09-29 23:42:33.328238', time_epoch_executed='1632984153.33' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21103/ft1_4FGL_J2334.2+0736_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21103/ft2_4FGL_J2334.2+0736_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21103/ft1_4FGL_J2334.2+0736_daily_bin1291.fits outfile=/scratch/kocevski/21103/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1291.fits ra=353.557 dec=7.602 rad=12.0 tmin=573955201.0 tmax=574214401.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.60
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21103/ft1_filtered_4FGL_J2334.2+0736_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/21103/ft2_4FGL_J2334.2+0736_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/21103/ltcube_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.fits outfile=/scratch/kocevski/21103/expmap_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.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/21103/ltcube_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.fits
.....................!
real 190.56
user 185.00
sys 5.18

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/21103/ft1_filtered_4FGL_J2334.2+0736_daily_bin1291.fits scfile=/scratch/kocevski/21103/ft2_4FGL_J2334.2+0736_daily_bin1291.fits outfile=/scratch/kocevski/21103/cmap_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21103/ft1_filtered_4FGL_J2334.2+0736_daily_bin1291.fits scfile=/scratch/kocevski/21103/ft2_4FGL_J2334.2+0736_daily_bin1291.fits outfile=/scratch/kocevski/21103/cmap_HighResolution_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.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.58
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14546E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.554       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.737       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.167       1.0000         .10000E-03   10000.    
    11 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2192       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1436.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.141       1.0000         .10000E-03   10000.    
    16 'norm      '    13.017       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5395       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24363E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80452       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0406       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=   6575.050     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     3365 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.463        17.112        .18785E-06   -.92903E-06
   2  Prefactor     12.300        13.435        .24589E-07   -.11455E-04
   3  Prefactor     44.514        49.888       -.11790E-05    .14007E-04
   4  Prefactor     .10040E-03    5.4169        .35872E-05** at limit **
   5  Prefactor     .10000E-03    3.2851        .34811E-07** at limit **
   6  Prefactor     11.558        23.982        .55565E-06    .54095E-05
   7  norm          7.6445        2.2656        .82553E-07   -.68550E-04
   8  Prefactor     11.736        14.064       -.13513E-05   -.49269E-04
   9  Prefactor     .10000E-03    5.8600        .11884E-07** at limit **
  10  Prefactor     33.168        42.890        .52856E-07   -.73113E-06
  11  norm          .10000E-03    5.3743       -.39387E-06** at limit **
  12  Prefactor     3.2187        7.1204        .61775E-05    .36316E-03
  13  Prefactor     1436.1        537.92       -.76575E-06   -.77504E-05
  14  Prefactor     20.509        18.873       -.27780E-06   -.17247E-03
  15  Prefactor     27.114        33.420        .16531E-05   -.44892E-04
  16  norm          13.019        14.686       -.16375E-06   -.76625E-05
  17  norm          .10000E-03    29.487        .43521E-05** at limit **
  18  Prefactor     3.5396        6.2098       -.77475E-06   -.16869E-03
  19  Prefactor     .10000E-03    24.474       -.15733E-05** at limit **
  20  Prefactor     .10000E-03    76.569       -.10109E-05** at limit **
  21  Prefactor     .10000E-03    10.887       -.54308E-07** at limit **
  22  Prefactor     .10000E-03    13.755        .88995E-07** at limit **
  23  Normalizat    .80445        .22467       -.10300E-05   -.43253E-04
  24  Prefactor     1.0406        .13845       -.19009E-06   -.17881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4632
  Prefactor  = 12.3
  Prefactor  = 44.5143
  Prefactor  = 0.000100405
  Prefactor  = 0.0001
  Prefactor  = 11.5575
  norm       = 7.64448
  Prefactor  = 11.736
  Prefactor  = 0.0001
  Prefactor  = 33.1678
  norm       = 0.0001
  Prefactor  = 3.21867
  Prefactor  = 1436.07
  Prefactor  = 20.5093
  Prefactor  = 27.1145
  norm       = 13.0189
  norm       = 0.0001
  Prefactor  = 3.53963
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804447
  Prefactor  = 1.04056
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.050     FROM HESSE     STATUS=OK           407 CALLS     3772 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.463        17.126        .98712E-04   -1.4896    
   2  Prefactor     12.300        13.436        .11422E-03   -1.5006    
   3  Prefactor     44.514        49.926        .60098E-04   -1.4373    
   4  Prefactor     .10040E-03    4.0818        .54216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2883        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.558        23.976        .11785E-03   -1.5028    
   7  norm          7.6445        2.2694        .60278E-04   -1.5155    
   8  Prefactor     11.736        14.029        .11693E-03   -1.5023    
   9  Prefactor     .10000E-03    5.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.168        42.883        .69579E-04   -1.4555    
  11  norm          .10000E-03    5.4099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2187        7.2183        .11289E-02   -1.5349    
  13  Prefactor     1436.1        537.80        .57031E-04   -.79346    
  14  Prefactor     20.509        18.792        .88444E-04   -1.4802    
  15  Prefactor     27.114        33.355        .76897E-04   -1.4666    
  16  norm          13.019        14.687        .11102E-03   -1.4986    
  17  norm          .10000E-03    29.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5396        6.1729        .21485E-03   -1.5332    
  19  Prefactor     .10000E-03    24.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    78.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80445        .25392        .35962E-03   -.99904    
  24  Prefactor     1.0406        .15739        .20712E-03   -.91390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37119e-09
Minuit parameter uncertainties:
  1  17.1313
  2  13.4389
  3  49.9729
  4  0.00257054
  5  2.10789e-06
  6  23.9958
  7  2.2694
  8  14.0329
  9  1.9452e-06
  10  42.923
  11  7.04043e-05
  12  7.22028
  13  539.935
  14  18.797
  15  33.3778
  16  14.6913
  17  0.000211091
  18  6.17396
  19  1.34165e-05
  20  0.00112714
  21  9.15237e-06
  22  1.86e-05
  23  0.254292
  24  0.15746
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.711e+01  3.338e+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.041e+00  1.575e-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:  8.044e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 6.15e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.85e-05

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

Saving results to:
/scratch/kocevski/21103/likelihoodResults_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.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) = 6573.12209245
delta logL = 1.92768293542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6573.04758021
delta logL = 2.00219517938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96254       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9068       1.0000          .0000       10.000    
     3 'Normalizat'    .66468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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=   6573.048     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      281 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96001        6.8858        .89511E-02   -.22350E-04
   2  Index         4.9081        2.2556        .89359E-01    .10814E-03
   3  Normalizat    .66470        .66791E-01    .88414E-01   -.26019E-05
   4  Prefactor     1.1009        .43276E-01    .37552E-01    .51222E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.960015
  Index      = 4.90815
  Normalizat = 0.664701
  Prefactor  = 1.1009
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.048     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96001        12.798        .40245E-04   -1.5512    
   2  Index         4.9081        3.2870        .35875E-02   -.18372E-01
   3  Normalizat    .66470        .22330        .39167E-03   -1.0530    
   4  Prefactor     1.1009        .14383        .20188E-03   -.89438    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59774e-10
Minuit parameter uncertainties:
  1  7.01184
  2  3.58696
  3  0.223602
  4  0.143881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21103': 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) = 6573.04757997
delta logL = 2.00219542223

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  9.600e-01  7.012e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  4.908e+00  3.587e+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:  1.101e+00  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.647e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 353.557 7.602
Photon Index (Free Index): 4.91 +/- 3.59
Photon Flux (Free Index): 1.68e-07 +/- 8.91e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.47e-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/21103/cmap_HighResolution_573955201_574214401_4FGL_J2334.2+0736_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='2.26e-05', photon_flux_error='6.15e-08', dlogl='2.00e+00', energy_flux='1.50e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-29 23:56:06.349654', photon_index_error2='3.59', photon_index2='4.91', ts='1.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.47e-05', EG='0.80', time_epoch_completed='1632984966.35', return_code='0', job_id='21103', GAL2='1.10', EG2='0.66', return_code2='102', energy_flux_error='1.85e-05', photon_flux_error2='8.91e-08', ts2='5.74', photon_index='2.47' WHERE bin_id='1291' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 21103: <4FGL_J2334.2+0736_daily_bin1291> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1291> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:40:27 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:40:28 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:40:28 2021
Terminated at Wed Sep 29 23:56:06 2021
Results reported at Wed Sep 29 23:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1291 353.557 7.602 573955201 574214401 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 :                                   714.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

