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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1331
RA = 338.568, Dec = -41.9411
tmin = 584323201, tmax = 584582401
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='361651', job_status='RUN', time_executed='2021-09-28 14:51:59.536940', time_epoch_executed='1632865919.54' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361651/ft1_4FGL_J2234.2-4156_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361651/ft1_4FGL_J2234.2-4156_daily_bin1331.fits outfile=/scratch/kocevski/361651/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1331.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=584323201.0 tmax=584582401.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.53
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361651/ft1_filtered_4FGL_J2234.2-4156_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/361651/ltcube_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.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/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits
.....................!
real 12.14
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361651/ft1_filtered_4FGL_J2234.2-4156_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/361651/ltcube_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.fits outfile=/scratch/kocevski/361651/expmap_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.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/361651/ltcube_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.fits
.....................!
real 191.31
user 185.25
sys 5.69

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/361651/ft1_filtered_4FGL_J2234.2-4156_daily_bin1331.fits scfile=/scratch/kocevski/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits outfile=/scratch/kocevski/361651/cmap_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.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.76
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361651/ft1_filtered_4FGL_J2234.2-4156_daily_bin1331.fits scfile=/scratch/kocevski/361651/ft2_4FGL_J2234.2-4156_daily_bin1331.fits outfile=/scratch/kocevski/361651/cmap_HighResolution_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19027E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2847       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0230       1.0000         .10000E-03   10000.    
    23 'norm      '    36.544       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6331       1.0000         .10000E-03   10000.    
    25 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2466       1.0000         .10000E-03   10000.    
    29 'norm      '    4.8634       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.9942       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71499       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98547       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=   2781.602     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4581 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    179.93        .20154E-05** at limit **
   2  norm          1.2089        7.9675       -.19022E-05   -.52876E-04
   3  Prefactor     5.5209        8.2713        .50016E-07   -.41090E-05
   4  Prefactor     .10000E-03    4.6991        .33111E-07** at limit **
   5  Prefactor     57.579        68.688       -.15895E-05   -.11722E-05
   6  Prefactor     11.490        15.484        .82192E-06   -.13554E-04
   7  Prefactor     .10000E-03    242.91       -.41615E-05** at limit **
   8  norm          .10000E-03    4.8140       -.87392E-08** at limit **
   9  Prefactor     .10000E-03    3.7570        .52888E-07** at limit **
  10  Prefactor     2.1560        6.5800       -.17507E-05   -.19739E-03
  11  Prefactor     .10000E-03    32.105        .97903E-06** at limit **
  12  Prefactor     .10000E-03    121.62        .11251E-04** at limit **
  13  Prefactor     50.083        37.673       -.13550E-06   -.88260E-04
  14  Prefactor     .93848        61.003       -.13693E-05   -.25995E-04
  15  Prefactor     .10000E-03    134.78        .23824E-05** at limit **
  16  Prefactor     .10000E-03    9.0682        .39581E-07** at limit **
  17  Prefactor     .10000E-03    94.043       -.14766E-06** at limit **
  18  Prefactor     8.2865        13.405        .28722E-06   -.19086E-04
  19  Prefactor     .10000E-03    30.022        .16350E-05** at limit **
  20  Prefactor     11.842        65.591       -.49059E-05   -.32788E-04
  21  Prefactor     .10000E-03    82.077       -.91464E-06** at limit **
  22  Prefactor     1.0213        19.472        .58541E-06   -.44868E-04
  23  norm          36.545        19.646        .41658E-07   -.28193E-05
  24  norm          2.6319        6.9960       -.69388E-06   -.46684E-04
  25  norm          .10000E-03    3.2323        .44098E-06** at limit **
  26  norm          .10000E-03    3.4772        .82605E-07** at limit **
  27  Prefactor     .10000E-03    2.3875        .38296E-07** at limit **
  28  Prefactor     2.2052        259.07       -.29041E-06   -.10071E-04
  29  norm          4.8637        5.6019        .24654E-06    .11301E-03
  30  Prefactor     .10000E-03    6.1429        .82241E-07** at limit **
  31  norm          1.9934        4.6440        .11533E-06    .76783E-04
  32  Normalizat    .71496        .26730       -.51218E-05   -.11124E-03
  33  Prefactor     .98534        .24870        .35285E-05   -.31487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.20886
  Prefactor  = 5.5209
  Prefactor  = 0.0001
  Prefactor  = 57.5792
  Prefactor  = 11.4902
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15603
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 50.0829
  Prefactor  = 0.938476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.28646
  Prefactor  = 0.0001
  Prefactor  = 11.8417
  Prefactor  = 0.0001
  Prefactor  = 1.02135
  norm       = 36.545
  norm       = 2.63195
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20521
  norm       = 4.86365
  Prefactor  = 0.0001
  norm       = 1.99342
  Normalizat = 0.714958
  Prefactor  = 0.985342
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.602     FROM HESSE     STATUS=OK           699 CALLS     5280 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2089        7.9348        .28424E-03   -1.5488    
   3  Prefactor     5.5209        8.2675        .17100E-03   -1.5238    
   4  Prefactor     .10000E-03    4.7035        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.579        68.547        .52838E-04   -1.4189    
   6  Prefactor     11.490        15.437        .11808E-03   -1.5030    
   7  Prefactor     .10000E-03    241.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.8142        .11302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7638        .99859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1560        6.6044        .22060E-03   -1.5414    
  11  Prefactor     .10000E-03    32.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    121.43        .34429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     50.083        37.761        .56667E-04   -1.4291    
  14  Prefactor     .93848        416.62        .61500E-02   -1.5514    
  15  Prefactor     .10000E-03    136.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0937        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2865        13.437        .13928E-03   -1.5132    
  19  Prefactor     .10000E-03    31.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.842        66.052        .11627E-03   -1.5020    
  21  Prefactor     .10000E-03    82.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0213        134.96        .43515E-02   -1.5506    
  23  norm          36.545        19.648        .66296E-04   -1.4498    
  24  norm          2.6319        6.9910        .21945E-03   -1.5383    
  25  norm          .10000E-03    3.2360        .92492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.4826        .96066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.3891        .79592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.2052        256.33        .27416E-03   -1.5411    
  29  norm          4.8637        5.4914        .10352E-03   -1.5267    
  30  Prefactor     .10000E-03    6.1488        .12768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.9934        4.5747        .15843E-03   -1.5426    
  32  Normalizat    .71496        .29162        .25318E-03   -1.0331    
  33  Prefactor     .98534        .26894        .21832E-03   -.93220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01461e-10
Minuit parameter uncertainties:
  1  0.00132183
  2  6.19516
  3  8.26923
  4  4.30404e-06
  5  68.6413
  6  15.4421
  7  0.000441231
  8  6.07157e-08
  9  1.52029e-06
  10  6.60667
  11  6.85304e-06
  12  0.0010492
  13  37.7793
  14  39.8267
  15  7.53736e-06
  16  3.49244e-06
  17  5.1368e-05
  18  13.4415
  19  0.00023304
  20  56.0295
  21  0.000189724
  22  23.5346
  23  19.6513
  24  6.99314
  25  6.3206e-07
  26  1.79987e-06
  27  1.27752e-06
  28  47.7599
  29  5.49195
  30  3.37326e-06
  31  4.57549
  32  0.292252
  33  0.269307
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.853e-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:  9.853e-01  2.693e-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:  7.150e-01  2.923e-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: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361651/likelihoodResults_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.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) = 2781.60261314
delta logL = -0.000147882256442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2781.60246533
delta logL = -7.69468897488e-08

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 'Index     '    2.0617       1.0000          .0000       10.000    
     3 'Normalizat'    .71492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98537       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=   2781.602     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1031.8        .18142E-01** at limit **
   2  Index         1.5855        9.2047        .10178        .27924E-09
   3  Normalizat    .71495        .31361E-01    .25317E-03   -.11597E-02
   4  Prefactor     .98534        .31511E-01    .21832E-03   -.14902E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.58547
  Normalizat = 0.714954
  Prefactor  = 0.985339
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.602     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.910        .31124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5855        6.7112        .40713E-02   -.75173    
   3  Normalizat    .71495        .25972        .50634E-04   -1.0331    
   4  Prefactor     .98534        .26108        .43665E-04   -.93220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06664e-09
Minuit parameter uncertainties:
  1  0.000606058
  2  651.321
  3  0.260168
  4  0.261413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361651': 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) = 2781.60246507
delta logL = 1.84560576599e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.061e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.585e+00  6.513e+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:  9.853e-01  2.614e-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:  7.150e-01  2.602e-01  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/361651/cmap_HighResolution_584323201_584582401_4FGL_J2234.2-4156_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-28 15:01:45.979057', job_id='361651', GAL2='0.99', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632866505.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1331' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 361651: <4FGL_J2234.2-4156_daily_bin1331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1331 338.568 -41.9411 584323201 584582401 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 :                                   583.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            674 sec.

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

