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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin963
RA = 353.557, Dec = 7.602
tmin = 488937601, tmax = 489196801
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='19583', job_status='RUN', time_executed='2021-09-29 23:38:35.882359', time_epoch_executed='1632983915.88' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19583/ft1_4FGL_J2334.2+0736_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19583/ft2_4FGL_J2334.2+0736_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19583/ft1_4FGL_J2334.2+0736_daily_bin963.fits outfile=/scratch/kocevski/19583/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin963.fits ra=353.557 dec=7.602 rad=12.0 tmin=488937601.0 tmax=489196801.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.33
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19583/ft1_filtered_4FGL_J2334.2+0736_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/19583/ft2_4FGL_J2334.2+0736_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/19583/ltcube_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.fits outfile=/scratch/kocevski/19583/expmap_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.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/19583/ltcube_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.fits
.....................!
real 190.75
user 185.56
sys 4.87

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/19583/ft1_filtered_4FGL_J2334.2+0736_daily_bin963.fits scfile=/scratch/kocevski/19583/ft2_4FGL_J2334.2+0736_daily_bin963.fits outfile=/scratch/kocevski/19583/cmap_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19583/ft1_filtered_4FGL_J2334.2+0736_daily_bin963.fits scfile=/scratch/kocevski/19583/ft2_4FGL_J2334.2+0736_daily_bin963.fits outfile=/scratch/kocevski/19583/cmap_HighResolution_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    151.83       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38000E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
     7 'norm      '    .84352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47064E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0497       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74505       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8784.618     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2349 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     151.83        28.072        .81779E-03    .14213E-03
   2  Prefactor     .10000E-03    7.7252        .90712E-02** at limit **
   3  Prefactor     .10000E-03    11.370        .90712E-02** at limit **
   4  Prefactor     .10000E-03    7.1651        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.3580        .97787E-01** at limit **
   6  Prefactor     16.197        14.877        .24881E-02    .10065E-03
   7  norm          .84176        .77416        .12601E-01    .11500E-02
   8  Prefactor     3.6397        9.0278        .52969E-02    .48454E-03
   9  Prefactor     20.460        19.077        .22139E-02   -.57412E-04
  10  Prefactor     .10000E-03    15.955        .90712E-02** at limit **
  11  norm          5.8428        7.8761        .41555E-02    .86694E-03
  12  Prefactor     .10000E-03    4.1303        .90712E-02** at limit **
  13  Prefactor     .10000E-03    517.02        .96423E-02** at limit **
  14  Prefactor     14.262        8.7256        .26489E-02    .31075E-03
  15  Prefactor     .10000E-03    44.018        .90712E-02** at limit **
  16  norm          .10000E-03    6.4021        .90712E-02** at limit **
  17  norm          .10000E-03    5.6917        .90712E-02** at limit **
  18  Prefactor     .10000E-03    1.4749        .90712E-02** at limit **
  19  Prefactor     .10000E-03    10.779        .90712E-02** at limit **
  20  Prefactor     15.300        17.219        .25602E-02   -.77441E-03
  21  Prefactor     8.0507        7.3168        .35329E-02    .21815E-02
  22  Prefactor     .10000E-03    14.130        .90712E-02** at limit **
  23  Normalizat    .74493        .18362        .78696E-01    .33633E-04
  24  Prefactor     1.0443        .11619        .40258E-01   -.65254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 151.832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1973
  norm       = 0.841764
  Prefactor  = 3.63967
  Prefactor  = 20.4598
  Prefactor  = 0.0001
  norm       = 5.84275
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.2622
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3004
  Prefactor  = 8.05071
  Prefactor  = 0.0001
  Normalizat = 0.744929
  Prefactor  = 1.0443
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.618     FROM HESSE     STATUS=OK           395 CALLS     2744 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     151.83        28.107        .32712E-04   -1.3237    
   2  Prefactor     .10000E-03    7.7297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    91.125        .48661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.197        14.884        .99526E-04   -1.4903    
   7  norm          .84176        .74321        .75283E-03   -1.5524    
   8  Prefactor     3.6397        8.9360        .21188E-03   -1.5326    
   9  Prefactor     20.460        19.078        .88554E-04   -1.4803    
  10  Prefactor     .10000E-03    15.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8428        7.7827        .16622E-03   -1.5224    
  12  Prefactor     .10000E-03    4.1679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    518.33        .19285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.262        8.6982        .10596E-03   -1.4952    
  15  Prefactor     .10000E-03    44.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4880        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.300        17.219        .10241E-03   -1.4925    
  21  Prefactor     8.0507        7.3148        .70658E-03   -1.5140    
  22  Prefactor     .10000E-03    14.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .74493        .20895        .34841E-03   -1.0215    
  24  Prefactor     1.0443        .13284        .19648E-03   -.91267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74661e-09
Minuit parameter uncertainties:
  1  28.1094
  2  4.99581e-06
  3  5.84002e-05
  4  9.12123e-07
  5  0.000357073
  6  14.8872
  7  0.743219
  8  8.93928
  9  19.0838
  10  2.34754e-05
  11  7.78408
  12  6.60178e-06
  13  0.00131507
  14  8.69893
  15  0.000136942
  16  1.32307e-05
  17  3.11869e-06
  18  1.21681e-05
  19  2.07392e-05
  20  17.2241
  21  7.31558
  22  2.1688e-05
  23  0.209174
  24  0.132877
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.369e-04  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.044e+00  1.329e-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:  7.449e-01  2.092e-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: 8.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19583/likelihoodResults_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.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) = 8784.61779234
delta logL = -0.000106335339296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8784.52772057
delta logL = 0.0899654395907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7831       1.0000          .0000       10.000    
     3 'Normalizat'    .72223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0510       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8784.528     FROM MIGRAD    STATUS=FAILED        96 CALLS      314 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1081        299.77        .22202E-03   -.43627E-04
   2  Index         3.7870        6.6465        .11367E-01    .38861E-03
   3  Normalizat    .72251        .17142        .35343E-03    .54683E-05
   4  Prefactor     1.0509        .11505        .19592E-03   -.85881E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8784.528     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      404 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1081        299.77        .22905E-03   -.43627E-04
   2  Index         3.7870        6.6465        .20884E-02    .38861E-03
   3  Normalizat    .72251        .17142        .24192E-03    .54683E-05
   4  Prefactor     1.0509        .11505        .10099E-03   -.85881E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8784.528     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      439 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1081        9.7371        .88809E-05   -.38916E-04
   2  Index         3.7870        2.7240        .22734E-02   -.35505E-05
   3  Normalizat    .72251        .20557        .14137E-04    .57900E-05
   4  Prefactor     1.0509        .13283        .39184E-04   -.78918E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1081
  Index      = 3.78702
  Normalizat = 0.722508
  Prefactor  = 1.0509
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.528     FROM HESSE     STATUS=OK            23 CALLS      462 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1081        7.3706        .17762E-05   -1.5497    
   2  Index         3.7870        2.4036        .90936E-04   -.24504    
   3  Normalizat    .72251        .20547        .28275E-05   -1.0301    
   4  Prefactor     1.0509        .13272        .78367E-05   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88362e-12
Minuit parameter uncertainties:
  1  5.71647
  2  2.51478
  3  0.205684
  4  0.132764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19583': 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) = 8784.52771506
delta logL = 0.0899709497808

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.108e+00  5.716e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.787e+00  2.515e+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.051e+00  1.328e-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:  7.225e-01  2.057e-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/19583/cmap_HighResolution_488937601_489196801_4FGL_J2334.2+0736_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-29 23:51:32.950873', job_id='19583', GAL2='1.05', fit_tolerance='1e-08', EG2='0.72', EG='0.74', time_epoch_completed='1632984692.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.00e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='963' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 19583: <4FGL_J2334.2+0736_daily_bin963> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin963> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:23 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:24 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:35:24 2021
Terminated at Wed Sep 29 23:51:33 2021
Results reported at Wed Sep 29 23:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin963 353.557 7.602 488937601 489196801 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 :                                   775.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

