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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin375
RA = 338.691, Dec = 9.732
tmin = 336528001, tmax = 336787201
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='364834', job_status='RUN', time_executed='2021-09-28 15:00:58.538642', time_epoch_executed='1632866458.54' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364834

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364834/ft1_4FGL_J2234.7+0943_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364834/ft1_4FGL_J2234.7+0943_daily_bin375.fits outfile=/scratch/kocevski/364834/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin375.fits ra=338.691 dec=9.732 rad=12.0 tmin=336528001.0 tmax=336787201.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.79
user 5.52
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.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/364834/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/364834/ltcube_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.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/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits
.....................!
real 14.39
user 14.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/364834/ltcube_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits outfile=/scratch/kocevski/364834/expmap_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.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/364834/ltcube_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits
.....................!
real 191.57
user 185.93
sys 5.10

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits outfile=/scratch/kocevski/364834/cmap_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.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=338.691 yref=9.732 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits outfile=/scratch/kocevski/364834/cmap_HighResolution_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.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=338.691 yref=9.732 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364834/Model_4FGL_J2234.7+0943_daily_bin375.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/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits.....................!
real 47.82
user 46.40
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits', '/scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits', expMap='/scratch/kocevski/364834/expmap_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits', expCube='/scratch/kocevski/364834/ltcube_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364834/Model_4FGL_J2234.7+0943_daily_bin375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/364834/ft1_filtered_4FGL_J2234.7+0943_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/364834/ft2_4FGL_J2234.7+0943_daily_bin375.fits
Exposure map: /scratch/kocevski/364834/expmap_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits
Exposure cube: /scratch/kocevski/364834/ltcube_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364834/Model_4FGL_J2234.7+0943_daily_bin375.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) = 4225.11210007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    30.862       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8426       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7934       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14429       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.024       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6063       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.371       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.897       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72355       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4225.008     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2383 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8285       -.39472E-06** at limit **
   2  norm          30.902        47.598        .14553E-04    .24198E-04
   3  norm          1.1236        1.6069        .33204E-07   -.49560E-03
   4  Prefactor     41.635        45.218        .23590E-04    .10423E-03
   5  Prefactor     12.045        19.253       -.16518E-04   -.10235E-04
   6  Prefactor     2.7480        167.20       -.49290E-04   -.53792E-04
   7  norm          .10000E-03    7.6355        .10808E-06** at limit **
   8  Prefactor     18.969        22.324        .12303E-04    .19187E-04
   9  Prefactor     32.485        25.011       -.15960E-05   -.37606E-05
  10  Prefactor     .76708        .32375       -.12917E-06    .32803E-03
  11  Prefactor     5.7928        6.3443       -.63269E-05    .77837E-04
  12  norm          1.3916        1.6757       -.79812E-08   -.75346E-04
  13  Prefactor     .10000E-03    24.862       -.84290E-07** at limit **
  14  Prefactor     .10000E-03    16.589       -.12960E-05** at limit **
  15  Prefactor     .10000E-03    15.779        .14510E-05** at limit **
  16  Prefactor     .14428        .13442        .44186E-07    .29989E-03
  17  Prefactor     62.013        43.529       -.34641E-05   -.28726E-05
  18  Prefactor     7.6057        12.981       -.28034E-07   -.90896E-04
  19  Prefactor     25.368        23.607        .37188E-05   -.92115E-05
  20  Prefactor     29.896        27.257       -.48627E-08   -.92088E-06
  21  Normalizat    .72363        .31194       -.80837E-05    .75460E-04
  22  Prefactor     .97727        .15709        .73016E-06   -.18101E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 30.9021
  norm       = 1.12363
  Prefactor  = 41.6352
  Prefactor  = 12.0448
  Prefactor  = 2.74802
  norm       = 0.0001
  Prefactor  = 18.9688
  Prefactor  = 32.4852
  Prefactor  = 0.767081
  Prefactor  = 5.79281
  norm       = 1.39161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.144284
  Prefactor  = 62.0128
  Prefactor  = 7.60572
  Prefactor  = 25.3679
  Prefactor  = 29.8964
  Normalizat = 0.723628
  Prefactor  = 0.977273
 **********
 **   18 **HESSE 
 **********

 FCN=   4225.008     FROM HESSE     STATUS=OK           346 CALLS     2729 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8782        .12403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.902        47.518        .72123E-04   -1.4596    
   3  norm          1.1236        1.5695        .93800E-04   -1.5496    
   4  Prefactor     41.635        45.132        .62135E-04   -1.4417    
   5  Prefactor     12.045        19.247        .11545E-03   -1.5014    
   6  Prefactor     2.7480        167.27        .24117E-03   -1.5376    
   7  norm          .10000E-03    7.8806        .35063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.969        22.331        .91952E-04   -1.4837    
   9  Prefactor     32.485        25.022        .70302E-04   -1.4567    
  10  Prefactor     .76708        .32296        .21903E-04   -1.5533    
  11  Prefactor     5.7928        6.3327        .16654E-03   -1.5227    
  12  norm          1.3916        1.6550        .89977E-04   -1.5472    
  13  Prefactor     .10000E-03    24.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14428        .13662        .21749E-04   -1.5632    
  17  Prefactor     62.013        43.567        .50950E-04   -1.4131    
  18  Prefactor     7.6057        12.922        .14541E-03   -1.5156    
  19  Prefactor     25.368        23.565        .79530E-04   -1.4700    
  20  Prefactor     29.896        27.255        .73275E-04   -1.4614    
  21  Normalizat    .72363        .35663        .38370E-03   -1.0297    
  22  Prefactor     .97727        .18342        .18511E-03   -.93491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6156e-10
Minuit parameter uncertainties:
  1  7.57698e-05
  2  47.5758
  3  1.56951
  4  45.1692
  5  19.2564
  6  43.0052
  7  2.23343e-05
  8  22.3408
  9  25.0304
  10  0.322959
  11  6.3334
  12  1.65507
  13  2.26323e-05
  14  4.29103e-05
  15  1.67718e-05
  16  0.136616
  17  43.5897
  18  12.9271
  19  23.5741
  20  27.2661
  21  0.357781
  22  0.18354
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.793e+00  6.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.773e-01  1.835e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  7.236e-01  3.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.20e-05

TS (Fixed Index): 2.92
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364834/likelihoodResults_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.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) = 4225.00631533
delta logL = 0.00198828160865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4225.00587216
delta logL = 0.00243145806053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9946       1.0000         .10000E-03   10000.    
     2 'Index1    '    .86426       1.0000          .0000       10.000    
     3 'Normalizat'    .72398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   4225.006     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      258 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0005        7.2526        .16400E-03   -.11757E-03
   2  Index1        .86502        1.0817        .17527E-01   -.13934E-04
   3  Normalizat    .72403        .32487        .38361E-03   -.21670E-03
   4  Prefactor     .97733        .18174        .18511E-03   -.28021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00052
  Index1     = 0.865017
  Normalizat = 0.724027
  Prefactor  = 0.97733
 **********
 **   18 **HESSE 
 **********

 FCN=   4225.006     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0005        7.1263        .65600E-05   -1.5218    
   2  Index1        .86502        1.0646        .70107E-03   -.97374    
   3  Normalizat    .72403        .32506        .15344E-04   -1.0295    
   4  Prefactor     .97733        .18186        .37021E-04   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60015e-10
Minuit parameter uncertainties:
  1  7.12735
  2  1.09186
  3  0.325927
  4  0.181972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364834': 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) = 4225.00587117
delta logL = 0.00243244622015

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.001e+00  7.127e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  8.650e-01  1.092e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.773e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  7.240e-01  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.87 +/- 1.09
Photon Flux (Free Index): 1.39e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.30e-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/364834/cmap_HighResolution_336528001_336787201_4FGL_J2234.7+0943_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-05', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='1.13e-05', photon_flux_error='1.63e-08', dlogl='2.43e-03', energy_flux='1.10e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-28 15:09:47.512187', photon_index_error2='1.09', photon_index2='0.87', ts='2.92', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.21e-08', energy_flux_error2='1.30e-05', EG='0.72', time_epoch_completed='1632866987.51', return_code='0', job_id='364834', GAL2='0.98', EG2='0.72', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.02e-08', ts2='2.93', photon_index='0.94' WHERE bin_id='375' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 364834: <4FGL_J2234.7+0943_daily_bin375> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin375> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:46 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:00:47 2021
Terminated at Tue Sep 28 15:09:47 2021
Results reported at Tue Sep 28 15:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin375 338.691 9.732 336528001 336787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   526.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            541 sec.

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

