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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin921
RA = 338.568, Dec = -41.9411
tmin = 478051201, tmax = 478310401
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='358973', job_status='RUN', time_executed='2021-09-28 14:43:07.882548', time_epoch_executed='1632865387.88' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358973/ft1_4FGL_J2234.2-4156_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358973/ft1_4FGL_J2234.2-4156_daily_bin921.fits outfile=/scratch/kocevski/358973/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin921.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=478051201.0 tmax=478310401.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.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/358973/ltcube_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.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/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits
.....................!
real 12.16
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/358973/ltcube_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.fits outfile=/scratch/kocevski/358973/expmap_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.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/358973/ltcube_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.fits
.....................!
real 190.35
user 185.08
sys 4.82

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/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits scfile=/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits outfile=/scratch/kocevski/358973/cmap_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits scfile=/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits outfile=/scratch/kocevski/358973/cmap_HighResolution_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/358973/ft2_4FGL_J2234.2-4156_daily_bin921.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358973/Model_4FGL_J2234.2-4156_daily_bin921.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/358973/ft1_filtered_4FGL_J2234.2-4156_daily_bin921.fits.....................!
real 44.44
user 43.04
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60700E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.398       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16162E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8209       1.0000         .10000E-03   10000.    
    24 'norm      '    4.3508       1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.182       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.972       1.0000         .10000E-03   10000.    
    29 'norm      '    2.6915       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .65772       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4632       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=   5662.323     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4585 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.735       -.37044E-05** at limit **
   2  norm          24.880        8.3146        .16750E-06    .33951E-03
   3  Prefactor     .10000E-03    8.9960       -.17937E-07** at limit **
   4  Prefactor     5.9383        11.318        .20164E-05    .19346E-04
   5  Prefactor     19.939        28.673        .11371E-06   -.13514E-04
   6  Prefactor     6.9404        7.8620       -.43139E-07   -.12984E-03
   7  Prefactor     .10000E-03    58.233        .72036E-05** at limit **
   8  norm          .10000E-03    3.4445       -.47961E-08** at limit **
   9  Prefactor     7.7078        10.782        .47919E-06    .61452E-04
  10  Prefactor     2.2211        4.2460        .39273E-05   -.13354E-03
  11  Prefactor     .10000E-03    23.660        .10497E-05** at limit **
  12  Prefactor     13.975        8.1973        .17828E-06   -.23943E-05
  13  Prefactor     .10014E-03    20.496       -.14011E-05** at limit **
  14  Prefactor     .10000E-03    29.515       -.80476E-06** at limit **
  15  Prefactor     .10000E-03    11.249        .18769E-06** at limit **
  16  Prefactor     26.399        14.434        .29635E-06    .10412E-03
  17  Prefactor     .10000E-03    81.426       -.67713E-05** at limit **
  18  Prefactor     3.9447        13.555        .76795E-06   -.61409E-05
  19  Prefactor     .10000E-03    3.1346        .70001E-09** at limit **
  20  Prefactor     .10000E-03    29.332       -.10582E-05** at limit **
  21  Prefactor     .10000E-03    172.69        .45275E-05** at limit **
  22  Prefactor     .10000E-03    12.599       -.27766E-06** at limit **
  23  norm          3.8218        7.0457        .12917E-05   -.21117E-04
  24  norm          4.3514        4.8207        .13116E-06    .39926E-04
  25  norm          .10000E-03    2.0888       -.84280E-08** at limit **
  26  norm          16.184        13.858        .24136E-06   -.20296E-04
  27  Prefactor     .10000E-03    4.2070       -.34493E-07** at limit **
  28  Prefactor     20.970        37.067        .89610E-06    .18024E-05
  29  norm          2.6923        3.5364        .22631E-07   -.21130E-04
  30  Prefactor     .10000E-03    5.9032       -.15216E-07** at limit **
  31  norm          .10000E-03    1.4099       -.17003E-07** at limit **
  32  Normalizat    .65753        .21978       -.22517E-05    .36503E-04
  33  Prefactor     1.4634        .20299       -.26526E-06    .39945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 24.8801
  Prefactor  = 0.0001
  Prefactor  = 5.93828
  Prefactor  = 19.9391
  Prefactor  = 6.94043
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 7.70781
  Prefactor  = 2.22109
  Prefactor  = 0.0001
  Prefactor  = 13.9751
  Prefactor  = 0.000100138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3986
  Prefactor  = 0.000100002
  Prefactor  = 3.94471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.82184
  norm       = 4.35141
  norm       = 0.0001
  norm       = 16.1843
  Prefactor  = 0.0001
  Prefactor  = 20.9702
  norm       = 2.69232
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.657531
  Prefactor  = 1.46339
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.323     FROM HESSE     STATUS=OK           693 CALLS     5278 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.880        8.3308        .80313E-04   -1.4710    
   3  Prefactor     .10000E-03    9.0723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9383        11.302        .82377E-03   -1.5221    
   5  Prefactor     19.939        28.655        .89698E-04   -1.4815    
   6  Prefactor     6.9404        7.8540        .15229E-03   -1.5181    
   7  Prefactor     .10000E-03    58.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4510        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7078        10.661        .14438E-03   -1.5153    
  10  Prefactor     2.2211        4.2531        .10131E-02   -1.5410    
  11  Prefactor     .10000E-03    23.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.975        8.1912        .53573E-03   -1.4960    
  13  Prefactor     .10014E-03    223.57        .63834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.399        14.428        .77970E-04   -1.4680    
  17  Prefactor     .10000E-03    81.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9447        13.566        .20308E-03   -1.5311    
  19  Prefactor     .10000E-03    3.1437        .13009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    176.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8218        7.0365        .10324E-02   -1.5317    
  24  norm          4.3514        4.8224        .16982E-03   -1.5291    
  25  norm          .10000E-03    2.0925        .10619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.184        13.861        .99563E-04   -1.4903    
  27  Prefactor     .10000E-03    4.2724        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     20.970        37.049        .87461E-04   -1.4792    
  29  norm          2.6923        3.5090        .14716E-03   -1.5380    
  30  Prefactor     .10000E-03    5.9175        .17856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.4104        .87223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .65753        .25513        .33230E-03   -1.0559    
  33  Prefactor     1.4634        .23904        .23125E-03   -.78570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32012e-10
Minuit parameter uncertainties:
  1  0.000449835
  2  8.33122
  3  4.1908e-06
  4  11.306
  5  28.6751
  6  7.85521
  7  0.00081385
  8  6.43401e-07
  9  10.6637
  10  4.25364
  11  7.49299e-05
  12  8.19181
  13  0.0111474
  14  4.66606e-05
  15  7.37397e-06
  16  14.43
  17  0.000891983
  18  13.5764
  19  4.29321e-07
  20  8.52979e-05
  21  0.000729107
  22  1.58542e-05
  23  7.03806
  24  4.82284
  25  6.73827e-07
  26  13.864
  27  3.53896e-06
  28  37.0899
  29  3.50923
  30  1.87716e-06
  31  1.1331e-06
  32  0.255588
  33  0.239227
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.463e+00  2.392e-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:  6.575e-01  2.556e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358973/likelihoodResults_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.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) = 5662.32342179
delta logL = -0.000200913126719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.32322111
delta logL = -2.34218532569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0707       1.0000          .0000       10.000    
     3 'Normalizat'    .65752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5662.323     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2143.3        .90712E-02** at limit **
   2  Index         2.0640        8.8261        .50000        .23182E-05
   3  Normalizat    .65753        .56981E-01    .75064E-01    .23096E-04
   4  Prefactor     1.4634        .56999E-01    .52308E-01   -.14576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06399
  Normalizat = 0.657531
  Prefactor  = 1.46339
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.323     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6487.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0640        6.2864        .50000       -.62760    
   3  Normalizat    .65753        .75408E-01    .33230E-03   -1.0559    
   4  Prefactor     1.4634        .75598E-01    .23125E-03   -.78570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15396e-10
Minuit parameter uncertainties:
  1  0.000615033
  2  48.6129
  3  0.0754196
  4  0.0756043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358973': 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) = 5662.32322091
delta logL = -3.88381522498e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.463e+00  7.560e-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:  6.575e-01  7.542e-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/358973/cmap_HighResolution_478051201_478310401_4FGL_J2234.2-4156_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-09-28 14:57:16.891026', job_id='358973', GAL2='1.46', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632866236.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='-3.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='921' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 358973: <4FGL_J2234.2-4156_daily_bin921> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin921> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:47 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:49 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:40:49 2021
Terminated at Tue Sep 28 14:57:17 2021
Results reported at Tue Sep 28 14:57:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin921 338.568 -41.9411 478051201 478310401 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 :                                   848.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

