/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 3 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin278
RA = 338.568, Dec = -41.9411
tmin = 311385601, tmax = 311644801
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='357135', job_status='RUN', time_executed='2021-09-28 14:35:50.638897', time_epoch_executed='1632864950.64' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357135/ft1_4FGL_J2234.2-4156_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357135/ft1_4FGL_J2234.2-4156_daily_bin278.fits outfile=/scratch/kocevski/357135/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin278.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=311385601.0 tmax=311644801.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.48
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.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/357135/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin278.fits evtable="EVENTS" outfile="/scratch/kocevski/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits" evtable="EVENTS" scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits sctable="SC_DATA" outfile=/scratch/kocevski/357135/ltcube_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.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/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits
.....................!
real 12.18
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/357135/ltcube_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.fits outfile=/scratch/kocevski/357135/expmap_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.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/357135/ltcube_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.fits
.....................!
real 190.48
user 185.04
sys 5.13

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/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits outfile=/scratch/kocevski/357135/cmap_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits outfile=/scratch/kocevski/357135/cmap_HighResolution_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/357135/ft2_4FGL_J2234.2-4156_daily_bin278.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357135/Model_4FGL_J2234.2-4156_daily_bin278.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/357135/ft1_filtered_4FGL_J2234.2-4156_daily_bin278.fits.....................!
real 44.97
user 43.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.054       1.0000         .10000E-03   10000.    
     2 'norm      '    10.362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71009E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11744E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2292       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10606E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.057       1.0000         .10000E-03   10000.    
    23 'norm      '    16.883       1.0000         .10000E-03   10000.    
    24 'norm      '    16.937       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5876       1.0000         .10000E-03   10000.    
    26 'norm      '    13.466       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6817       1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.290       1.0000         .10000E-03   10000.    
    29 'norm      '    .30841       1.0000         .10000E-03   10000.    
    30 'Prefactor '    38.296       1.0000         .10000E-03   10000.    
    31 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93613       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0630       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=   5546.359     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4659 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.055        45.990        .12006E-06    .54929E-04
   2  norm          10.362        5.7533       -.10307E-07    .11338E-03
   3  Prefactor     .10000E-03    3.6007       -.29847E-06** at limit **
   4  Prefactor     .95036E-01    8.1225       -.22095E-05    .18389E-03
   5  Prefactor     .10000E-03    60.581       -.16518E-05** at limit **
   6  Prefactor     4.2418        7.7490       -.57717E-06    .76668E-04
   7  Prefactor     .10000E-03    211.51       -.12660E-05** at limit **
   8  norm          .10000E-03    3.8240       -.14327E-06** at limit **
   9  Prefactor     .10000E-03    3.1206       -.36624E-06** at limit **
  10  Prefactor     6.2297        4.9969        .10519E-06    .19210E-03
  11  Prefactor     .10000E-03    14.047       -.94534E-07** at limit **
  12  Prefactor     7.9694        8.1622        .13929E-07    .77226E-04
  13  Prefactor     .10000E-03    29.363       -.11440E-05** at limit **
  14  Prefactor     20.120        21.537        .51785E-06    .91392E-04
  15  Prefactor     50.854        39.292        .23252E-06    .51120E-04
  16  Prefactor     14.962        12.157       -.76784E-07    .12885E-04
  17  Prefactor     .10000E-03    25.759       -.70021E-07** at limit **
  18  Prefactor     .10000E-03    5.7515       -.40346E-06** at limit **
  19  Prefactor     .10020E-03    8.2802        .95376E-06** at limit **
  20  Prefactor     .10000E-03    10.645       -.29078E-07** at limit **
  21  Prefactor     33.639        56.491        .21617E-06    .28226E-04
  22  Prefactor     41.058        25.374        .84345E-07    .22654E-04
  23  norm          16.877        19.154       -.18978E-06    .12527E-05
  24  norm          16.934        10.846        .11289E-06   -.19511E-04
  25  norm          3.5881        3.7336       -.16630E-07   -.14212E-03
  26  norm          13.464        14.176       -.35203E-06   -.15065E-03
  27  Prefactor     1.6801        15.880       -.34579E-05    .27453E-04
  28  Prefactor     27.367        58.680        .38333E-05    .19614E-04
  29  norm          .30101        38.397       -.59551E-05   -.26104E-04
  30  Prefactor     38.291        28.052        .80040E-06   -.64298E-04
  31  norm          .10000E-03    8.3119        .16303E-05** at limit **
  32  Normalizat    .93622        .25125       -.27097E-05    .32176E-03
  33  Prefactor     1.0629        .22190        .39936E-05    .16598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.0545
  norm       = 10.3619
  Prefactor  = 0.0001
  Prefactor  = 0.0950362
  Prefactor  = 0.000100001
  Prefactor  = 4.2418
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22972
  Prefactor  = 0.0001
  Prefactor  = 7.96936
  Prefactor  = 0.0001
  Prefactor  = 20.1196
  Prefactor  = 50.8539
  Prefactor  = 14.962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100203
  Prefactor  = 0.0001
  Prefactor  = 33.6393
  Prefactor  = 41.0584
  norm       = 16.8768
  norm       = 16.9339
  norm       = 3.58812
  norm       = 13.4644
  Prefactor  = 1.68013
  Prefactor  = 27.3668
  norm       = 0.301013
  Prefactor  = 38.2909
  norm       = 0.000100001
  Normalizat = 0.936216
  Prefactor  = 1.06293
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.359     FROM HESSE     STATUS=OK           709 CALLS     5368 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.055        46.029        .47295E-04   -1.4008    
   2  norm          10.362        5.7576        .12341E-03   -1.5064    
   3  Prefactor     .10000E-03    3.6239        .13813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95036E-01    11.248        .57985E-01   -1.5646    
   5  Prefactor     .10000E-03    61.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2418        7.7242        .97827E-03   -1.5296    
   7  Prefactor     .10000E-03    212.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8406        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1383        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2297        4.9912        .13915E-03   -1.5209    
  11  Prefactor     .10000E-03    14.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9694        8.1451        .14203E-03   -1.5143    
  13  Prefactor     .10000E-03    29.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.120        21.545        .89300E-04   -1.4811    
  15  Prefactor     50.854        39.233        .56238E-04   -1.4281    
  16  Prefactor     14.962        12.148        .10355E-03   -1.4934    
  17  Prefactor     .10000E-03    25.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7829        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    8.3490        .59770E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.639        56.538        .69094E-04   -1.4547    
  22  Prefactor     41.058        25.399        .62559E-04   -1.4426    
  23  norm          16.877        19.157        .97475E-04   -1.4886    
  24  norm          16.934        10.854        .97320E-04   -1.4885    
  25  norm          3.5881        3.7442        .14242E-03   -1.5329    
  26  norm          13.464        14.247        .10915E-03   -1.4974    
  27  Prefactor     1.6801        16.314        .16241E-02   -1.5449    
  28  Prefactor     27.367        64.477        .76688E-04   -1.4661    
  29  norm          .30101        46.989        .25054E-02   -1.5598    
  30  Prefactor     38.291        28.373        .64767E-04   -1.4470    
  31  norm          .10000E-03    8.7909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .93622        .26093        .28281E-03   -.95199    
  33  Prefactor     1.0629        .22653        .24999E-03   -.90660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24459e-08
Minuit parameter uncertainties:
  1  46.0522
  2  5.75795
  3  1.85401e-05
  4  2.06715
  5  0.000442288
  6  7.726
  7  0.000810883
  8  1.28854e-05
  9  2.01454e-05
  10  4.99154
  11  9.22486e-06
  12  8.14626
  13  0.000155558
  14  21.5535
  15  39.2526
  16  12.1501
  17  3.13141e-05
  18  2.43719e-05
  19  0.00260696
  20  1.91805e-06
  21  56.628
  22  25.4062
  23  19.1643
  24  10.8554
  25  3.74447
  26  14.2502
  27  10.4742
  28  64.6414
  29  7.52653
  30  28.3832
  31  0.000225931
  32  0.26128
  33  0.226733
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.225e-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:  1.063e+00  2.267e-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:  9.362e-01  2.613e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357135/likelihoodResults_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.35932483
delta logL = -0.000338387014381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.35898639
delta logL = 5.79993866268e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9702       1.0000          .0000       10.000    
     3 'Normalizat'    .93621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0629       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=   5546.359     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.763        .18142E-02** at limit **
   2  Index         1.9483        5.9537        .50000        .11519E-04
   3  Normalizat    .93621        .23059        .28282E-03   -.43012E-05
   4  Prefactor     1.0629        .21687        .24998E-03   -.15917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.94826
  Normalizat = 0.936212
  Prefactor  = 1.06293
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.359     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9483        5.9645        .50000       -.65650    
   3  Normalizat    .93621        .23082        .11313E-04   -.95199    
   4  Prefactor     1.0629        .21708        .99993E-05   -.90660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83548e-10
Minuit parameter uncertainties:
  1  0.000337308
  2  3.96866
  3  0.231065
  4  0.217262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357135': 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) = 5546.35898631
delta logL = 1.33702997118e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.063e+00  2.173e-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:  9.362e-01  2.311e-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/357135/cmap_HighResolution_311385601_311644801_4FGL_J2234.2-4156_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-28 14:50:19.599841', job_id='357135', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632865819.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='278' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 357135: <4FGL_J2234.2-4156_daily_bin278> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin278> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:37 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35: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:35:39 2021
Terminated at Tue Sep 28 14:50:20 2021
Results reported at Tue Sep 28 14:50:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin278 338.568 -41.9411 311385601 311644801 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 :                                   867.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

