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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin157
RA = 353.557, Dec = 7.602
tmin = 280022401, tmax = 280281601
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='16848', job_status='RUN', time_executed='2021-09-29 23:26:14.930822', time_epoch_executed='1632983174.93' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16848/ft1_4FGL_J2334.2+0736_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16848/ft2_4FGL_J2334.2+0736_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16848/ft1_4FGL_J2334.2+0736_daily_bin157.fits outfile=/scratch/kocevski/16848/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin157.fits ra=353.557 dec=7.602 rad=12.0 tmin=280022401.0 tmax=280281601.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.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16848/ft1_filtered_4FGL_J2334.2+0736_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/16848/ft2_4FGL_J2334.2+0736_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/16848/ltcube_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.fits outfile=/scratch/kocevski/16848/expmap_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.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/16848/ltcube_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.fits
.....................!
real 191.70
user 185.26
sys 6.08

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/16848/ft1_filtered_4FGL_J2334.2+0736_daily_bin157.fits scfile=/scratch/kocevski/16848/ft2_4FGL_J2334.2+0736_daily_bin157.fits outfile=/scratch/kocevski/16848/cmap_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16848/ft1_filtered_4FGL_J2334.2+0736_daily_bin157.fits scfile=/scratch/kocevski/16848/ft2_4FGL_J2334.2+0736_daily_bin157.fits outfile=/scratch/kocevski/16848/cmap_HighResolution_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20482E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.372       1.0000         .10000E-03   10000.    
     7 'norm      '    .24854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2703       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.319       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7857       1.0000         .10000E-03   10000.    
    17 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0559       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7783       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.857       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0484       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=   6704.544     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2715 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.614        17.562       -.16143E-05    .20133E-04
   2  Prefactor     .10000E-03    12.543       -.22897E-06** at limit **
   3  Prefactor     57.427        40.731       -.15165E-04    .83779E-04
   4  Prefactor     10.605        8.0794       -.30581E-06    .17570E-04
   5  Prefactor     .10014E-03    7.6187       -.21166E-05** at limit **
   6  Prefactor     14.373        21.873        .44312E-05    .19439E-03
   7  norm          .24748        .86366       -.79948E-06   -.22764E-02
   8  Prefactor     7.4769        10.840        .85113E-06   -.12564E-06
   9  Prefactor     32.358        21.145       -.20782E-05    .31357E-05
  10  Prefactor     3.2189        349.67       -.24266E-03    .12262E-05
  11  norm          9.2851        9.6558        .29586E-06    .13487E-05
  12  Prefactor     6.2395        6.4364       -.38910E-06   -.16620E-03
  13  Prefactor     .10000E-03    71.786       -.23366E-05** at limit **
  14  Prefactor     9.4088        12.330        .97927E-05    .49973E-03
  15  Prefactor     35.313        26.792       -.34449E-05    .39023E-04
  16  norm          7.7854        9.1670       -.58959E-06   -.23176E-04
  17  norm          .10000E-03    18.151       -.13072E-05** at limit **
  18  Prefactor     6.0567        4.3060       -.85178E-06    .38201E-03
  19  Prefactor     18.840        21.150        .20366E-05    .12828E-03
  20  Prefactor     .10000E-03    48.084        .97045E-05** at limit **
  21  Prefactor     7.7780        6.4455        .15045E-05   -.64957E-04
  22  Prefactor     12.856        16.234       -.16981E-05    .20053E-04
  23  Normalizat    .62105        .21909        .12263E-04    .28823E-03
  24  Prefactor     1.0483        .13343       -.70219E-06    .73293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.614
  Prefactor  = 0.0001
  Prefactor  = 57.4268
  Prefactor  = 10.6051
  Prefactor  = 0.000100144
  Prefactor  = 14.3727
  norm       = 0.247481
  Prefactor  = 7.47688
  Prefactor  = 32.3584
  Prefactor  = 3.21886
  norm       = 9.2851
  Prefactor  = 6.23952
  Prefactor  = 0.0001
  Prefactor  = 9.40883
  Prefactor  = 35.3127
  norm       = 7.78545
  norm       = 0.000100002
  Prefactor  = 6.0567
  Prefactor  = 18.8397
  Prefactor  = 0.000100003
  Prefactor  = 7.77795
  Prefactor  = 12.8559
  Normalizat = 0.621047
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.544     FROM HESSE     STATUS=OK           405 CALLS     3120 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.614        17.573        .88216E-04   -1.4800    
   2  Prefactor     .10000E-03    12.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     57.427        40.675        .52930E-04   -1.4191    
   4  Prefactor     10.605        8.0645        .12303E-03   -1.5057    
   5  Prefactor     .10014E-03    45.404        .43337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.373        21.864        .10565E-03   -1.4950    
   7  norm          .24748        .84607        .13373E-03   -1.5608    
   8  Prefactor     7.4769        10.790        .14667E-03   -1.5161    
   9  Prefactor     32.358        21.139        .70438E-04   -1.4570    
  10  Prefactor     3.2189        351.54        .22393E-03   -1.5349    
  11  norm          9.2851        9.5970        .13152E-03   -1.5098    
  12  Prefactor     6.2395        6.4141        .16070E-03   -1.5208    
  13  Prefactor     .10000E-03    71.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4088        12.299        .13074E-03   -1.5094    
  15  Prefactor     35.313        26.749        .67432E-04   -1.4519    
  16  norm          7.7854        9.1662        .14371E-03   -1.5150    
  17  norm          .10000E-03    18.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0567        4.2968        .13178E-03   -1.5216    
  19  Prefactor     18.840        21.153        .92276E-04   -1.4840    
  20  Prefactor     .10000E-03    48.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7780        6.4383        .14378E-03   -1.5150    
  22  Prefactor     12.856        16.243        .11171E-03   -1.4991    
  23  Normalizat    .62105        .23854        .37797E-03   -1.0710    
  24  Prefactor     1.0483        .14798        .19752E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86362e-09
Minuit parameter uncertainties:
  1  17.5777
  2  9.06526e-06
  3  40.6949
  4  8.06528
  5  0.00510897
  6  21.8758
  7  0.846111
  8  10.7927
  9  21.1435
  10  67.6882
  11  9.59861
  12  6.41482
  13  6.24881e-05
  14  12.3024
  15  26.7583
  16  9.16782
  17  0.000410458
  18  4.29706
  19  21.1613
  20  0.000726565
  21  6.43886
  22  16.2489
  23  0.238933
  24  0.14804
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.531e+01  2.676e+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.048e+00  1.480e-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.210e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.51e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/16848/likelihoodResults_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.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) = 6704.25996438
delta logL = 0.283914777683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6704.22141538
delta logL = 0.322463777207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.331       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0770       1.0000          .0000       10.000    
     3 'Normalizat'    .58535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       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=   6704.221     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.292        211.88        .23387E-02    .70546E-04
   2  Index         3.0780        2.9685        .14380        .14576E-03
   3  Normalizat    .58537        .77305E-01    .87655E-01    .24743E-04
   4  Prefactor     1.0635        .45911E-01    .39176E-01   -.15396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2918
  Index      = 3.07799
  Normalizat = 0.585372
  Prefactor  = 1.06351
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.221     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.292        36.060        .93546E-04   -1.4852    
   2  Index         3.0780        1.1797        .50303E-02   -.39456    
   3  Normalizat    .58537        .22730        .38833E-03   -1.0861    
   4  Prefactor     1.0635        .14965        .19624E-03   -.90641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86437e-11
Minuit parameter uncertainties:
  1  36.1032
  2  1.19293
  3  0.22766
  4  0.149704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16848': 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) = 6704.22141415
delta logL = 0.322465008331

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.829e+01  3.610e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.078e+00  1.193e+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.064e+00  1.497e-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:  5.854e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.66
Ra Dec: 353.557 7.602
Photon Index (Free Index): 3.08 +/- 1.19
Photon Flux (Free Index): 9.47e-08 +/- 6.55e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/16848/cmap_HighResolution_280022401_280281601_4FGL_J2334.2+0736_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='6.51e-08', energy_flux2='1.82e-05', photon_flux_error='4.93e-08', dlogl='3.22e-01', energy_flux='1.96e-05', photon_flux2='9.47e-08', job_status='DONE', time_completed='2021-09-29 23:37:58.485067', photon_index_error2='1.19', photon_index2='3.08', ts='2.93', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.26e-05', EG='0.62', time_epoch_completed='1632983878.49', return_code='0', job_id='16848', GAL2='1.06', EG2='0.59', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='6.55e-08', ts2='3.66', photon_index='2.47' WHERE bin_id='157' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:37:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 16848: <4FGL_J2334.2+0736_daily_bin157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin157 353.557 7.602 280022401 280281601 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

