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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin861
RA = 353.557, Dec = 7.602
tmin = 462499201, tmax = 462758401
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='18377', job_status='RUN', time_executed='2021-09-29 23:34:38.986092', time_epoch_executed='1632983678.99' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18377/ft1_4FGL_J2334.2+0736_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.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/18377/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin861.fits evtable="EVENTS" outfile="/scratch/kocevski/18377/ft1_filtered_4FGL_J2334.2+0736_daily_bin861.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.51
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18377/ft1_filtered_4FGL_J2334.2+0736_daily_bin861.fits" evtable="EVENTS" scfile=/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits sctable="SC_DATA" outfile=/scratch/kocevski/18377/ltcube_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.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/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits
.....................!
real 12.00
user 11.47
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18377/ft1_filtered_4FGL_J2334.2+0736_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/18377/ltcube_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.fits outfile=/scratch/kocevski/18377/expmap_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.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/18377/ltcube_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.fits
.....................!
real 191.09
user 185.14
sys 5.64

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/18377/ft1_filtered_4FGL_J2334.2+0736_daily_bin861.fits scfile=/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits outfile=/scratch/kocevski/18377/cmap_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18377/ft1_filtered_4FGL_J2334.2+0736_daily_bin861.fits scfile=/scratch/kocevski/18377/ft2_4FGL_J2334.2+0736_daily_bin861.fits outfile=/scratch/kocevski/18377/cmap_HighResolution_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33784E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.303       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24540E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85966E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.575       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96600       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98952       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=   6874.184     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2782 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.947        24.800        .30468E-06    .11641E-04
   2  Prefactor     .10000E-03    15.497        .10490E-05** at limit **
   3  Prefactor     .10257E-03    35.186       -.36206E-05** at limit **
   4  Prefactor     .10000E-03    10.187        .73693E-06** at limit **
   5  Prefactor     3.2559        9.6485        .28615E-05    .18481E-03
   6  Prefactor     56.305        26.310        .11575E-06    .71332E-04
   7  norm          4.7709        1.6223       -.36916E-09    .64485E-04
   8  Prefactor     .10000E-03    2.2295        .51588E-08** at limit **
   9  Prefactor     .10000E-03    93.293        .31267E-05** at limit **
  10  Prefactor     .10000E-03    17.672       -.70906E-06** at limit **
  11  norm          15.981        8.6674        .70169E-07    .11987E-03
  12  Prefactor     .10000E-03    9.5237       -.41371E-06** at limit **
  13  Prefactor     .10000E-03    100.73       -.42133E-05** at limit **
  14  Prefactor     .10000E-03    10.222        .16135E-06** at limit **
  15  Prefactor     .10000E-03    12.574       -.23613E-06** at limit **
  16  norm          .10000E-03    6.6066       -.92901E-08** at limit **
  17  norm          29.533        32.001       -.20156E-05   -.23019E-04
  18  Prefactor     12.858        7.5006        .81131E-06    .14837E-03
  19  Prefactor     .10000E-03    12.994       -.51909E-06** at limit **
  20  Prefactor     .10000E-03    6.1073       -.10101E-07** at limit **
  21  Prefactor     .10000E-03    2.9890       -.94682E-08** at limit **
  22  Prefactor     24.570        20.675       -.84311E-07   -.15022E-05
  23  Normalizat    .96671        .21758       -.60263E-07    .63574E-04
  24  Prefactor     .98908        .13583       -.37288E-06    .72408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.947
  Prefactor  = 0.0001
  Prefactor  = 0.000102573
  Prefactor  = 0.0001
  Prefactor  = 3.25595
  Prefactor  = 56.3052
  norm       = 4.77086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.5331
  Prefactor  = 12.8583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5698
  Normalizat = 0.966714
  Prefactor  = 0.989081
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.184     FROM HESSE     STATUS=OK           403 CALLS     3185 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.947        24.944        .74477E-04   -1.4631    
   2  Prefactor     .10000E-03    15.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10257E-03    27.399        .12691       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2559        9.6554        .11222E-02   -1.5347    
   6  Prefactor     56.305        26.320        .53461E-04   -1.4206    
   7  norm          4.7709        1.6159        .58836E-04   -1.5271    
   8  Prefactor     .10000E-03    2.2303        .12090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    95.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.981        8.6429        .10020E-03   -1.4908    
  12  Prefactor     .10000E-03    9.7791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    100.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.175        .43757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.6308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.533        29.767        .73657E-04   -1.4621    
  18  Prefactor     12.858        7.4130        .11167E-03   -1.4991    
  19  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0097        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.570        20.688        .80805E-04   -1.4716    
  23  Normalizat    .96671        .25442        .33569E-03   -.94154    
  24  Prefactor     .98908        .15873        .21355E-03   -.93094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20186e-10
Minuit parameter uncertainties:
  1  24.9532
  2  3.5765e-05
  3  0.0168014
  4  1.12154e-05
  5  9.66006
  6  26.3251
  7  1.6159
  8  4.39483e-07
  9  9.99725e-05
  10  2.77699e-05
  11  8.64354
  12  9.59335e-07
  13  0.000436819
  14  0.000191357
  15  5.60887e-06
  16  2.91222e-08
  17  29.7819
  18  7.4135
  19  1.91495e-05
  20  4.72072e-07
  21  9.5094e-08
  22  20.6939
  23  0.254741
  24  0.158808
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  5.609e-06  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:  9.891e-01  1.588e-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:  9.667e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18377/likelihoodResults_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.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) = 6874.18469469
delta logL = -0.000377803256924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6874.1843193
delta logL = -2.4082037271e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14333E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4344       1.0000          .0000       10.000    
     3 'Normalizat'    .96638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6874.184     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      282 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8729        .12143    ** at limit **
   2  Index         1.5289        9.0832        .50000       -.10139E-06
   3  Normalizat    .96671        .34797E-02    .33569E-03    .56896E-04
   4  Prefactor     .98908        .22514E-02    .21355E-03    .91215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52886
  Normalizat = 0.966714
  Prefactor  = 0.989081
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.184     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      313 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    759.07        .61328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5289        5.4872        .50000       -.76735    
   3  Normalizat    .96671        .20094E-01    .13428E-04   -.94154    
   4  Prefactor     .98908        .13001E-01    .42710E-04   -.93094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40684e-10
Minuit parameter uncertainties:
  1  0.000129558
  2  589.087
  3  0.020094
  4  0.0130013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18377': 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) = 6874.18431376
delta logL = 3.12233169097e-06

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.296e-04  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.529e+00  5.891e+02  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:  9.891e-01  1.300e-02  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:  9.667e-01  2.009e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

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/18377/cmap_HighResolution_462499201_462758401_4FGL_J2334.2+0736_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-09-29 23:46:11.094144', job_id='18377', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632984371.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='861' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:46:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 18377: <4FGL_J2334.2+0736_daily_bin861> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin861> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:30:46 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:30:47 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:30:47 2021
Terminated at Wed Sep 29 23:46:11 2021
Results reported at Wed Sep 29 23:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin861 353.557 7.602 462499201 462758401 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 :                                   692.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

