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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin613
RA = 338.568, Dec = -41.9411
tmin = 398217601, tmax = 398476801
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='357656', job_status='RUN', time_executed='2021-09-28 14:36:44.682665', time_epoch_executed='1632865004.68' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357656

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357656/ft1_4FGL_J2234.2-4156_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357656/ft1_4FGL_J2234.2-4156_daily_bin613.fits outfile=/scratch/kocevski/357656/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin613.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.49
user 6.21
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.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/357656/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/357656/ltcube_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.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/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits
.....................!
real 10.71
user 10.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/357656/ltcube_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.fits outfile=/scratch/kocevski/357656/expmap_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.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/357656/ltcube_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.fits
.....................!
real 192.61
user 187.30
sys 4.64

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/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits outfile=/scratch/kocevski/357656/cmap_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits outfile=/scratch/kocevski/357656/cmap_HighResolution_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/357656/ft2_4FGL_J2234.2-4156_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357656/Model_4FGL_J2234.2-4156_daily_bin613.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/357656/ft1_filtered_4FGL_J2234.2-4156_daily_bin613.fits.....................!
real 35.38
user 34.19
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.9472       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    104.23       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5819       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    205.05       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.141       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.422       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18280E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14188E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    23.703       1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.094       1.0000         .10000E-03   10000.    
    31 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .52517       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1942       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=   3931.701     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4553 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.157        .16443E-05** at limit **
   2  norm          .10000E-03    2.0268        .39978E-07** at limit **
   3  Prefactor     .10000E-03    4.5193        .96515E-07** at limit **
   4  Prefactor     4.2135        7.2229        .16675E-05    .26352E-03
   5  Prefactor     38.322        64.923        .36537E-05    .37808E-04
   6  Prefactor     8.8451        14.196       -.46617E-07    .83357E-04
   7  Prefactor     .10000E-03    108.26       -.42416E-05** at limit **
   8  norm          7.9472        10.249        .19498E-06    .24659E-04
   9  Prefactor     .10000E-03    3.5750        .18064E-07** at limit **
  10  Prefactor     4.2289        3.8489       -.28108E-07    .45898E-04
  11  Prefactor     104.24        66.273       -.81563E-06    .12557E-04
  12  Prefactor     2.5821        5.6766        .18073E-06    .27854E-04
  13  Prefactor     15.543        25.936        .12408E-06    .21328E-05
  14  Prefactor     .10000E-03    33.747        .28579E-06** at limit **
  15  Prefactor     .10000E-03    9.1231       -.36993E-07** at limit **
  16  Prefactor     .10000E-03    7.0966       -.44208E-07** at limit **
  17  Prefactor     205.05        134.46        .20214E-06    .22259E-05
  18  Prefactor     .10000E-03    16.057        .10633E-05** at limit **
  19  Prefactor     .10003E-03    11.063       -.22475E-05** at limit **
  20  Prefactor     .10000E-03    19.701       -.20507E-05** at limit **
  21  Prefactor     .10000E-03    37.750       -.25071E-05** at limit **
  22  Prefactor     23.139        26.862        .25940E-06   -.36236E-05
  23  norm          .10000E-03    5.1447        .23049E-06** at limit **
  24  norm          .10000E-03    5.5846       -.57093E-06** at limit **
  25  norm          .10000E-03    5.9190        .37067E-06** at limit **
  26  norm          10.422        10.549        .31745E-07   -.31385E-05
  27  Prefactor     .10000E-03    9.6647        .10017E-05** at limit **
  28  Prefactor     .10000E-03    122.30        .58372E-05** at limit **
  29  norm          23.703        8.2469       -.16690E-06   -.27468E-03
  30  Prefactor     23.094        25.694        .30367E-06   -.82138E-04
  31  norm          .10000E-03    2.8793       -.90475E-08** at limit **
  32  Normalizat    .52519        .22631        .11648E-05    .29519E-04
  33  Prefactor     1.1942        .21038       -.15705E-05    .29548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21351
  Prefactor  = 38.3221
  Prefactor  = 8.84505
  Prefactor  = 0.0001
  norm       = 7.94716
  Prefactor  = 0.0001
  Prefactor  = 4.2289
  Prefactor  = 104.241
  Prefactor  = 2.58214
  Prefactor  = 15.5427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 205.05
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1388
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.4218
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 23.703
  Prefactor  = 23.0943
  norm       = 0.0001
  Normalizat = 0.525193
  Prefactor  = 1.19423
 **********
 **   18 **HESSE 
 **********

 FCN=   3931.701     FROM HESSE     STATUS=OK           685 CALLS     5238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0377        .87164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5537        .13017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2135        7.4067        .98157E-03   -1.5297    
   5  Prefactor     38.322        64.941        .64722E-04   -1.4469    
   6  Prefactor     8.8451        14.164        .67365E-03   -1.5113    
   7  Prefactor     .10000E-03    108.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.9472        10.246        .71115E-03   -1.5144    
   9  Prefactor     .10000E-03    3.5872        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2289        3.8412        .11261E-03   -1.5297    
  11  Prefactor     104.24        65.945        .39385E-04   -1.3662    
  12  Prefactor     2.5821        5.6535        .21307E-03   -1.5387    
  13  Prefactor     15.543        25.958        .10159E-03   -1.4919    
  14  Prefactor     .10000E-03    34.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1201        .16312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     205.05        134.44        .28225E-04   -1.2834    
  18  Prefactor     .10000E-03    16.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    28.213        .34381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.139        26.814        .83267E-04   -1.4746    
  23  norm          .10000E-03    5.1456        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.5930        .14475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.9609        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.422        10.548        .12411E-03   -1.5062    
  27  Prefactor     .10000E-03    22.867        .32789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    123.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          23.703        8.2372        .82276E-04   -1.4734    
  30  Prefactor     23.094        22.958        .83351E-04   -1.4746    
  31  norm          .10000E-03    2.8847        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .52519        .24914        .15798E-02   -1.1126    
  33  Prefactor     1.1942        .23368        .20780E-03   -.86509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32536e-09
Minuit parameter uncertainties:
  1  6.8391e-05
  2  2.00401e-07
  3  3.71922e-06
  4  7.40833
  5  65.0615
  6  14.1692
  7  0.00034522
  8  10.2486
  9  2.11807e-06
  10  3.84144
  11  65.9918
  12  5.6547
  13  25.9764
  14  7.04308e-05
  15  4.78396e-08
  16  3.14454e-07
  17  134.645
  18  4.27833e-05
  19  0.00177725
  20  7.61083e-05
  21  0.000121095
  22  26.8282
  23  4.57881e-06
  24  1.23158e-05
  25  6.99684e-06
  26  10.5498
  27  0.000633333
  28  0.00051461
  29  8.23754
  30  22.9672
  31  5.16504e-07
  32  0.249673
  33  0.233887
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.042e+02  6.599e+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:  1.194e+00  2.339e-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:  5.252e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 2.59e-05

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) = 3931.69412856
delta logL = 0.0068708584854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3931.68406897
delta logL = 0.0169304466945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.029       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0941       1.0000          .0000       10.000    
     3 'Normalizat'    .51740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1992       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=   3931.684     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      263 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.031        101.04        .42118E-04    .35900E-05
   2  Index         2.0940        .61266        .42447E-02   -.14723E-04
   3  Normalizat    .51740        .24425        .31819E-03    .54505E-04
   4  Prefactor     1.1992        .23344        .20744E-03    .99010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.0314
  Index      = 2.09405
  Normalizat = 0.517405
  Prefactor  = 1.1992
 **********
 **   18 **HESSE 
 **********

 FCN=   3931.684     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.031        93.649        .84235E-05   -1.3797    
   2  Index         2.0940        .56757        .16979E-03   -.62019    
   3  Normalizat    .51740        .24369        .12728E-04   -1.1162    
   4  Prefactor     1.1992        .23320        .41488E-04   -.86356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08576e-11
Minuit parameter uncertainties:
  1  93.8019
  2  0.569423
  3  0.244198
  4  0.233401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357656': 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) = 3931.68406897
delta logL = 0.0169304472524

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.103e+01  9.380e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.094e+00  5.694e-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:  1.199e+00  2.334e-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:  5.174e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.09 +/- 0.57
Photon Flux (Free Index): 6.35e-08 +/- 4.94e-08
Energy Flux (Free Index): 3.53e-05 +/- 3.50e-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/357656/cmap_HighResolution_398217601_398476801_4FGL_J2234.2-4156_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='3.53e-05', photon_flux_error='3.67e-08', dlogl='1.69e-02', energy_flux='4.09e-05', photon_flux2='6.35e-08', job_status='DONE', time_completed='2021-09-28 14:47:13.721498', photon_index_error2='0.57', photon_index2='2.09', ts='5.19', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='3.50e-05', EG='0.53', time_epoch_completed='1632865633.72', return_code='0', job_id='357656', GAL2='1.20', EG2='0.52', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='4.94e-08', ts2='5.20', photon_index='1.99' WHERE bin_id='613' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 357656: <4FGL_J2234.2-4156_daily_bin613> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin613> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:28 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:29 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:36:29 2021
Terminated at Tue Sep 28 14:47:14 2021
Results reported at Tue Sep 28 14:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin613 338.568 -41.9411 398217601 398476801 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 :                                   627.00 sec.
    Max Memory :                                 1202 MB
    Average Memory :                             281.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            646 sec.

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

