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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1219
RA = 338.568, Dec = -41.9411
tmin = 555292801, tmax = 555552001
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='361474', job_status='RUN', time_executed='2021-09-28 14:50:40.759636', time_epoch_executed='1632865840.76' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361474/ft1_4FGL_J2234.2-4156_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361474/ft1_4FGL_J2234.2-4156_daily_bin1219.fits outfile=/scratch/kocevski/361474/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1219.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=555292801.0 tmax=555552001.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.65
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/361474/ltcube_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.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/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits
.....................!
real 11.73
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/361474/ltcube_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.fits outfile=/scratch/kocevski/361474/expmap_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.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/361474/ltcube_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.fits
.....................!
real 190.19
user 185.37
sys 4.44

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/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits scfile=/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits outfile=/scratch/kocevski/361474/cmap_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits scfile=/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits outfile=/scratch/kocevski/361474/cmap_HighResolution_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/361474/ft2_4FGL_J2234.2-4156_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361474/Model_4FGL_J2234.2-4156_daily_bin1219.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/361474/ft1_filtered_4FGL_J2234.2-4156_daily_bin1219.fits.....................!
real 18.67
user 17.39
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12417E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    806.22       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11506E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2326.3       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18227E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.675       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15451E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20575E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    108.42       1.0000         .10000E-03   10000.    
    29 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .70882       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56391       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=   765.1238     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     5311 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    542.12        .10447E-05** at limit **
   2  norm          3.2369        12.403       -.27960E-05    .57296E-04
   3  Prefactor     5.9334        20.777       -.69705E-06    .79917E-05
   4  Prefactor     .10000E-03    18.930       -.25109E-06** at limit **
   5  Prefactor     810.16        869.05        .38642E-04    .97796E-05
   6  Prefactor     2.2175        7710.9       -.24301E-03    .39073E-05
   7  Prefactor     .10001E-03    2252.0        .41131E-04** at limit **
   8  norm          .10000E-03    403.37       -.85836E-05** at limit **
   9  Prefactor     3.9904        34.396        .18300E-06    .32702E-05
  10  Prefactor     .10000E-03    13.114       -.86349E-06** at limit **
  11  Prefactor     .10000E-03    202.11        .22940E-05** at limit **
  12  Prefactor     .10000E-03    30.894        .14039E-06** at limit **
  13  Prefactor     .10000E-03    18.306        .45191E-06** at limit **
  14  Prefactor     .10000E-03    34.683       -.95927E-06** at limit **
  15  Prefactor     2327.3        2225.0       -.62568E-05   -.11285E-05
  16  Prefactor     .10000E-03    312.52       -.67425E-05** at limit **
  17  Prefactor     .10003E-03    6567.6        .53631E-04** at limit **
  18  Prefactor     45.697        38.263        .28977E-06    .16339E-04
  19  Prefactor     .10000E-03    12.349       -.12937E-06** at limit **
  20  Prefactor     .10000E-03    438.79       -.79523E-05** at limit **
  21  Prefactor     .10000E-03    188.02        .45601E-05** at limit **
  22  Prefactor     .10000E-03    990.58        .14890E-04** at limit **
  23  norm          .10000E-03    43.565        .43841E-06** at limit **
  24  norm          .10000E-03    223.76        .72067E-06** at limit **
  25  norm          .10000E-03    11.332       -.15849E-07** at limit **
  26  norm          .10000E-03    14.521       -.26718E-08** at limit **
  27  Prefactor     .10000E-03    110.25       -.15589E-05** at limit **
  28  Prefactor     108.68        210.16       -.46690E-05   -.92126E-05
  29  norm          .10000E-03    16.775       -.32157E-06** at limit **
  30  Prefactor     .10001E-03    1296.8        .24299E-04** at limit **
  31  norm          .10000E-03    22.491       -.14712E-06** at limit **
  32  Normalizat    .70835        .51956       -.35884E-05    .61909E-05
  33  Prefactor     .56403        .37282        .46347E-05    .35887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 3.23686
  Prefactor  = 5.93344
  Prefactor  = 0.0001
  Prefactor  = 810.165
  Prefactor  = 2.21748
  Prefactor  = 0.00010001
  norm       = 0.000100001
  Prefactor  = 3.99036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2327.26
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 45.6968
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.676
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  Normalizat = 0.708347
  Prefactor  = 0.564034
 **********
 **   18 **HESSE 
 **********

 FCN=   765.1238     FROM HESSE     STATUS=OK           679 CALLS     5990 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    541.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2369        12.610        .87466E-03   -1.5348    
   3  Prefactor     5.9334        20.803        .16487E-03   -1.5221    
   4  Prefactor     .10000E-03    18.955        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     810.16        903.57        .73461E-04   -.99355    
   6  Prefactor     2.2175        7950.8        .21692E-02   -1.5410    
   7  Prefactor     .10001E-03    2262.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    403.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9904        35.024        .20330E-03   -1.5308    
  10  Prefactor     .10000E-03    13.136        .97901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    202.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.893        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.307        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.715        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2327.3        2225.8        .47337E-04   -.56397    
  16  Prefactor     .10000E-03    312.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    6574.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.697        39.230        .59326E-04   -1.4355    
  19  Prefactor     .10000E-03    12.351        .94974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    439.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    188.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    991.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    43.566        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    223.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.331        .90976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.523        .10299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    110.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     108.68        215.23        .19313E-03   -1.3619    
  29  norm          .10000E-03    16.747        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    1301.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.472        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .70835        .62236        .25120E-03   -1.0356    
  33  Prefactor     .56403        .44461        .23046E-03   -1.0912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23353e-10
Minuit parameter uncertainties:
  1  0.00395893
  2  12.6207
  3  20.828
  4  4.66196e-07
  5  920.952
  6  265.374
  7  0.00997049
  8  0.00104931
  9  23.662
  10  3.15536e-05
  11  1.3169e-05
  12  4.35727e-06
  13  9.13377e-06
  14  5.65436e-05
  15  2344.21
  16  0.000758968
  17  0.0202557
  18  39.2524
  19  2.08769e-06
  20  0.00104341
  21  0.000215251
  22  0.00338631
  23  2.23533e-05
  24  7.48893e-05
  25  6.26542e-06
  26  4.43358e-06
  27  5.16284e-05
  28  216.802
  29  0.000115325
  30  0.00810765
  31  9.88223e-05
  32  0.628719
  33  0.44741
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.317e-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:  5.640e-01  4.474e-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:  7.083e-01  6.287e-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: 2.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361474/likelihoodResults_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.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) = 765.123823833
delta logL = -2.33984459328e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 765.123823831
delta logL = -2.3396224833e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96330E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9922       1.0000          .0000       10.000    
     3 'Normalizat'    .70835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56404       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=   765.1238     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    192.09        .90715E-02** at limit **
   2  Index         2.0063        5.9950        .50000       -.55903E-06
   3  Normalizat    .70835        .40512        .42402E-01   -.16973E-05
   4  Prefactor     .56403        .33698        .40561E-01    .95171E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.00635
  Normalizat = 0.708348
  Prefactor  = 0.564033
 **********
 **   18 **HESSE 
 **********

 FCN=   765.1238     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    207.24        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0063        5.9853        .50000       -.64192    
   3  Normalizat    .70835        .45432        .25125E-03   -1.0356    
   4  Prefactor     .56403        .37799        .23045E-03   -1.0912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08768e-11
Minuit parameter uncertainties:
  1  0.00102223
  2  4.19923
  3  0.456768
  4  0.379698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361474': 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) = 765.123800433
delta logL = 1.97019289772e-09

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.022e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.006e+00  4.199e+00  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:  5.640e-01  3.797e-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:  7.083e-01  4.568e-01  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/361474/cmap_HighResolution_555292801_555552001_4FGL_J2234.2-4156_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', job_status='DONE', photon_flux_upper_limit='2.48e-07', time_completed='2021-09-28 14:57:19.264601', job_id='361474', GAL2='0.56', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632866239.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.97e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1219' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 361474: <4FGL_J2234.2-4156_daily_bin1219> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1219> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:17 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:18 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:50:18 2021
Terminated at Tue Sep 28 14:57:20 2021
Results reported at Tue Sep 28 14:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1219 338.568 -41.9411 555292801 555552001 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 :                                   397.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   421 sec.
    Turnaround time :                            423 sec.

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

