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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin904
RA = 338.568, Dec = -41.9411
tmin = 473644801, tmax = 473904001
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='358948', job_status='RUN', time_executed='2021-09-28 14:43:59.964949', time_epoch_executed='1632865439.96' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358948/ft1_4FGL_J2234.2-4156_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358948/ft1_4FGL_J2234.2-4156_daily_bin904.fits outfile=/scratch/kocevski/358948/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin904.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=473644801.0 tmax=473904001.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.76
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358948/ft1_filtered_4FGL_J2234.2-4156_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/358948/ltcube_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.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/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358948/ft1_filtered_4FGL_J2234.2-4156_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/358948/ltcube_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.fits outfile=/scratch/kocevski/358948/expmap_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.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/358948/ltcube_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.fits
.....................!
real 190.10
user 185.03
sys 4.75

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/358948/ft1_filtered_4FGL_J2234.2-4156_daily_bin904.fits scfile=/scratch/kocevski/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits outfile=/scratch/kocevski/358948/cmap_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358948/ft1_filtered_4FGL_J2234.2-4156_daily_bin904.fits scfile=/scratch/kocevski/358948/ft2_4FGL_J2234.2-4156_daily_bin904.fits outfile=/scratch/kocevski/358948/cmap_HighResolution_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.353       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.458       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0943       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.920       1.0000         .10000E-03   10000.    
    23 'norm      '    .85990       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      '    4.0282       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7984       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.5678       1.0000         .10000E-03   10000.    
    29 'norm      '    1.0674       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    7.9008       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .70886       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1725       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=   5372.496     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4549 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    58.170        .46318E-05** at limit **
   2  norm          16.351        6.6413        .13856E-06   -.63331E-05
   3  Prefactor     6.9492        10.716        .27024E-06   -.23433E-04
   4  Prefactor     .10000E-03    4.1399        .14998E-07** at limit **
   5  Prefactor     62.549        39.549       -.10323E-06   -.72889E-04
   6  Prefactor     .10000E-03    2.4064       -.15845E-06** at limit **
   7  Prefactor     23.426        50.268       -.83839E-05   -.29761E-03
   8  norm          4.0752        9.7059        .74989E-05   -.63710E-03
   9  Prefactor     .10000E-03    10.232       -.25557E-07** at limit **
  10  Prefactor     .10000E-03    1.2667        .96743E-07** at limit **
  11  Prefactor     61.787        45.061        .25341E-05    .30507E-03
  12  Prefactor     17.185        7.9533        .30882E-07   -.69336E-04
  13  Prefactor     20.180        27.877       -.25770E-05   -.31009E-03
  14  Prefactor     .10000E-03    35.643       -.81089E-06** at limit **
  15  Prefactor     .10000E-03    14.712        .13874E-05** at limit **
  16  Prefactor     .10000E-03    5.6836       -.91306E-07** at limit **
  17  Prefactor     .10001E-03    70.068       -.33143E-05** at limit **
  18  Prefactor     .10000E-03    12.099       -.13170E-05** at limit **
  19  Prefactor     .10000E-03    2.6175        .13677E-06** at limit **
  20  Prefactor     6.0963        27.640        .43552E-06    .26953E-05
  21  Prefactor     .10000E-03    18.602       -.56690E-06** at limit **
  22  Prefactor     20.926        16.273       -.52434E-07   -.45048E-04
  23  norm          .89196        11.820        .13026E-05   -.21498E-03
  24  norm          .10000E-03    2.4695        .47824E-07** at limit **
  25  norm          .10000E-03    1.4852       -.88049E-08** at limit **
  26  norm          4.0268        7.7732        .27000E-06   -.35411E-04
  27  Prefactor     4.7988        5.2095        .93281E-07   -.27622E-04
  28  Prefactor     9.5697        28.833       -.80513E-06   -.20812E-04
  29  norm          1.0691        3.1933        .61142E-06   -.11556E-03
  30  Prefactor     .10000E-03    4.3216        .38182E-07** at limit **
  31  norm          7.9010        5.2884       -.70236E-07   -.66138E-04
  32  Normalizat    .70786        .19757       -.91957E-07   -.85415E-04
  33  Prefactor     1.1735        .18874       -.58509E-06   -.23987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 16.3509
  Prefactor  = 6.94917
  Prefactor  = 0.0001
  Prefactor  = 62.5494
  Prefactor  = 0.0001
  Prefactor  = 23.426
  norm       = 4.07521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.7869
  Prefactor  = 17.1851
  Prefactor  = 20.1804
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09634
  Prefactor  = 0.0001
  Prefactor  = 20.9258
  norm       = 0.89196
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.02683
  Prefactor  = 4.79875
  Prefactor  = 9.56971
  norm       = 1.06913
  Prefactor  = 0.0001
  norm       = 7.90095
  Normalizat = 0.707865
  Prefactor  = 1.17347
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.496     FROM HESSE     STATUS=OK           691 CALLS     5240 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    59.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.351        6.6426        .99043E-04   -1.4899    
   3  Prefactor     6.9492        10.715        .15218E-03   -1.5181    
   4  Prefactor     .10000E-03    4.1477        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.549        39.585        .50736E-04   -1.4125    
   6  Prefactor     .10000E-03    2.4098        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.426        52.276        .82703E-04   -1.4740    
   8  norm          4.0752        10.113        .99781E-03   -1.5304    
   9  Prefactor     .10000E-03    10.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2736        .80525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.787        45.526        .51054E-04   -1.4134    
  12  Prefactor     17.185        7.9770        .96631E-04   -1.4879    
  13  Prefactor     20.180        28.531        .89101E-04   -1.4809    
  14  Prefactor     .10000E-03    36.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7131        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    70.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6262        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0963        27.598        .16263E-03   -1.5214    
  21  Prefactor     .10000E-03    18.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.926        16.284        .87571E-04   -1.4793    
  23  norm          .89196        48.005        .48162E-02   -1.5519    
  24  norm          .10000E-03    2.4710        .11248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4855        .87209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.0268        7.7692        .20092E-03   -1.5307    
  27  Prefactor     4.7988        5.2027        .16886E-03   -1.5270    
  28  Prefactor     9.5697        28.122        .12956E-03   -1.5089    
  29  norm          1.0691        3.0059        .19191E-03   -1.5501    
  30  Prefactor     .10000E-03    4.3258        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          7.9010        5.2575        .12743E-03   -1.5146    
  32  Normalizat    .70786        .23886        .28760E-03   -1.0358    
  33  Prefactor     1.1735        .23072        .22550E-03   -.87152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74599e-09
Minuit parameter uncertainties:
  1  0.00140419
  2  6.6429
  3  10.7181
  4  1.73467e-06
  5  39.6012
  6  5.23912e-06
  7  52.3788
  8  10.1172
  9  0.000103218
  10  2.26004e-06
  11  45.552
  12  7.97751
  13  28.5504
  14  4.29884e-05
  15  0.000228894
  16  1.23683e-05
  17  0.00121715
  18  0.000147874
  19  3.52568e-06
  20  25.9619
  21  9.74351e-05
  22  16.2874
  23  13.0975
  24  2.94012e-06
  25  6.57825e-09
  26  7.7711
  27  5.2032
  28  28.1612
  29  3.00635
  30  1.45529e-06
  31  5.25778
  32  0.239207
  33  0.230921
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.179e+01  4.555e+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:  1.173e+00  2.309e-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:  7.079e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.79e-05

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) = 5372.42583745
delta logL = 0.069704487044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5372.42277857
delta logL = 0.072763362482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.812       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7947       1.0000          .0000       10.000    
     3 'Normalizat'    .71685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1679       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=   5372.423     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.725        66.989        .22909E-03    .23324E-05
   2  Index         1.7936        .51142        .68410E-02    .26042E-03
   3  Normalizat    .71685        .22210        .28587E-03    .66891E-04
   4  Prefactor     1.1680        .21977        .22593E-03   -.96171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.7246
  Index      = 1.79358
  Normalizat = 0.716854
  Prefactor  = 1.16803
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.423     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.725        65.602        .91635E-05   -1.3954    
   2  Index         1.7936        .50078        .13682E-02   -.69617    
   3  Normalizat    .71685        .22220        .11435E-04   -1.0323    
   4  Prefactor     1.1680        .21992        .45186E-04   -.87321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46931e-10
Minuit parameter uncertainties:
  1  65.6641
  2  0.502216
  3  0.222482
  4  0.220097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358948': 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) = 5372.42277208
delta logL = 0.0727698499377

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.168e+00  2.201e-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:  7.169e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.79 +/- 0.50
Photon Flux (Free Index): 2.84e-08 +/- 2.62e-08
Energy Flux (Free Index): 3.46e-05 +/- 4.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/358948/cmap_HighResolution_473644801_473904001_4FGL_J2234.2-4156_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='3.46e-05', photon_flux_error='2.53e-08', dlogl='7.28e-02', energy_flux='2.42e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-28 14:56:09.858992', photon_index_error2='0.50', photon_index2='1.79', ts='4.38', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='4.22e-05', EG='0.71', time_epoch_completed='1632866169.86', return_code='0', job_id='358948', GAL2='1.17', EG2='0.72', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='2.62e-08', ts2='4.52', photon_index='1.99' WHERE bin_id='904' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 358948: <4FGL_J2234.2-4156_daily_bin904> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin904> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:45 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:40:46 2021
Terminated at Tue Sep 28 14:56:10 2021
Results reported at Tue Sep 28 14:56:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin904 338.568 -41.9411 473644801 473904001 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 :                                   730.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

