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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1044
RA = 338.568, Dec = -41.9411
tmin = 509932801, tmax = 510192001
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='360156', job_status='RUN', time_executed='2021-09-28 14:48:35.822731', time_epoch_executed='1632865715.82' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360156/ft1_4FGL_J2234.2-4156_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360156/ft1_4FGL_J2234.2-4156_daily_bin1044.fits outfile=/scratch/kocevski/360156/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1044.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=509932801.0 tmax=510192001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.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/360156/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.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/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/360156/ltcube_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.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/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits
.....................!
real 11.90
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/360156/ltcube_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.fits outfile=/scratch/kocevski/360156/expmap_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.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/360156/ltcube_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.fits
.....................!
real 190.92
user 185.87
sys 4.65

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/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits outfile=/scratch/kocevski/360156/cmap_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits outfile=/scratch/kocevski/360156/cmap_HighResolution_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.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/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/360156/ft2_4FGL_J2234.2-4156_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360156/Model_4FGL_J2234.2-4156_daily_bin1044.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/360156/ft1_filtered_4FGL_J2234.2-4156_daily_bin1044.fits.....................!
real 40.71
user 39.35
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .95959       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.469       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .83848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.879       1.0000         .10000E-03   10000.    
    23 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    42.293       1.0000         .10000E-03   10000.    
    29 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    17.320       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80988       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1761       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=   5046.162     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4589 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.584        42.961       -.94801E-07   -.13090E-04
   2  norm          2.9756        4.5884        .11970E-05    .92946E-03
   3  Prefactor     12.677        10.949        .24917E-07    .80864E-06
   4  Prefactor     .10000E-03    5.7090        .21464E-07** at limit **
   5  Prefactor     .10000E-03    17.930       -.31107E-06** at limit **
   6  Prefactor     .10000E-03    3.9397        .99013E-08** at limit **
   7  Prefactor     .10000E-03    88.815        .47236E-07** at limit **
   8  norm          .96080        6.3332        .50561E-06    .99660E-04
   9  Prefactor     14.488        13.327       -.59048E-07   -.17023E-04
  10  Prefactor     .10000E-03    2.0370       -.24818E-07** at limit **
  11  Prefactor     .10000E-03    15.590        .33032E-06** at limit **
  12  Prefactor     4.3861        5.6417        .12709E-06   -.98658E-04
  13  Prefactor     27.543        40.548        .76266E-06   -.53678E-04
  14  Prefactor     11.872        26.342        .55304E-07   -.26292E-04
  15  Prefactor     28.509        31.046       -.30843E-05   -.38832E-03
  16  Prefactor     .80328        38.001       -.72969E-05    .33003E-03
  17  Prefactor     .10000E-03    50.120       -.15840E-05** at limit **
  18  Prefactor     11.961        16.116       -.70942E-07    .17785E-05
  19  Prefactor     .10000E-03    3.3046       -.33258E-07** at limit **
  20  Prefactor     .10000E-03    38.032        .12356E-05** at limit **
  21  Prefactor     69.959        57.562        .40083E-06   -.37174E-04
  22  Prefactor     15.876        13.512        .53161E-08   -.43742E-04
  23  norm          .10000E-03    12.511       -.12024E-06** at limit **
  24  norm          .10000E-03    1.9792       -.45320E-09** at limit **
  25  norm          .10000E-03    2.7042       -.30719E-06** at limit **
  26  norm          .10000E-03    3.1941       -.54737E-07** at limit **
  27  Prefactor     .10000E-03    2.9759       -.28843E-08** at limit **
  28  Prefactor     42.271        36.853        .72723E-06   -.72132E-04
  29  norm          .10000E-03    2.6234       -.55131E-06** at limit **
  30  Prefactor     .10000E-03    20.079       -.23662E-06** at limit **
  31  norm          17.319        7.1802       -.46673E-07    .24269E-04
  32  Normalizat    .81056        .21517        .15545E-06   -.18504E-03
  33  Prefactor     1.1756        .19140       -.49049E-06   -.16246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5845
  norm       = 2.97556
  Prefactor  = 12.6774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.960796
  Prefactor  = 14.4882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38607
  Prefactor  = 27.5434
  Prefactor  = 11.8723
  Prefactor  = 28.5094
  Prefactor  = 0.803284
  Prefactor  = 0.000100001
  Prefactor  = 11.9612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9591
  Prefactor  = 15.8757
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.271
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3194
  Normalizat = 0.810558
  Prefactor  = 1.17555
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.162     FROM HESSE     STATUS=OK           689 CALLS     5278 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.584        43.069        .11286E-03   -1.4998    
   2  norm          2.9756        4.8045        .91527E-03   -1.5363    
   3  Prefactor     12.677        10.947        .11250E-03   -1.4996    
   4  Prefactor     .10000E-03    5.7265        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9568        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    89.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96080        6.2357        .34783E-03   -1.5512    
   9  Prefactor     14.488        13.348        .10521E-03   -1.4947    
  10  Prefactor     .10000E-03    2.0745        .98963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3861        5.6552        .17889E-03   -1.5289    
  13  Prefactor     27.543        40.564        .76308E-04   -1.4658    
  14  Prefactor     11.872        26.318        .11619E-03   -1.5019    
  15  Prefactor     28.509        35.886        .75087E-04   -1.4640    
  16  Prefactor     .80328        72.391        .45646E-02   -1.5529    
  17  Prefactor     .10000E-03    50.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.961        16.144        .11579E-03   -1.5016    
  19  Prefactor     .10000E-03    3.3199        .12610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.959        57.634        .23995E-03   -1.4033    
  22  Prefactor     15.876        13.524        .10051E-03   -1.4911    
  23  norm          .10000E-03    12.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9794        .97601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7154        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.1981        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9935        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     42.271        36.925        .61642E-04   -1.4407    
  29  norm          .10000E-03    2.6542        .11226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          17.319        7.1803        .96237E-04   -1.4875    
  32  Normalizat    .81056        .25916        .28655E-03   -.99678    
  33  Prefactor     1.1756        .23051        .23135E-03   -.87087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01594e-09
Minuit parameter uncertainties:
  1  43.1758
  2  4.80512
  3  10.9482
  4  9.72439e-07
  5  6.22833e-05
  6  5.91611e-06
  7  7.35427e-05
  8  4.8959
  9  13.3503
  10  1.58926e-07
  11  6.5882e-05
  12  5.65588
  13  40.6042
  14  26.3439
  15  35.9128
  16  15.2694
  17  0.000482699
  18  16.15
  19  6.58219e-06
  20  0.000254678
  21  57.6804
  22  13.5269
  23  3.4458e-06
  24  1.80358e-07
  25  2.92886e-05
  26  3.96449e-07
  27  1.19635e-06
  28  36.9451
  29  5.33757e-05
  30  2.48438e-05
  31  7.18065
  32  0.259556
  33  0.230703
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.588e-05  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.176e+00  2.307e-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:  8.106e-01  2.596e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360156/likelihoodResults_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.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) = 5046.16190879
delta logL = -0.000302979369735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5046.16160754
delta logL = -1.72787895281e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11490E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1625       1.0000          .0000       10.000    
     3 'Normalizat'    .81057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1755       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=   5046.162     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    56.971        .18142E-02** at limit **
   2  Index         2.0935        7.7670        .50000        .27691E-04
   3  Normalizat    .81056        .10440E-01    .28655E-03   -.15751E-04
   4  Prefactor     1.1756        .10020E-01    .23135E-03   -.26192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101909
  Index      = 2.09346
  Normalizat = 0.81056
  Prefactor  = 1.17555
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.162     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10191E-03    246.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0935        5.5054        .50000       -.62033    
   3  Normalizat    .81056        .22124E-01    .11462E-04   -.99678    
   4  Prefactor     1.1756        .21234E-01    .92538E-05   -.87087    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53244e-08
Minuit parameter uncertainties:
  1  0.0435687
  2  256.765
  3  0.0221246
  4  0.0212343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360156': 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) = 5046.16160647
delta logL = -6.57460077491e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.019e-04  4.357e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.093e+00  2.568e+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:  1.176e+00  2.123e-02  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:  8.106e-01  2.212e-02  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/360156/cmap_HighResolution_509932801_510192001_4FGL_J2234.2-4156_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-28 15:01:59.958278', job_id='360156', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632866519.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-6.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1044' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 360156: <4FGL_J2234.2-4156_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1044 338.568 -41.9411 509932801 510192001 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 :                                   804.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

