/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 95 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin435
RA = 353.557, Dec = 7.602
tmin = 352080001, tmax = 352339201
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='17267', job_status='RUN', time_executed='2021-09-29 23:27:38.749254', time_epoch_executed='1632983258.75' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17267

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17267/ft1_4FGL_J2334.2+0736_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17267/ft1_4FGL_J2334.2+0736_daily_bin435.fits outfile=/scratch/kocevski/17267/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin435.fits ra=353.557 dec=7.602 rad=12.0 tmin=352080001.0 tmax=352339201.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.43
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.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/17267/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin435.fits evtable="EVENTS" outfile="/scratch/kocevski/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.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/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/17267/ltcube_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.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/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits
.....................!
real 12.01
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/17267/ltcube_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.fits outfile=/scratch/kocevski/17267/expmap_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.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/17267/ltcube_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.fits
.....................!
real 193.84
user 189.21
sys 4.32

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/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits outfile=/scratch/kocevski/17267/cmap_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.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/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits outfile=/scratch/kocevski/17267/cmap_HighResolution_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.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/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/17267/ft2_4FGL_J2334.2+0736_daily_bin435.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17267/Model_4FGL_J2334.2+0736_daily_bin435.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/17267/ft1_filtered_4FGL_J2334.2+0736_daily_bin435.fits....................!
real 71.91
user 70.62
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22960E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4021       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24993E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72745E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.417       1.0000         .10000E-03   10000.    
    16 'norm      '    19.013       1.0000         .10000E-03   10000.    
    17 'norm      '    87.571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.276       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4459       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79743       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1171       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=   6744.716     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2713 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.863        .18475E-05** at limit **
   2  Prefactor     .10000E-03    7.7024        .53844E-07** at limit **
   3  Prefactor     .10000E-03    115.08       -.68062E-04** at limit **
   4  Prefactor     .10000E-03    1.7191        .60206E-07** at limit **
   5  Prefactor     .10000E-03    2.8906       -.65113E-07** at limit **
   6  Prefactor     .10000E-03    42.545       -.10351E-04** at limit **
   7  norm          2.4024        1.2623       -.48231E-07   -.41305E-03
   8  Prefactor     .10000E-03    15.828        .54686E-05** at limit **
   9  Prefactor     18.401        15.475       -.19372E-06   -.56022E-05
  10  Prefactor     .10000E-03    178.92       -.18174E-04** at limit **
  11  norm          8.2123        10.441        .11031E-05   -.14944E-03
  12  Prefactor     .10000E-03    13.398        .12402E-05** at limit **
  13  Prefactor     .10000E-03    86.664        .64066E-04** at limit **
  14  Prefactor     .10000E-03    31.892        .90494E-05** at limit **
  15  Prefactor     24.395        31.912       -.11745E-04   -.35946E-04
  16  norm          19.016        18.586       -.77941E-06   -.16658E-04
  17  norm          87.570        38.317       -.93371E-06   -.25641E-03
  18  Prefactor     7.8065        5.9904       -.75560E-07   -.46522E-03
  19  Prefactor     .10000E-03    15.517       -.79375E-05** at limit **
  20  Prefactor     20.812        26.804        .21171E-05    .57252E-05
  21  Prefactor     11.278        8.9003        .13030E-06   -.61076E-04
  22  Prefactor     9.4492        20.060       -.14213E-05   -.35260E-04
  23  Normalizat    .79719        .22623        .22085E-05    .15209E-03
  24  Prefactor     1.1171        .14079        .20723E-06    .36897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40242
  Prefactor  = 0.000100001
  Prefactor  = 18.4008
  Prefactor  = 0.0001
  norm       = 8.21231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3952
  norm       = 19.016
  norm       = 87.57
  Prefactor  = 7.80654
  Prefactor  = 0.0001
  Prefactor  = 20.8116
  Prefactor  = 11.2779
  Prefactor  = 9.44919
  Normalizat = 0.797192
  Prefactor  = 1.11706
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.716     FROM HESSE     STATUS=OK           393 CALLS     3106 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    116.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7236        .10516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8929        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4024        1.2584        .64106E-04   -1.5398    
   8  Prefactor     .10000E-03    16.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.401        15.475        .93375E-04   -1.4850    
  10  Prefactor     .10000E-03    182.08        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2123        10.313        .13981E-03   -1.5135    
  12  Prefactor     .10000E-03    13.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    86.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.317        .41916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.395        31.901        .81066E-04   -1.4720    
  16  norm          19.016        18.591        .91855E-04   -1.4836    
  17  norm          87.570        38.141        .42934E-04   -1.3834    
  18  Prefactor     7.8065        5.9833        .14355E-03   -1.5149    
  19  Prefactor     .10000E-03    15.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.812        26.801        .87804E-04   -1.4795    
  21  Prefactor     11.278        8.8994        .11931E-03   -1.5036    
  22  Prefactor     9.4492        20.114        .13039E-03   -1.5093    
  23  Normalizat    .79719        .25606        .35994E-03   -1.0017    
  24  Prefactor     1.1171        .16020        .20124E-03   -.88923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18168e-10
Minuit parameter uncertainties:
  1  2.11168e-05
  2  9.44652e-07
  3  0.00126195
  4  8.28472e-07
  5  2.92851e-07
  6  9.56161e-05
  7  1.25845
  8  0.000188233
  9  15.4783
  10  0.000378634
  11  10.3152
  12  2.28381e-05
  13  1.98832e-06
  14  1.01998e-05
  15  31.9235
  16  18.5969
  17  38.1516
  18  5.98374
  19  1.21249e-05
  20  26.8161
  21  8.9004
  22  20.1282
  23  0.256445
  24  0.160273
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.440e+01  3.192e+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.117e+00  1.603e-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.972e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/17267/likelihoodResults_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.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) = 6743.40119273
delta logL = 1.3147161377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6743.36999962
delta logL = 1.34590925064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81230       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9534       1.0000          .0000       10.000    
     3 'Normalizat'    .65589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1811       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=   6743.370     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      276 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80830        6.0973        .91962E-02   -.30164E-03
   2  Index         4.9558        2.2194        .10041        .72402E-04
   3  Normalizat    .65597        .58774E-01    .88764E-01   -.65474E-04
   4  Prefactor     1.1810        .38376E-01    .35094E-01   -.11728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.8083
  Index      = 4.95576
  Normalizat = 0.655966
  Prefactor  = 1.18105
 **********
 **   18 **HESSE 
 **********

 FCN=   6743.370     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      307 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80830        12.923        .41482E-04   -1.5528    
   2  Index         4.9558        3.5519        .38617E-02   -.88486E-02
   3  Normalizat    .65597        .22259        .39322E-03   -1.0566    
   4  Prefactor     1.1810        .14326        .19629E-03   -.86917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33185e-10
Minuit parameter uncertainties:
  1  6.46524
  2  3.95021
  3  0.2229
  4  0.143306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17267': 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) = 6743.36999882
delta logL = 1.3459100413

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  8.083e-01  6.465e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  4.956e+00  3.950e+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.181e+00  1.433e-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:  6.560e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 353.557 7.602
Photon Index (Free Index): 4.96 +/- 3.95
Photon Flux (Free Index): 1.56e-07 +/- 9.11e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.43e-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/17267/cmap_HighResolution_352080001_352339201_4FGL_J2334.2+0736_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='2.08e-05', dlogl='1.35e+00', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-29 23:38:55.977064', photon_index_error2='3.95', photon_index2='4.96', ts='0.83', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.43e-05', EG='0.80', time_epoch_completed='1632983935.98', return_code='0', job_id='17267', GAL2='1.18', EG2='0.66', return_code2='102', photon_flux_error2='9.11e-08', ts2='4.16', photon_index='2.47' WHERE bin_id='435' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:38:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 17267: <4FGL_J2334.2+0736_daily_bin435> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin435> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:51 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:52 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:25:52 2021
Terminated at Wed Sep 29 23:38:56 2021
Results reported at Wed Sep 29 23:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin435 353.557 7.602 352080001 352339201 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 :                                   671.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

