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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1257
RA = 338.568, Dec = -41.9411
tmin = 565142401, tmax = 565401601
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='361533', job_status='RUN', time_executed='2021-09-28 14:50:59.058241', time_epoch_executed='1632865859.06' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361533/ft1_4FGL_J2234.2-4156_daily_bin1257.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits


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

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

Done.
real 3.51
user 3.32
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361533/ft1_filtered_4FGL_J2234.2-4156_daily_bin1257.fits" evtable="EVENTS" scfile=/scratch/kocevski/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits sctable="SC_DATA" outfile=/scratch/kocevski/361533/ltcube_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.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/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits
.....................!
real 11.82
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361533/ft1_filtered_4FGL_J2234.2-4156_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits sctable="SC_DATA" expcube=/scratch/kocevski/361533/ltcube_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.fits outfile=/scratch/kocevski/361533/expmap_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.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/361533/ltcube_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.fits
.....................!
real 190.40
user 185.55
sys 4.52

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/361533/ft1_filtered_4FGL_J2234.2-4156_daily_bin1257.fits scfile=/scratch/kocevski/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits outfile=/scratch/kocevski/361533/cmap_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.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/361533/ft1_filtered_4FGL_J2234.2-4156_daily_bin1257.fits scfile=/scratch/kocevski/361533/ft2_4FGL_J2234.2-4156_daily_bin1257.fits outfile=/scratch/kocevski/361533/cmap_HighResolution_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.332       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.689       1.0000         .10000E-03   10000.    
     8 'norm      '    9.8360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7551       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11550E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0410       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .52625E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0125       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.555       1.0000         .10000E-03   10000.    
    29 'norm      '    15.749       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.1355       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96130       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70296       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=   5452.749     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4784 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.201        .98565E-06** at limit **
   2  norm          15.756        6.3717       -.23310E-05   -.32021E-03
   3  Prefactor     .10045E-03    6.4015        .34388E-05** at limit **
   4  Prefactor     19.333        12.551       -.13036E-05   -.85535E-03
   5  Prefactor     .10000E-03    31.698       -.14696E-04** at limit **
   6  Prefactor     .10000E-03    6.1532        .45649E-06** at limit **
   7  Prefactor     85.678        81.113       -.76606E-05    .49975E-05
   8  norm          9.8364        7.8634        .15538E-06   -.10387E-04
   9  Prefactor     .10000E-03    3.9160        .12700E-07** at limit **
  10  Prefactor     6.8533        3.7742       -.11212E-06    .21944E-04
  11  Prefactor     .10000E-03    12.779       -.30747E-06** at limit **
  12  Prefactor     .10000E-03    3.1453        .17054E-06** at limit **
  13  Prefactor     28.907        22.892       -.14356E-05    .21552E-04
  14  Prefactor     5.8122        16.332        .62686E-06    .10184E-04
  15  Prefactor     25.923        34.497       -.12914E-04   -.11303E-03
  16  Prefactor     3.7254        14.722        .11020E-04    .13145E-03
  17  Prefactor     .10000E-03    52.388       -.29036E-05** at limit **
  18  Prefactor     14.628        12.138       -.71496E-06    .52166E-04
  19  Prefactor     .10000E-03    1.9681       -.52017E-07** at limit **
  20  Prefactor     6.8239        24.027        .18414E-05    .32241E-06
  21  Prefactor     .10000E-03    388.81       -.40273E-04** at limit **
  22  Prefactor     .10000E-03    4.0464       -.51025E-07** at limit **
  23  norm          1.0737        2.9312        .63401E-06   -.85314E-03
  24  norm          .10000E-03    1.6522       -.93287E-07** at limit **
  25  norm          .10000E-03    8.6653       -.48284E-08** at limit **
  26  norm          .10000E-03    6.8644        .35620E-06** at limit **
  27  Prefactor     1.0126        3.0515       -.23631E-06   -.15024E-03
  28  Prefactor     36.568        37.053       -.85415E-06    .15865E-04
  29  norm          15.793        7.7428       -.19937E-07    .58122E-04
  30  Prefactor     .10000E-03    6.6375       -.58764E-06** at limit **
  31  norm          2.1327        3.2661       -.50059E-07   -.57499E-05
  32  Normalizat    .96112        .18633        .24572E-05   -.29855E-03
  33  Prefactor     .70311        .16738       -.14269E-06   -.13883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.7561
  Prefactor  = 0.000100453
  Prefactor  = 19.3335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.6776
  norm       = 9.83643
  Prefactor  = 0.0001
  Prefactor  = 6.85331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9067
  Prefactor  = 5.81224
  Prefactor  = 25.9231
  Prefactor  = 3.72541
  Prefactor  = 0.0001
  Prefactor  = 14.6284
  Prefactor  = 0.0001
  Prefactor  = 6.82386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07373
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.01264
  Prefactor  = 36.5676
  norm       = 15.7926
  Prefactor  = 0.0001
  norm       = 2.13271
  Normalizat = 0.96112
  Prefactor  = 0.703114
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.749     FROM HESSE     STATUS=OK           705 CALLS     5489 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.756        6.3571        .10090E-03   -1.4914    
   3  Prefactor     .10045E-03    33.101        .33737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.333        12.092        .91093E-04   -1.4828    
   5  Prefactor     .10000E-03    31.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2881        .17868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     85.678        80.859        .43398E-04   -1.3854    
   8  norm          9.8364        7.8654        .12777E-03   -1.5081    
   9  Prefactor     .10000E-03    3.9501        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8533        3.7785        .10163E-03   -1.5184    
  11  Prefactor     .10000E-03    12.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2129        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.907        22.912        .74514E-04   -1.4632    
  14  Prefactor     5.8122        16.337        .16658E-03   -1.5226    
  15  Prefactor     25.923        34.230        .78780E-04   -1.4689    
  16  Prefactor     3.7254        14.510        .20835E-03   -1.5322    
  17  Prefactor     .10000E-03    52.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.628        12.178        .10472E-03   -1.4943    
  19  Prefactor     .10000E-03    1.9747        .10116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8239        24.018        .15356E-03   -1.5185    
  21  Prefactor     .10000E-03    399.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0538        .14507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0737        27.502        .24527E-02   -1.5501    
  24  norm          .10000E-03    1.6526        .92697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.630        .54392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.9442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0126        2.6283        .21725E-02   -1.5507    
  28  Prefactor     36.568        37.147        .66286E-04   -1.4498    
  29  norm          15.793        7.8926        .10092E-03   -1.4913    
  30  Prefactor     .10000E-03    6.6614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.1327        3.2408        .15771E-03   -1.5416    
  32  Normalizat    .96112        .21855        .23413E-03   -.94345    
  33  Prefactor     .70311        .19667        .25492E-03   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97861e-08
Minuit parameter uncertainties:
  1  0.000125331
  2  6.35736
  3  0.00775301
  4  12.0936
  5  7.70553e-05
  6  7.28475e-05
  7  80.9635
  8  7.8662
  9  7.1993e-06
  10  3.77859
  11  4.98322e-06
  12  2.47515e-05
  13  22.9189
  14  16.3492
  15  34.2564
  16  14.5234
  17  8.4957e-05
  18  12.1796
  19  2.62482e-06
  20  24.052
  21  0.000772243
  22  1.41974e-06
  23  10.8734
  24  3.21663e-07
  25  0.000162143
  26  1.51601e-05
  27  2.62864
  28  37.1708
  29  7.89308
  30  4.05139e-06
  31  3.24106
  32  0.218754
  33  0.196865
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.983e-06  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:  7.031e-01  1.969e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.611e-01  2.188e-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: 3.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361533/likelihoodResults_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5452.74979241
delta logL = -0.000370764190848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5452.74942255
delta logL = -8.99862243386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9600       1.0000          .0000       10.000    
     3 'Normalizat'    .96085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70337       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=   5452.749     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    78.384        .18142E-02** at limit **
   2  Index         1.9094        5.5887        .50000        .15934E-04
   3  Normalizat    .96112        .10081E-01    .23413E-03    .14762E-04
   4  Prefactor     .70311        .95705E-02    .25492E-03    .13335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101228
  Index      = 1.90942
  Normalizat = 0.961123
  Prefactor  = 0.703112
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10123E-03    342.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9094        5.8803        .50000       -.66634    
   3  Normalizat    .96112        .21604E-01    .93651E-05   -.94344    
   4  Prefactor     .70311        .20511E-01    .10197E-04   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.28796e-09
Minuit parameter uncertainties:
  1  0.0412584
  2  374.951
  3  0.0216038
  4  0.0205109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361533': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5452.74942132
delta logL = 3.28483110934e-07

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.611e-01  2.160e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/361533/cmap_HighResolution_565142401_565401601_4FGL_J2234.2-4156_daily_bin1257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-09-28 15:05:31.670728', job_id='361533', GAL2='0.70', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632866731.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1257' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 361533: <4FGL_J2234.2-4156_daily_bin1257> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1257 338.568 -41.9411 565142401 565401601 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 :                                   872.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

