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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1535
RA = 338.568, Dec = -41.9411
tmin = 637200001, tmax = 637459201
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='363012', job_status='RUN', time_executed='2021-09-28 14:57:47.874853', time_epoch_executed='1632866267.87' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363012/ft1_4FGL_J2234.2-4156_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363012/ft2_4FGL_J2234.2-4156_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363012/ft1_4FGL_J2234.2-4156_daily_bin1535.fits outfile=/scratch/kocevski/363012/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1535.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=637200001.0 tmax=637459201.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.39
user 5.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363012/ft2_4FGL_J2234.2-4156_daily_bin1535.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/363012/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/363012/ft1_filtered_4FGL_J2234.2-4156_daily_bin1535.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/363012/ft1_filtered_4FGL_J2234.2-4156_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/363012/ft2_4FGL_J2234.2-4156_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/363012/ltcube_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.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/363012/ft2_4FGL_J2234.2-4156_daily_bin1535.fits
.....................!
real 12.73
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363012/ft1_filtered_4FGL_J2234.2-4156_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/363012/ft2_4FGL_J2234.2-4156_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/363012/ltcube_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.fits outfile=/scratch/kocevski/363012/expmap_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.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/363012/ltcube_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.fits
.....................!
real 191.50
user 185.63
sys 5.51

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

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

This is gtbin version HEAD
real 0.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36289E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    210.70       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61833E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18652E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51113E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27416       1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.7183       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88753       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=   3812.435     FROM MIGRAD    STATUS=CONVERGED   1697 CALLS     5436 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.086        .18142E-02** at limit **
   2  norm          3.8196        4.6601        .14203E-03    .19799E-03
   3  Prefactor     22.125        15.151        .85107E-04    .53024E-03
   4  Prefactor     .10001E-03    79.990        .36725E-02** at limit **
   5  Prefactor     14.884        56.197        .10361E-03   -.81197E-05
   6  Prefactor     18.071        15.063        .94220E-04   -.84584E-04
   7  Prefactor     210.63        170.28        .13926E-03   -.69799E-05
   8  norm          2.5054        4.9650        .94840E-03   -.21295E-04
   9  Prefactor     .10001E-03    34.253        .35790E-02** at limit **
  10  Prefactor     .22729E-02    6.6522        .32758E-01** at limit **
  11  Prefactor     .10000E-03    14.854        .18142E-02** at limit **
  12  Prefactor     2.6342        6.7537        .24081E-03   -.89674E-04
  13  Prefactor     .10000E-03    9.4985        .18142E-02** at limit **
  14  Prefactor     .10000E-03    15.412        .18142E-02** at limit **
  15  Prefactor     .10000E-03    13.676        .18142E-02** at limit **
  16  Prefactor     .45499E-02    17.223        .55289E-01    .26020E-04
  17  Prefactor     .10000E-03    36.827        .18142E-02** at limit **
  18  Prefactor     5.7774        24.043        .16666E-03   -.53310E-04
  19  Prefactor     .10015E-03    42.167        .37319E-02** at limit **
  20  Prefactor     .10000E-03    21.983        .18142E-02** at limit **
  21  Prefactor     .10000E-03    150.54        .18142E-02** at limit **
  22  Prefactor     .13289        23.130        .76215E-01    .14763E-03
  23  norm          .10000E-03    13.074        .18142E-02** at limit **
  24  norm          .10000E-03    3.7730        .11705E-02** at limit **
  25  norm          .10000E-03    2.9570        .10353E-02** at limit **
  26  norm          .10000E-03    6.6672        .15564E-02** at limit **
  27  Prefactor     .10000E-03    2.4279        .93908E-03** at limit **
  28  Prefactor     .10000E-03    28.601        .18142E-02** at limit **
  29  norm          2.7181        3.6504        .13299E-03   -.17909E-04
  30  Prefactor     .10000E-03    5.2600        .13828E-02** at limit **
  31  norm          .10000E-03    3.6246        .11441E-02** at limit **
  32  Normalizat    1.1043        .28297        .24322E-03   -.47030E-03
  33  Prefactor     .88718        .25004        .24893E-03   -.38162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.81963
  Prefactor  = 22.1254
  Prefactor  = 0.000100007
  Prefactor  = 14.8838
  Prefactor  = 18.0706
  Prefactor  = 210.631
  norm       = 2.50538
  Prefactor  = 0.000100012
  Prefactor  = 0.00227289
  Prefactor  = 0.0001
  Prefactor  = 2.63422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00454988
  Prefactor  = 0.0001
  Prefactor  = 5.77738
  Prefactor  = 0.000100149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.132894
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71814
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10425
  Prefactor  = 0.887183
 **********
 **   18 **HESSE 
 **********

 FCN=   3812.435     FROM HESSE     STATUS=OK           693 CALLS     6129 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8196        4.6597        .56813E-05   -1.5317    
   3  Prefactor     22.125        15.132        .17021E-04   -1.4767    
   4  Prefactor     .10001E-03    80.958        .73451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.884        56.190        .41444E-05   -1.4936    
   6  Prefactor     18.071        15.060        .37688E-05   -1.4858    
   7  Prefactor     210.63        170.24        .55704E-05   -1.2795    
   8  norm          2.5054        4.9646        .37936E-04   -1.5391    
   9  Prefactor     .10001E-03    34.694        .71580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22729E-02    4.9328        .39615E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6342        6.7529        .96325E-05   -1.5383    
  13  Prefactor     .10000E-03    9.4986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45499E-02    13.310        .65126E-01   -1.5695    
  17  Prefactor     .10000E-03    36.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7774        24.018        .66664E-05   -1.5227    
  19  Prefactor     .10015E-03    42.793        .74639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    150.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13289        20.808        .82114E-01   -1.5635    
  23  norm          .10000E-03    13.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.7731        .23409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9570        .20707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.6674        .31128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4279        .18782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.7181        3.6501        .53197E-05   -1.5378    
  30  Prefactor     .10000E-03    5.2600        .27657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    3.6249        .22883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1043        .28285        .48644E-04   -.89615    
  33  Prefactor     .88718        .25024        .49786E-04   -.96590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21359e-09
Minuit parameter uncertainties:
  1  8.17442e-06
  2  4.66019
  3  15.1348
  4  0.00152065
  5  56.3904
  6  15.0634
  7  170.642
  8  4.96541
  9  0.00128036
  10  0.207077
  11  1.0051e-06
  12  6.75486
  13  1.31213e-05
  14  1.65571e-05
  15  8.36547e-05
  16  0.486843
  17  2.79714e-05
  18  23.5755
  19  0.00504984
  20  2.41524e-05
  21  0.000126624
  22  3.32575
  23  5.35772e-05
  24  4.82269e-06
  25  1.04953e-05
  26  1.21751e-05
  27  5.66365e-06
  28  0.000101951
  29  3.6504
  30  8.95809e-06
  31  2.22591e-05
  32  0.283237
  33  0.250567
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.005e-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:  8.872e-01  2.506e-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:  1.104e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/363012/likelihoodResults_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.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) = 3812.43519482
delta logL = -0.000172864886281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3812.43502378
delta logL = -1.82022449735e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3156       1.0000          .0000       10.000    
     3 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88714       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=   3812.435     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10391E-03    2.6996        .18142E-01** at limit **
   2  Index         2.2245        7.9592        .50000        .27017E-04
   3  Normalizat    1.1042        .27738E-02    .24322E-03   -.91943E-04
   4  Prefactor     .88719        .25879E-02    .24893E-03    .17078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103911
  Index      = 2.22452
  Normalizat = 1.10425
  Prefactor  = 0.887188
 **********
 **   18 **HESSE 
 **********

 FCN=   3812.435     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10391E-03    69.806        .20072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2245        6.1104        .50000       -.58848    
   3  Normalizat    1.1042        .14202E-01    .97287E-05   -.89616    
   4  Prefactor     .88719        .13250E-01    .49786E-04   -.96590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.47821e-09
Minuit parameter uncertainties:
  1  0.0330848
  2  239.105
  3  0.0142019
  4  0.0132503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363012': 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) = 3812.43502328
delta logL = -1.32065360958e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.039e-04  3.308e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.225e+00  2.391e+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:  8.872e-01  1.325e-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:  1.104e+00  1.420e-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/363012/cmap_HighResolution_637200001_637459201_4FGL_J2234.2-4156_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-28 15:10:13.745359', job_id='363012', GAL2='0.89', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632867013.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1535' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 363012: <4FGL_J2234.2-4156_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1535 338.568 -41.9411 637200001 637459201 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 :                                   742.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

