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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin508
RA = 353.557, Dec = 7.602
tmin = 371001601, tmax = 371260801
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='17378', job_status='RUN', time_executed='2021-09-29 23:26:42.470181', time_epoch_executed='1632983202.47' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17378

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17378/ft1_4FGL_J2334.2+0736_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17378/ft1_4FGL_J2334.2+0736_daily_bin508.fits outfile=/scratch/kocevski/17378/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin508.fits ra=353.557 dec=7.602 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.48
user 6.18
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.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/17378/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.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.53
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/17378/ltcube_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits outfile=/scratch/kocevski/17378/expmap_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.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/17378/ltcube_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits
.....................!
real 189.65
user 185.05
sys 4.23

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/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits scfile=/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits outfile=/scratch/kocevski/17378/cmap_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.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/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits scfile=/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits outfile=/scratch/kocevski/17378/cmap_HighResolution_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.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/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17378/Model_4FGL_J2334.2+0736_daily_bin508.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/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits....................!
real 62.85
user 61.42
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits', '/scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits', expMap='/scratch/kocevski/17378/expmap_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits', expCube='/scratch/kocevski/17378/ltcube_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17378/Model_4FGL_J2334.2+0736_daily_bin508.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/17378/ft1_filtered_4FGL_J2334.2+0736_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/17378/ft2_4FGL_J2334.2+0736_daily_bin508.fits
Exposure map: /scratch/kocevski/17378/expmap_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits
Exposure cube: /scratch/kocevski/17378/ltcube_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17378/Model_4FGL_J2334.2+0736_daily_bin508.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5435.53292075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.245       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0247       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6454       1.0000         .10000E-03   10000.    
    16 'norm      '    .42501       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    105.65       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13783E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.669       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63753       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86734       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=   5435.480     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2811 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.075        .20649E-05** at limit **
   2  Prefactor     .10000E-03    5.6600       -.10659E-07** at limit **
   3  Prefactor     95.842        50.211        .20809E-05    .22642E-04
   4  Prefactor     .10000E-03    1.9665        .30085E-08** at limit **
   5  Prefactor     .10000E-03    2.8441       -.53516E-07** at limit **
   6  Prefactor     13.248        21.418        .59822E-06    .44159E-04
   7  norm          1.7392        1.2871       -.12213E-07    .57973E-04
   8  Prefactor     .10000E-03    14.646        .33866E-07** at limit **
   9  Prefactor     25.464        16.671        .17993E-06   -.38384E-04
  10  Prefactor     .10000E-03    76.991       -.98816E-05** at limit **
  11  norm          27.057        14.613       -.12687E-08   -.55266E-04
  12  Prefactor     6.0310        10.849        .17028E-06   -.63109E-04
  13  Prefactor     .10000E-03    138.29        .11680E-04** at limit **
  14  Prefactor     15.759        23.482       -.57104E-05    .69243E-04
  15  Prefactor     7.6443        28.116        .55574E-06   -.27841E-05
  16  norm          .41885        8.9960        .46711E-06   -.66225E-04
  17  norm          9.4654        30.877       -.30793E-05    .92000E-05
  18  Prefactor     2.5438        7.9687        .11199E-04    .18682E-03
  19  Prefactor     105.62        47.761        .16213E-05    .75195E-04
  20  Prefactor     .10000E-03    9.3970       -.13569E-06** at limit **
  21  Prefactor     .10010E-03    4.1920        .33171E-05** at limit **
  22  Prefactor     23.664        22.574       -.93787E-06   -.60251E-04
  23  Normalizat    .63753        .21995       -.25582E-05   -.16787E-03
  24  Prefactor     .86732        .13014        .72154E-07   -.41470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 95.8418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2478
  norm       = 1.7392
  Prefactor  = 0.0001
  Prefactor  = 25.4643
  Prefactor  = 0.0001
  norm       = 27.0566
  Prefactor  = 6.03103
  Prefactor  = 0.0001
  Prefactor  = 15.7589
  Prefactor  = 7.64433
  norm       = 0.41885
  norm       = 9.46537
  Prefactor  = 2.54384
  Prefactor  = 105.625
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 23.6637
  Normalizat = 0.637532
  Prefactor  = 0.867325
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.480     FROM HESSE     STATUS=OK           403 CALLS     3214 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6605        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     95.842        50.245        .41050E-04   -1.3747    
   4  Prefactor     .10000E-03    1.9745        .10097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8458        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.248        21.432        .11006E-03   -1.4980    
   7  norm          1.7392        1.2755        .68023E-04   -1.5444    
   8  Prefactor     .10000E-03    14.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.464        16.669        .79392E-04   -1.4698    
  10  Prefactor     .10000E-03    77.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.057        14.441        .77005E-04   -1.4667    
  12  Prefactor     6.0310        10.716        .16358E-03   -1.5217    
  13  Prefactor     .10000E-03    138.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.759        23.483        .10078E-03   -1.4914    
  15  Prefactor     7.6443        28.007        .14503E-03   -1.5155    
  16  norm          .41885        89.541        .42342E-02   -1.5579    
  17  norm          9.4654        30.717        .13013E-03   -1.5093    
  18  Prefactor     2.5438        8.1145        .12867E-02   -1.5389    
  19  Prefactor     105.62        47.860        .19561E-03   -1.3649    
  20  Prefactor     .10000E-03    9.4152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10010E-03    23.176        .27112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.664        22.579        .82335E-04   -1.4735    
  23  Normalizat    .63753        .24710        .33752E-03   -1.0641    
  24  Prefactor     .86732        .14895        .18992E-03   -.97292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55005e-09
Minuit parameter uncertainties:
  1  0.000475776
  2  2.14468e-09
  3  50.2677
  4  2.20604e-06
  5  2.81348e-06
  6  21.4449
  7  1.2755
  8  2.32126e-05
  9  16.6724
  10  7.14237e-05
  11  14.4433
  12  10.7194
  13  0.000190643
  14  23.4971
  15  28.0547
  16  12.2653
  17  30.768
  18  8.118
  19  47.8777
  20  1.73381e-05
  21  0.00305748
  22  22.5873
  23  0.247533
  24  0.14902
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  7.644e+00  2.805e+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:  8.673e-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:  6.375e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17378/likelihoodResults_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.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) = 5435.31399461
delta logL = 0.165827841408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5435.26334159
delta logL = 0.216480861706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8719       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6731       1.0000          .0000       10.000    
     3 'Normalizat'    .60675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87830       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5435.263     FROM MIGRAD    STATUS=FAILED        82 CALLS      258 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8689        302.44        .17591E-03   -.44322E-02
   2  Index         3.6733        5.9593        .81155E-02   -.95379E-03
   3  Normalizat    .60683        .20274        .34513E-03   -.14814E-02
   4  Prefactor     .87827        .13654        .18877E-03   -.22725E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5435.263     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      345 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8689        302.44        .25847E-03   -.44322E-02
   2  Index         3.6733        5.9593        .15555E-02   -.95379E-03
   3  Normalizat    .60683        .20274        .17488E-03   -.14814E-02
   4  Prefactor     .87827        .13654        .75970E-04   -.22725E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5435.263     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      377 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8678        13.509        .70364E-05   -.44916E-04
   2  Index         3.6736        2.1207        .32462E-03   -.10752E-04
   3  Normalizat    .60684        .22999        .69027E-04    .58106E-04
   4  Prefactor     .87827        .14777        .37753E-04    .97024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86784
  Index      = 3.67359
  Normalizat = 0.606835
  Prefactor  = 0.878271
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.263     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8678        12.716        .14073E-05   -1.5369    
   2  Index         3.6736        2.0608        .12985E-04   -.26850    
   3  Normalizat    .60684        .23003        .13805E-04   -1.0769    
   4  Prefactor     .87827        .14776        .75507E-05   -.96905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47937e-11
Minuit parameter uncertainties:
  1  12.0818
  2  2.12942
  3  0.230393
  4  0.147828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17378': 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) = 5435.26334145
delta logL = 0.216480998595

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.868e+00  1.208e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.674e+00  2.129e+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:  8.783e-01  1.478e-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.068e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 353.557 7.602

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/17378/cmap_HighResolution_371001601_371260801_4FGL_J2334.2+0736_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-29 23:37:28.260901', job_id='17378', GAL2='0.88', fit_tolerance='1e-08', EG2='0.61', EG='0.64', time_epoch_completed='1632983848.26', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.16e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='508' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:37:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 17378: <4FGL_J2334.2+0736_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin508 353.557 7.602 371001601 371260801 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 :                                   636.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

