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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin744
RA = 353.557, Dec = 7.602
tmin = 432172801, tmax = 432432001
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='18205', job_status='RUN', time_executed='2021-09-29 23:32:35.193167', time_epoch_executed='1632983555.19' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18205/ft1_4FGL_J2334.2+0736_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18205/ft2_4FGL_J2334.2+0736_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18205/ft1_4FGL_J2334.2+0736_daily_bin744.fits outfile=/scratch/kocevski/18205/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin744.fits ra=353.557 dec=7.602 rad=12.0 tmin=432172801.0 tmax=432432001.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 5.15
user 4.78
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18205/ft1_filtered_4FGL_J2334.2+0736_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/18205/ft2_4FGL_J2334.2+0736_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/18205/ltcube_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.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/18205/ft2_4FGL_J2334.2+0736_daily_bin744.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18205/ft1_filtered_4FGL_J2334.2+0736_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/18205/ft2_4FGL_J2334.2+0736_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/18205/ltcube_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.fits outfile=/scratch/kocevski/18205/expmap_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.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/18205/ltcube_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.fits
.....................!
real 191.15
user 185.68
sys 5.16

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/18205/ft1_filtered_4FGL_J2334.2+0736_daily_bin744.fits scfile=/scratch/kocevski/18205/ft2_4FGL_J2334.2+0736_daily_bin744.fits outfile=/scratch/kocevski/18205/cmap_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.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.52
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    121.49       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.098       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.181       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1257       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.828       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23471E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    70.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68881       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3867       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91226       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=   3862.413     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2674 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.796        23.212        .12945E-05    .20214E-04
   2  Prefactor     121.49        78.433       -.32816E-06   -.19960E-04
   3  Prefactor     .10000E-03    39.209        .38472E-05** at limit **
   4  Prefactor     21.105        19.860       -.29365E-05   -.15680E-03
   5  Prefactor     .10000E-03    11.201        .26222E-05** at limit **
   6  Prefactor     60.191        45.651        .63303E-06    .17115E-04
   7  norm          2.1172        2.0779        .53840E-07   -.25656E-03
   8  Prefactor     .10000E-03    7.4119       -.74774E-07** at limit **
   9  Prefactor     .10000E-03    13.192        .25141E-05** at limit **
  10  Prefactor     .10000E-03    42.119       -.38443E-05** at limit **
  11  norm          11.835        12.579       -.57287E-06   -.74982E-04
  12  Prefactor     .10000E-03    9.1993       -.97676E-07** at limit **
  13  Prefactor     .10001E-03    414.32        .19863E-04** at limit **
  14  Prefactor     .10000E-03    12.017       -.38356E-05** at limit **
  15  Prefactor     .10000E-03    29.875        .98406E-06** at limit **
  16  norm          .10000E-03    8.2141       -.49224E-07** at limit **
  17  norm          70.845        43.558       -.48525E-05   -.11316E-03
  18  Prefactor     .10000E-03    4.5250        .98604E-07** at limit **
  19  Prefactor     .10000E-03    40.696       -.66590E-06** at limit **
  20  Prefactor     .10000E-03    44.154       -.62692E-05** at limit **
  21  Prefactor     .70807        7.3210        .19702E-05   -.75710E-03
  22  Prefactor     .10000E-03    49.542        .60600E-05** at limit **
  23  Normalizat    1.3867        .32331        .25822E-06   -.72986E-04
  24  Prefactor     .91213        .20504        .36999E-06   -.88238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7961
  Prefactor  = 121.485
  Prefactor  = 0.0001
  Prefactor  = 21.1047
  Prefactor  = 0.0001
  Prefactor  = 60.1913
  norm       = 2.11721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.835
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 70.8451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.708066
  Prefactor  = 0.0001
  Normalizat = 1.38667
  Prefactor  = 0.912133
 **********
 **   18 **HESSE 
 **********

 FCN=   3862.413     FROM HESSE     STATUS=OK           391 CALLS     3065 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.796        23.215        .10412E-03   -1.4938    
   2  Prefactor     121.49        78.417        .36514E-04   -1.3499    
   3  Prefactor     .10000E-03    39.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.105        19.954        .87200E-04   -1.4789    
   5  Prefactor     .10000E-03    11.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.191        45.682        .51720E-04   -1.4155    
   7  norm          2.1172        2.0656        .85356E-04   -1.5417    
   8  Prefactor     .10000E-03    7.4218        .16520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.835        12.593        .11648E-03   -1.5020    
  12  Prefactor     .10000E-03    9.2716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    415.10        .20080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.2210        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          70.845        43.355        .23834E-03   -1.4023    
  18  Prefactor     .10000E-03    4.5656        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .70807        30.118        .31519E-02   -1.5540    
  22  Prefactor     .10000E-03    49.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3867        .38586        .32021E-03   -.81015    
  24  Prefactor     .91213        .24533        .24499E-03   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3537e-09
Minuit parameter uncertainties:
  1  23.2289
  2  78.4837
  3  0.000177765
  4  19.9606
  5  7.98605e-05
  6  45.7086
  7  2.06564
  8  3.32877e-06
  9  7.06364e-05
  10  0.000182298
  11  12.5958
  12  1.43836e-05
  13  0.00345558
  14  3.72435e-05
  15  5.11202e-05
  16  1.66469e-06
  17  43.3742
  18  2.72811e-05
  19  1.9282e-05
  20  0.000313111
  21  9.24025
  22  0.00031242
  23  0.386669
  24  0.24563
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  5.112e-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.121e-01  2.456e-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.387e+00  3.867e-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.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18205/likelihoodResults_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.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) = 3862.41338001
delta logL = -0.000159014600285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3862.41322202
delta logL = -1.02485091702e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2026       1.0000          .0000       10.000    
     3 'Normalizat'    1.3867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91213       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=   3862.413     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      288 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10770E-03    2.2308        .18142E-01** at limit **
   2  Index         2.9760        7.9301        .50000        .79014E-05
   3  Normalizat    1.3867        .26343E-02    .32021E-03    .34439E-05
   4  Prefactor     .91213        .16864E-02    .24499E-03    .96754E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107698
  Index      = 2.97595
  Normalizat = 1.38667
  Prefactor  = 0.912134
 **********
 **   18 **HESSE 
 **********

 FCN=   3862.413     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10770E-03    950.53        .55800E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9760        7.4276        .50000       -.41677    
   3  Normalizat    1.3867        .56853E-01    .12808E-04   -.81015    
   4  Prefactor     .91213        .36374E-01    .97996E-05   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.80646e-08
Minuit parameter uncertainties:
  1  0.173919
  2  2236.03
  3  0.0568554
  4  0.0363751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18205': 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) = 3862.41322177
delta logL = -7.67813162383e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.077e-04  1.739e-01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.976e+00  2.236e+03  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.121e-01  3.638e-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.387e+00  5.686e-02  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/18205/cmap_HighResolution_432172801_432432001_4FGL_J2334.2+0736_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-29 23:41:24.876741', job_id='18205', GAL2='0.91', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632984084.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-7.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='744' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 18205: <4FGL_J2334.2+0736_daily_bin744> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin744 353.557 7.602 432172801 432432001 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 :                                   530.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            653 sec.

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

