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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1058
RA = 338.568, Dec = -41.9411
tmin = 513561601, tmax = 513820801
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='361413', job_status='RUN', time_executed='2021-09-28 14:51:39.093930', time_epoch_executed='1632865899.09' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361413/ft1_4FGL_J2234.2-4156_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361413/ft1_4FGL_J2234.2-4156_daily_bin1058.fits outfile=/scratch/kocevski/361413/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1058.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=513561601.0 tmax=513820801.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.67
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.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/361413/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/361413/ltcube_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.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/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits
.....................!
real 11.81
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/361413/ltcube_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.fits outfile=/scratch/kocevski/361413/expmap_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.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/361413/ltcube_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.fits
.....................!
real 190.46
user 184.93
sys 5.21

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/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits outfile=/scratch/kocevski/361413/cmap_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits outfile=/scratch/kocevski/361413/cmap_HighResolution_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.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/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/361413/ft2_4FGL_J2234.2-4156_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361413/Model_4FGL_J2234.2-4156_daily_bin1058.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/361413/ft1_filtered_4FGL_J2234.2-4156_daily_bin1058.fits.....................!
real 40.45
user 39.19
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55040E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.338       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-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      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.984       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.4261       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.094       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97318       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=   4958.309     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4512 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2224        .20553E-06** at limit **
   2  norm          6.2831        3.9965       -.13875E-07    .59552E-04
   3  Prefactor     .10000E-03    9.7757       -.37941E-06** at limit **
   4  Prefactor     .10000E-03    4.8946       -.41189E-07** at limit **
   5  Prefactor     .10000E-03    282.18        .19831E-04** at limit **
   6  Prefactor     1.8129        7.3100       -.51539E-05   -.80411E-04
   7  Prefactor     35.323        78.822        .78686E-05    .26238E-04
   8  norm          5.4423        5.4259        .71030E-06   -.47033E-04
   9  Prefactor     .20597        112.88        .17912E-04   -.69373E-06
  10  Prefactor     5.9924        4.8160       -.58348E-06    .48851E-04
  11  Prefactor     .10000E-03    15.231       -.51604E-06** at limit **
  12  Prefactor     16.727        8.8298        .41746E-06    .64403E-05
  13  Prefactor     10.385        22.579       -.53520E-05    .11026E-03
  14  Prefactor     .10000E-03    27.811        .24854E-05** at limit **
  15  Prefactor     5.3727        43.431       -.19534E-05    .68231E-05
  16  Prefactor     7.4116        13.157       -.53866E-06    .22256E-04
  17  Prefactor     .10000E-03    37.829       -.18188E-05** at limit **
  18  Prefactor     .10000E-03    11.077        .11048E-06** at limit **
  19  Prefactor     .10000E-03    5.8801       -.28944E-06** at limit **
  20  Prefactor     .10000E-03    40.866       -.77260E-06** at limit **
  21  Prefactor     .10000E-03    31.577       -.82046E-06** at limit **
  22  Prefactor     .10000E-03    11.446       -.20742E-07** at limit **
  23  norm          .10000E-03    4.7779       -.80547E-07** at limit **
  24  norm          .10000E-03    2.9387       -.36566E-07** at limit **
  25  norm          .10000E-03    3.7957        .28042E-06** at limit **
  26  norm          15.989        17.495       -.88520E-06    .32863E-04
  27  Prefactor     .10000E-03    2.7082       -.38033E-07** at limit **
  28  Prefactor     .10000E-03    42.550        .13095E-05** at limit **
  29  norm          7.4248        5.8902       -.10366E-05    .64669E-04
  30  Prefactor     13.100        15.705       -.71115E-06    .15352E-04
  31  norm          .10000E-03    2.2870        .13327E-06** at limit **
  32  Normalizat    1.1351        .22682        .19637E-05    .36296E-04
  33  Prefactor     .97322        .19434        .21815E-05    .12800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.2831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81286
  Prefactor  = 35.3232
  norm       = 5.44232
  Prefactor  = 0.205973
  Prefactor  = 5.99242
  Prefactor  = 0.0001
  Prefactor  = 16.7273
  Prefactor  = 10.3846
  Prefactor  = 0.000100001
  Prefactor  = 5.37269
  Prefactor  = 7.41159
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.9886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42483
  Prefactor  = 13.0997
  norm       = 0.0001
  Normalizat = 1.13507
  Prefactor  = 0.973219
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.309     FROM HESSE     STATUS=OK           689 CALLS     5201 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2831        3.9966        .10904E-03   -1.5207    
   3  Prefactor     .10000E-03    9.9480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9249        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    283.03        .38134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8129        7.3846        .30725E-03   -1.5439    
   7  Prefactor     35.323        78.533        .67415E-04   -1.4519    
   8  norm          5.4423        5.4281        .15976E-03   -1.5241    
   9  Prefactor     .20597        111.62        .39949E-02   -1.5617    
  10  Prefactor     5.9924        4.8206        .13167E-03   -1.5218    
  11  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.727        8.8228        .97924E-04   -1.4890    
  13  Prefactor     10.385        22.359        .12442E-03   -1.5063    
  14  Prefactor     .10000E-03    27.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3727        42.528        .17336E-03   -1.5244    
  16  Prefactor     7.4116        13.018        .14735E-03   -1.5163    
  17  Prefactor     .10000E-03    37.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9296        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.7800        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.9408        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.8072        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.989        17.519        .10018E-03   -1.4908    
  27  Prefactor     .10000E-03    2.7103        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.4248        5.8860        .14598E-03   -1.5163    
  30  Prefactor     13.100        15.709        .11069E-03   -1.4984    
  31  norm          .10000E-03    2.2891        .10397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1351        .26887        .25759E-03   -.88634    
  33  Prefactor     .97322        .23336        .25361E-03   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34339e-08
Minuit parameter uncertainties:
  1  1.75419e-05
  2  3.99681
  3  4.0097e-05
  4  2.60703e-05
  5  0.00032602
  6  7.31908
  7  78.7642
  8  5.42863
  9  9.60551
  10  4.8209
  11  3.97156e-05
  12  8.82347
  13  22.3771
  14  0.000328029
  15  30.2611
  16  13.023
  17  0.000286582
  18  7.99198e-05
  19  2.78289e-05
  20  2.9611e-05
  21  9.73357e-05
  22  5.73552e-05
  23  2.03623e-06
  24  1.1654e-06
  25  7.02558e-06
  26  17.5244
  27  1.78169e-06
  28  0.000141648
  29  5.88641
  30  15.7142
  31  1.70422e-06
  32  0.269196
  33  0.233601
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.972e-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:  9.732e-01  2.336e-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.135e+00  2.692e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361413/likelihoodResults_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.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) = 4958.30884042
delta logL = -0.000311799566589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4958.30853396
delta logL = -5.33848287887e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7651       1.0000          .0000       10.000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97322       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=   4958.309     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      292 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    631.31        .17009E-01** at limit **
   2  Index         1.4360        8.5843        .90811E-01    .37557E-09
   3  Normalizat    1.1351        .30690E-01    .25759E-03    .39562E-03
   4  Prefactor     .97322        .28369E-01    .25361E-03    .39731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.43599
  Normalizat = 1.13508
  Prefactor  = 0.973218
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.309     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.673        .31098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4360        5.5380        .36324E-02   -.79349    
   3  Normalizat    1.1351        .25012        .51518E-04   -.88633    
   4  Prefactor     .97322        .23121        .50722E-04   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30158e-10
Minuit parameter uncertainties:
  1  3.60482e-06
  2  422.712
  3  0.250381
  4  0.231447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361413': 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) = 4958.30852778
delta logL = 8.37290826894e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.605e-06  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.436e+00  4.227e+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:  9.732e-01  2.314e-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.135e+00  2.504e-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/361413/cmap_HighResolution_513561601_513820801_4FGL_J2234.2-4156_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2021-09-28 15:04:37.882219', job_id='361413', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632866677.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1058' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 361413: <4FGL_J2234.2-4156_daily_bin1058> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1058 338.568 -41.9411 513561601 513820801 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

