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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1449
RA = 338.568, Dec = -41.9411
tmin = 614908801, tmax = 615168001
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='362878', job_status='RUN', time_executed='2021-09-28 14:56:24.639013', time_epoch_executed='1632866184.64' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362878/ft1_4FGL_J2234.2-4156_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362878/ft1_4FGL_J2234.2-4156_daily_bin1449.fits outfile=/scratch/kocevski/362878/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1449.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=614908801.0 tmax=615168001.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.56
user 3.31
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.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/362878/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.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.60
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/362878/ltcube_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.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/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits
.....................!
real 11.94
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/362878/ltcube_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.fits outfile=/scratch/kocevski/362878/expmap_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.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/362878/ltcube_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.fits
.....................!
real 191.30
user 186.03
sys 4.88

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/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits outfile=/scratch/kocevski/362878/cmap_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits outfile=/scratch/kocevski/362878/cmap_HighResolution_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/362878/ft2_4FGL_J2234.2-4156_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362878/Model_4FGL_J2234.2-4156_daily_bin1449.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/362878/ft1_filtered_4FGL_J2234.2-4156_daily_bin1449.fits.....................!
real 40.67
user 39.39
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.439       1.0000         .10000E-03   10000.    
     2 'norm      '    .17223E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8777       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 '    3.9646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4649       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.807       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10607E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.546       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.299       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9877       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4715       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .26146E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.6214       1.0000         .10000E-03   10000.    
    31 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2452       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72650       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=   4862.392     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4571 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.312        50.029        .25452E-05    .19130E-03
   2  norm          .10001E-03    11.099        .49845E-05** at limit **
   3  Prefactor     .10000E-03    19.877        .12359E-07** at limit **
   4  Prefactor     .10000E-03    3.6013        .19903E-06** at limit **
   5  Prefactor     .10000E-03    44.897        .14603E-05** at limit **
   6  Prefactor     1.8834        13.274        .19080E-06    .20874E-03
   7  Prefactor     .10001E-03    162.89       -.26355E-05** at limit **
   8  norm          .10000E-03    2.1669        .46724E-08** at limit **
   9  Prefactor     3.9651        6.7301        .59834E-07    .12047E-03
  10  Prefactor     4.3565        5.4499        .38958E-06    .11687E-03
  11  Prefactor     .10000E-03    19.814        .48712E-06** at limit **
  12  Prefactor     1.4670        7.3504        .52301E-06    .10175E-03
  13  Prefactor     .10000E-03    10.830       -.73100E-08** at limit **
  14  Prefactor     .10000E-03    38.306       -.88806E-06** at limit **
  15  Prefactor     .10000E-03    56.461       -.26693E-07** at limit **
  16  Prefactor     .10000E-03    9.6226       -.15193E-06** at limit **
  17  Prefactor     .10000E-03    42.175        .43178E-06** at limit **
  18  Prefactor     33.813        15.101        .13374E-06   -.47534E-05
  19  Prefactor     .10016E-03    24.843        .74657E-05** at limit **
  20  Prefactor     .10000E-03    9.9428        .14355E-06** at limit **
  21  Prefactor     40.578        70.083       -.12656E-05   -.12984E-03
  22  Prefactor     .10000E-03    6.0143       -.10729E-07** at limit **
  23  norm          19.299        13.003        .54312E-07    .16950E-05
  24  norm          .10000E-03    2.1071        .33003E-08** at limit **
  25  norm          2.9894        3.3083        .57572E-08   -.19709E-04
  26  norm          .10000E-03    3.8573       -.49789E-07** at limit **
  27  Prefactor     7.4703        8.4635        .17813E-07    .77654E-04
  28  Prefactor     .10001E-03    133.83       -.25658E-05** at limit **
  29  norm          .10000E-03    1.7996       -.68950E-07** at limit **
  30  Prefactor     6.6298        19.418        .30761E-06    .40283E-04
  31  norm          .10000E-03    2.1036       -.52590E-07** at limit **
  32  Normalizat    1.2449        .20900       -.70616E-06   -.47233E-03
  33  Prefactor     .72671        .18163       -.21750E-06   -.39102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3124
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.88342
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 3.96511
  Prefactor  = 4.35648
  Prefactor  = 0.0001
  Prefactor  = 1.46701
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.8125
  Prefactor  = 0.000100155
  Prefactor  = 0.0001
  Prefactor  = 40.5783
  Prefactor  = 0.0001
  norm       = 19.2994
  norm       = 0.0001
  norm       = 2.9894
  norm       = 0.0001
  Prefactor  = 7.47025
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 6.62983
  norm       = 0.0001
  Normalizat = 1.24495
  Prefactor  = 0.726713
 **********
 **   18 **HESSE 
 **********

 FCN=   4862.392     FROM HESSE     STATUS=OK           685 CALLS     5256 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.312        51.336        .73841E-04   -1.4625    
   2  norm          .10001E-03    12.467        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6085        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8834        13.835        .15192E-02   -1.5433    
   7  Prefactor     .10001E-03    164.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1673        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9651        6.7461        .10129E-02   -1.5310    
  10  Prefactor     4.3565        5.4885        .16701E-03   -1.5290    
  11  Prefactor     .10000E-03    19.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4670        7.2852        .35027E-03   -1.5466    
  13  Prefactor     .10000E-03    10.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.813        15.136        .68919E-04   -1.4544    
  19  Prefactor     .10016E-03    36.397        .33384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.578        70.510        .62951E-04   -1.4433    
  22  Prefactor     .10000E-03    6.0248        .16702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.299        13.004        .91172E-04   -1.4829    
  24  norm          .10000E-03    2.1079        .98850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9894        3.3088        .13015E-03   -1.5362    
  26  norm          .10000E-03    3.8678        .13375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4703        8.5607        .14672E-03   -1.5161    
  28  Prefactor     .10001E-03    137.97        .42894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.8156        .91297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.6298        19.667        .15595E-03   -1.5193    
  31  norm          .10000E-03    2.1131        .98756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2449        .24954        .22457E-03   -.85225    
  33  Prefactor     .72671        .21619        .26301E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7419e-09
Minuit parameter uncertainties:
  1  51.4139
  2  0.000840422
  3  2.73461e-05
  4  1.84116e-05
  5  0.000717475
  6  10.2122
  7  0.00232991
  8  7.22725e-07
  9  6.74735
  10  5.4891
  11  0.000152988
  12  6.53936
  13  5.25422e-06
  14  0.000395565
  15  9.95288e-06
  16  3.01639e-05
  17  0.000210777
  18  15.1382
  19  0.00475379
  20  3.29554e-05
  21  70.6556
  22  1.21295e-06
  23  13.006
  24  2.04321e-07
  25  3.30904
  26  4.66589e-06
  27  8.56211
  28  0.00186336
  29  4.64786e-06
  30  19.6857
  31  3.77682e-06
  32  0.249775
  33  0.216441
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.530e-04  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:  7.267e-01  2.164e-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.245e+00  2.498e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362878/likelihoodResults_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.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) = 4862.39234257
delta logL = -0.000237894144448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4862.39210485
delta logL = -1.74276465259e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9034       1.0000          .0000       10.000    
     3 'Normalizat'    1.2449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72675       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=   4862.392     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      261 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6554.9        .18142E-02** at limit **
   2  Index         1.8981        5.8554        .50000        .19322E-05
   3  Normalizat    1.2449        .89478E-01    .22457E-03    .42168E-03
   4  Prefactor     .72671        .82701E-01    .26301E-03    .37860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89813
  Normalizat = 1.24495
  Prefactor  = 0.726714
 **********
 **   18 **HESSE 
 **********

 FCN=   4862.392     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8981        5.9087        .50000       -.66922    
   3  Normalizat    1.2449        .22847        .44915E-04   -.85225    
   4  Prefactor     .72671        .21112        .52601E-04   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22872e-10
Minuit parameter uncertainties:
  1  8.62776e-05
  2  4.24077
  3  0.228658
  4  0.211354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362878': 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): 0
logL (Free Index) = 4862.39210463
delta logL = 5.0353264669e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.267e-01  2.114e-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.245e+00  2.287e-01  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/362878/cmap_HighResolution_614908801_615168001_4FGL_J2234.2-4156_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-28 15:09:55.004743', job_id='362878', GAL2='0.73', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632866995.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1449' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 362878: <4FGL_J2234.2-4156_daily_bin1449> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1449> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:21 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55: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:55:23 2021
Terminated at Tue Sep 28 15:09:55 2021
Results reported at Tue Sep 28 15:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1449 338.568 -41.9411 614908801 615168001 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 :                                   808.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

