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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1360
RA = 338.568, Dec = -41.9411
tmin = 591840001, tmax = 592099201
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='361696', job_status='RUN', time_executed='2021-09-28 14:51:53.371738', time_epoch_executed='1632865913.37' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361696/ft1_4FGL_J2234.2-4156_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361696/ft1_4FGL_J2234.2-4156_daily_bin1360.fits outfile=/scratch/kocevski/361696/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1360.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.42
user 4.97
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.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/361696/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/361696/ltcube_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.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/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits
.....................!
real 11.69
user 11.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/361696/ltcube_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.fits outfile=/scratch/kocevski/361696/expmap_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.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/361696/ltcube_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.fits
.....................!
real 191.38
user 186.61
sys 4.46

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/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits outfile=/scratch/kocevski/361696/cmap_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits outfile=/scratch/kocevski/361696/cmap_HighResolution_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.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/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/361696/ft2_4FGL_J2234.2-4156_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361696/Model_4FGL_J2234.2-4156_daily_bin1360.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/361696/ft1_filtered_4FGL_J2234.2-4156_daily_bin1360.fits.....................!
real 34.15
user 32.97
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    35.135       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30111E-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 '    .25755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69122E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.494       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9101       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62113       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2359       1.0000         .10000E-03   10000.    
    24 'norm      '    .70198       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7590       1.0000         .10000E-03   10000.    
    26 'norm      '    6.5693       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8106       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.7231       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .50426       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=   3792.285     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4678 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.520       -.64117E-06** at limit **
   2  norm          35.135        9.8037       -.76154E-08    .36096E-05
   3  Prefactor     13.637        13.517       -.14774E-06   -.51259E-05
   4  Prefactor     .10000E-03    9.6881        .84767E-07** at limit **
   5  Prefactor     43.413        63.218       -.21047E-06   -.14689E-04
   6  Prefactor     3.4802        13.295       -.43589E-06   -.23575E-04
   7  Prefactor     .10000E-03    317.30       -.17641E-06** at limit **
   8  norm          .10000E-03    3.8220        .16707E-07** at limit **
   9  Prefactor     .10000E-03    2.9065        .15711E-07** at limit **
  10  Prefactor     .24798        3.3826       -.32084E-06   -.75364E-04
  11  Prefactor     38.151        50.585        .73126E-06   -.45677E-05
  12  Prefactor     .10020E-03    11.424        .27131E-05** at limit **
  13  Prefactor     29.649        28.339        .86239E-07   -.51632E-05
  14  Prefactor     78.890        43.538       -.47529E-06   -.15400E-04
  15  Prefactor     18.501        31.198       -.29127E-06   -.47097E-04
  16  Prefactor     17.883        14.094        .10307E-06   -.32797E-04
  17  Prefactor     .10000E-03    34.435       -.35847E-06** at limit **
  18  Prefactor     .10000E-03    16.926        .50395E-06** at limit **
  19  Prefactor     6.9084        11.164       -.17311E-06   -.17189E-04
  20  Prefactor     .10000E-03    23.673       -.29031E-05** at limit **
  21  Prefactor     .10000E-03    25.910        .36836E-05** at limit **
  22  Prefactor     .59325        98.393       -.88548E-05   -.53529E-04
  23  norm          1.2339        42.963       -.20202E-05    .35092E-07
  24  norm          .70229        13.358       -.24653E-05   -.19164E-04
  25  norm          7.7594        6.6214       -.29049E-06    .17994E-04
  26  norm          6.5665        12.985       -.24256E-06   -.27703E-05
  27  Prefactor     9.8103        7.5765        .96405E-07   -.70474E-05
  28  Prefactor     .10000E-03    235.65       -.11473E-05** at limit **
  29  norm          .10000E-03    2.8434        .18512E-06** at limit **
  30  Prefactor     .10000E-03    14.792        .42418E-07** at limit **
  31  norm          3.7220        5.7636        .51653E-07    .22244E-04
  32  Normalizat    1.2670        .24865        .33286E-06   -.12283E-03
  33  Prefactor     .50415        .21137        .62978E-07   -.64846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 35.1353
  Prefactor  = 13.6366
  Prefactor  = 0.0001
  Prefactor  = 43.4131
  Prefactor  = 3.48017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.247978
  Prefactor  = 38.1509
  Prefactor  = 0.000100202
  Prefactor  = 29.649
  Prefactor  = 78.8897
  Prefactor  = 18.501
  Prefactor  = 17.8826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.593246
  norm       = 1.23387
  norm       = 0.70229
  norm       = 7.75944
  norm       = 6.56646
  Prefactor  = 9.81034
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.72204
  Normalizat = 1.26695
  Prefactor  = 0.504154
 **********
 **   18 **HESSE 
 **********

 FCN=   3792.285     FROM HESSE     STATUS=OK           705 CALLS     5383 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          35.135        9.7983        .67608E-04   -1.4522    
   3  Prefactor     13.637        13.500        .10846E-03   -1.4969    
   4  Prefactor     .10000E-03    9.7678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.413        62.545        .60845E-04   -1.4389    
   6  Prefactor     3.4802        13.143        .21681E-03   -1.5335    
   7  Prefactor     .10000E-03    317.79        .21388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8261        .11758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9080        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24798        19.623        .20674E-02   -1.5608    
  11  Prefactor     38.151        50.747        .64895E-04   -1.4472    
  12  Prefactor     .10020E-03    101.19        .26087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.649        28.338        .73585E-04   -1.4618    
  14  Prefactor     78.890        43.572        .45212E-04   -1.3929    
  15  Prefactor     18.501        30.896        .93135E-04   -1.4847    
  16  Prefactor     17.883        14.082        .94715E-04   -1.4862    
  17  Prefactor     .10000E-03    34.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9084        11.175        .15262E-03   -1.5182    
  20  Prefactor     .10000E-03    23.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .59325        104.30        .41025E-02   -1.5554    
  23  norm          1.2339        43.676        .40388E-03   -1.5486    
  24  norm          .70229        13.400        .42328E-03   -1.5540    
  25  norm          7.7594        6.6025        .14182E-03   -1.5151    
  26  norm          6.5665        12.977        .15657E-03   -1.5195    
  27  Prefactor     9.8103        7.5725        .12794E-03   -1.5081    
  28  Prefactor     .10000E-03    237.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.8558        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.7220        5.7559        .17760E-03   -1.5322    
  32  Normalizat    1.2670        .29407        .23243E-03   -.84558    
  33  Prefactor     .50415        .24591        .31453E-03   -1.1179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.108e-08
Minuit parameter uncertainties:
  1  9.20817e-07
  2  9.7988
  3  13.5029
  4  7.536e-06
  5  62.6401
  6  13.1537
  7  0.000156516
  8  5.70006e-07
  9  6.0367e-07
  10  4.41239
  11  50.8043
  12  0.00905173
  13  28.3512
  14  43.5898
  15  30.9228
  16  14.085
  17  3.98008e-06
  18  7.35406e-06
  19  11.1781
  20  2.48675e-05
  21  4.02601e-05
  22  15.7588
  23  14.6931
  24  6.13649
  25  6.60308
  26  12.9821
  27  7.57319
  28  0.000903779
  29  7.06603e-06
  30  1.88175e-05
  31  5.75676
  32  0.294454
  33  0.246435
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.815e+01  5.080e+01  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:  5.042e-01  2.464e-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.267e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.99e-05

TS (Fixed Index): 1.06
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361696/likelihoodResults_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.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): 0
logL (Free Index) = 3790.79389161
delta logL = 1.49109945747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3790.73298276
delta logL = 1.55200830679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.481       1.0000         .10000E-03   10000.    
     2 'Index     '    .61405       1.0000          .0000       10.000    
     3 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50787       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=   3790.733     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      217 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.481        23.425        .22126E-02    .46172E-04
   2  Index         .61371        .49315        .24354       -.12758E-04
   3  Normalizat    1.2719        .23212        .52426E-01    .25220E-05
   4  Prefactor     .50786        .20756        .70813E-01    .16890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4809
  Index      = 0.613712
  Normalizat = 1.27193
  Prefactor  = 0.50786
 **********
 **   18 **HESSE 
 **********

 FCN=   3790.733     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.481        37.761        .88504E-04   -1.4803    
   2  Index         .61371        .74149        .11423E-01   -1.0701    
   3  Normalizat    1.2719        .27163        .23179E-03   -.84408    
   4  Prefactor     .50786        .24238        .31351E-03   -1.1162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98531e-10
Minuit parameter uncertainties:
  1  37.8046
  2  0.753824
  3  0.271936
  4  0.242879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361696': 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) = 3790.73298242
delta logL = 1.55200864903

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.048e+01  3.780e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  6.137e-01  7.538e-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:  5.079e-01  2.429e-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.272e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 0.61 +/- 0.75
Photon Flux (Free Index): 4.98e-09 +/- 5.39e-09
Energy Flux (Free Index): 1.49e-04 +/- 1.93e-04

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/361696/cmap_HighResolution_591840001_592099201_4FGL_J2234.2-4156_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='1.49e-04', photon_flux_error='2.83e-08', dlogl='1.55e+00', energy_flux='1.50e-05', photon_flux2='4.98e-09', job_status='DONE', time_completed='2021-09-28 15:03:21.790567', photon_index_error2='0.75', photon_index2='0.61', ts='1.06', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.93e-04', EG='1.27', time_epoch_completed='1632866601.79', return_code='0', job_id='361696', GAL2='0.51', EG2='1.27', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='5.39e-09', ts2='4.15', photon_index='1.99' WHERE bin_id='1360' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:03:21 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1360 338.568 -41.9411 591840001 592099201 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

