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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1654
RA = 338.568, Dec = -41.9411
tmin = 668044801, tmax = 668304001
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='101544', job_status='RUN', time_executed='2022-03-07 01:26:16.112549', time_epoch_executed='1646645176.11' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101544/ft1_4FGL_J2234.2-4156_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101544/ft1_4FGL_J2234.2-4156_daily_bin1654.fits outfile=/scratch/kocevski/101544/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1654.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=668044801.0 tmax=668304001.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.68
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.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/101544/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.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.36
sys 0.13
Number of photons that survived the gtmktime cut: 576

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/101544/ltcube_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.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/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits
.....................!
real 12.26
user 11.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101544/ltcube_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.fits outfile=/scratch/kocevski/101544/expmap_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.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/101544/ltcube_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.fits
.....................!
real 191.01
user 185.42
sys 4.73

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/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits outfile=/scratch/kocevski/101544/cmap_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits outfile=/scratch/kocevski/101544/cmap_HighResolution_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101544/ft2_4FGL_J2234.2-4156_daily_bin1654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101544/Model_4FGL_J2234.2-4156_daily_bin1654.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/101544/ft1_filtered_4FGL_J2234.2-4156_daily_bin1654.fits.....................!
real 49.08
user 47.81
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0641       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7253       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29981E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7695       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    119.79       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .85304E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.899       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10038E-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      '    .10995E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22474E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4221       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .68176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6158.895     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     3900 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0590        1.2908        .67277E-06    .33178E-04
   2  norm          3.7252        3.3030        .10630E-06   -.64148E-04
   3  Prefactor     .10053E-03    2.0609       -.53979E-05** at limit **
   4  Prefactor     4.7698        6.2964       -.12929E-04   -.12531E-03
   5  Prefactor     .10050E-03    38.694        .31755E-04** at limit **
   6  Prefactor     .96171        7.3256       -.33075E-05   -.11458E-03
   7  Prefactor     .10042E-03    34.207       -.51056E-04** at limit **
   8  norm          .10000E-03    2.2315       -.21073E-06** at limit **
   9  Prefactor     .10000E-03    5.5168        .67432E-06** at limit **
  10  Prefactor     .10000E-03    1.9294       -.17234E-06** at limit **
  11  Prefactor     119.73        16.021       -.11950E-04   -.52973E-02
  12  Prefactor     .10014E-03    108.19       -.13865E-03** at limit **
  13  Prefactor     3.6674        2.0606       -.97260E-05   -.51508E-03
  14  Prefactor     24.329        1.3139       -.35664E-06   -.51085E-03
  15  Prefactor     .10174E-03    17.201        .29891E-04** at limit **
  16  Prefactor     19.913        3.2341        .67677E-05    .10408E-02
  17  Prefactor     35.090        78.133       -.12041E-03    .88933E-03
  18  Prefactor     10.490        1.0255       -.31212E-06   -.10805E-03
  19  Prefactor     6.1129        5.7308        .16413E-05    .11647E-03
  20  Prefactor     .10000E-03    12.745       -.19274E-05** at limit **
  21  Prefactor     .10000E-03    16.192        .48575E-05** at limit **
  22  Prefactor     .10000E-03    5.2687       -.95607E-07** at limit **
  23  norm          .10000E-03    9.2621       -.69965E-05** at limit **
  24  norm          .10000E-03    1.7972        .20481E-06** at limit **
  25  norm          .10000E-03    1.5520       -.14854E-06** at limit **
  26  norm          .10012E-03    150.31        .12623E-03** at limit **
  27  Prefactor     .10000E-03    9.3524        .60249E-05** at limit **
  28  Prefactor     .10000E-03    26.173        .96963E-05** at limit **
  29  norm          .10000E-03    3.9141       -.26254E-06** at limit **
  30  Prefactor     .10000E-03    18.904       -.77975E-05** at limit **
  31  norm          .10000E-03    1.4583       -.55866E-06** at limit **
  32  Normalizat    1.4222        .21316       -.49268E-06    .89824E-04
  33  Prefactor     .68191        .20075        .77506E-05    .50651E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05902
  norm       = 3.72519
  Prefactor  = 0.000100529
  Prefactor  = 4.76984
  Prefactor  = 0.000100503
  Prefactor  = 0.961708
  Prefactor  = 0.000100422
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.734
  Prefactor  = 0.000100139
  Prefactor  = 3.66739
  Prefactor  = 24.3291
  Prefactor  = 0.000101744
  Prefactor  = 19.9131
  Prefactor  = 35.0899
  Prefactor  = 10.4896
  Prefactor  = 6.11291
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100124
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.42218
  Prefactor  = 0.681906
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.895     FROM HESSE     STATUS=OK           777 CALLS     4677 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0590        28.768        .40761E-02   -1.5216    
   2  norm          3.7252        3.4618        .52303E-02   -1.5322    
   3  Prefactor     .10053E-03    5.1876        .55331E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7698        6.3533        .46057E-02   -1.5271    
   5  Prefactor     .10050E-03    48.748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .96171        7.2151        .13038E-01   -1.5512    
   7  Prefactor     .10042E-03    40.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     119.73        57.410        .91921E-03   -1.3515    
  12  Prefactor     .10014E-03    2.7341        .75761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6674        29.004        .52651E-02   -1.5325    
  14  Prefactor     24.329        22.049        .20302E-02   -1.4721    
  15  Prefactor     .10174E-03    43.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.913        12.101        .22447E-02   -1.4815    
  17  Prefactor     35.090        81.976        .16854E-02   -1.4523    
  18  Prefactor     10.490        11.638        .30923E-02   -1.5060    
  19  Prefactor     6.1129        5.7516        .40598E-02   -1.5213    
  20  Prefactor     .10000E-03    12.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.1684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10012E-03    11.096        .90779E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.5097        .51798E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.7874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.567        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.4571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4222        .18466        .49776E-01   -.79989    
  33  Prefactor     .68191        .17001        .64058E-01   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76504e-07
Minuit parameter uncertainties:
  1  26.4253
  2  3.46202
  3  0.00331264
  4  6.3542
  5  0.00991535
  6  5.26893
  7  0.00824687
  8  3.92976e-05
  9  9.45491e-05
  10  1.76336e-05
  11  57.4369
  12  0.0012324
  13  20.6404
  14  22.0563
  15  0.0175086
  16  12.1021
  17  82.2406
  18  11.641
  19  5.75208
  20  0.000199833
  21  9.90732e-05
  22  7.0483e-05
  23  0.000101266
  24  3.63627e-05
  25  3.28039e-05
  26  0.00234217
  27  6.68914e-05
  28  0.000239216
  29  8.03064e-06
  30  0.000116116
  31  2.4083e-05
  32  0.184746
  33  0.170135
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.197e+02  5.744e+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:  6.819e-01  1.701e-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.422e+00  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.46
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.66e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 4.70e-05 +/- 2.25e-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) = 6158.86526341
delta logL = 0.0293321288427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6158.86382399
delta logL = 0.0307715479375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.98       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0719       1.0000          .0000       10.000    
     3 'Normalizat'    1.4171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68437       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=   6158.864     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      293 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.07        73.216        .19351E-03    .28258E-04
   2  Index         2.0726        .34103        .38276E-02    .58937E-03
   3  Normalizat    1.4169        .21402        .22036E-03   -.53273E-04
   4  Prefactor     .68442        .19794        .28288E-03    .37055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.068
  Index      = 2.07265
  Normalizat = 1.41687
  Prefactor  = 0.684415
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.864     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.07        70.512        .77405E-05   -1.3625    
   2  Index         2.0726        .32836        .76552E-03   -.62546    
   3  Normalizat    1.4169        .21413        .44072E-04   -.80142    
   4  Prefactor     .68442        .19808        .11315E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0712e-11
Minuit parameter uncertainties:
  1  70.5665
  2  0.328719
  3  0.214261
  4  0.198281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101544': 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) = 6158.86381297
delta logL = 0.0307825634272

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.081e+02  7.057e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.073e+00  3.287e-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:  6.844e-01  1.983e-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.417e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.52
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.07 +/- 0.33
Photon Flux (Free Index): 7.18e-08 +/- 3.89e-08
Energy Flux (Free Index): 4.19e-05 +/- 2.73e-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/101544/cmap_HighResolution_668044801_668304001_4FGL_J2234.2-4156_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.66e-08', energy_flux2='4.19e-05', photon_flux_error='3.20e-08', dlogl='3.08e-02', energy_flux='4.70e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2022-03-07 01:39:05.623403', photon_index_error2='0.33', photon_index2='2.07', ts='15.46', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.42', time_epoch_completed='1646645945.62', return_code='0', job_id='101544', GAL2='0.68', EG2='1.42', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='3.89e-08', ts2='15.52', photon_index='1.99' WHERE bin_id='1654' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:39:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 101544: <4FGL_J2234.2-4156_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:20 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:25:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:25:37 2022
Terminated at Mon Mar  7 01:39:06 2022
Results reported at Mon Mar  7 01:39:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1654 338.568 -41.9411 668044801 668304001 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            826 sec.

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

