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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1151
RA = 338.568, Dec = -41.9411
tmin = 537667201, tmax = 537926401
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='360330', job_status='RUN', time_executed='2021-09-28 14:48:25.480565', time_epoch_executed='1632865705.48' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360330

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360330/ft1_4FGL_J2234.2-4156_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360330/ft1_4FGL_J2234.2-4156_daily_bin1151.fits outfile=/scratch/kocevski/360330/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1151.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=537667201.0 tmax=537926401.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 4.96
user 4.71
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/360330/ltcube_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.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/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits
.....................!
real 12.45
user 12.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/360330/ltcube_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.fits outfile=/scratch/kocevski/360330/expmap_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.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/360330/ltcube_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.fits
.....................!
real 190.92
user 185.48
sys 5.06

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/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits scfile=/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits outfile=/scratch/kocevski/360330/cmap_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits scfile=/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits outfile=/scratch/kocevski/360330/cmap_HighResolution_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.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/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/360330/ft2_4FGL_J2234.2-4156_daily_bin1151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360330/Model_4FGL_J2234.2-4156_daily_bin1151.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/360330/ft1_filtered_4FGL_J2234.2-4156_daily_bin1151.fits.....................!
real 40.27
user 38.99
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .43597E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57489E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-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      '    6.6402       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5743       1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8165       1.0000         .10000E-03   10000.    
    28 'Prefactor '    41.780       1.0000         .10000E-03   10000.    
    29 'norm      '    4.9910       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0504       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79404       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=   4848.164     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4616 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.178       -.75847E-05** at limit **
   2  norm          .10004E-03    3.2171        .80142E-06** at limit **
   3  Prefactor     14.734        11.815       -.10488E-06   -.42704E-04
   4  Prefactor     14.753        12.916       -.24803E-06   -.25006E-03
   5  Prefactor     .10000E-03    48.382       -.58038E-05** at limit **
   6  Prefactor     21.484        12.835        .38005E-06    .54604E-04
   7  Prefactor     .10000E-03    87.032       -.60544E-07** at limit **
   8  norm          4.3700        4.4813       -.45000E-07    .38021E-04
   9  Prefactor     .10177E-03    8.7281        .70730E-06** at limit **
  10  Prefactor     4.0485        4.0479       -.11739E-08   -.39982E-04
  11  Prefactor     .10000E-03    14.772        .11939E-07** at limit **
  12  Prefactor     2.9791        2.3579        .43649E-06   -.25148E-02
  13  Prefactor     .10000E-03    12.656       -.69655E-06** at limit **
  14  Prefactor     25.453        23.880       -.18385E-05   -.35609E-04
  15  Prefactor     25.450        35.110       -.11177E-04   -.81367E-04
  16  Prefactor     6.5857        11.479        .29403E-05    .28736E-04
  17  Prefactor     .10000E-03    33.201        .35025E-05** at limit **
  18  Prefactor     14.958        15.600       -.11025E-06   -.24979E-04
  19  Prefactor     7.0300        7.7862       -.35184E-06   -.26709E-04
  20  Prefactor     .10000E-03    45.188        .36211E-05** at limit **
  21  Prefactor     .10000E-03    23.637        .53987E-05** at limit **
  22  Prefactor     .10000E-03    7.8527        .38973E-07** at limit **
  23  norm          6.6406        7.5892       -.11728E-06    .63299E-05
  24  norm          .10000E-03    1.9224        .14753E-07** at limit **
  25  norm          1.5771        9.6768        .83837E-06   -.19265E-03
  26  norm          .10000E-03    4.7677        .81807E-08** at limit **
  27  Prefactor     5.8186        4.6989       -.41517E-07    .48993E-05
  28  Prefactor     41.802        38.760        .28644E-05    .25525E-04
  29  norm          4.9899        7.9431       -.10007E-05   -.69434E-04
  30  Prefactor     .10000E-03    4.8824        .11017E-07** at limit **
  31  norm          .10000E-03    2.0664        .40046E-08** at limit **
  32  Normalizat    1.0495        .21588        .18405E-05   -.19904E-03
  33  Prefactor     .79485        .18405       -.64427E-06   -.79734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100037
  Prefactor  = 14.7335
  Prefactor  = 14.7528
  Prefactor  = 0.0001
  Prefactor  = 21.4842
  Prefactor  = 0.0001
  norm       = 4.36996
  Prefactor  = 0.000101771
  Prefactor  = 4.0485
  Prefactor  = 0.0001
  Prefactor  = 2.97907
  Prefactor  = 0.0001
  Prefactor  = 25.4527
  Prefactor  = 25.4503
  Prefactor  = 6.58565
  Prefactor  = 0.0001
  Prefactor  = 14.9584
  Prefactor  = 7.02996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.6406
  norm       = 0.0001
  norm       = 1.57715
  norm       = 0.0001
  Prefactor  = 5.81861
  Prefactor  = 41.802
  norm       = 4.98985
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04951
  Prefactor  = 0.794852
 **********
 **   18 **HESSE 
 **********

 FCN=   4848.164     FROM HESSE     STATUS=OK           707 CALLS     5323 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    16.645        .23794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.734        11.807        .10435E-03   -1.4940    
   4  Prefactor     14.753        12.919        .52137E-03   -1.4940    
   5  Prefactor     .10000E-03    48.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.484        12.875        .86437E-04   -1.4781    
   7  Prefactor     .10000E-03    87.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3700        4.4866        .14569E-03   -1.5290    
   9  Prefactor     .10177E-03    12.926        .55626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0485        4.0461        .13322E-03   -1.5306    
  11  Prefactor     .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9791        7.2421        .11792E-02   -1.5363    
  13  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.453        23.937        .79429E-04   -1.4699    
  15  Prefactor     25.450        36.276        .79273E-04   -1.4699    
  16  Prefactor     6.5857        11.468        .15651E-03   -1.5195    
  17  Prefactor     .10000E-03    33.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.958        15.740        .10362E-03   -1.4934    
  19  Prefactor     7.0300        7.7991        .15135E-03   -1.5178    
  20  Prefactor     .10000E-03    45.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6406        7.5895        .15572E-03   -1.5193    
  24  norm          .10000E-03    1.9230        .94286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5771        9.7891        .27440E-03   -1.5457    
  26  norm          .10000E-03    4.8030        .14848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.8186        4.6998        .13205E-03   -1.5225    
  28  Prefactor     41.802        39.021        .62018E-04   -1.4414    
  29  norm          4.9899        8.0064        .14211E-03   -1.5261    
  30  Prefactor     .10000E-03    4.8907        .15022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.0703        .97666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0495        .25618        .24061E-03   -.91390    
  33  Prefactor     .79485        .21209        .25580E-03   -.99918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33233e-08
Minuit parameter uncertainties:
  1  0.000131499
  2  0.00156834
  3  11.8094
  4  12.9214
  5  0.000145221
  6  12.8766
  7  4.01407e-05
  8  4.48691
  9  0.00957186
  10  4.0464
  11  3.46396e-06
  12  7.24426
  13  8.8573e-06
  14  23.9461
  15  36.3069
  16  11.4718
  17  0.000100645
  18  15.7441
  19  7.80018
  20  0.000188083
  21  6.70403e-05
  22  3.82968e-06
  23  7.59062
  24  1.9977e-09
  25  7.86011
  26  3.35645e-06
  27  4.70014
  28  39.0445
  29  8.00815
  30  1.3813e-06
  31  4.20799e-06
  32  0.256483
  33  0.212313
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.949e-01  2.123e-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.050e+00  2.565e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360330/likelihoodResults_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.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) = 4848.16428006
delta logL = -0.000319952594509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4848.16396039
delta logL = -2.91297510557e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0944       1.0000          .0000       10.000    
     3 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79486       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4848.164     FROM MIGRAD    STATUS=FAILED        90 CALLS      268 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1971.2        .18142E-02** at limit **
   2  Index         2.0746        5.3859        .50000        .11633E-04
   3  Normalizat    1.0495        .77532E-01    .24061E-03    .28586E-04
   4  Prefactor     .79485        .73073E-01    .25580E-03    .25822E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4848.164     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      452 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1971.2        .75533E-03** at limit **
   2  Index         2.0746        5.3859        .31335E-06    .11633E-04
   3  Normalizat    1.0495        .77532E-01    .14770E-07    .28586E-04
   4  Prefactor     .79485        .73073E-01    .38651E-08    .25822E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4848.164     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      486 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.816        .36285E-03** at limit **
   2  Index         2.0745        5.9918        .50000        .11631E-04
   3  Normalizat    1.0495        .21589        .96243E-05    .28822E-04
   4  Prefactor     .79485        .20346        .10232E-04    .25999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.07448
  Normalizat = 1.04951
  Prefactor  = 0.794851
 **********
 **   18 **HESSE 
 **********

 FCN=   4848.164     FROM HESSE     STATUS=OK            29 CALLS      515 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.910        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0745        6.0329        .50000       -.62501    
   3  Normalizat    1.0495        .21603        .19249E-05   -.91390    
   4  Prefactor     .79485        .20363        .20464E-05   -.99918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48747e-10
Minuit parameter uncertainties:
  1  0.000324381
  2  4.07263
  3  0.216213
  4  0.203826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360330': 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) = 4848.16396032
delta logL = -2.22060407395e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.244e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.074e+00  4.073e+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:  7.949e-01  2.038e-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.050e+00  2.162e-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/360330/cmap_HighResolution_537667201_537926401_4FGL_J2234.2-4156_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-28 15:01:49.134725', job_id='360330', GAL2='0.79', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632866509.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1151' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 360330: <4FGL_J2234.2-4156_daily_bin1151> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1151> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:38 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:39 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:45:39 2021
Terminated at Tue Sep 28 15:01:49 2021
Results reported at Tue Sep 28 15:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1151 338.568 -41.9411 537667201 537926401 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

