/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 18 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin104
RA = 353.557, Dec = 7.602
tmin = 266284801, tmax = 266544001
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='15837', job_status='RUN', time_executed='2021-09-29 23:21:41.054800', time_epoch_executed='1632982901.05' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15837/ft1_4FGL_J2334.2+0736_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15837/ft2_4FGL_J2334.2+0736_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15837/ft1_4FGL_J2334.2+0736_daily_bin104.fits outfile=/scratch/kocevski/15837/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin104.fits ra=353.557 dec=7.602 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.43
user 1.24
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15837/ft1_filtered_4FGL_J2334.2+0736_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/15837/ft2_4FGL_J2334.2+0736_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/15837/ltcube_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.fits outfile=/scratch/kocevski/15837/expmap_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.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/15837/ltcube_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.fits
.....................!
real 191.05
user 185.42
sys 5.27

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/15837/ft1_filtered_4FGL_J2334.2+0736_daily_bin104.fits scfile=/scratch/kocevski/15837/ft2_4FGL_J2334.2+0736_daily_bin104.fits outfile=/scratch/kocevski/15837/cmap_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15837/ft1_filtered_4FGL_J2334.2+0736_daily_bin104.fits scfile=/scratch/kocevski/15837/ft2_4FGL_J2334.2+0736_daily_bin104.fits outfile=/scratch/kocevski/15837/cmap_HighResolution_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.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/15837/ft1_filtered_4FGL_J2334.2+0736_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/15837/ft2_4FGL_J2334.2+0736_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15837/Model_4FGL_J2334.2+0736_daily_bin104.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/15837/ft1_filtered_4FGL_J2334.2+0736_daily_bin104.fits.....................!
real 78.74
user 77.37
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6864       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.349       1.0000         .10000E-03   10000.    
     7 'norm      '    .49925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8961       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62515       1.0000         .10000E-03   10000.    
    16 'norm      '    .13446E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8251       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2143       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93821       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82675       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=   7383.370     FROM MIGRAD    STATUS=CONVERGED    972 CALLS     2807 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4864        .15665E-02** at limit **
   2  Prefactor     .10000E-03    5.0419        .18142E-02** at limit **
   3  Prefactor     7.5027        40.810        .14717E-03   -.39243E-04
   4  Prefactor     8.6864        4.7207        .13412E-03   -.15173E-04
   5  Prefactor     4.1333        5.5200        .19827E-03   -.14277E-04
   6  Prefactor     42.341        22.650        .61602E-04    .47983E-05
   7  norm          .49898        .64150        .86242E-03   -.79680E-03
   8  Prefactor     1.8931        5.4014        .15105E-02    .33172E-03
   9  Prefactor     29.964        19.354        .73200E-04   -.26248E-04
  10  Prefactor     .10000E-03    54.219        .18142E-02** at limit **
  11  norm          15.615        8.3917        .10141E-03   -.61993E-04
  12  Prefactor     .92054        7.6639        .21114E-02    .76728E-03
  13  Prefactor     .10000E-03    140.11        .18142E-02** at limit **
  14  Prefactor     .10000E-03    10.380        .36285E-03** at limit **
  15  Prefactor     .61784        82.794        .51802E-02   -.53125E-04
  16  norm          .10009E-03    83.611        .46209E-02** at limit **
  17  norm          .10000E-03    5.1538        .18142E-02** at limit **
  18  Prefactor     7.2744        4.0086        .12174E-03    .11094E-03
  19  Prefactor     4.5076        15.660        .18962E-03   -.11391E-05
  20  Prefactor     .10000E-03    6.3404        .18142E-02** at limit **
  21  Prefactor     2.8248        4.8048        .11927E-02    .26198E-03
  22  Prefactor     4.2115        11.650        .19630E-03    .10541E-04
  23  Normalizat    .93828        .20483        .28735E-03   -.13768E-03
  24  Prefactor     .82683        .12973        .19938E-03   -.60897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50266
  Prefactor  = 8.68635
  Prefactor  = 4.13333
  Prefactor  = 42.3409
  norm       = 0.498985
  Prefactor  = 1.89313
  Prefactor  = 29.9645
  Prefactor  = 0.0001
  norm       = 15.6146
  Prefactor  = 0.920545
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.617835
  norm       = 0.000100086
  norm       = 0.0001
  Prefactor  = 7.27444
  Prefactor  = 4.50757
  Prefactor  = 0.0001
  Prefactor  = 2.82485
  Prefactor  = 4.21149
  Normalizat = 0.938283
  Prefactor  = 0.826827
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.370     FROM HESSE     STATUS=OK           383 CALLS     3190 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4864        .31331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5027        40.784        .58867E-05   -1.5160    
   4  Prefactor     8.6864        4.7207        .53646E-05   -1.5118    
   5  Prefactor     4.1333        5.5199        .79308E-05   -1.5301    
   6  Prefactor     42.341        22.648        .24641E-05   -1.4406    
   7  norm          .49898        .64111        .34497E-04   -1.5567    
   8  Prefactor     1.8931        5.3926        .60420E-04   -1.5433    
   9  Prefactor     29.964        19.351        .29280E-05   -1.4613    
  10  Prefactor     .10000E-03    54.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.615        8.3331        .40565E-05   -1.4917    
  12  Prefactor     .92054        7.5648        .84456E-04   -1.5516    
  13  Prefactor     .10000E-03    140.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.380        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .61784        83.277        .20721E-03   -1.5551    
  16  norm          .10009E-03    85.277        .92418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.2744        4.0079        .48697E-05   -1.5168    
  19  Prefactor     4.5076        15.660        .75848E-05   -1.5283    
  20  Prefactor     .10000E-03    6.3410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8248        4.8034        .47709E-04   -1.5372    
  22  Prefactor     4.2115        11.649        .78519E-05   -1.5298    
  23  Normalizat    .93828        .20489        .11494E-04   -.95128    
  24  Prefactor     .82683        .12974        .79753E-05   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30184e-09
Minuit parameter uncertainties:
  1  6.45155e-07
  2  1.66024e-06
  3  35.0219
  4  4.72085
  5  5.52062
  6  22.6528
  7  0.641119
  8  5.39399
  9  19.3546
  10  0.000258963
  11  8.33369
  12  5.27839
  13  0.00132514
  14  1.12678e-05
  15  14.3652
  16  0.00540949
  17  2.36617e-06
  18  4.00809
  19  15.6744
  20  1.25314e-06
  21  4.80403
  22  11.6549
  23  0.205057
  24  0.129785
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  6.178e-01  1.437e+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.268e-01  1.298e-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.383e-01  2.051e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15837/likelihoodResults_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.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) = 7383.36828053
delta logL = 0.00193828246574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7383.36592151
delta logL = 0.00429730316682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8020       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1879       1.0000          .0000       10.000    
     3 'Normalizat'    .93876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82597       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=   7383.366     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      279 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8037        49.826        .31138E-03   -.13695E-03
   2  Index         2.1876        2.3586        .17457E-01   -.36107E-04
   3  Normalizat    .93875        .19504        .28729E-03    .31211E-03
   4  Prefactor     .82596        .12928        .19948E-03    .57054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80367
  Index      = 2.18756
  Normalizat = 0.938749
  Prefactor  = 0.825956
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.366     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8037        45.677        .12455E-04   -1.5439    
   2  Index         2.1876        2.2726        .69827E-03   -.59739    
   3  Normalizat    .93875        .19516        .11492E-04   -.95112    
   4  Prefactor     .82596        .12931        .39895E-04   -.98779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6053e-10
Minuit parameter uncertainties:
  1  18.1685
  2  2.40614
  3  0.195304
  4  0.129353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15837': 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) = 7383.36592141
delta logL = 0.0042974040507

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.804e+00  1.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.188e+00  2.406e+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.260e-01  1.294e-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.387e-01  1.953e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/15837/cmap_HighResolution_266284801_266544001_4FGL_J2334.2+0736_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-09-29 23:33:27.181392', job_id='15837', GAL2='0.83', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632983607.18', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.30e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='104' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:33:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 15837: <4FGL_J2334.2+0736_daily_bin104> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin104> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:21:11 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:21:13 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:21:13 2021
Terminated at Wed Sep 29 23:33:27 2021
Results reported at Wed Sep 29 23:33:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin104 353.557 7.602 266284801 266544001 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 :                                   705.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

