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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1640
RA = 338.568, Dec = -41.9411
tmin = 664416001, tmax = 664675201
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='284902', job_status='RUN', time_executed='2022-01-24 00:44:03.679638', time_epoch_executed='1643013843.68' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284902/ft1_4FGL_J2234.2-4156_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284902/ft1_4FGL_J2234.2-4156_daily_bin1640.fits outfile=/scratch/kocevski/284902/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1640.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=664416001.0 tmax=664675201.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 2.89
user 2.69
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284902/ltcube_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.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/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits
.....................!
real 9.80
user 9.48
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284902/ltcube_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.fits outfile=/scratch/kocevski/284902/expmap_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.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/284902/ltcube_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.fits
.....................!
real 150.96
user 146.32
sys 4.36

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/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits scfile=/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits outfile=/scratch/kocevski/284902/cmap_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.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.45
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits scfile=/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits outfile=/scratch/kocevski/284902/cmap_HighResolution_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284902/ft2_4FGL_J2234.2-4156_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284902/Model_4FGL_J2234.2-4156_daily_bin1640.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/284902/ft1_filtered_4FGL_J2234.2-4156_daily_bin1640.fits.....................!
real 32.60
user 31.43
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.349       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.615       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10920E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.009       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.788       1.0000         .10000E-03   10000.    
    29 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    8.4908       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3572       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84425       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=   4847.649     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4511 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.558        .19625E-05** at limit **
   2  norm          16.969        6.5265        .21157E-07   -.17360E-04
   3  Prefactor     10.167        12.930        .14772E-05   -.13823E-03
   4  Prefactor     9.3394        8.5538       -.18928E-06   -.85634E-05
   5  Prefactor     .10000E-03    90.839        .42551E-06** at limit **
   6  Prefactor     15.626        13.669        .19269E-06    .30993E-04
   7  Prefactor     72.343        109.82       -.92523E-06   -.89553E-06
   8  norm          .10000E-03    5.1474       -.36810E-07** at limit **
   9  Prefactor     .10000E-03    6.2937        .34318E-07** at limit **
  10  Prefactor     .10000E-03    1.9899       -.22390E-07** at limit **
  11  Prefactor     .10000E-03    16.023       -.31704E-06** at limit **
  12  Prefactor     .10000E-03    6.1988       -.52968E-06** at limit **
  13  Prefactor     23.642        35.319        .15042E-05    .41409E-04
  14  Prefactor     .10000E-03    21.912        .10850E-05** at limit **
  15  Prefactor     50.594        40.599        .23699E-05    .22554E-03
  16  Prefactor     .10024E-03    15.974       -.28436E-05** at limit **
  17  Prefactor     .10000E-03    40.586        .93500E-06** at limit **
  18  Prefactor     7.0483        19.656       -.15441E-06   -.13428E-04
  19  Prefactor     16.012        9.8963       -.15541E-07   -.50156E-05
  20  Prefactor     6.4476        61.083       -.10217E-06    .58849E-05
  21  Prefactor     .10000E-03    33.578       -.31422E-05** at limit **
  22  Prefactor     .10000E-03    5.0915       -.12205E-06** at limit **
  23  norm          .10000E-03    5.7745        .92320E-07** at limit **
  24  norm          .10000E-03    2.9063       -.16140E-08** at limit **
  25  norm          .10000E-03    2.0140        .33442E-07** at limit **
  26  norm          .10000E-03    10.231        .10073E-06** at limit **
  27  Prefactor     3.7882        3.8002       -.37446E-07    .28169E-04
  28  Prefactor     30.805        52.737        .32641E-05    .59212E-04
  29  norm          .10000E-03    2.3135        .14723E-06** at limit **
  30  Prefactor     .10000E-03    4.9668        .74060E-07** at limit **
  31  norm          8.4920        7.4651       -.25091E-06   -.18369E-04
  32  Normalizat    1.3566        .23944       -.35684E-06    .15542E-03
  33  Prefactor     .84469        .20890        .54773E-07    .84270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.969
  Prefactor  = 10.1673
  Prefactor  = 9.33941
  Prefactor  = 0.0001
  Prefactor  = 15.6263
  Prefactor  = 72.3435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6421
  Prefactor  = 0.0001
  Prefactor  = 50.5941
  Prefactor  = 0.000100239
  Prefactor  = 0.0001
  Prefactor  = 7.04834
  Prefactor  = 16.0121
  Prefactor  = 6.44763
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.78815
  Prefactor  = 30.805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.49198
  Normalizat = 1.35663
  Prefactor  = 0.844686
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.649     FROM HESSE     STATUS=OK           683 CALLS     5194 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.969        6.5261        .97228E-04   -1.4884    
   3  Prefactor     10.167        12.822        .62830E-03   -1.5070    
   4  Prefactor     9.3394        8.5492        .13114E-03   -1.5097    
   5  Prefactor     .10000E-03    92.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.626        13.662        .10131E-03   -1.4917    
   7  Prefactor     72.343        109.82        .47199E-04   -1.4005    
   8  norm          .10000E-03    5.2014        .15427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3182        .17054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0098        .95884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3044        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.642        35.380        .82404E-04   -1.4735    
  14  Prefactor     .10000E-03    21.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.594        40.314        .56369E-04   -1.4284    
  16  Prefactor     .10024E-03    93.577        .45773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0483        19.795        .15118E-03   -1.5177    
  19  Prefactor     16.012        9.9111        .10010E-03   -1.4907    
  20  Prefactor     6.4476        61.078        .15802E-03   -1.5200    
  21  Prefactor     .10000E-03    34.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0954        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.7770        .16341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.9086        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0140        .96491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.7882        3.8078        .13272E-03   -1.5319    
  28  Prefactor     30.805        53.376        .72210E-04   -1.4597    
  29  norm          .10000E-03    2.3127        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.9684        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          8.4920        7.4692        .13757E-03   -1.5125    
  32  Normalizat    1.3566        .29147        .25532E-03   -.81891    
  33  Prefactor     .84469        .25120        .28654E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62301e-09
Minuit parameter uncertainties:
  1  0.000199612
  2  6.52639
  3  12.8257
  4  8.55028
  5  5.76548e-05
  6  13.6643
  7  110.134
  8  1.83822e-06
  9  6.96012e-06
  10  3.87924e-08
  11  2.20325e-05
  12  5.71765e-06
  13  35.4113
  14  5.12977e-05
  15  40.336
  16  0.00947026
  17  0.00011127
  18  19.8138
  19  9.91207
  20  39.7424
  21  0.000308026
  22  3.92795e-06
  23  1.89584e-06
  24  7.68384e-09
  25  1.81856e-06
  26  1.07314e-06
  27  3.80801
  28  53.4588
  29  8.43064e-06
  30  9.96802e-07
  31  7.47005
  32  0.291824
  33  0.251538
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.203e-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:  8.447e-01  2.515e-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.357e+00  2.918e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284902/likelihoodResults_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.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) = 4847.64953602
delta logL = -0.000295290948998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4847.64924244
delta logL = -1.70635030372e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3974       1.0000          .0000       10.000    
     3 'Normalizat'    1.3566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84470       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=   4847.649     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    1.9802        .18142E-01** at limit **
   2  Index         2.3194        8.5021        .50000        .22566E-04
   3  Normalizat    1.3566        .23847E-02    .25532E-03   -.17900E-04
   4  Prefactor     .84469        .21799E-02    .28654E-03   -.12736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102674
  Index      = 2.31939
  Normalizat = 1.35663
  Prefactor  = 0.844687
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10267E-03    61.896        .22953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3194        7.7633        .50000       -.56584    
   3  Normalizat    1.3566        .13406E-01    .10213E-04   -.81891    
   4  Prefactor     .84469        .12254E-01    .11462E-04   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75737e-08
Minuit parameter uncertainties:
  1  0.025758
  2  233.731
  3  0.013406
  4  0.0122545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284902': 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) = 4847.64924211
delta logL = -1.38001632877e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.027e-04  2.576e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.319e+00  2.337e+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.447e-01  1.225e-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:  1.357e+00  1.341e-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/284902/cmap_HighResolution_664416001_664675201_4FGL_J2234.2-4156_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2022-01-24 00:54:43.041010', job_id='284902', GAL2='0.84', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1643014483.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1640' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:54:43 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 284902: <4FGL_J2234.2-4156_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:20 2022
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:23 2022
Terminated at Mon Jan 24 00:54:43 2022
Results reported at Mon Jan 24 00:54:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1640 338.568 -41.9411 664416001 664675201 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 :                                   640.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

