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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1163
RA = 338.568, Dec = -41.9411
tmin = 540777601, tmax = 541036801
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='360349', job_status='RUN', time_executed='2021-09-28 14:46:24.900086', time_epoch_executed='1632865584.9' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360349

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360349/ft1_4FGL_J2234.2-4156_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360349/ft1_4FGL_J2234.2-4156_daily_bin1163.fits outfile=/scratch/kocevski/360349/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1163.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=540777601.0 tmax=541036801.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.60
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits" evtable="EVENTS" scfile=/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits sctable="SC_DATA" outfile=/scratch/kocevski/360349/ltcube_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.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/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits
.....................!
real 11.84
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/360349/ltcube_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.fits outfile=/scratch/kocevski/360349/expmap_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.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/360349/ltcube_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.fits
.....................!
real 189.60
user 184.77
sys 4.52

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/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits scfile=/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits outfile=/scratch/kocevski/360349/cmap_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits scfile=/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits outfile=/scratch/kocevski/360349/cmap_HighResolution_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/360349/ft2_4FGL_J2234.2-4156_daily_bin1163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360349/Model_4FGL_J2234.2-4156_daily_bin1163.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/360349/ft1_filtered_4FGL_J2234.2-4156_daily_bin1163.fits....................!
real 38.94
user 37.64
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    13.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35544E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12257E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16623E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.925       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.873       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.344       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.1885       1.0000         .10000E-03   10000.    
    26 'norm      '    25.493       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4564       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.3054       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.1730       1.0000         .10000E-03   10000.    
    31 'norm      '    .17362       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4055       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84218       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=   4615.657     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4566 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.708        .17077E-06** at limit **
   2  norm          13.302        6.0342        .82258E-08    .12325E-03
   3  Prefactor     3.7785        12.178       -.55307E-06   -.47175E-04
   4  Prefactor     .10000E-03    23.631       -.39565E-07** at limit **
   5  Prefactor     3.8093        93.368       -.12292E-05    .55827E-05
   6  Prefactor     .10000E-03    2.8614        .10262E-05** at limit **
   7  Prefactor     .10000E-03    49.220        .83276E-06** at limit **
   8  norm          .10000E-03    3.8808       -.70491E-07** at limit **
   9  Prefactor     3.0668        11.575       -.12718E-05   -.10973E-03
  10  Prefactor     5.4202        4.9206        .42437E-07   -.64636E-04
  11  Prefactor     93.202        71.346       -.55556E-07   -.31152E-04
  12  Prefactor     .10000E-03    5.3721       -.16621E-06** at limit **
  13  Prefactor     .10001E-03    16.113        .21999E-06** at limit **
  14  Prefactor     .10000E-03    11.464        .12240E-06** at limit **
  15  Prefactor     .10000E-03    14.760       -.13256E-06** at limit **
  16  Prefactor     .10000E-03    4.0209       -.10277E-06** at limit **
  17  Prefactor     .10000E-03    39.928        .13226E-07** at limit **
  18  Prefactor     .10000E-03    54.492       -.53601E-06** at limit **
  19  Prefactor     .10007E-03    13.191       -.10734E-05** at limit **
  20  Prefactor     10.925        30.725       -.48629E-06   -.12296E-05
  21  Prefactor     54.840        65.187       -.24318E-06    .80035E-05
  22  Prefactor     16.339        21.166        .92626E-07    .19190E-05
  23  norm          .10000E-03    12.076       -.19189E-06** at limit **
  24  norm          .10000E-03    2.8887        .22342E-07** at limit **
  25  norm          7.1883        6.7331        .15918E-06    .11274E-03
  26  norm          25.493        16.466        .18252E-07    .24375E-04
  27  Prefactor     3.4569        6.4280       -.13998E-06   -.75404E-04
  28  Prefactor     .10000E-03    33.398        .52674E-06** at limit **
  29  norm          3.3170        6.8814       -.50799E-06   -.11307E-03
  30  Prefactor     4.1672        30.241       -.22429E-06   -.28224E-04
  31  norm          .15264        77.196       -.68080E-05    .17864E-03
  32  Normalizat    1.4057        .26917       -.33434E-05    .17565E-03
  33  Prefactor     .84198        .23766        .50047E-05    .13404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.3018
  Prefactor  = 3.77854
  Prefactor  = 0.0001
  Prefactor  = 3.80927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.06682
  Prefactor  = 5.42018
  Prefactor  = 93.2019
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 10.9249
  Prefactor  = 54.8397
  Prefactor  = 16.3387
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.18828
  norm       = 25.4931
  Prefactor  = 3.45685
  Prefactor  = 0.0001
  norm       = 3.31698
  Prefactor  = 4.16723
  norm       = 0.152638
  Normalizat = 1.40567
  Prefactor  = 0.841978
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.657     FROM HESSE     STATUS=OK           697 CALLS     5263 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.302        6.0327        .10882E-03   -1.4978    
   3  Prefactor     3.7785        12.202        .20785E-03   -1.5319    
   4  Prefactor     .10000E-03    24.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8093        94.564        .20557E-03   -1.5318    
   6  Prefactor     .10000E-03    2.9393        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8906        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0668        11.712        .23128E-03   -1.5358    
  10  Prefactor     5.4202        4.9200        .13525E-03   -1.5242    
  11  Prefactor     93.202        70.861        .41626E-04   -1.3774    
  12  Prefactor     .10000E-03    5.4842        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    63.490        .51713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0293        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10007E-03    27.838        .31296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.925        30.721        .12121E-03   -1.5047    
  21  Prefactor     54.840        65.254        .27075E-03   -1.4226    
  22  Prefactor     16.339        21.179        .99071E-04   -1.4899    
  23  norm          .10000E-03    12.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.8896        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.1883        6.7425        .14961E-03   -1.5172    
  26  norm          25.493        16.467        .79339E-04   -1.4698    
  27  Prefactor     3.4569        6.4166        .18990E-03   -1.5336    
  28  Prefactor     .10000E-03    33.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.3170        8.1945        .20204E-03   -1.5344    
  30  Prefactor     4.1672        30.421        .19730E-03   -1.5300    
  31  norm          .15264        133.65        .34787E-02   -1.5630    
  32  Normalizat    1.4057        .28577        .24637E-03   -.80465    
  33  Prefactor     .84198        .24715        .28149E-03   -.98199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89517e-09
Minuit parameter uncertainties:
  1  4.32551e-06
  2  6.03301
  3  12.2104
  4  3.35862e-05
  5  38.0259
  6  6.61439e-05
  7  0.000146903
  8  8.38155e-06
  9  11.7205
  10  4.92036
  11  70.9254
  12  2.33362e-05
  13  0.00145456
  14  1.23085e-06
  15  3.77601e-05
  16  9.70686e-06
  17  3.74504e-05
  18  0.000108196
  19  0.00272699
  20  30.7657
  21  65.3388
  22  21.1884
  23  1.15013e-05
  24  1.34615e-06
  25  6.7432
  26  16.4701
  27  6.41788
  28  0.000116141
  29  8.1973
  30  22.5344
  31  9.0505
  32  0.286096
  33  0.247478
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.320e+01  7.093e+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:  8.420e-01  2.475e-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.406e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 2.78e-05

TS (Fixed Index): 3.29
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360349/likelihoodResults_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.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) = 4614.77816707
delta logL = 0.878533821963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4614.7557697
delta logL = 0.900931194535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.665       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8391       1.0000          .0000       10.000    
     3 'Normalizat'    1.3338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88412       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=   4614.756     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      289 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.610        64.100        .80657E-04    .38437E-03
   2  Index         2.8399        1.1002        .31027E-02    .30604E-03
   3  Normalizat    1.3338        .28178        .25154E-03    .10771E-03
   4  Prefactor     .88412        .25235        .27507E-03   -.61046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6096
  Index      = 2.83986
  Normalizat = 1.33379
  Prefactor  = 0.88412
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.756     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.610        41.170        .16131E-04   -1.4715    
   2  Index         2.8399        .70909        .12411E-03   -.44674    
   3  Normalizat    1.3338        .27763        .50309E-04   -.82563    
   4  Prefactor     .88412        .24956        .55013E-04   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75199e-09
Minuit parameter uncertainties:
  1  41.2174
  2  0.712048
  3  0.277941
  4  0.249884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360349': 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) = 4614.75576862
delta logL = 0.900932270251

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.461e+01  4.122e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.840e+00  7.120e-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:  8.841e-01  2.499e-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.334e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.84 +/- 0.71
Photon Flux (Free Index): 1.09e-07 +/- 7.14e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.43e-05

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/360349/cmap_HighResolution_540777601_541036801_4FGL_J2234.2-4156_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='2.37e-05', photon_flux_error='3.95e-08', dlogl='9.01e-01', energy_flux='3.65e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-28 14:59:06.669738', photon_index_error2='0.71', photon_index2='2.84', ts='3.29', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.43e-05', EG='1.41', time_epoch_completed='1632866346.67', return_code='0', job_id='360349', GAL2='0.88', EG2='1.33', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='7.14e-08', ts2='5.15', photon_index='1.99' WHERE bin_id='1163' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 360349: <4FGL_J2234.2-4156_daily_bin1163> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1163> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:39 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:41 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:45:41 2021
Terminated at Tue Sep 28 14:59:06 2021
Results reported at Tue Sep 28 14:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1163 338.568 -41.9411 540777601 541036801 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

