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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1633
RA = 338.568, Dec = -41.9411
tmin = 662601601, tmax = 662860801
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='693019', job_status='RUN', time_executed='2022-01-03 00:36:22.218852', time_epoch_executed='1641198982.22' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693019/ft1_4FGL_J2234.2-4156_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693019/ft1_4FGL_J2234.2-4156_daily_bin1633.fits outfile=/scratch/kocevski/693019/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1633.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.91
user 2.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/693019/ltcube_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.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/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits
.....................!
real 12.50
user 12.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/693019/ltcube_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.fits outfile=/scratch/kocevski/693019/expmap_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.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/693019/ltcube_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.fits
.....................!
real 190.55
user 185.89
sys 4.31

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/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits scfile=/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits outfile=/scratch/kocevski/693019/cmap_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits scfile=/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits outfile=/scratch/kocevski/693019/cmap_HighResolution_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J2234.2-4156_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693019/Model_4FGL_J2234.2-4156_daily_bin1633.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/693019/ft1_filtered_4FGL_J2234.2-4156_daily_bin1633.fits.....................!
real 48.35
user 47.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.473       1.0000         .10000E-03   10000.    
     2 'norm      '    10.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8661       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0373       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.291       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.444       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.2300       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    39.778       1.0000         .10000E-03   10000.    
    29 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .58008       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1017       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=   6564.166     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4587 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.450        67.150       -.40043E-04   -.95730E-05
   2  norm          10.139        7.0918        .21429E-05   -.19679E-02
   3  Prefactor     29.435        12.336        .16388E-06    .72341E-05
   4  Prefactor     .10000E-03    6.1133        .33615E-07** at limit **
   5  Prefactor     .10000E-03    39.848        .30747E-07** at limit **
   6  Prefactor     3.1192        5.3106        .62333E-06   -.41734E-03
   7  Prefactor     .10000E-03    140.70        .51410E-05** at limit **
   8  norm          .10000E-03    2.1168        .62610E-08** at limit **
   9  Prefactor     .10000E-03    2.1804       -.25419E-07** at limit **
  10  Prefactor     9.2715        4.0393       -.48715E-07   -.95809E-04
  11  Prefactor     14.591        34.198       -.46794E-05   -.43134E-05
  12  Prefactor     .10000E-03    1.4941       -.11051E-07** at limit **
  13  Prefactor     10.578        13.827       -.38440E-06   -.17836E-04
  14  Prefactor     .10000E-03    7.5438       -.33998E-07** at limit **
  15  Prefactor     26.274        23.891       -.17067E-05    .16909E-04
  16  Prefactor     3.8654        9.9299       -.98678E-06   -.19030E-03
  17  Prefactor     .10000E-03    52.627       -.59428E-06** at limit **
  18  Prefactor     15.003        10.452       -.37208E-06   -.25354E-04
  19  Prefactor     .10000E-03    1.4343        .24557E-08** at limit **
  20  Prefactor     4.0357        32.877       -.23504E-05   -.30314E-04
  21  Prefactor     29.266        41.081       -.18165E-04    .32750E-06
  22  Prefactor     .10000E-03    4.0855       -.18567E-05** at limit **
  23  norm          14.444        9.7891        .20981E-07   -.11617E-04
  24  norm          .10000E-03    1.1803        .12654E-07** at limit **
  25  norm          5.2299        3.6462       -.44750E-06   -.86140E-04
  26  norm          .10000E-03    3.0078       -.53046E-09** at limit **
  27  Prefactor     .10000E-03    1.8074       -.25607E-07** at limit **
  28  Prefactor     39.762        29.219       -.29971E-05   -.17666E-03
  29  norm          .10000E-03    4.0000        .20750E-05** at limit **
  30  Prefactor     .10000E-03    15.681       -.19686E-06** at limit **
  31  norm          .10000E-03    3.3265        .57123E-07** at limit **
  32  Normalizat    .58007        .16725        .40236E-05   -.10705E-03
  33  Prefactor     1.1017        .15816        .16089E-06    .52065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4499
  norm       = 10.1388
  Prefactor  = 29.4346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.27154
  Prefactor  = 14.5914
  Prefactor  = 0.0001
  Prefactor  = 10.5776
  Prefactor  = 0.0001
  Prefactor  = 26.2737
  Prefactor  = 3.86542
  Prefactor  = 0.0001
  Prefactor  = 15.0031
  Prefactor  = 0.0001
  Prefactor  = 4.03574
  Prefactor  = 29.2665
  Prefactor  = 0.0001
  norm       = 14.4437
  norm       = 0.0001
  norm       = 5.2299
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7624
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.580075
  Prefactor  = 1.10169
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.166     FROM HESSE     STATUS=OK           693 CALLS     5280 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.450        61.770        .11342E-03   -1.5002    
   2  norm          10.139        6.8487        .62924E-03   -1.5071    
   3  Prefactor     29.435        12.330        .73846E-04   -1.4622    
   4  Prefactor     .10000E-03    6.1508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1192        5.2816        .22961E-03   -1.5355    
   7  Prefactor     .10000E-03    141.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1213        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1910        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2715        4.0427        .10072E-03   -1.5099    
  11  Prefactor     14.591        34.203        .10483E-03   -1.4944    
  12  Prefactor     .10000E-03    1.5001        .96667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.578        13.829        .12320E-03   -1.5057    
  14  Prefactor     .10000E-03    7.5598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.274        23.721        .78161E-04   -1.4682    
  16  Prefactor     3.8654        9.8545        .20523E-03   -1.5315    
  17  Prefactor     .10000E-03    52.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.003        10.495        .10341E-03   -1.4933    
  19  Prefactor     .10000E-03    1.4368        .94749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0357        32.870        .20069E-03   -1.5306    
  21  Prefactor     29.266        41.221        .74027E-04   -1.4625    
  22  Prefactor     .10000E-03    4.0959        .15998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.444        9.7894        .10539E-03   -1.4948    
  24  norm          .10000E-03    1.1804        .85963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.2299        3.6466        .12393E-03   -1.5251    
  26  norm          .10000E-03    3.0197        .13721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.8222        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     39.762        29.178        .63553E-04   -1.4446    
  29  norm          .10000E-03    4.0944        .31328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    16.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    3.3922        .28739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .58007        .19242        .28388E-03   -1.0884    
  33  Prefactor     1.1017        .18311        .21392E-03   -.89413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26393e-09
Minuit parameter uncertainties:
  1  55.5546
  2  6.84925
  3  12.3309
  4  1.4454e-05
  5  9.01132e-05
  6  5.28241
  7  0.000450351
  8  1.13384e-06
  9  6.14367e-06
  10  4.04277
  11  34.2485
  12  2.21612e-06
  13  13.833
  14  3.29581e-06
  15  23.729
  16  9.8586
  17  3.63735e-05
  18  10.4966
  19  4.67284e-07
  20  23.0522
  21  41.2616
  22  5.90834e-06
  23  9.79044
  24  2.70773e-07
  25  3.6468
  26  2.55919e-06
  27  4.1726e-06
  28  29.1885
  29  4.62615e-05
  30  7.56015e-05
  31  1.61478e-05
  32  0.192641
  33  0.183215
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.459e+01  3.425e+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.102e+00  1.832e-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.801e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/693019/likelihoodResults_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6564.12980549
delta logL = 0.0361125194977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6564.11120835
delta logL = 0.0547096586361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4098       1.0000          .0000       10.000    
     3 'Normalizat'    .57494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6564.111     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      243 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3624        713.43        .34594E-02    .40829E-04
   2  Index         2.4111        6.1528        .14254        .12448E-03
   3  Normalizat    .57474        .44884E-01    .64433E-01    .26205E-05
   4  Prefactor     1.1047        .42791E-01    .37416E-01   -.10663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36242
  Index      = 2.41113
  Normalizat = 0.574737
  Prefactor  = 1.1047
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.111     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3624        61.716        .13838E-03   -1.5130    
   2  Index         2.4111        2.1069        .99002E-02   -.54425    
   3  Normalizat    .57474        .17705        .28512E-03   -1.0907    
   4  Prefactor     1.1047        .17984        .21365E-03   -.89317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04368e-10
Minuit parameter uncertainties:
  1  45.5012
  2  2.20302
  3  0.177228
  4  0.179942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693019': 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) = 6564.111207
delta logL = 0.054711013714

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.362e+00  4.550e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.411e+00  2.203e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.105e+00  1.799e-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.747e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/693019/cmap_HighResolution_662601601_662860801_4FGL_J2234.2-4156_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2022-01-03 00:52:06.877499', job_id='693019', GAL2='1.10', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1641199926.88', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.47e-02', ts2='0.33', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1633' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:52:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 693019: <4FGL_J2234.2-4156_daily_bin1633> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1633> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jan  3 00:35:33 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:35:35 2022
Terminated at Mon Jan  3 00:52:07 2022
Results reported at Mon Jan  3 00:52:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1633 338.568 -41.9411 662601601 662860801 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 :                                   946.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

