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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin383
RA = 338.568, Dec = -41.9411
tmin = 338601601, tmax = 338860801
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='357299', job_status='RUN', time_executed='2021-09-28 14:37:31.137026', time_epoch_executed='1632865051.14' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357299

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357299/ft1_4FGL_J2234.2-4156_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357299/ft1_4FGL_J2234.2-4156_daily_bin383.fits outfile=/scratch/kocevski/357299/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin383.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=338601601.0 tmax=338860801.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 5.14
user 4.89
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.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/357299/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin383.fits evtable="EVENTS" outfile="/scratch/kocevski/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/357299/ltcube_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.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/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits
.....................!
real 12.11
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/357299/ltcube_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.fits outfile=/scratch/kocevski/357299/expmap_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.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/357299/ltcube_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.fits
.....................!
real 190.79
user 185.96
sys 4.51

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/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits outfile=/scratch/kocevski/357299/cmap_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits outfile=/scratch/kocevski/357299/cmap_HighResolution_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.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/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/357299/ft2_4FGL_J2234.2-4156_daily_bin383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357299/Model_4FGL_J2234.2-4156_daily_bin383.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/357299/ft1_filtered_4FGL_J2234.2-4156_daily_bin383.fits.....................!
real 39.86
user 38.58
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1168       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22187E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0108       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    130.09       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    98.669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11231E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    23.992       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .69790       1.0000         .10000E-03   10000.    
    28 'Prefactor '    100.16       1.0000         .10000E-03   10000.    
    29 'norm      '    4.0362       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3649       1.0000         .10000E-03   10000.    
    31 'norm      '    9.4931       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .66094       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97738       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=   4921.879     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4641 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.603       -.48420E-06** at limit **
   2  norm          .10000E-03    1.2631        .18425E-07** at limit **
   3  Prefactor     .10000E-03    3.3846       -.16499E-06** at limit **
   4  Prefactor     .10000E-03    13.441        .25348E-06** at limit **
   5  Prefactor     38.507        40.716       -.15499E-06   -.29227E-04
   6  Prefactor     .10000E-03    4.6256        .37432E-07** at limit **
   7  Prefactor     .10000E-03    27.193        .60013E-07** at limit **
   8  norm          2.1175        6.7273        .36969E-06   -.10919E-03
   9  Prefactor     .10000E-03    2.1361       -.84094E-07** at limit **
  10  Prefactor     .10000E-03    2.8819        .31363E-07** at limit **
  11  Prefactor     .10000E-03    351.30       -.28098E-06** at limit **
  12  Prefactor     3.0110        6.1800        .31448E-06   -.13077E-03
  13  Prefactor     48.314        27.245        .13702E-05    .11864E-03
  14  Prefactor     25.371        27.341        .21024E-05    .83069E-04
  15  Prefactor     26.135        27.170        .92056E-06    .24512E-04
  16  Prefactor     .10000E-03    7.2054       -.86950E-09** at limit **
  17  Prefactor     130.10        86.857        .25014E-05    .53025E-04
  18  Prefactor     8.5329        12.051       -.16018E-06   -.39901E-04
  19  Prefactor     .10000E-03    5.5162        .56133E-07** at limit **
  20  Prefactor     98.657        48.140       -.96540E-06   -.60400E-04
  21  Prefactor     49.664        51.800        .47656E-05    .99014E-04
  22  Prefactor     .10000E-03    6.3292        .10991E-06** at limit **
  23  norm          .10000E-03    5.1304        .15606E-06** at limit **
  24  norm          .10000E-03    3.4220       -.26960E-06** at limit **
  25  norm          .10000E-03    4.2305        .16943E-06** at limit **
  26  norm          23.989        12.510       -.33522E-06   -.83486E-04
  27  Prefactor     .70731        12.645        .51397E-05   -.31312E-03
  28  Prefactor     100.14        53.352       -.25294E-05   -.16951E-03
  29  norm          4.0381        4.7180        .42186E-06   -.41359E-04
  30  Prefactor     2.3493        54.224       -.26663E-05   -.29936E-04
  31  norm          9.4943        6.6563        .32549E-06   -.30891E-04
  32  Normalizat    .66080        .19169       -.18628E-05   -.75317E-04
  33  Prefactor     .97749        .16775        .17933E-06   -.17070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.01104
  Prefactor  = 48.3145
  Prefactor  = 25.3712
  Prefactor  = 26.1352
  Prefactor  = 0.0001
  Prefactor  = 130.099
  Prefactor  = 8.5329
  Prefactor  = 0.0001
  Prefactor  = 98.6567
  Prefactor  = 49.6645
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 23.9891
  Prefactor  = 0.707313
  Prefactor  = 100.135
  norm       = 4.03806
  Prefactor  = 2.34929
  norm       = 9.4943
  Normalizat = 0.6608
  Prefactor  = 0.977488
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.879     FROM HESSE     STATUS=OK           687 CALLS     5328 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2669        .76992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3984        .12601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.507        40.727        .64582E-04   -1.4466    
   6  Prefactor     .10000E-03    4.6606        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1175        6.7260        .28350E-03   -1.5417    
   9  Prefactor     .10000E-03    2.1415        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9516        .23225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    364.83        .36534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0110        6.1422        .22571E-03   -1.5361    
  13  Prefactor     48.314        27.324        .57683E-04   -1.4317    
  14  Prefactor     25.371        27.442        .79516E-04   -1.4700    
  15  Prefactor     26.135        27.150        .78353E-04   -1.4685    
  16  Prefactor     .10000E-03    7.2498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     130.10        87.146        .17650E-03   -1.3422    
  18  Prefactor     8.5329        12.067        .13723E-03   -1.5124    
  19  Prefactor     .10000E-03    5.5578        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     98.657        48.160        .20235E-03   -1.3718    
  21  Prefactor     49.664        52.386        .56923E-04   -1.4297    
  22  Prefactor     .10000E-03    6.3493        .17238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1390        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.4378        .12680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    12.274        .27656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.989        12.520        .81780E-04   -1.4728    
  27  Prefactor     .70731        16.093        .46111E-03   -1.5540    
  28  Prefactor     100.14        53.810        .40171E-04   -1.3703    
  29  norm          4.0381        4.6643        .14845E-03   -1.5306    
  30  Prefactor     2.3493        57.182        .26647E-03   -1.5401    
  31  norm          9.4943        6.6568        .13007E-03   -1.5092    
  32  Normalizat    .66080        .22444        .27374E-03   -1.0546    
  33  Prefactor     .97749        .19825        .21628E-03   -.93484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73638e-10
Minuit parameter uncertainties:
  1  0.000174402
  2  2.09773e-06
  3  1.63725e-06
  4  5.39258e-05
  5  40.756
  6  1.01523e-05
  7  9.69346e-06
  8  6.72835
  9  1.99627e-06
  10  8.06291e-06
  11  0.00101319
  12  6.14349
  13  27.3308
  14  27.456
  15  27.1631
  16  1.98698e-05
  17  87.2323
  18  12.0707
  19  5.0159e-06
  20  48.1792
  21  52.4345
  22  3.16101e-06
  23  3.78489e-06
  24  9.84338e-06
  25  0.000181336
  26  12.5218
  27  6.7493
  28  53.8365
  29  4.66474
  30  23.2051
  31  6.65729
  32  0.224753
  33  0.198398
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.013e-03  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.775e-01  1.984e-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:  6.608e-01  2.248e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357299/likelihoodResults_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.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) = 4921.87922277
delta logL = -1.28428309836e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4921.87921
delta logL = -7.73607098381e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4921.391     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      302 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2838        32.759        .90712E-02    .10944E-02
   2  Index         3.6139        2.7666        .85174E-01    .22451E-03
   3  Normalizat    .59957        .47247E-01    .64777E-01    .36517E-04
   4  Prefactor     1.0083        .44281E-01    .45985E-01    .84713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2838
  Index      = 3.61391
  Normalizat = 0.599568
  Prefactor  = 1.00829
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.391     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      335 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2838        74.176        .83941E-04   -1.5481    
   2  Index         3.6139        6.7819        .44938E-02   -.28090    
   3  Normalizat    .59957        .18424        .28663E-03   -1.0800    
   4  Prefactor     1.0083        .17153        .21327E-03   -.92454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8338e-10
Minuit parameter uncertainties:
  1  19.5416
  2  5.5158
  3  0.184433
  4  0.171624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357299': 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): 102
logL (Free Index) = 4921.39053723
delta logL = 0.48867269138

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.284e+00  1.954e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.614e+00  5.516e+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.008e+00  1.716e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  5.996e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.61 +/- 5.52
Photon Flux (Free Index): 4.65e-08 +/- 5.18e-08
Energy Flux (Free Index): 7.51e-06 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/357299/cmap_HighResolution_338601601_338860801_4FGL_J2234.2-4156_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', energy_flux2='7.51e-06', dlogl='4.89e-01', photon_flux2='4.65e-08', job_status='DONE', time_completed='2021-09-28 14:51:03.252718', photon_index_error2='5.52', photon_index2='3.61', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.39e-08', energy_flux_error2='1.18e-05', EG='0.66', time_epoch_completed='1632865863.25', return_code='0', job_id='357299', GAL2='1.01', EG2='0.60', return_code2='102', photon_flux_error2='5.18e-08', ts2='1.05', photon_index='1.99' WHERE bin_id='383' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 357299: <4FGL_J2234.2-4156_daily_bin383> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin383> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:52 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35:54 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:54 2021
Terminated at Tue Sep 28 14:51:04 2021
Results reported at Tue Sep 28 14:51:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin383 338.568 -41.9411 338601601 338860801 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 :                                   810.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

