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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1654
RA = 353.557, Dec = 7.602
tmin = 668044801, tmax = 668304001
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='101666', job_status='RUN', time_executed='2022-03-07 01:29:24.265641', time_epoch_executed='1646645364.27' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101666/ft1_4FGL_J2334.2+0736_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101666/ft1_4FGL_J2334.2+0736_daily_bin1654.fits outfile=/scratch/kocevski/101666/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1654.fits ra=353.557 dec=7.602 rad=12.0 tmin=668044801.0 tmax=668304001.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.75
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.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/101666/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.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.50
user 0.33
sys 0.16
Number of photons that survived the gtmktime cut: 635

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101666/ltcube_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.fits outfile=/scratch/kocevski/101666/expmap_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.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/101666/ltcube_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.fits
.....................!
real 191.87
user 185.93
sys 5.56

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/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.fits scfile=/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.fits outfile=/scratch/kocevski/101666/cmap_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.fits scfile=/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.fits outfile=/scratch/kocevski/101666/cmap_HighResolution_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.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/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101666/ft2_4FGL_J2334.2+0736_daily_bin1654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101666/Model_4FGL_J2334.2+0736_daily_bin1654.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/101666/ft1_filtered_4FGL_J2334.2+0736_daily_bin1654.fits.....................!
real 75.24
user 73.84
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.617       1.0000         .10000E-03   10000.    
    11 'norm      '    28.429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0522       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.543       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94345       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=   7002.772     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2683 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.259        23.027        .30263E-06    .12445E-04
   2  Prefactor     .10000E-03    5.9120        .98739E-08** at limit **
   3  Prefactor     67.210        44.414        .79526E-06    .32768E-05
   4  Prefactor     .10000E-03    1.9404        .22977E-07** at limit **
   5  Prefactor     .10000E-03    4.3387       -.37207E-07** at limit **
   6  Prefactor     .10000E-03    5.5330       -.27944E-06** at limit **
   7  norm          1.1439        1.0374       -.53189E-07   -.23154E-03
   8  Prefactor     2.7711        10.330        .54974E-05   -.57910E-05
   9  Prefactor     3.2832        15.896        .41205E-06    .34779E-06
  10  Prefactor     37.575        79.855        .75947E-05    .69963E-05
  11  norm          28.431        12.427       -.53880E-06    .34577E-04
  12  Prefactor     .10000E-03    3.8254       -.39394E-07** at limit **
  13  Prefactor     .10000E-03    63.030        .30164E-05** at limit **
  14  Prefactor     22.119        14.745       -.27459E-06   -.38189E-05
  15  Prefactor     .10000E-03    22.294       -.16378E-05** at limit **
  16  norm          5.0526        13.529        .28277E-06   -.15536E-05
  17  norm          .10000E-03    36.656       -.16878E-06** at limit **
  18  Prefactor     .10000E-03    7.2453        .11788E-06** at limit **
  19  Prefactor     17.537        50.518        .52648E-06   -.84465E-05
  20  Prefactor     .10000E-03    24.728        .25366E-05** at limit **
  21  Prefactor     .10000E-03    5.4311        .24837E-06** at limit **
  22  Prefactor     .10000E-03    45.428       -.27383E-05** at limit **
  23  Normalizat    1.2095        .22278       -.14862E-06    .20194E-04
  24  Prefactor     .94342        .13590       -.51786E-06    .36653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.259
  Prefactor  = 0.0001
  Prefactor  = 67.2103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14393
  Prefactor  = 2.77106
  Prefactor  = 3.28319
  Prefactor  = 37.5753
  norm       = 28.431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1191
  Prefactor  = 0.0001
  norm       = 5.05257
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20953
  Prefactor  = 0.943416
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.772     FROM HESSE     STATUS=OK           393 CALLS     3076 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.259        23.104        .71661E-04   -1.4589    
   2  Prefactor     .10000E-03    5.9124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.210        44.439        .48955E-04   -1.4066    
   4  Prefactor     .10000E-03    1.9453        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3458        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1439        1.0167        .77920E-04   -1.5494    
   8  Prefactor     2.7711        10.351        .12218E-02   -1.5375    
   9  Prefactor     3.2832        15.868        .22346E-03   -1.5346    
  10  Prefactor     37.575        79.936        .65347E-04   -1.4481    
  11  norm          28.431        12.472        .75140E-04   -1.4641    
  12  Prefactor     .10000E-03    3.8380        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.119        14.652        .85173E-04   -1.4767    
  15  Prefactor     .10000E-03    22.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0526        13.538        .17889E-03   -1.5258    
  17  norm          .10000E-03    36.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.537        50.713        .95624E-04   -1.4870    
  20  Prefactor     .10000E-03    24.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2095        .26176        .31208E-03   -.86309    
  24  Prefactor     .94342        .15906        .22124E-03   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69886e-10
Minuit parameter uncertainties:
  1  23.1103
  2  3.83032e-07
  3  44.4609
  4  9.96879e-07
  5  1.57044e-07
  6  7.88772e-06
  7  1.0167
  8  10.3581
  9  14.4418
  10  80.1654
  11  12.4733
  12  1.80846e-06
  13  4.48657e-05
  14  14.6548
  15  3.00896e-05
  16  13.5457
  17  1.07045e-05
  18  5.40574e-06
  19  50.8382
  20  2.05418e-06
  21  7.68127e-06
  22  0.000111327
  23  0.262047
  24  0.159137
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  3.009e-05  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.434e-01  1.591e-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.210e+00  2.620e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101666/likelihoodResults_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.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) = 7002.7719483
delta logL = -0.000212764318348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7002.77173583
delta logL = -2.98111444863e-07

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 'Index     '    2.3816       1.0000          .0000       10.000    
     3 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   7002.772     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1236.5        .90712E-02** at limit **
   2  Index         2.4114        5.6872        .50000       -.13808E-04
   3  Normalizat    1.2095        .47566E-01    .70530E-01    .17655E-04
   4  Prefactor     .94342        .30355E-01    .45556E-01   -.62013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41142
  Normalizat = 1.20953
  Prefactor  = 0.943415
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.772     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6613.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4114        6.1436        .50000       -.54418    
   3  Normalizat    1.2095        .10491        .31207E-03   -.86309    
   4  Prefactor     .94342        .67028E-01    .22124E-03   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.39253e-08
Minuit parameter uncertainties:
  1  0.00196286
  2  57.1922
  3  0.104929
  4  0.0670335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101666': 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) = 7002.77173573
delta logL = -1.98151610675e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.963e-03  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.411e+00  5.719e+01  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.434e-01  6.703e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.210e+00  1.049e-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/101666/cmap_HighResolution_668044801_668304001_4FGL_J2334.2+0736_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2022-03-07 01:41:00.326069', job_id='101666', GAL2='0.94', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1646646060.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1654' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:41:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 101666: <4FGL_J2334.2+0736_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:33 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:26:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:26:14 2022
Terminated at Mon Mar  7 01:41:01 2022
Results reported at Mon Mar  7 01:41:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1654 353.557 7.602 668044801 668304001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            928 sec.

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

