/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 85 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 = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin566
RA = 353.557, Dec = 7.602
tmin = 386035201, tmax = 386294401
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='17443', job_status='RUN', time_executed='2021-09-29 23:27:45.657813', time_epoch_executed='1632983265.66' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17443/ft1_4FGL_J2334.2+0736_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17443/ft2_4FGL_J2334.2+0736_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17443/ft1_4FGL_J2334.2+0736_daily_bin566.fits outfile=/scratch/kocevski/17443/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin566.fits ra=353.557 dec=7.602 rad=12.0 tmin=386035201.0 tmax=386294401.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 4.94
user 4.68
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17443/ft1_filtered_4FGL_J2334.2+0736_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/17443/ft2_4FGL_J2334.2+0736_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/17443/ltcube_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.fits outfile=/scratch/kocevski/17443/expmap_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.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/17443/ltcube_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.fits
.....................!
real 189.87
user 185.16
sys 4.33

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/17443/ft1_filtered_4FGL_J2334.2+0736_daily_bin566.fits scfile=/scratch/kocevski/17443/ft2_4FGL_J2334.2+0736_daily_bin566.fits outfile=/scratch/kocevski/17443/cmap_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17443/ft1_filtered_4FGL_J2334.2+0736_daily_bin566.fits scfile=/scratch/kocevski/17443/ft2_4FGL_J2334.2+0736_daily_bin566.fits outfile=/scratch/kocevski/17443/cmap_HighResolution_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.824       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    92.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4845       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23407E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.316       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3959       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.208       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .18833       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2980       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=   5877.659     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     3500 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.828        28.669        .54173E-04    .27701E-04
   2  Prefactor     .10000E-03    9.1387        .18142E-02** at limit **
   3  Prefactor     92.348        45.302        .41818E-04    .38658E-04
   4  Prefactor     .10000E-03    1.7939        .10019E-02** at limit **
   5  Prefactor     .10000E-03    4.0622        .15074E-02** at limit **
   6  Prefactor     .10000E-03    7.3383        .18142E-02** at limit **
   7  norm          2.2512        1.2305        .59838E-04    .11798E-03
   8  Prefactor     5.4846        7.5332        .17157E-03   -.28360E-04
   9  Prefactor     21.946        24.390        .85504E-04    .12498E-04
  10  Prefactor     .10000E-03    241.98        .18142E-02** at limit **
  11  norm          14.542        12.233        .10504E-03    .25879E-03
  12  Prefactor     5.7167        10.956        .16802E-03    .12450E-03
  13  Prefactor     .10000E-03    105.21        .18142E-02** at limit **
  14  Prefactor     33.299        21.129        .69424E-04    .11791E-03
  15  Prefactor     .10000E-03    17.467        .18142E-02** at limit **
  16  norm          .10000E-03    8.4902        .18142E-02** at limit **
  17  norm          .10000E-03    17.198        .18142E-02** at limit **
  18  Prefactor     3.4162        6.3011        .21100E-03   -.14569E-03
  19  Prefactor     6.3715        41.708        .15870E-03   -.37250E-05
  20  Prefactor     .10000E-03    51.285        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.7298        .12345E-02** at limit **
  22  Prefactor     46.209        27.060        .58984E-04    .18118E-04
  23  Normalizat    .18830        .26849        .66082E-03   -.44335E-04
  24  Prefactor     1.2980        .17127        .17948E-03    .10065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8284
  Prefactor  = 0.0001
  Prefactor  = 92.3475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25116
  Prefactor  = 5.4846
  Prefactor  = 21.9459
  Prefactor  = 0.0001
  norm       = 14.5417
  Prefactor  = 5.71669
  Prefactor  = 0.0001
  Prefactor  = 33.2989
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41623
  Prefactor  = 6.37148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.2087
  Normalizat = 0.188303
  Prefactor  = 1.29803
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.659     FROM HESSE     STATUS=OK           373 CALLS     3873 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.828        28.668        .21669E-05   -1.4226    
   2  Prefactor     .10000E-03    9.1390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     92.348        45.297        .83637E-05   -1.3783    
   4  Prefactor     .10000E-03    1.7940        .20038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0625        .30147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2512        1.2305        .23935E-05   -1.5408    
   8  Prefactor     5.4846        7.5330        .68628E-05   -1.5240    
   9  Prefactor     21.946        24.389        .34202E-05   -1.4771    
  10  Prefactor     .10000E-03    242.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.542        12.228        .42015E-05   -1.4945    
  12  Prefactor     5.7167        10.949        .67207E-05   -1.5230    
  13  Prefactor     .10000E-03    105.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.299        21.118        .27770E-05   -1.4553    
  15  Prefactor     .10000E-03    17.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.4921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4162        6.2979        .84399E-05   -1.5338    
  19  Prefactor     6.3715        41.703        .63482E-05   -1.5203    
  20  Prefactor     .10000E-03    51.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7300        .24691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.209        27.062        .23594E-05   -1.4347    
  23  Normalizat    .18830        .26777        .26433E-04   -1.3028    
  24  Prefactor     1.2980        .17089        .71794E-05   -.83366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56666e-10
Minuit parameter uncertainties:
  1  28.6753
  2  1.05988e-06
  3  45.3143
  4  1.99691e-07
  5  2.35384e-06
  6  4.43154e-07
  7  1.23051
  8  7.53426
  9  24.3997
  10  0.000458469
  11  12.2297
  12  10.9526
  13  9.60164e-05
  14  21.1227
  15  6.97969e-06
  16  4.77092e-06
  17  6.76518e-05
  18  6.29916
  19  32.6341
  20  1.98075e-06
  21  8.63665e-07
  22  27.0691
  23  0.269629
  24  0.170963
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  6.980e-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:  1.298e+00  1.710e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.883e-01  2.696e-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: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17443/likelihoodResults_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.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) = 5877.65887195
delta logL = -0.000272744469839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5877.6586004
delta logL = -1.19613014249e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7596       1.0000          .0000       10.000    
     3 'Normalizat'    .18830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2980       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=   5877.659     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10275E-03    6.4347        .18142E-01** at limit **
   2  Index         2.6848        5.2587        .50000        .21419E-04
   3  Normalizat    .18831        .36400E-02    .66081E-03   -.11689E-03
   4  Prefactor     1.2980        .24854E-02    .17949E-03   -.36800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102754
  Index      = 2.68475
  Normalizat = 0.188305
  Prefactor  = 1.29802
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.659     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10275E-03    58.383        .27528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6848        5.5321        .50000       -.48143    
   3  Normalizat    .18831        .10879E-01    .26432E-04   -1.3028    
   4  Prefactor     1.2980        .74284E-02    .35897E-04   -.83366    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78175e-09
Minuit parameter uncertainties:
  1  0.0253869
  2  196.07
  3  0.0108794
  4  0.00742845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17443': 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) = 5877.65860005
delta logL = -8.44936039357e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.028e-04  2.539e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.685e+00  1.961e+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:  1.298e+00  7.428e-03  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.883e-01  1.088e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17443/cmap_HighResolution_386035201_386294401_4FGL_J2334.2+0736_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-29 23:39:33.744382', job_id='17443', GAL2='1.30', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1632983973.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='-8.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='566' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:39:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 17443: <4FGL_J2334.2+0736_daily_bin566> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin566> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:26:05 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:26:07 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:07 2021
Terminated at Wed Sep 29 23:39:34 2021
Results reported at Wed Sep 29 23:39:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin566 353.557 7.602 386035201 386294401 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 :                                   701.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             334.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

