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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin1102
RA = 338.543, Dec = -26.9375
tmin = 524966401, tmax = 525225601
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='354328', job_status='RUN', time_executed='2021-09-28 14:27:06.421450', time_epoch_executed='1632864426.42' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354328/ft1_4FGL_J2234.1-2656_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354328/ft1_4FGL_J2234.1-2656_daily_bin1102.fits outfile=/scratch/kocevski/354328/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1102.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=524966401.0 tmax=525225601.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.50
user 3.21
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.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/354328/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/354328/ltcube_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.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/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits
.....................!
real 12.29
user 11.76
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/354328/ltcube_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits outfile=/scratch/kocevski/354328/expmap_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.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/354328/ltcube_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits
.....................!
real 190.59
user 184.98
sys 5.14

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

Setting source of interest to:
4FGL J2234.1-2656 @ 338.543 -26.9375

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits outfile=/scratch/kocevski/354328/cmap_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.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.543 yref=-26.9375 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits outfile=/scratch/kocevski/354328/cmap_HighResolution_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.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.543 yref=-26.9375 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354328/Model_4FGL_J2234.1-2656_daily_bin1102.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/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits....................!
real 55.02
user 53.47
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits', '/scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits', expMap='/scratch/kocevski/354328/expmap_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits', expCube='/scratch/kocevski/354328/ltcube_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354328/Model_4FGL_J2234.1-2656_daily_bin1102.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.1-2656'

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/354328/ft1_filtered_4FGL_J2234.1-2656_daily_bin1102.fits
Spacecraft file(s): /scratch/kocevski/354328/ft2_4FGL_J2234.1-2656_daily_bin1102.fits
Exposure map: /scratch/kocevski/354328/expmap_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits
Exposure cube: /scratch/kocevski/354328/ltcube_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354328/Model_4FGL_J2234.1-2656_daily_bin1102.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) = 7088.0938527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6757       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2166       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37607E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.981       1.0000         .10000E-03   10000.    
    10 'norm      '    11.583       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6870       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88055       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66040       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62203       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93105       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7088.066     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2648 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.543        10.414        .30106E-10   -.65674E-04
   2  Prefactor     .10000E-03    19.658        .40918E-05** at limit **
   3  Prefactor     7.6373        52.759       -.45417E-06    .14219E-04
   4  norm          1.2154        4.0012       -.16907E-05   -.58993E-03
   5  norm          1.6598        .38033        .47756E-07   -.46712E-03
   6  Prefactor     .10002E-03    17.073       -.32026E-05** at limit **
   7  Prefactor     .10000E-03    7.8790        .48643E-07** at limit **
   8  Prefactor     4.9574        5.7276       -.32922E-06   -.45939E-03
   9  Prefactor     39.967        55.672        .78634E-06    .11817E-03
  10  norm          11.593        13.500       -.71606E-07   -.68278E-04
  11  Prefactor     .10000E-03    5.8217       -.58833E-07** at limit **
  12  Prefactor     .10000E-03    8.6635       -.73955E-07** at limit **
  13  norm          .10000E-03    1.2118        .46684E-07** at limit **
  14  Prefactor     54.175        33.675       -.89603E-06   -.18969E-03
  15  Prefactor     9.6817        7.4406       -.38555E-07   -.15233E-03
  16  norm          .10000E-03    1.1858        .76410E-07** at limit **
  17  Prefactor     .10001E-03    40.750        .49066E-05** at limit **
  18  Prefactor     .87880        14.595        .49165E-05   -.10608E-02
  19  norm          4.3783        .99737       -.28817E-06   -.82212E-02
  20  Prefactor     .10000E-03    37.853        .22941E-06** at limit **
  21  Prefactor     .67588        11.850       -.48346E-06   -.23426E-03
  22  Normalizat    .62205        .15487       -.10377E-05   -.64725E-03
  23  Prefactor     .93112        .13702        .34452E-06   -.65195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5434
  Prefactor  = 0.000100005
  Prefactor  = 7.63729
  norm       = 1.21539
  norm       = 1.65975
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 4.95744
  Prefactor  = 39.9668
  norm       = 11.5927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.1751
  Prefactor  = 9.68172
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.878796
  norm       = 4.37834
  Prefactor  = 0.0001
  Prefactor  = 0.675883
  Normalizat = 0.622054
  Prefactor  = 0.931117
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.066     FROM HESSE     STATUS=OK           376 CALLS     3024 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.543        10.405        .11790E-03   -1.5028    
   2  Prefactor     .10000E-03    20.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6373        49.930        .14474E-03   -1.5155    
   4  norm          1.2154        3.9917        .25479E-03   -1.5487    
   5  norm          1.6598        .37900        .22340E-04   -1.5450    
   6  Prefactor     .10002E-03    35.934        .38623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9574        5.7449        .18056E-03   -1.5263    
   9  Prefactor     39.967        55.798        .63393E-04   -1.4443    
  10  norm          11.593        13.487        .11771E-03   -1.5027    
  11  Prefactor     .10000E-03    5.8324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9205        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.175        33.543        .54523E-04   -1.4235    
  15  Prefactor     9.6817        7.4497        .12875E-03   -1.5086    
  16  norm          .10000E-03    1.1902        .89395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    60.868        .45617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .87880        34.466        .27411E-02   -1.5520    
  19  norm          4.3783        1.1207        .29106E-04   -1.5289    
  20  Prefactor     .10000E-03    38.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .67588        27.530        .40906E-02   -1.5544    
  22  Normalizat    .62205        .18631        .26416E-03   -1.0706    
  23  Prefactor     .93112        .16711        .20662E-03   -.95062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91618e-09
Minuit parameter uncertainties:
  1  10.4065
  2  0.000611245
  3  39.1025
  4  3.99258
  5  0.379004
  6  0.00169199
  7  1.24642e-05
  8  5.74553
  9  55.8713
  10  13.4906
  11  1.20062e-06
  12  3.31429e-05
  13  2.18766e-05
  14  33.555
  15  7.45037
  16  1.22764e-06
  17  0.00162219
  18  11.0132
  19  1.12067
  20  0.000225895
  21  8.63087
  22  0.186497
  23  0.167199
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.159e+01  1.349e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.311e-01  1.672e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.221e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 338.543 -26.938
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 8.35e-06 +/- 9.71e-06

TS (Fixed Index): 1.24
Ra Dec: 338.543 -26.938
Photon Flux Upper Limit: 4.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354328/likelihoodResults_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.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) = 7087.61634461
delta logL = 0.449430057793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7087.61164641
delta logL = 0.454128256136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0794       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7938       1.0000          .0000       5.0000    
     3 'Normalizat'    .59901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   7087.612     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0806        13.024        .15077E-03    .82041E-04
   2  alpha         2.7947        1.0965        .14043E-01    .17190E-04
   3  Normalizat    .59919        .17527        .26871E-03    .26147E-03
   4  Prefactor     .94355        .16471        .20531E-03    .41508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.08063
  alpha      = 2.7947
  Normalizat = 0.599186
  Prefactor  = 0.943546
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.612     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0806        10.606        .60307E-05   -1.5176    
   2  alpha         2.7947        .90286        .56174E-03    .11815    
   3  Normalizat    .59919        .17484        .10748E-04   -1.0802    
   4  Prefactor     .94355        .16446        .41063E-04   -.94636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10988e-10
Minuit parameter uncertainties:
  1  10.609
  2  0.924045
  3  0.175001
  4  0.164551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354328': 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) = 7087.61164212
delta logL = 0.454132547456

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  7.081e+00  1.061e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  2.795e+00  9.240e-01  0.000e+00  5.000e+00 ( 1.000e+00)
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.435e-01  1.646e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  5.992e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 338.543 -26.938
Photon Index (Free Index): 2.79 +/- 0.92
Photon Flux (Free Index): 2.87e-08 +/- 2.79e-08
Energy Flux (Free Index): 6.98e-06 +/- 6.07e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/354328/cmap_HighResolution_524966401_525225601_4FGL_J2234.1-2656_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-05', comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='6.98e-06', photon_flux_error='1.39e-08', dlogl='4.54e-01', energy_flux='8.35e-06', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-28 14:38:38.284070', photon_index_error2='0.92', photon_index2='2.79', ts='1.24', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='4.88e-08', energy_flux_error2='6.07e-06', EG='0.62', time_epoch_completed='1632865118.28', return_code='0', job_id='354328', GAL2='0.94', EG2='0.60', return_code2='0', energy_flux_error='9.71e-06', photon_flux_error2='2.79e-08', ts2='2.17', photon_index='1.95' WHERE bin_id='1102' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 354328: <4FGL_J2234.1-2656_daily_bin1102> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin1102> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:25:20 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:25:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:25:22 2021
Terminated at Tue Sep 28 14:38:39 2021
Results reported at Tue Sep 28 14:38:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin1102 338.543 -26.9375 524966401 525225601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.1-2656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

