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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin471
RA = 338.568, Dec = -41.9411
tmin = 361411201, tmax = 361670401
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='357431', job_status='RUN', time_executed='2021-09-28 14:36:19.150046', time_epoch_executed='1632864979.15' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357431/ft1_4FGL_J2234.2-4156_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357431/ft1_4FGL_J2234.2-4156_daily_bin471.fits outfile=/scratch/kocevski/357431/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin471.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=361411201.0 tmax=361670401.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.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.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/357431/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/357431/ltcube_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.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/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits
.....................!
real 14.44
user 14.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/357431/ltcube_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.fits outfile=/scratch/kocevski/357431/expmap_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.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/357431/ltcube_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.fits
.....................!
real 192.22
user 187.12
sys 4.79

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/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits outfile=/scratch/kocevski/357431/cmap_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits outfile=/scratch/kocevski/357431/cmap_HighResolution_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/357431/ft2_4FGL_J2234.2-4156_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357431/Model_4FGL_J2234.2-4156_daily_bin471.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/357431/ft1_filtered_4FGL_J2234.2-4156_daily_bin471.fits.....................!
real 50.49
user 49.23
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55166E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11291E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0500       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.316       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.042       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15866E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.241       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.386       1.0000         .10000E-03   10000.    
    23 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.8187       1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.021       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.5528       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86958       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1459       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=   6650.508     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     4698 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    188.88        .12342E-04** at limit **
   2  norm          1.4519        2.9856        .28944E-07    .14736E-04
   3  Prefactor     7.4747        7.3593        .62332E-07   -.22974E-03
   4  Prefactor     .10000E-03    1.7239       -.74962E-07** at limit **
   5  Prefactor     .10000E-03    36.831        .50779E-06** at limit **
   6  Prefactor     .10000E-03    2.9640        .10284E-06** at limit **
   7  Prefactor     .10000E-03    21.613        .13676E-07** at limit **
   8  norm          .76783        9.8621       -.19864E-05    .14542E-03
   9  Prefactor     5.0982        6.8827       -.60790E-08    .45366E-04
  10  Prefactor     .10000E-03    2.6677        .46560E-06** at limit **
  11  Prefactor     9.0467        22.938       -.49412E-06   -.19301E-04
  12  Prefactor     .10000E-03    3.5535       -.55688E-07** at limit **
  13  Prefactor     42.318        24.392        .13459E-08    .70828E-04
  14  Prefactor     .10000E-03    6.9313        .15753E-06** at limit **
  15  Prefactor     19.052        24.975        .14775E-05    .66832E-04
  16  Prefactor     .10000E-03    6.8548       -.14421E-05** at limit **
  17  Prefactor     5.5004        408.11        .12864E-04    .22154E-04
  18  Prefactor     .10000E-03    10.732        .28358E-06** at limit **
  19  Prefactor     1.8790        3.0846       -.35303E-07   -.18472E-04
  20  Prefactor     31.520        28.719       -.37269E-08    .61436E-04
  21  Prefactor     22.220        70.525        .36314E-06   -.39391E-04
  22  Prefactor     26.377        18.212        .24945E-07    .50043E-04
  23  norm          .10000E-03    4.4349        .60649E-07** at limit **
  24  norm          .10000E-03    3.5132        .84356E-07** at limit **
  25  norm          .10000E-03    3.5587        .34153E-07** at limit **
  26  norm          8.8203        10.038        .22557E-07   -.13269E-04
  27  Prefactor     24.023        9.4231       -.16746E-06   -.62293E-04
  28  Prefactor     .10000E-03    57.888        .46985E-06** at limit **
  29  norm          9.5533        5.1564        .61652E-07   -.41495E-05
  30  Prefactor     .10000E-03    54.821        .11199E-05** at limit **
  31  norm          .10000E-03    1.6590        .39435E-07** at limit **
  32  Normalizat    .86948        .18530       -.30811E-07   -.22102E-03
  33  Prefactor     1.1458        .16863       -.65405E-06   -.20510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.45192
  Prefactor  = 7.47468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.767831
  Prefactor  = 5.09825
  Prefactor  = 0.000100001
  Prefactor  = 9.04672
  Prefactor  = 0.0001
  Prefactor  = 42.3175
  Prefactor  = 0.0001
  Prefactor  = 19.0523
  Prefactor  = 0.0001
  Prefactor  = 5.50037
  Prefactor  = 0.0001
  Prefactor  = 1.87899
  Prefactor  = 31.5201
  Prefactor  = 22.22
  Prefactor  = 26.377
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.82025
  Prefactor  = 24.0227
  Prefactor  = 0.0001
  norm       = 9.55331
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.869482
  Prefactor  = 1.14584
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.508     FROM HESSE     STATUS=OK           693 CALLS     5391 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.32        .74534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4519        2.8386        .18718E-03   -1.5467    
   3  Prefactor     7.4747        7.3571        .14670E-03   -1.5161    
   4  Prefactor     .10000E-03    1.7259        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9921        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .76783        9.7969        .48889E-03   -1.5533    
   9  Prefactor     5.0982        6.8876        .17811E-03   -1.5256    
  10  Prefactor     .10000E-03    5.1040        .24697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0467        22.904        .13323E-03   -1.5106    
  12  Prefactor     .10000E-03    3.6238        .14997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.318        24.404        .61625E-04   -1.4406    
  14  Prefactor     .10000E-03    6.9542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.052        24.846        .91785E-04   -1.4835    
  16  Prefactor     .10000E-03    53.432        .36708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5004        395.57        .17797E-03   -1.5239    
  18  Prefactor     .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8790        3.0582        .17876E-03   -1.5434    
  20  Prefactor     31.520        28.723        .35689E-03   -1.4585    
  21  Prefactor     22.220        70.693        .84932E-04   -1.4765    
  22  Prefactor     26.377        18.217        .77987E-04   -1.4680    
  23  norm          .10000E-03    4.4382        .16774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.5233        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5878        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.8203        10.033        .13497E-03   -1.5114    
  27  Prefactor     24.023        9.3898        .81730E-04   -1.4727    
  28  Prefactor     .10000E-03    58.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.5533        5.1470        .12966E-03   -1.5090    
  30  Prefactor     .10000E-03    56.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.6611        .10256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .86948        .21890        .27099E-03   -.97541    
  33  Prefactor     1.1458        .20100        .23074E-03   -.88015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58015e-10
Minuit parameter uncertainties:
  1  0.00116273
  2  2.83891
  3  7.35803
  4  9.98412e-07
  5  6.42853e-05
  6  4.8009e-06
  7  3.73137e-06
  8  5.48614
  9  6.88868
  10  0.000111248
  11  22.9261
  12  5.61065e-06
  13  24.4098
  14  9.20668e-06
  15  24.8597
  16  5.7427e-05
  17  93.9422
  18  2.56908e-05
  19  3.05849
  20  28.736
  21  70.961
  22  18.2207
  23  3.1363e-06
  24  3.52271e-06
  25  1.05653e-06
  26  10.0347
  27  9.39035
  28  0.000226726
  29  5.14723
  30  1.71256e-05
  31  1.13236e-06
  32  0.219119
  33  0.201138
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.047e+00  2.293e+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.146e+00  2.011e-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:  8.695e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357431/likelihoodResults_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.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) = 6650.45342598
delta logL = 0.0544413527732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6650.43094325
delta logL = 0.0769240807613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.208       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5800       1.0000          .0000       10.000    
     3 'Normalizat'    .87231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1436       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=   6650.431     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      253 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.188        31.461        .10271E-03    .43834E-04
   2  Index         1.5802        .95288        .14118E-01   -.92589E-05
   3  Normalizat    .87250        .20321        .27055E-03    .10707E-03
   4  Prefactor     1.1434        .19690        .23093E-03   -.57108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1882
  Index      = 1.58018
  Normalizat = 0.872495
  Prefactor  = 1.14336
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.188        31.164        .41082E-05   -1.4928    
   2  Index         1.5802        .94481        .56472E-03   -.75318    
   3  Normalizat    .87250        .20341        .10822E-04   -.97433    
   4  Prefactor     1.1434        .19711        .92370E-05   -.88093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5026e-10
Minuit parameter uncertainties:
  1  31.1975
  2  0.955707
  3  0.203589
  4  0.197232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357431': 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) = 6650.4309421
delta logL = 0.0769252276286

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.519e+01  3.120e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.580e+00  9.557e-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.143e+00  1.972e-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:  8.725e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/357431/cmap_HighResolution_361411201_361670401_4FGL_J2234.2-4156_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-28 14:52:42.780868', job_id='357431', GAL2='1.14', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632865962.78', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='7.69e-02', ts2='0.36', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='471' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:52:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 357431: <4FGL_J2234.2-4156_daily_bin471> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin471> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:07 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:08 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:36:08 2021
Terminated at Tue Sep 28 14:52:43 2021
Results reported at Tue Sep 28 14:52:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin471 338.568 -41.9411 361411201 361670401 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 :                                   982.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

