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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1276
RA = 338.568, Dec = -41.9411
tmin = 570067201, tmax = 570326401
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='361564', job_status='RUN', time_executed='2021-09-28 14:52:06.222541', time_epoch_executed='1632865926.22' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361564

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361564/ft1_4FGL_J2234.2-4156_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361564/ft1_4FGL_J2234.2-4156_daily_bin1276.fits outfile=/scratch/kocevski/361564/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1276.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=570067201.0 tmax=570326401.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.58
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/361564/ltcube_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.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/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits
.....................!
real 11.81
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/361564/ltcube_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.fits outfile=/scratch/kocevski/361564/expmap_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.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/361564/ltcube_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.fits
.....................!
real 192.22
user 186.61
sys 5.28

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/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits scfile=/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits outfile=/scratch/kocevski/361564/cmap_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits scfile=/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits outfile=/scratch/kocevski/361564/cmap_HighResolution_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/361564/ft2_4FGL_J2234.2-4156_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361564/Model_4FGL_J2234.2-4156_daily_bin1276.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/361564/ft1_filtered_4FGL_J2234.2-4156_daily_bin1276.fits.....................!
real 33.50
user 32.22
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.686       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9838       1.0000         .10000E-03   10000.    
    23 'norm      '    26.747       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.9173       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0311       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13182E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .90127       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81733       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=   3631.442     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4505 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.351        .10670E-05** at limit **
   2  norm          9.3433        5.6776        .37084E-07   -.17290E-04
   3  Prefactor     5.2853        10.694        .35667E-06   -.32644E-04
   4  Prefactor     .10000E-03    9.1236        .48007E-06** at limit **
   5  Prefactor     .10001E-03    82.435       -.41969E-05** at limit **
   6  Prefactor     .10000E-03    12.305       -.21574E-06** at limit **
   7  Prefactor     .10000E-03    32.273       -.23615E-05** at limit **
   8  norm          .10000E-03    2.7596        .79235E-09** at limit **
   9  Prefactor     .10000E-03    6.7269       -.13933E-06** at limit **
  10  Prefactor     .10000E-03    2.2976        .58269E-08** at limit **
  11  Prefactor     .10000E-03    16.800        .44058E-07** at limit **
  12  Prefactor     7.1393        6.9074        .19142E-05   -.64507E-03
  13  Prefactor     24.087        21.830        .91199E-07   -.11179E-04
  14  Prefactor     .10000E-03    7.5222       -.13470E-06** at limit **
  15  Prefactor     .10000E-03    25.902       -.30612E-07** at limit **
  16  Prefactor     17.256        13.543       -.12373E-06   -.14589E-04
  17  Prefactor     .10001E-03    60.025        .50848E-05** at limit **
  18  Prefactor     13.782        15.740        .31236E-06    .13754E-05
  19  Prefactor     .10000E-03    6.9997        .11222E-05** at limit **
  20  Prefactor     29.214        46.907       -.18502E-05   -.64611E-04
  21  Prefactor     86.665        76.898       -.31845E-05   -.19646E-03
  22  Prefactor     5.9821        13.818        .29069E-05   -.21174E-03
  23  norm          26.746        16.927        .12309E-07    .17991E-05
  24  norm          .10000E-03    2.4959       -.16622E-07** at limit **
  25  norm          3.9163        3.9620       -.88420E-07   -.30784E-04
  26  norm          3.0301        11.865        .76126E-06   -.22620E-04
  27  Prefactor     .10000E-03    3.0802       -.18046E-07** at limit **
  28  Prefactor     .10000E-03    100.37       -.52971E-06** at limit **
  29  norm          .10000E-03    1.4730        .94856E-08** at limit **
  30  Prefactor     .10000E-03    7.6245       -.89333E-06** at limit **
  31  norm          .10000E-03    1.4651        .49880E-08** at limit **
  32  Normalizat    .90149        .21018       -.24004E-06   -.14926E-04
  33  Prefactor     .81708        .19985       -.53610E-06   -.38804E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.34328
  Prefactor  = 5.28532
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13927
  Prefactor  = 24.0868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.256
  Prefactor  = 0.000100011
  Prefactor  = 13.782
  Prefactor  = 0.0001
  Prefactor  = 29.2137
  Prefactor  = 86.6648
  Prefactor  = 5.98206
  norm       = 26.7456
  norm       = 0.0001
  norm       = 3.91632
  norm       = 3.03005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.901492
  Prefactor  = 0.817085
 **********
 **   18 **HESSE 
 **********

 FCN=   3631.442     FROM HESSE     STATUS=OK           685 CALLS     5190 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3433        5.6801        .10831E-03   -1.5097    
   3  Prefactor     5.2853        10.688        .17483E-03   -1.5248    
   4  Prefactor     .10000E-03    9.2139        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    84.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7599        .97770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7855        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3235        .89140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1393        7.1496        .75067E-03   -1.5174    
  13  Prefactor     24.087        21.850        .81613E-04   -1.4726    
  14  Prefactor     .10000E-03    7.5271        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.256        13.537        .96422E-04   -1.4877    
  17  Prefactor     .10001E-03    62.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.782        15.782        .10788E-03   -1.4965    
  19  Prefactor     .10000E-03    7.2637        .31264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.214        46.997        .74119E-04   -1.4626    
  21  Prefactor     86.665        79.676        .43150E-04   -1.3843    
  22  Prefactor     5.9821        14.051        .82074E-03   -1.5219    
  23  norm          26.746        16.930        .77461E-04   -1.4673    
  24  norm          .10000E-03    2.4961        .92981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.9163        3.9675        .11772E-03   -1.5312    
  26  norm          3.0301        11.863        .23308E-03   -1.5360    
  27  Prefactor     .10000E-03    3.0908        .10328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    105.09        .41139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.4790        .71410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.7142        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.4665        .71236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .90149        .24914        .23004E-03   -.96408    
  33  Prefactor     .81708        .23573        .23388E-03   -.99102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24006e-09
Minuit parameter uncertainties:
  1  0.000205642
  2  5.68047
  3  10.6922
  4  5.16039e-05
  5  0.00159304
  6  3.56311e-05
  7  0.000556109
  8  1.08943e-07
  9  2.05417e-05
  10  3.29551e-06
  11  4.37903e-06
  12  7.15048
  13  21.8568
  14  1.32665e-05
  15  9.28086e-06
  16  13.5389
  17  0.00165091
  18  15.7872
  19  9.97229e-05
  20  47.0562
  21  79.7749
  22  14.0585
  23  16.9329
  24  1.12546e-06
  25  3.96772
  26  11.8727
  27  1.95456e-06
  28  0.000217571
  29  4.92108e-07
  30  0.0001032
  31  1.04291e-07
  32  0.249459
  33  0.236022
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.379e-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:  8.171e-01  2.360e-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.015e-01  2.495e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361564/likelihoodResults_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.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) = 3631.44248617
delta logL = -0.000282774760308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3631.44220523
delta logL = -1.83952579391e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3807       1.0000          .0000       10.000    
     3 'Normalizat'    .90148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81709       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=   3631.442     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10498E-03    1.5403        .18142E-01** at limit **
   2  Index         2.2699        8.8137        .50000        .23480E-04
   3  Normalizat    .90149        .17688E-02    .23004E-03   -.29472E-03
   4  Prefactor     .81708        .17297E-02    .23388E-03   -.29128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104983
  Index      = 2.26991
  Normalizat = 0.901491
  Prefactor  = 0.817084
 **********
 **   18 **HESSE 
 **********

 FCN=   3631.442     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10498E-03    75.141        .20529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2699        5.4239        .50000       -.57760    
   3  Normalizat    .90149        .12421E-01    .46008E-04   -.96408    
   4  Prefactor     .81708        .12146E-01    .46777E-04   -.99102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31377e-08
Minuit parameter uncertainties:
  1  0.0387477
  2  298.637
  3  0.0124211
  4  0.0121464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361564': 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) = 3631.44220472
delta logL = -1.32343802761e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.050e-04  3.875e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.270e+00  2.986e+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:  8.171e-01  1.215e-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:  9.015e-01  1.242e-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/361564/cmap_HighResolution_570067201_570326401_4FGL_J2234.2-4156_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-28 15:03:17.673266', job_id='361564', GAL2='0.82', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632866597.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1276' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:03:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 361564: <4FGL_J2234.2-4156_daily_bin1276> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1276> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:25 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:27 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:50:27 2021
Terminated at Tue Sep 28 15:03:18 2021
Results reported at Tue Sep 28 15:03:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1276 338.568 -41.9411 570067201 570326401 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 :                                   671.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

