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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1213
RA = 338.568, Dec = -41.9411
tmin = 553737601, tmax = 553996801
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='361465', job_status='RUN', time_executed='2021-09-28 14:53:59.723647', time_epoch_executed='1632866039.72' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361465/ft1_4FGL_J2234.2-4156_daily_bin1213.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361465/ft1_4FGL_J2234.2-4156_daily_bin1213.fits outfile=/scratch/kocevski/361465/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1213.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=553737601.0 tmax=553996801.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 2.52
user 2.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361465/ft1_filtered_4FGL_J2234.2-4156_daily_bin1213.fits" evtable="EVENTS" scfile=/scratch/kocevski/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits sctable="SC_DATA" outfile=/scratch/kocevski/361465/ltcube_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.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/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits
.....................!
real 12.36
user 12.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361465/ft1_filtered_4FGL_J2234.2-4156_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits sctable="SC_DATA" expcube=/scratch/kocevski/361465/ltcube_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.fits outfile=/scratch/kocevski/361465/expmap_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.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/361465/ltcube_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.fits
.....................!
real 190.34
user 184.83
sys 5.16

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361465/ft1_filtered_4FGL_J2234.2-4156_daily_bin1213.fits scfile=/scratch/kocevski/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits outfile=/scratch/kocevski/361465/cmap_HighResolution_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361465/ft1_filtered_4FGL_J2234.2-4156_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/361465/ft2_4FGL_J2234.2-4156_daily_bin1213.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361465/Model_4FGL_J2234.2-4156_daily_bin1213.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/361465/ft1_filtered_4FGL_J2234.2-4156_daily_bin1213.fits......................!
real 27.69
user 26.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .39187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    133.30       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21503E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    189.59       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.6243       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.7486       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.2487       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.103       1.0000         .10000E-03   10000.    
    29 'norm      '    6.6498       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4777       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91509       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=   2621.876     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4601 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    148.14       -.10829E-05** at limit **
   2  norm          .10002E-03    14.658        .19842E-05** at limit **
   3  Prefactor     .99901        23.961        .66220E-06   -.19714E-04
   4  Prefactor     .10000E-03    66.830        .86385E-06** at limit **
   5  Prefactor     .10000E-03    37.188        .23358E-06** at limit **
   6  Prefactor     2.9127        20.743        .19160E-04   -.62884E-04
   7  Prefactor     .10000E-03    92.495        .86211E-06** at limit **
   8  norm          .10000E-03    4.6231       -.36795E-07** at limit **
   9  Prefactor     24.576        26.401        .60641E-06   -.16445E-04
  10  Prefactor     .10000E-03    10.767        .38482E-06** at limit **
  11  Prefactor     133.31        137.51        .93888E-06    .12634E-04
  12  Prefactor     .10000E-03    6.5828       -.19529E-06** at limit **
  13  Prefactor     44.126        48.178        .45099E-06    .38862E-05
  14  Prefactor     .10000E-03    54.480       -.63172E-06** at limit **
  15  Prefactor     57.476        55.351       -.25330E-05   -.81415E-04
  16  Prefactor     .10000E-03    40.782       -.17347E-05** at limit **
  17  Prefactor     .10000E-03    125.10        .60201E-06** at limit **
  18  Prefactor     .10000E-03    27.179        .10614E-05** at limit **
  19  Prefactor     23.594        19.958        .50995E-06   -.40993E-05
  20  Prefactor     .10053E-03    850.77       -.23891E-04** at limit **
  21  Prefactor     189.57        137.51        .69561E-06   -.32188E-04
  22  Prefactor     .10000E-03    25.384       -.26935E-06** at limit **
  23  norm          .10000E-03    11.795        .18786E-06** at limit **
  24  norm          9.6239        9.4505        .12989E-07    .32669E-05
  25  norm          .10000E-03    6.2906       -.60001E-06** at limit **
  26  norm          8.7491        16.157        .82411E-06   -.21924E-05
  27  Prefactor     6.2483        7.4293        .12628E-06    .98647E-05
  28  Prefactor     36.043        74.292       -.14042E-05   -.14013E-03
  29  norm          6.6557        10.372        .97354E-06    .71491E-04
  30  Prefactor     .10000E-03    10.317        .11451E-06** at limit **
  31  norm          .10000E-03    5.6263       -.88045E-07** at limit **
  32  Normalizat    1.4784        .36334        .22198E-05   -.18083E-03
  33  Prefactor     .91439        .32520       -.99338E-05   -.21739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.00010002
  Prefactor  = 0.999011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91271
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 24.5757
  Prefactor  = 0.0001
  Prefactor  = 133.307
  Prefactor  = 0.0001
  Prefactor  = 44.1256
  Prefactor  = 0.000100002
  Prefactor  = 57.4763
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 23.5938
  Prefactor  = 0.000100528
  Prefactor  = 189.57
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.62393
  norm       = 0.0001
  norm       = 8.74907
  Prefactor  = 6.24829
  Prefactor  = 36.0425
  norm       = 6.65568
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.47842
  Prefactor  = 0.914393
 **********
 **   18 **HESSE 
 **********

 FCN=   2621.876     FROM HESSE     STATUS=OK           685 CALLS     5286 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    102.47        .37551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .99901        129.60        .48425E-02   -1.5508    
   4  Prefactor     .10000E-03    67.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9127        21.068        .11912E-02   -1.5367    
   7  Prefactor     .10000E-03    92.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6237        .10753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.576        26.492        .80797E-04   -1.4716    
  10  Prefactor     .10000E-03    10.945        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     133.31        137.52        .34879E-04   -1.3394    
  12  Prefactor     .10000E-03    6.6035        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.126        48.222        .60354E-04   -1.4378    
  14  Prefactor     .10000E-03    54.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.476        55.382        .52904E-04   -1.4190    
  16  Prefactor     .10000E-03    41.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    125.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.594        20.053        .41229E-03   -1.4736    
  20  Prefactor     .10053E-03    863.29        .20163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     189.57        137.94        .14665E-03   -1.2945    
  22  Prefactor     .10000E-03    25.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.809        .17179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.6239        9.4528        .12917E-03   -1.5087    
  25  norm          .10000E-03    6.3027        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.7491        16.157        .13552E-03   -1.5116    
  27  Prefactor     6.2483        7.4277        .14760E-03   -1.5208    
  28  Prefactor     36.043        74.495        .66698E-04   -1.4507    
  29  norm          6.6557        10.302        .15561E-03   -1.5192    
  30  Prefactor     .10000E-03    10.325        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.6736        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4784        .43306        .27810E-03   -.78387    
  33  Prefactor     .91439        .37563        .31700E-03   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05612e-08
Minuit parameter uncertainties:
  1  0.00160217
  2  0.00283666
  3  22.8062
  4  0.000307401
  5  0.000195978
  6  15.6748
  7  0.00121226
  8  4.9508e-07
  9  26.5046
  10  5.9541e-06
  11  137.853
  12  2.10114e-05
  13  48.265
  14  0.00069991
  15  55.4316
  16  0.000287245
  17  0.00097537
  18  0.000314723
  19  20.0591
  20  0.0433337
  21  138.18
  22  0.000155077
  23  5.77552e-05
  24  9.45425
  25  1.03531e-05
  26  16.1651
  27  7.42884
  28  74.6885
  29  10.3047
  30  4.01249e-05
  31  6.28491e-06
  32  0.434149
  33  0.376703
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.333e+02  1.379e+02  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.144e-01  3.767e-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.478e+00  4.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 7.67e-08
Energy Flux (Fixed Index): 5.23e-05 +/- 5.41e-05

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

Saving results to:
/scratch/kocevski/361465/likelihoodResults_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.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) = 2621.48776749
delta logL = 0.388373977673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2621.47407611
delta logL = 0.402065362047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8793       1.0000          .0000       10.000    
     3 'Normalizat'    1.3398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99413       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=   2621.474     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      329 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.049        888.56        .63595E-04   -.50501E-04
   2  Index         2.8765        3.6625        .29187E-02   -.26722E-04
   3  Normalizat    1.3394        .65091        .28941E-03   -.43211E-04
   4  Prefactor     .99431        .54748        .30551E-03   -.36059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0493
  Index      = 2.8765
  Normalizat = 1.33936
  Prefactor  = 0.994309
 **********
 **   18 **HESSE 
 **********

 FCN=   2621.474     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.049        106.12        .25438E-05   -1.4441    
   2  Index         2.8765        1.1701        .11675E-03   -.43863    
   3  Normalizat    1.3394        .43586        .11576E-04   -.82399    
   4  Prefactor     .99431        .38674        .12220E-04   -.92919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31967e-11
Minuit parameter uncertainties:
  1  106.628
  2  1.18354
  3  0.43707
  4  0.387823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361465': 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) = 2621.4740686
delta logL = 0.402072867523

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.943e-01  3.878e-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.339e+00  4.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.88 +/- 1.18
Photon Flux (Free Index): 1.95e-07 +/- 1.85e-07
Energy Flux (Free Index): 4.16e-05 +/- 3.22e-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/361465/cmap_HighResolution_553737601_553996801_4FGL_J2234.2-4156_daily_bin1213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='4.16e-05', photon_flux_error='7.67e-08', dlogl='4.02e-01', energy_flux='5.23e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-28 15:03:24.804695', photon_index_error2='1.18', photon_index2='2.88', ts='1.47', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.49e-07', energy_flux_error2='3.22e-05', EG='1.48', time_epoch_completed='1632866604.8', return_code='0', job_id='361465', GAL2='0.99', EG2='1.34', return_code2='0', energy_flux_error='5.41e-05', photon_flux_error2='1.85e-07', ts2='2.31', photon_index='1.99' WHERE bin_id='1213' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 361465: <4FGL_J2234.2-4156_daily_bin1213> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1213 338.568 -41.9411 553737601 553996801 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

