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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1365
RA = 338.568, Dec = -41.9411
tmin = 593136001, tmax = 593395201
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='361705', job_status='RUN', time_executed='2021-09-28 14:52:05.134756', time_epoch_executed='1632865925.13' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361705/ft1_4FGL_J2234.2-4156_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361705/ft1_4FGL_J2234.2-4156_daily_bin1365.fits outfile=/scratch/kocevski/361705/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1365.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=593136001.0 tmax=593395201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.19
user 4.93
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/361705/ltcube_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.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/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/361705/ltcube_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.fits outfile=/scratch/kocevski/361705/expmap_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.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/361705/ltcube_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.fits
.....................!
real 190.90
user 185.71
sys 4.86

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/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits scfile=/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits outfile=/scratch/kocevski/361705/cmap_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits scfile=/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits outfile=/scratch/kocevski/361705/cmap_HighResolution_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/361705/ft2_4FGL_J2234.2-4156_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361705/Model_4FGL_J2234.2-4156_daily_bin1365.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/361705/ft1_filtered_4FGL_J2234.2-4156_daily_bin1365.fits.....................!
real 46.65
user 45.40
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.067       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.098       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    109.19       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13076E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1540       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.143       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4614       1.0000         .10000E-03   10000.    
    23 'norm      '    6.0555       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2394       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0943       1.0000         .10000E-03   10000.    
    29 'norm      '    .11826E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.9297       1.0000         .10000E-03   10000.    
    31 'norm      '    9.3457       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67636       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0037       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=   6504.401     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     4550 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.068        30.895       -.35755E-07   -.22823E-05
   2  norm          5.8690        4.4093        .93036E-07    .22585E-04
   3  Prefactor     .10000E-03    3.6661       -.55906E-07** at limit **
   4  Prefactor     13.099        9.2743        .15473E-06    .81245E-05
   5  Prefactor     .10000E-03    26.394        .30489E-07** at limit **
   6  Prefactor     .10000E-03    2.3397        .43289E-07** at limit **
   7  Prefactor     .10000E-03    26.125       -.25694E-06** at limit **
   8  norm          .10000E-03    2.7070       -.14656E-07** at limit **
   9  Prefactor     .77915        4.7479        .70036E-06   -.36088E-04
  10  Prefactor     3.1669        3.0638        .11428E-06    .56044E-04
  11  Prefactor     109.19        48.992       -.36127E-06   -.18799E-04
  12  Prefactor     .10000E-03    1.7003        .57154E-07** at limit **
  13  Prefactor     10.638        10.395        .16009E-08   -.53167E-04
  14  Prefactor     2.6050        11.080        .28480E-06    .14688E-04
  15  Prefactor     .10000E-03    15.453        .24706E-06** at limit **
  16  Prefactor     .10000E-03    3.9025        .44622E-07** at limit **
  17  Prefactor     34.183        62.837       -.25409E-07   -.57237E-06
  18  Prefactor     .10000E-03    11.824        .54360E-06** at limit **
  19  Prefactor     5.1548        5.7140        .80542E-07    .20975E-04
  20  Prefactor     .10000E-03    11.058       -.34537E-06** at limit **
  21  Prefactor     61.144        48.585       -.11795E-06   -.13600E-04
  22  Prefactor     4.4617        5.9310        .45396E-07    .34331E-05
  23  norm          6.0557        6.8325       -.20044E-07   -.67752E-04
  24  norm          .10000E-03    3.2172        .89762E-07** at limit **
  25  norm          .10000E-03    1.8187       -.10581E-06** at limit **
  26  norm          5.2396        5.0597       -.69186E-07   -.90938E-05
  27  Prefactor     .10000E-03    1.6458        .98850E-07** at limit **
  28  Prefactor     4.0591        62.681        .11873E-05    .63960E-04
  29  norm          .10000E-03    4.3275       -.26321E-05** at limit **
  30  Prefactor     8.9328        11.310        .13343E-06    .15509E-03
  31  norm          9.3464        5.6506       -.88251E-06    .18454E-03
  32  Normalizat    .67626        .16083        .15316E-06   -.10299E-03
  33  Prefactor     1.0037        .15202       -.99661E-06   -.26514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0682
  norm       = 5.86903
  Prefactor  = 0.0001
  Prefactor  = 13.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.779151
  Prefactor  = 3.16695
  Prefactor  = 109.193
  Prefactor  = 0.0001
  Prefactor  = 10.638
  Prefactor  = 2.60496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1835
  Prefactor  = 0.0001
  Prefactor  = 5.15477
  Prefactor  = 0.0001
  Prefactor  = 61.144
  Prefactor  = 4.46166
  norm       = 6.05571
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.23955
  Prefactor  = 0.0001
  Prefactor  = 4.05907
  norm       = 0.0001
  Prefactor  = 8.93282
  norm       = 9.34639
  Normalizat = 0.676256
  Prefactor  = 1.00374
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.401     FROM HESSE     STATUS=OK           697 CALLS     5247 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.068        30.860        .69684E-04   -1.4557    
   2  norm          5.8690        4.4115        .13648E-03   -1.5223    
   3  Prefactor     .10000E-03    3.6981        .15067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.099        9.2712        .11068E-03   -1.4984    
   5  Prefactor     .10000E-03    26.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3520        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7154        .12958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77915        9.6382        .32584E-02   -1.5531    
  10  Prefactor     3.1669        3.0559        .13035E-03   -1.5352    
  11  Prefactor     109.19        48.938        .19246E-03   -1.3614    
  12  Prefactor     .10000E-03    1.7156        .10268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.638        10.383        .12284E-03   -1.5056    
  14  Prefactor     2.6050        11.026        .25278E-03   -1.5385    
  15  Prefactor     .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9215        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.183        62.807        .68541E-04   -1.4538    
  18  Prefactor     .10000E-03    12.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1548        5.7062        .17708E-03   -1.5254    
  20  Prefactor     .10000E-03    11.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     61.144        48.598        .51314E-04   -1.4142    
  22  Prefactor     4.4617        5.9256        .19064E-03   -1.5285    
  23  norm          6.0557        6.8361        .81581E-03   -1.5216    
  24  norm          .10000E-03    3.2536        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8244        .10614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2396        5.0615        .17361E-03   -1.5250    
  27  Prefactor     .10000E-03    1.6489        .10099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0591        63.589        .19924E-03   -1.5305    
  29  norm          .10000E-03    4.3554        .23350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.9328        11.333        .67064E-03   -1.5110    
  31  norm          9.3464        5.6270        .64930E-03   -1.5096    
  32  Normalizat    .67626        .18568        .25657E-03   -1.0484    
  33  Prefactor     1.0037        .17794        .21321E-03   -.92605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60398e-08
Minuit parameter uncertainties:
  1  30.8751
  2  4.41174
  3  5.97323e-06
  4  9.27217
  5  5.41558e-05
  6  5.63964e-06
  7  1.48728e-05
  8  2.03233e-06
  9  5.48148
  10  3.05608
  11  48.9557
  12  6.00215e-06
  13  10.3847
  14  10.7219
  15  4.69595e-05
  16  7.82158e-06
  17  62.9284
  18  3.80098e-05
  19  5.70682
  20  6.3361e-06
  21  48.63
  22  5.92634
  23  6.83695
  24  1.56971e-06
  25  1.60841e-06
  26  5.06191
  27  4.60967e-06
  28  32.1719
  29  2.91123e-05
  30  11.3362
  31  5.62734
  32  0.185853
  33  0.178045
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.092e+02  4.896e+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.004e+00  1.780e-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:  6.763e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.59
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.08e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 1.92e-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) = 6504.39340698
delta logL = 0.00789982225524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.38390254
delta logL = 0.0174042650769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.61       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0597       1.0000          .0000       10.000    
     3 'Normalizat'    .67049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0067       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=   6504.384     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.57        63.850        .19943E-03    .67496E-04
   2  Index         2.0598        .38058        .39807E-02    .60193E-03
   3  Normalizat    .67047        .17789        .25754E-03    .12175E-03
   4  Prefactor     1.0067        .17528        .21289E-03   -.30065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.572
  Index      = 2.05978
  Normalizat = 0.670466
  Prefactor  = 1.00671
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.384     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.57        61.245        .79771E-05   -1.3689    
   2  Index         2.0598        .36481        .79615E-03   -.62864    
   3  Normalizat    .67047        .17782        .10302E-04   -1.0507    
   4  Prefactor     1.0067        .17536        .85157E-05   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36115e-10
Minuit parameter uncertainties:
  1  61.2834
  2  0.365305
  3  0.177973
  4  0.175463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361705': 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) = 6504.38390225
delta logL = 0.0174045471367

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.016e+02  6.128e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.060e+00  3.653e-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.007e+00  1.755e-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:  6.705e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.62
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.06 +/- 0.37
Photon Flux (Free Index): 6.56e-08 +/- 3.80e-08
Energy Flux (Free Index): 3.93e-05 +/- 2.42e-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/361705/cmap_HighResolution_593136001_593395201_4FGL_J2234.2-4156_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.08e-08', energy_flux2='3.93e-05', photon_flux_error='2.72e-08', dlogl='1.74e-02', energy_flux='4.28e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-28 15:05:59.075745', photon_index_error2='0.37', photon_index2='2.06', ts='23.59', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='0.68', time_epoch_completed='1632866759.08', return_code='0', job_id='361705', GAL2='1.01', EG2='0.67', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.80e-08', ts2='23.62', photon_index='1.99' WHERE bin_id='1365' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 361705: <4FGL_J2234.2-4156_daily_bin1365> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1365> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:36 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:38 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:38 2021
Terminated at Tue Sep 28 15:05:59 2021
Results reported at Tue Sep 28 15:05:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1365 338.568 -41.9411 593136001 593395201 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

