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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1380
RA = 353.557, Dec = 7.602
tmin = 597024001, tmax = 597283201
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='21240', job_status='RUN', time_executed='2021-09-29 23:42:32.788119', time_epoch_executed='1632984152.79' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21240/ft1_4FGL_J2334.2+0736_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21240/ft2_4FGL_J2334.2+0736_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21240/ft1_4FGL_J2334.2+0736_daily_bin1380.fits outfile=/scratch/kocevski/21240/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1380.fits ra=353.557 dec=7.602 rad=12.0 tmin=597024001.0 tmax=597283201.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.64
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21240/ft1_filtered_4FGL_J2334.2+0736_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/21240/ft2_4FGL_J2334.2+0736_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/21240/ltcube_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.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/21240/ft2_4FGL_J2334.2+0736_daily_bin1380.fits
.....................!
real 11.82
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21240/ft1_filtered_4FGL_J2334.2+0736_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/21240/ft2_4FGL_J2334.2+0736_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/21240/ltcube_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.fits outfile=/scratch/kocevski/21240/expmap_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.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/21240/ltcube_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.fits
.....................!
real 191.50
user 185.29
sys 5.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/21240/ft1_filtered_4FGL_J2334.2+0736_daily_bin1380.fits scfile=/scratch/kocevski/21240/ft2_4FGL_J2334.2+0736_daily_bin1380.fits outfile=/scratch/kocevski/21240/cmap_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    90.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6742       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.184       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.744       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6272       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85260E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5740       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2763       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69187       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0328       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=   6629.211     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     3162 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.907        26.597        .53651E-04   -.25428E-04
   2  Prefactor     .10000E-03    7.2506        .18142E-02** at limit **
   3  Prefactor     90.130        44.588        .21150E-03   -.86540E-05
   4  Prefactor     4.6756        5.0073        .18324E-03    .43243E-04
   5  Prefactor     .10000E-03    4.6298        .17086E-02** at limit **
   6  Prefactor     12.190        20.185        .11476E-03   -.10303E-04
   7  norm          3.2735        1.3586        .58149E-04   -.10166E-03
   8  Prefactor     8.0447        10.239        .14138E-03    .14072E-04
   9  Prefactor     10.747        13.842        .12223E-03   -.64176E-05
  10  Prefactor     .10000E-03    29.278        .18142E-02** at limit **
  11  norm          7.7585        8.0373        .14396E-03    .23533E-04
  12  Prefactor     .10000E-03    2.7300        .13098E-02** at limit **
  13  Prefactor     58.792        137.04        .26149E-03   -.90864E-05
  14  Prefactor     .10000E-03    6.5075        .18142E-02** at limit **
  15  Prefactor     .10000E-03    31.896        .18142E-02** at limit **
  16  norm          3.6279        8.0388        .21213E-03    .30709E-04
  17  norm          .10000E-03    7.2330        .18142E-02** at limit **
  18  Prefactor     6.4352        5.5746        .15816E-03   -.18603E-03
  19  Prefactor     .10001E-03    33.699        .12750    ** at limit **
  20  Prefactor     7.5423        25.243        .14572E-03   -.50009E-04
  21  Prefactor     .10001E-03    24.481        .32346E-02** at limit **
  22  Prefactor     9.2765        13.924        .13159E-03   -.75166E-05
  23  Normalizat    .69187        .24217        .36047E-03   -.31841E-03
  24  Prefactor     1.0328        .15089        .19577E-03   -.21780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.9069
  Prefactor  = 0.0001
  Prefactor  = 90.1299
  Prefactor  = 4.67564
  Prefactor  = 0.0001
  Prefactor  = 12.1901
  norm       = 3.27348
  Prefactor  = 8.04469
  Prefactor  = 10.7467
  Prefactor  = 0.0001
  norm       = 7.75849
  Prefactor  = 0.0001
  Prefactor  = 58.7918
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.62785
  norm       = 0.0001
  Prefactor  = 6.4352
  Prefactor  = 0.000100013
  Prefactor  = 7.54226
  Prefactor  = 0.000100006
  Prefactor  = 9.27654
  Normalizat = 0.691872
  Prefactor  = 1.03276
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.211     FROM HESSE     STATUS=OK           383 CALLS     3545 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.907        26.597        .21460E-05   -1.4211    
   2  Prefactor     .10000E-03    7.2508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     90.130        44.585        .84601E-05   -1.3806    
   4  Prefactor     4.6756        5.0073        .73298E-05   -1.5275    
   5  Prefactor     .10000E-03    4.6302        .34172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.190        20.184        .45904E-05   -1.5010    
   7  norm          3.2735        1.3586        .23260E-05   -1.5346    
   8  Prefactor     8.0447        10.238        .56554E-05   -1.5141    
   9  Prefactor     10.747        13.842        .48893E-05   -1.5052    
  10  Prefactor     .10000E-03    29.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7585        8.0362        .57584E-05   -1.5151    
  12  Prefactor     .10000E-03    2.7302        .26195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.792        137.01        .10460E-04   -1.4173    
  14  Prefactor     .10000E-03    6.5084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6279        8.0386        .84852E-05   -1.5327    
  17  norm          .10000E-03    7.2331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4352        5.5741        .63265E-05   -1.5201    
  19  Prefactor     .10001E-03    33.490        .12804       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5423        25.236        .58288E-05   -1.5159    
  21  Prefactor     .10001E-03    24.708        .64691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2765        13.924        .52635E-05   -1.5099    
  23  Normalizat    .69187        .24225        .14419E-04   -1.0421    
  24  Prefactor     1.0328        .15099        .39154E-04   -.91645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22528e-10
Minuit parameter uncertainties:
  1  26.6031
  2  5.55908e-06
  3  44.6016
  4  5.00777
  5  2.82704e-05
  6  20.1955
  7  1.35858
  8  10.2399
  9  13.846
  10  7.31525e-05
  11  8.03731
  12  2.89893e-05
  13  137.757
  14  8.19517e-05
  15  0.000322435
  16  8.04102
  17  3.68182e-05
  18  5.57455
  19  0.00130783
  20  25.2717
  21  0.000770633
  22  13.9285
  23  0.242629
  24  0.151049
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  3.224e-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.033e+00  1.510e-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.919e-01  2.426e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21240/likelihoodResults_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.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) = 6629.2107468
delta logL = -0.000149352504195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6629.21059772
delta logL = -2.70269993052e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5082       1.0000          .0000       10.000    
     3 'Normalizat'    .69188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6629.210     FROM MIGRAD    STATUS=FAILED       124 CALLS      324 TOTAL
                     EDM=   .50E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49147E-01    95.186        .12917       -.17889    
   2  Index         1.6197        9.0533        .50000       -.29474E-02
   3  Normalizat    .69185        .11903E-01    .36048E-03   -.31384E-01
   4  Prefactor     1.0326        .78282E-02    .19577E-03   -.59431E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6629.199     FROM SIMPLEX   STATUS=PROGRESS     107 CALLS      431 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6443        95.186        .64142E-03   -.17889    
   2  Index         1.7739        9.0533        .26129E-02   -.29474E-02
   3  Normalizat    .69132        .11903E-01    .86414E-05   -.31384E-01
   4  Prefactor     1.0323        .78282E-02    .28937E-05   -.59431E-01
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6629.199     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      498 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6556        1574.6        .66821E-02    .72253E-04
   2  Index         1.7719        5.1317        .50000       -.10758E-04
   3  Normalizat    .69375        .40151E-01    .72095E-04   -.78845E-06
   4  Prefactor     1.0304        .26192E-01    .39154E-04   -.63879E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65561
  Index      = 1.77186
  Normalizat = 0.693753
  Prefactor  = 1.03041
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.199     FROM HESSE     STATUS=OK            29 CALLS      527 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6556        31.550        .26728E-03   -1.5382    
   2  Index         1.7719        1.7596        .19598E-01   -.70184    
   3  Normalizat    .69375        .22618        .28838E-05   -1.0414    
   4  Prefactor     1.0304        .14936        .78308E-05   -.91723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90011e-13
Minuit parameter uncertainties:
  1  18.3186
  2  1.82874
  3  0.226485
  4  0.149419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21240': 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) = 6629.19898997
delta logL = 0.0116074796397

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.656e+00  1.832e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.772e+00  1.829e+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.030e+00  1.494e-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.938e-01  2.265e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/21240/cmap_HighResolution_597024001_597283201_4FGL_J2334.2+0736_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-29 23:55:55.095629', job_id='21240', GAL2='1.03', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632984955.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.16e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1380' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 21240: <4FGL_J2334.2+0736_daily_bin1380> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1380> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:40:39 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:40:41 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:40:41 2021
Terminated at Wed Sep 29 23:55:55 2021
Results reported at Wed Sep 29 23:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1380 353.557 7.602 597024001 597283201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

