/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 37 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 = 7404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1602
RA = 338.568, Dec = -41.9411
tmin = 654566401, tmax = 654825601
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='860278', job_status='RUN', time_executed='2021-10-02 00:16:59.813950', time_epoch_executed='1633159019.81' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/860278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/860278/ft1_4FGL_J2234.2-4156_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/860278/ft1_4FGL_J2234.2-4156_daily_bin1602.fits outfile=/scratch/kocevski/860278/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1602.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=654566401.0 tmax=654825601.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.97
user 4.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/860278/ft1_filtered_4FGL_J2234.2-4156_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/860278/ltcube_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.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/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits
.....................!
real 11.87
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/860278/ft1_filtered_4FGL_J2234.2-4156_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/860278/ltcube_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.fits outfile=/scratch/kocevski/860278/expmap_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.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/860278/ltcube_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.fits
.....................!
real 193.00
user 187.60
sys 5.08

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/860278/ft1_filtered_4FGL_J2234.2-4156_daily_bin1602.fits scfile=/scratch/kocevski/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits outfile=/scratch/kocevski/860278/cmap_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/860278/ft1_filtered_4FGL_J2234.2-4156_daily_bin1602.fits scfile=/scratch/kocevski/860278/ft2_4FGL_J2234.2-4156_daily_bin1602.fits outfile=/scratch/kocevski/860278/cmap_HighResolution_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.263       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6400       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    108.14       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4904       1.0000         .10000E-03   10000.    
    23 'norm      '    8.2782       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.4029       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4844       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .75667E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3660       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65118       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=   6143.393     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4569 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0116        .41348E-06** at limit **
   2  norm          6.0008        3.8702       -.28914E-06    .24118E-05
   3  Prefactor     .10000E-03    4.1246       -.10604E-06** at limit **
   4  Prefactor     4.4350        8.5229        .26438E-05    .97019E-04
   5  Prefactor     61.194        36.921        .90602E-06   -.64951E-05
   6  Prefactor     .33234        9.7054       -.18080E-06    .39972E-04
   7  Prefactor     56.282        86.891       -.28038E-05   -.42201E-06
   8  norm          .10000E-03    2.1228        .17862E-08** at limit **
   9  Prefactor     7.4586        8.6299        .81364E-07    .52497E-05
  10  Prefactor     .10000E-03    1.2812       -.49072E-07** at limit **
  11  Prefactor     .10000E-03    17.948        .45868E-06** at limit **
  12  Prefactor     .10000E-03    2.0768       -.56324E-07** at limit **
  13  Prefactor     18.715        17.457        .94069E-07    .14768E-05
  14  Prefactor     .10000E-03    4.7328        .12630E-06** at limit **
  15  Prefactor     14.304        23.631        .43307E-06    .50926E-05
  16  Prefactor     .10000E-03    6.2928       -.11343E-06** at limit **
  17  Prefactor     .10000E-03    56.983        .97268E-07** at limit **
  18  Prefactor     2.6375        13.652        .63471E-06    .95148E-05
  19  Prefactor     .10000E-03    3.8257        .73357E-07** at limit **
  20  Prefactor     .10000E-03    16.383       -.12636E-06** at limit **
  21  Prefactor     108.16        80.794       -.22053E-05    .31523E-05
  22  Prefactor     4.4898        9.6618        .11613E-06    .20868E-05
  23  norm          8.2784        9.9751        .53955E-07    .51609E-06
  24  norm          .10000E-03    3.7588        .16663E-07** at limit **
  25  norm          .10000E-03    3.4271       -.32280E-07** at limit **
  26  norm          9.4013        14.575        .29187E-06   -.20041E-05
  27  Prefactor     5.4841        4.6889       -.21237E-07    .16548E-04
  28  Prefactor     .10000E-03    25.421       -.25727E-06** at limit **
  29  norm          .10000E-03    3.4002        .50425E-06** at limit **
  30  Prefactor     .10000E-03    11.703       -.32246E-06** at limit **
  31  norm          .10007E-03    3.4251        .58385E-06** at limit **
  32  Normalizat    1.3663        .18455        .31476E-07   -.39094E-04
  33  Prefactor     .65093        .16421       -.34942E-06   -.78645E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.00082
  Prefactor  = 0.0001
  Prefactor  = 4.43503
  Prefactor  = 61.1939
  Prefactor  = 0.332336
  Prefactor  = 56.2823
  norm       = 0.0001
  Prefactor  = 7.45857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.715
  Prefactor  = 0.0001
  Prefactor  = 14.3037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.164
  Prefactor  = 4.48983
  norm       = 8.27842
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.40134
  Prefactor  = 5.48411
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100071
  Normalizat = 1.36632
  Prefactor  = 0.650932
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.393     FROM HESSE     STATUS=OK           695 CALLS     5264 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0008        3.8742        .11882E-03   -1.5218    
   3  Prefactor     .10000E-03    4.1593        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4350        8.5918        .95620E-03   -1.5287    
   5  Prefactor     61.194        36.895        .51289E-04   -1.4142    
   6  Prefactor     .33234        58.689        .38699E-02   -1.5593    
   7  Prefactor     56.282        88.162        .53480E-04   -1.4206    
   8  norm          .10000E-03    2.1246        .11153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4586        8.6495        .14684E-03   -1.5162    
  10  Prefactor     .10000E-03    1.3079        .86613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0923        .11025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.715        17.452        .92581E-04   -1.4842    
  14  Prefactor     .10000E-03    4.7351        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.304        23.712        .10589E-03   -1.4951    
  16  Prefactor     .10000E-03    6.3200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6375        13.673        .25094E-03   -1.5383    
  19  Prefactor     .10000E-03    3.8493        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     108.16        80.969        .38675E-04   -1.3624    
  22  Prefactor     4.4898        9.6514        .19000E-03   -1.5284    
  23  norm          8.2784        9.9732        .13934E-03   -1.5132    
  24  norm          .10000E-03    3.8019        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.4821        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.4013        14.574        .13069E-03   -1.5095    
  27  Prefactor     5.4841        4.6866        .76345E-03   -1.5240    
  28  Prefactor     .10000E-03    25.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    7.0666        .26528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10007E-03    39.570        .26157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3663        .21982        .22275E-03   -.81608    
  33  Prefactor     .65093        .19333        .28284E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01506e-09
Minuit parameter uncertainties:
  1  2.39772e-06
  2  3.87434
  3  2.23421e-06
  4  8.59418
  5  36.9088
  6  8.84028
  7  88.3676
  8  4.05915e-07
  9  8.65099
  10  1.9136e-06
  11  8.74636e-06
  12  2.75721e-06
  13  17.4569
  14  1.11357e-07
  15  23.7278
  16  1.00317e-05
  17  2.08117e-05
  18  12.0143
  19  1.70001e-06
  20  6.40815e-06
  21  81.0516
  22  9.65474
  23  9.9752
  24  1.12963e-06
  25  2.94285e-06
  26  14.5797
  27  4.68688
  28  1.45763e-05
  29  9.88007e-05
  30  2.25214e-06
  31  0.00334647
  32  0.21997
  33  0.193524
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.746e-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:  6.509e-01  1.935e-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.366e+00  2.200e-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: 3.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/860278/likelihoodResults_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.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) = 6143.39331888
delta logL = -0.000264767735644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.39305474
delta logL = -6.23638698016e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4004       1.0000          .0000       10.000    
     3 'Normalizat'    1.3663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65093       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=   6143.393     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      245 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5810        .90712E-02** at limit **
   2  Index         2.3851        8.4820        .50000        .87061E-05
   3  Normalizat    1.3663        .21779E-02    .50384E-01    .10167E-05
   4  Prefactor     .65093        .19936E-02    .63930E-01    .23570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38507
  Normalizat = 1.36632
  Prefactor  = 0.650932
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.393     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3851        5.8046        .50000       -.55035    
   3  Normalizat    1.3663        .99597E-02    .22275E-03   -.81608    
   4  Prefactor     .65093        .91051E-02    .28284E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91254e-07
Minuit parameter uncertainties:
  1  8.27136e-05
  2  212.734
  3  0.00995974
  4  0.00910508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/860278': 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) = 6143.39305464
delta logL = -5.33395905222e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  6.509e-01  9.105e-03  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.366e+00  9.960e-03  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/860278/cmap_HighResolution_654566401_654825601_4FGL_J2234.2-4156_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-10-02 00:32:09.579717', job_id='860278', GAL2='0.65', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1633159929.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-5.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1602' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 860278: <4FGL_J2234.2-4156_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1602> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Oct  2 00:16:01 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:16:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:16:03 2021
Terminated at Sat Oct  2 00:32:10 2021
Results reported at Sat Oct  2 00:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1602 338.568 -41.9411 654566401 654825601 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 :                                   911.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

