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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1410
RA = 338.568, Dec = -41.9411
tmin = 604800001, tmax = 605059201
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='362817', job_status='RUN', time_executed='2021-09-28 14:55:27.346900', time_epoch_executed='1632866127.35' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362817/ft1_4FGL_J2234.2-4156_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362817/ft1_4FGL_J2234.2-4156_daily_bin1410.fits outfile=/scratch/kocevski/362817/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1410.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=604800001.0 tmax=605059201.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.17
user 4.88
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.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/362817/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/362817/ltcube_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.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/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits
.....................!
real 12.06
user 11.65
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/362817/ltcube_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits outfile=/scratch/kocevski/362817/expmap_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.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/362817/ltcube_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits
.....................!
real 192.74
user 187.42
sys 4.92

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

Setting source of interest to:
4FGL J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits outfile=/scratch/kocevski/362817/cmap_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.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.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits outfile=/scratch/kocevski/362817/cmap_HighResolution_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.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.568 yref=-41.9411 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/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362817/Model_4FGL_J2234.2-4156_daily_bin1410.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/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits.....................!
real 38.13
user 36.71
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits', '/scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits', expMap='/scratch/kocevski/362817/expmap_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits', expCube='/scratch/kocevski/362817/ltcube_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362817/Model_4FGL_J2234.2-4156_daily_bin1410.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362817/ft1_filtered_4FGL_J2234.2-4156_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/362817/ft2_4FGL_J2234.2-4156_daily_bin1410.fits
Exposure map: /scratch/kocevski/362817/expmap_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits
Exposure cube: /scratch/kocevski/362817/ltcube_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362817/Model_4FGL_J2234.2-4156_daily_bin1410.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) = 4578.79429897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    20.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.659       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.268       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.980       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72545E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    6.7537       1.0000         .10000E-03   10000.    
    24 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.580       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2805       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4578.783     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     4604 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.996        .17349E-06** at limit **
   2  norm          20.074        7.5026       -.36133E-06    .49983E-04
   3  Prefactor     .10000E-03    6.2974       -.32988E-07** at limit **
   4  Prefactor     .10000E-03    4.1882       -.10002E-07** at limit **
   5  Prefactor     .10000E-03    13.301        .27855E-06** at limit **
   6  Prefactor     .94010        6.1670       -.25717E-05    .48075E-03
   7  Prefactor     .10000E-03    109.71        .11699E-06** at limit **
   8  norm          6.4994        6.2775        .12532E-06    .14259E-03
   9  Prefactor     .10000E-03    3.6046       -.23235E-07** at limit **
  10  Prefactor     2.2671        4.1662       -.48389E-06   -.46852E-03
  11  Prefactor     54.403        53.585       -.33992E-05    .33730E-05
  12  Prefactor     .10000E-03    7.9308        .67368E-06** at limit **
  13  Prefactor     49.652        35.758        .11100E-05    .55160E-05
  14  Prefactor     5.4147        54.825        .66290E-05   -.46591E-05
  15  Prefactor     .10000E-03    50.402       -.23814E-06** at limit **
  16  Prefactor     9.9464        16.862        .39930E-06    .41885E-05
  17  Prefactor     70.263        125.60       -.38286E-05    .42470E-05
  18  Prefactor     .10000E-03    7.3242       -.28827E-07** at limit **
  19  Prefactor     .10000E-03    4.6306       -.11211E-07** at limit **
  20  Prefactor     9.7113        33.617        .26002E-05   -.26557E-05
  21  Prefactor     20.954        78.633       -.37344E-04    .43417E-06
  22  Prefactor     .10000E-03    15.619       -.38635E-06** at limit **
  23  norm          6.7534        10.781       -.13897E-05   -.71701E-03
  24  norm          .10000E-03    8.3078       -.84041E-06** at limit **
  25  norm          .10000E-03    2.2842       -.48537E-12** at limit **
  26  norm          12.579        14.573        .24918E-06   -.82300E-05
  27  Prefactor     10.783        7.7889       -.20726E-06   -.25659E-03
  28  Prefactor     .10000E-03    10.757        .60972E-06** at limit **
  29  norm          .10000E-03    1.4110       -.10234E-07** at limit **
  30  Prefactor     .10000E-03    21.555       -.10368E-06** at limit **
  31  norm          .10000E-03    1.8513       -.36962E-08** at limit **
  32  Normalizat    1.2808        .24453        .16952E-05    .16726E-03
  33  Prefactor     .93265        .22336        .33661E-06    .20938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 20.0736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.940103
  Prefactor  = 0.0001
  norm       = 6.49938
  Prefactor  = 0.0001
  Prefactor  = 2.26709
  Prefactor  = 54.4027
  Prefactor  = 0.0001
  Prefactor  = 49.6517
  Prefactor  = 5.41469
  Prefactor  = 0.0001
  Prefactor  = 9.94639
  Prefactor  = 70.2632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71129
  Prefactor  = 20.9536
  Prefactor  = 0.000100003
  norm       = 6.75343
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.5788
  Prefactor  = 10.7833
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2808
  Prefactor  = 0.932651
 **********
 **   18 **HESSE 
 **********

 FCN=   4578.783     FROM HESSE     STATUS=OK           697 CALLS     5301 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.074        7.5072        .89396E-04   -1.4812    
   3  Prefactor     .10000E-03    6.3391        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1983        .13524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94010        24.708        .31014E-02   -1.5514    
   7  Prefactor     .10000E-03    109.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4994        6.2825        .15742E-03   -1.5198    
   9  Prefactor     .10000E-03    3.6165        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2671        4.1723        .17828E-03   -1.5407    
  11  Prefactor     54.403        53.354        .54376E-04   -1.4231    
  12  Prefactor     .10000E-03    8.2498        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.652        35.724        .56907E-04   -1.4298    
  14  Prefactor     5.4147        54.512        .17241E-03   -1.5243    
  15  Prefactor     .10000E-03    50.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9464        16.792        .12704E-03   -1.5077    
  17  Prefactor     70.263        125.25        .47888E-04   -1.4030    
  18  Prefactor     .10000E-03    7.3408        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6538        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7113        33.592        .12852E-03   -1.5085    
  21  Prefactor     20.954        77.988        .87446E-04   -1.4792    
  22  Prefactor     .10000E-03    19.325        .80534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.7534        11.053        .77198E-03   -1.5188    
  24  norm          .10000E-03    8.4610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2878        .99879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.579        14.572        .11294E-03   -1.4998    
  27  Prefactor     10.783        7.7878        .61012E-03   -1.5051    
  28  Prefactor     .10000E-03    10.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.4124        .78497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    21.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.8525        .89917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2808        .29835        .25348E-03   -.84141    
  33  Prefactor     .93265        .27154        .27214E-03   -.95009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6827e-09
Minuit parameter uncertainties:
  1  2.01764e-06
  2  7.5076
  3  9.25245e-06
  4  3.00559e-06
  5  6.26851e-06
  6  9.643
  7  0.00016391
  8  6.28313
  9  5.19326e-06
  10  4.17281
  11  53.4004
  12  3.17194e-05
  13  35.7394
  14  34.4012
  15  4.7783e-05
  16  16.7997
  17  125.726
  18  6.59622e-06
  19  1.49344e-06
  20  33.6577
  21  78.3711
  22  0.000481181
  23  11.0563
  24  4.3181e-06
  25  3.97113e-07
  26  14.5766
  27  7.78856
  28  1.60298e-06
  29  3.01401e-07
  30  4.26086e-06
  31  5.56489e-07
  32  0.298751
  33  0.27194
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  5.440e+01  5.340e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.327e-01  2.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.281e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.03e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 2.09e-05

TS (Fixed Index): 2.29
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362817/likelihoodResults_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.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) = 4578.75115318
delta logL = 0.031558502983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4578.75093189
delta logL = 0.0317797904372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.681       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1594       1.0000          .0000       10.000    
     3 'Normalizat'    1.2739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4578.751     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      249 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.681        1396.5        .14995E-02    .26394E-03
   2  Index         2.1594        6.0182        .11835        .88622E-04
   3  Normalizat    1.2738        .12226        .57452E-01    .44568E-05
   4  Prefactor     .93632        .90941E-01    .45465E-01    .10516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.6807
  Index      = 2.15941
  Normalizat = 1.27381
  Prefactor  = 0.93632
 **********
 **   18 **HESSE 
 **********

 FCN=   4578.751     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.681        63.129        .59979E-04   -1.4370    
   2  Index         2.1594        .72153        .62645E-02   -.60422    
   3  Normalizat    1.2738        .28876        .25407E-03   -.84352    
   4  Prefactor     .93632        .26935        .27166E-03   -.94883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18117e-09
Minuit parameter uncertainties:
  1  63.2239
  2  0.725281
  3  0.289127
  4  0.269731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362817': 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) = 4578.7509318
delta logL = 0.0317798743117

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.468e+01  6.322e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.159e+00  7.253e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.363e-01  2.697e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.274e+00  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.16 +/- 0.73
Photon Flux (Free Index): 3.62e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.18e-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/362817/cmap_HighResolution_604800001_605059201_4FGL_J2234.2-4156_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', photon_flux='3.03e-08', energy_flux2='1.76e-05', photon_flux_error='2.97e-08', dlogl='3.18e-02', energy_flux='2.13e-05', photon_flux2='3.62e-08', job_status='DONE', time_completed='2021-09-28 15:08:24.794460', photon_index_error2='0.73', photon_index2='2.16', ts='2.29', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='2.18e-05', EG='1.28', time_epoch_completed='1632866904.79', return_code='0', job_id='362817', GAL2='0.94', EG2='1.27', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='4.02e-08', ts2='2.36', photon_index='1.99' WHERE bin_id='1410' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:08:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 362817: <4FGL_J2234.2-4156_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1410> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:15 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:17 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:55:17 2021
Terminated at Tue Sep 28 15:08:25 2021
Results reported at Tue Sep 28 15:08:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1410 338.568 -41.9411 604800001 605059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

