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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1608
RA = 338.568, Dec = -41.9411
tmin = 656121601, tmax = 656380801
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='486296', job_status='RUN', time_executed='2021-12-08 08:42:36.808491', time_epoch_executed='1638981756.81' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486296

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486296/ft1_4FGL_J2234.2-4156_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486296/ft1_4FGL_J2234.2-4156_daily_bin1608.fits outfile=/scratch/kocevski/486296/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1608.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=656121601.0 tmax=656380801.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/486296/ltcube_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.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/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits
.....................!
real 13.12
user 12.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/486296/ltcube_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits outfile=/scratch/kocevski/486296/expmap_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.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/486296/ltcube_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits
.....................!
real 193.34
user 188.27
sys 4.57

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/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits scfile=/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits outfile=/scratch/kocevski/486296/cmap_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits scfile=/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits outfile=/scratch/kocevski/486296/cmap_HighResolution_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.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.58
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486296/Model_4FGL_J2234.2-4156_daily_bin1608.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/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits.....................!
real 39.96
user 38.47
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits', '/scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits', expMap='/scratch/kocevski/486296/expmap_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits', expCube='/scratch/kocevski/486296/ltcube_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486296/Model_4FGL_J2234.2-4156_daily_bin1608.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/486296/ft1_filtered_4FGL_J2234.2-4156_daily_bin1608.fits
Spacecraft file(s): /scratch/kocevski/486296/ft2_4FGL_J2234.2-4156_daily_bin1608.fits
Exposure map: /scratch/kocevski/486296/expmap_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits
Exposure cube: /scratch/kocevski/486296/ltcube_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486296/Model_4FGL_J2234.2-4156_daily_bin1608.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) = 4707.0279944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4306       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    107.09       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21564E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.180       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12591E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92267       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0703       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=   4707.026     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4555 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4317        113.02        .15225E-06   -.42607E-05
   2  norm          6.4213        5.7570        .46487E-07   -.28278E-04
   3  Prefactor     .10000E-03    29.464        .53965E-06** at limit **
   4  Prefactor     .10000E-03    12.791        .31917E-06** at limit **
   5  Prefactor     .10000E-03    22.916        .31153E-06** at limit **
   6  Prefactor     .10000E-03    5.0964       -.18840E-07** at limit **
   7  Prefactor     107.07        100.86        .17159E-05   -.23802E-04
   8  norm          .10000E-03    3.3659       -.81608E-07** at limit **
   9  Prefactor     4.7118        9.8358        .31108E-06   -.84393E-05
  10  Prefactor     2.9190        4.0215       -.19674E-06    .73878E-05
  11  Prefactor     .10000E-03    15.558       -.36366E-06** at limit **
  12  Prefactor     1.6235        5.9893        .33103E-06   -.40614E-04
  13  Prefactor     4.3685        27.806        .44394E-06   -.15942E-05
  14  Prefactor     .10000E-03    13.599        .35632E-06** at limit **
  15  Prefactor     .10000E-03    109.93       -.16283E-05** at limit **
  16  Prefactor     6.4975        11.640        .35410E-06    .16997E-04
  17  Prefactor     .10000E-03    34.605       -.11600E-05** at limit **
  18  Prefactor     45.074        18.582        .25809E-06   -.91347E-05
  19  Prefactor     3.3317        8.1234        .41361E-05    .86493E-04
  20  Prefactor     29.636        35.470        .21388E-05   -.20321E-04
  21  Prefactor     29.193        68.887       -.16755E-05    .69993E-05
  22  Prefactor     .10000E-03    9.2457       -.23415E-06** at limit **
  23  norm          .10000E-03    3.4699        .53845E-07** at limit **
  24  norm          .10000E-03    2.6574        .12852E-08** at limit **
  25  norm          .10000E-03    1.8757        .51988E-08** at limit **
  26  norm          .10000E-03    5.3176       -.44404E-06** at limit **
  27  Prefactor     .10001E-03    4.3081        .13744E-05** at limit **
  28  Prefactor     .10000E-03    21.557       -.48803E-07** at limit **
  29  norm          .10000E-03    1.6743        .12402E-07** at limit **
  30  Prefactor     .10000E-03    4.0383       -.31824E-07** at limit **
  31  norm          .10000E-03    5.9278        .12459E-06** at limit **
  32  Normalizat    .92247        .21922       -.14294E-05   -.57438E-04
  33  Prefactor     1.0704        .20084        .19053E-06   -.82813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43172
  norm       = 6.42131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.071
  norm       = 0.0001
  Prefactor  = 4.71181
  Prefactor  = 2.91905
  Prefactor  = 0.0001
  Prefactor  = 1.62351
  Prefactor  = 4.36845
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.49752
  Prefactor  = 0.0001
  Prefactor  = 45.0737
  Prefactor  = 3.33171
  Prefactor  = 29.6363
  Prefactor  = 29.1933
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.922474
  Prefactor  = 1.07035
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.026     FROM HESSE     STATUS=OK           691 CALLS     5246 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4317        111.16        .21839E-03   -1.5337    
   2  norm          6.4213        5.7218        .13970E-03   -1.5201    
   3  Prefactor     .10000E-03    30.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1099        .15087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     107.07        100.68        .19431E-03   -1.3635    
   8  norm          .10000E-03    3.3715        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7118        9.8160        .18540E-03   -1.5274    
  10  Prefactor     2.9190        4.0076        .15333E-03   -1.5366    
  11  Prefactor     .10000E-03    15.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6235        5.9658        .29934E-03   -1.5453    
  13  Prefactor     4.3685        27.709        .19270E-03   -1.5290    
  14  Prefactor     .10000E-03    13.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    112.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4975        11.588        .15683E-03   -1.5198    
  17  Prefactor     .10000E-03    34.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.074        18.602        .59725E-04   -1.4364    
  19  Prefactor     3.3317        8.2159        .11091E-02   -1.5343    
  20  Prefactor     29.636        35.551        .73561E-04   -1.4619    
  21  Prefactor     29.193        68.910        .74168E-04   -1.4627    
  22  Prefactor     .10000E-03    9.2823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4703        .12482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6598        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8770        .91765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.3285        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    15.611        .26062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.6830        .86678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.0408        .13465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.2103        .32608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .92247        .25417        .26025E-03   -.95675    
  33  Prefactor     1.0704        .23445        .23379E-03   -.90420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03148e-10
Minuit parameter uncertainties:
  1  39.142
  2  5.72229
  3  8.5852e-05
  4  2.19739e-05
  5  2.9764e-05
  6  4.69531e-05
  7  100.842
  8  2.8886e-06
  9  9.81937
  10  4.00795
  11  1.40413e-05
  12  5.96799
  13  22.0188
  14  1.411e-06
  15  0.000809275
  16  11.5919
  17  1.87544e-05
  18  18.6047
  19  8.2187
  20  35.576
  21  69.0988
  22  6.60842e-06
  23  6.831e-07
  24  5.48432e-07
  25  3.68861e-07
  26  1.19707e-05
  27  0.000572868
  28  1.04583e-05
  29  9.66258e-07
  30  5.48047e-07
  31  4.88715e-06
  32  0.254498
  33  0.234675
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.404e-05  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:  1.070e+00  2.347e-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:  9.225e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486296/likelihoodResults_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.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) = 4707.0265477
delta logL = -0.000304937085275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4707.02624504
delta logL = -2.27379950957e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4786       1.0000          .0000       10.000    
     3 'Normalizat'    .92245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0704       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4707.026     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      265 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10565E-03    1.0212        .18142E-01** at limit **
   2  Index         2.3469        8.5067        .50000        .23862E-04
   3  Normalizat    .92247        .15291E-02    .26025E-03   -.81747E-03
   4  Prefactor     1.0704        .14762E-02    .23379E-03   -.91208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105646
  Index      = 2.34694
  Normalizat = 0.922472
  Prefactor  = 1.07035
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.026     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10565E-03    68.158        .22105E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3469        6.4937        .50000       -.55932    
   3  Normalizat    .92247        .12567E-01    .52049E-04   -.95675    
   4  Prefactor     1.0704        .12131E-01    .46759E-04   -.90420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52545e-08
Minuit parameter uncertainties:
  1  0.0392799
  2  343.518
  3  0.0125669
  4  0.0121313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486296': 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) = 4707.02624439
delta logL = -1.62780543178e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.056e-04  3.928e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.347e+00  3.435e+02  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:  1.070e+00  1.213e-02  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:  9.225e-01  1.257e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

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/486296/cmap_HighResolution_656121601_656380801_4FGL_J2234.2-4156_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-12-08 08:55:43.402861', job_id='486296', GAL2='1.07', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1638982543.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1608' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:55:43 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 486296: <4FGL_J2234.2-4156_daily_bin1608> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1608> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec  8 08:40:17 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:41:07 2021
Terminated at Wed Dec  8 08:55:43 2021
Results reported at Wed Dec  8 08:55:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1608 338.568 -41.9411 656121601 656380801 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            926 sec.

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

