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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1593
RA = 353.557, Dec = 7.602
tmin = 652233601, tmax = 652492801
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='22520', job_status='RUN', time_executed='2021-09-29 23:49:02.866002', time_epoch_executed='1632984542.87' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22520/ft1_4FGL_J2334.2+0736_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22520/ft1_4FGL_J2334.2+0736_daily_bin1593.fits outfile=/scratch/kocevski/22520/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1593.fits ra=353.557 dec=7.602 rad=12.0 tmin=652233601.0 tmax=652492801.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.41
user 4.17
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.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/22520/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1593.fits evtable="EVENTS" outfile="/scratch/kocevski/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.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/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/22520/ltcube_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.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/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/22520/ltcube_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.fits outfile=/scratch/kocevski/22520/expmap_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.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/22520/ltcube_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.fits
.....................!
real 190.04
user 185.78
sys 3.89

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/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits outfile=/scratch/kocevski/22520/cmap_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits outfile=/scratch/kocevski/22520/cmap_HighResolution_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.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/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/22520/ft2_4FGL_J2334.2+0736_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22520/Model_4FGL_J2334.2+0736_daily_bin1593.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/22520/ft1_filtered_4FGL_J2334.2+0736_daily_bin1593.fits.....................!
real 69.82
user 68.35
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16230E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11069E-03   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 '    16.078       1.0000         .10000E-03   10000.    
     7 'norm      '    .81168       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.294       1.0000         .10000E-03   10000.    
    16 'norm      '    18.749       1.0000         .10000E-03   10000.    
    17 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15194E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53912       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1575       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=   6305.326     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2739 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19454E-01    7.0061        .10673E-05   -.30249E-03
   2  Prefactor     .10000E-03    14.232        .45769E-06** at limit **
   3  Prefactor     .10005E-03    222.04        .15909E-03** at limit **
   4  Prefactor     .10000E-03    3.6500       -.40316E-07** at limit **
   5  Prefactor     .10000E-03    7.1793       -.16766E-06** at limit **
   6  Prefactor     16.076        20.611       -.54015E-05   -.16276E-03
   7  norm          .81164        .80911        .26522E-07    .67470E-03
   8  Prefactor     .10000E-03    6.2287       -.17740E-06** at limit **
   9  Prefactor     .10000E-03    24.865        .43373E-05** at limit **
  10  Prefactor     .10000E-03    35.698       -.18445E-05** at limit **
  11  norm          8.1117        11.559        .54797E-05   -.18155E-03
  12  Prefactor     11.280        11.475        .45818E-05   -.16215E-03
  13  Prefactor     .10000E-03    604.60       -.26596E-03** at limit **
  14  Prefactor     34.802        14.790        .21373E-05    .84820E-03
  15  Prefactor     34.294        32.092        .73236E-06    .16340E-04
  16  norm          18.748        15.301       -.20579E-05   -.12536E-04
  17  norm          .10000E-03    23.717       -.38546E-05** at limit **
  18  Prefactor     .10000E-03    4.1709       -.11025E-06** at limit **
  19  Prefactor     .10000E-03    181.09       -.76844E-04** at limit **
  20  Prefactor     20.368        24.233        .21793E-05    .13548E-03
  21  Prefactor     .10000E-03    3.7767        .81690E-07** at limit **
  22  Prefactor     .10000E-03    5.5233        .13241E-06** at limit **
  23  Normalizat    .53914        .23129       -.84867E-05   -.24416E-03
  24  Prefactor     1.1575        .14415        .10760E-05   -.48929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0194538
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0761
  norm       = 0.811636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.11168
  Prefactor  = 11.28
  Prefactor  = 0.0001
  Prefactor  = 34.8022
  Prefactor  = 34.2943
  norm       = 18.7479
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 20.3678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.539138
  Prefactor  = 1.15753
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.326     FROM HESSE     STATUS=OK           397 CALLS     3136 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19454E-01    8.3744        .76069E-01   -1.5680    
   2  Prefactor     .10000E-03    14.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    226.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6676        .14815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.076        20.617        .99887E-04   -1.4906    
   7  norm          .81164        .78962        .68215E-04   -1.5528    
   8  Prefactor     .10000E-03    6.2451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1117        11.469        .14077E-03   -1.5138    
  12  Prefactor     11.280        11.408        .11928E-03   -1.5036    
  13  Prefactor     .10000E-03    607.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.802        14.698        .67927E-04   -1.4527    
  15  Prefactor     34.294        32.027        .68430E-04   -1.4536    
  16  norm          18.748        15.299        .92497E-04   -1.4842    
  17  norm          .10000E-03    23.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3036        .31510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    182.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.368        24.232        .88753E-04   -1.4805    
  21  Prefactor     .10000E-03    3.8165        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .53914        .24902        .40312E-03   -1.1063    
  24  Prefactor     1.1575        .15730        .18753E-03   -.87648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31899e-09
Minuit parameter uncertainties:
  1  0.805288
  2  2.11776e-06
  3  0.00652316
  4  6.60309e-07
  5  1.21996e-05
  6  20.626
  7  0.78963
  8  7.58489e-05
  9  6.99508e-05
  10  6.38408e-05
  11  11.4721
  12  11.41
  13  0.00085116
  14  14.6996
  15  32.0433
  16  15.302
  17  0.000148937
  18  5.97566e-06
  19  0.00171497
  20  24.2435
  21  1.18962e-05
  22  1.14381e-05
  23  0.24954
  24  0.157362
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.429e+01  3.204e+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.158e+00  1.574e-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.391e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 5.91e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/22520/likelihoodResults_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.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) = 6304.83243232
delta logL = 0.493473787224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.81517579
delta logL = 0.510730323932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.885       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3608       1.0000          .0000       10.000    
     3 'Normalizat'    .47518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1843       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=   6304.815     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      319 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.875        47.357        .10749E-03    .10492E-03
   2  Index         3.3613        1.9609        .48011E-02    .67363E-04
   3  Normalizat    .47401        .25933        .42820E-03    .12688E-03
   4  Prefactor     1.1851        .16751        .18551E-03   -.44749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8751
  Index      = 3.36132
  Normalizat = 0.474007
  Prefactor  = 1.18512
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.815     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.875        25.078        .42997E-05   -1.4963    
   2  Index         3.3613        1.0573        .19204E-03   -.33391    
   3  Normalizat    .47401        .24708        .17128E-04   -1.1364    
   4  Prefactor     1.1851        .16000        .37101E-04   -.86790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21856e-09
Minuit parameter uncertainties:
  1  25.0967
  2  1.06628
  3  0.247654
  4  0.160069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22520': 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) = 6304.8151629
delta logL = 0.510743210374

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.388e+01  2.510e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.361e+00  1.066e+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.185e+00  1.601e-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:  4.740e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 353.557 7.602
Photon Index (Free Index): 3.36 +/- 1.07
Photon Flux (Free Index): 1.20e-07 +/- 9.04e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.44e-05

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/22520/cmap_HighResolution_652233601_652492801_4FGL_J2334.2+0736_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='2.08e-05', photon_flux_error='5.91e-08', dlogl='5.11e-01', energy_flux='1.90e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-30 00:00:06.531648', photon_index_error2='1.07', photon_index2='3.36', ts='1.95', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.44e-05', EG='0.54', time_epoch_completed='1632985206.53', return_code='0', job_id='22520', GAL2='1.19', EG2='0.47', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='9.04e-08', ts2='3.23', photon_index='2.47' WHERE bin_id='1593' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 22520: <4FGL_J2334.2+0736_daily_bin1593> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1593> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 23:45:15 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:45:16 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:45:16 2021
Terminated at Thu Sep 30 00:00:07 2021
Results reported at Thu Sep 30 00:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1593 353.557 7.602 652233601 652492801 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 :                                   653.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

