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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin761
RA = 338.568, Dec = -41.9411
tmin = 436579201, tmax = 436838401
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='358737', job_status='RUN', time_executed='2021-09-28 14:43:36.073311', time_epoch_executed='1632865416.07' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358737/ft1_4FGL_J2234.2-4156_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358737/ft1_4FGL_J2234.2-4156_daily_bin761.fits outfile=/scratch/kocevski/358737/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin761.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=436579201.0 tmax=436838401.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 5.52
user 5.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/358737/ltcube_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.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/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits
.....................!
real 12.85
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/358737/ltcube_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.fits outfile=/scratch/kocevski/358737/expmap_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.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/358737/ltcube_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.fits
.....................!
real 190.92
user 186.55
sys 4.01

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/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits scfile=/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits outfile=/scratch/kocevski/358737/cmap_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits scfile=/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits outfile=/scratch/kocevski/358737/cmap_HighResolution_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/358737/ft2_4FGL_J2234.2-4156_daily_bin761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358737/Model_4FGL_J2234.2-4156_daily_bin761.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/358737/ft1_filtered_4FGL_J2234.2-4156_daily_bin761.fits.....................!
real 37.02
user 35.81
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.636       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92535E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.616       1.0000         .10000E-03   10000.    
     8 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.273       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.582       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87226       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90462       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=   3834.516     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     5266 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.605        33.539        .56071E-06    .97842E-05
   2  norm          .10000E-03    3.4103        .35590E-06** at limit **
   3  Prefactor     26.960        13.609       -.99808E-07   -.31530E-04
   4  Prefactor     .10000E-03    4.9961       -.15351E-06** at limit **
   5  Prefactor     50.742        54.550        .29576E-06    .32271E-04
   6  Prefactor     .10008E-03    60.789        .26050E-05** at limit **
   7  Prefactor     95.970        115.93        .87505E-05    .11823E-03
   8  norm          .10008E-03    12.236       -.96274E-06** at limit **
   9  Prefactor     2.1368        18.966        .10160E-05    .11938E-04
  10  Prefactor     1.9172        4.3189       -.14527E-06    .30831E-04
  11  Prefactor     23.380        56.325        .94984E-06    .19377E-04
  12  Prefactor     5.2442        6.2755        .93372E-09    .59116E-04
  13  Prefactor     .10000E-03    8.5285       -.27264E-06** at limit **
  14  Prefactor     .10000E-03    10.857       -.27133E-06** at limit **
  15  Prefactor     .10000E-03    21.721       -.26064E-06** at limit **
  16  Prefactor     6.0475        16.237        .54146E-06    .63367E-04
  17  Prefactor     18.188        330.15       -.40072E-05   -.18710E-05
  18  Prefactor     3.1723        20.400       -.91954E-06   -.79779E-05
  19  Prefactor     .10004E-03    10.020       -.34595E-06** at limit **
  20  Prefactor     .10000E-03    41.854       -.73797E-06** at limit **
  21  Prefactor     .10000E-03    66.322       -.14722E-05** at limit **
  22  Prefactor     .10000E-03    26.562       -.10635E-05** at limit **
  23  norm          .10000E-03    7.0225       -.11630E-06** at limit **
  24  norm          .10000E-03    4.6196       -.16663E-07** at limit **
  25  norm          .10000E-03    6.3186       -.42839E-07** at limit **
  26  norm          .10000E-03    7.4289       -.49949E-07** at limit **
  27  Prefactor     .10000E-03    7.3616       -.14588E-06** at limit **
  28  Prefactor     48.636        55.631       -.29749E-08    .10671E-04
  29  norm          .10000E-03    4.7151       -.73990E-07** at limit **
  30  Prefactor     .10000E-03    14.606       -.20850E-06** at limit **
  31  norm          .10000E-03    4.6527       -.11962E-06** at limit **
  32  Normalizat    .87251        .26259        .22417E-05    .81694E-04
  33  Prefactor     .90455        .21331       -.14602E-05    .21198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6054
  norm       = 0.0001
  Prefactor  = 26.96
  Prefactor  = 0.0001
  Prefactor  = 50.7424
  Prefactor  = 0.000100083
  Prefactor  = 95.9696
  norm       = 0.000100079
  Prefactor  = 2.13681
  Prefactor  = 1.91721
  Prefactor  = 23.38
  Prefactor  = 5.24416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04753
  Prefactor  = 18.1877
  Prefactor  = 3.17226
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6357
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.872515
  Prefactor  = 0.904551
 **********
 **   18 **HESSE 
 **********

 FCN=   3834.516     FROM HESSE     STATUS=OK           689 CALLS     5955 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.605        33.442        .11744E-03   -1.5027    
   2  norm          .10000E-03    3.4620        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.960        13.604        .77152E-04   -1.4669    
   4  Prefactor     .10000E-03    5.0123        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.742        53.881        .56340E-04   -1.4282    
   6  Prefactor     .10008E-03    72.923        .33804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     95.970        117.59        .20552E-03   -1.3746    
   8  norm          .10008E-03    33.194        .34574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1368        19.058        .14084E-02   -1.5416    
  10  Prefactor     1.9172        4.2739        .18030E-03   -1.5431    
  11  Prefactor     23.380        56.015        .82885E-04   -1.4741    
  12  Prefactor     5.2442        6.2690        .16200E-03   -1.5250    
  13  Prefactor     .10000E-03    8.5312        .17664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0475        16.123        .81685E-03   -1.5216    
  17  Prefactor     18.188        328.25        .93695E-04   -1.4855    
  18  Prefactor     3.1723        20.445        .22739E-03   -1.5352    
  19  Prefactor     .10004E-03    36.097        .33155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0241        .16027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.6244        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.3361        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.4354        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.4239        .16409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     48.636        55.599        .57531E-04   -1.4312    
  29  norm          .10000E-03    4.7245        .13086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    4.6642        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .87251        .30587        .26762E-03   -.97433    
  33  Prefactor     .90455        .24994        .22880E-03   -.95982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98138e-09
Minuit parameter uncertainties:
  1  33.4963
  2  7.27997e-06
  3  13.6054
  4  5.48948e-07
  5  53.9325
  6  0.00492043
  7  117.874
  8  0.00323129
  9  12.7682
  10  4.27455
  11  56.1417
  12  6.26977
  13  1.02768e-05
  14  5.35745e-06
  15  1.22488e-05
  16  16.1346
  17  155.536
  18  16.1147
  19  0.00253821
  20  1.18668e-05
  21  0.000128764
  22  3.75685e-05
  23  1.61932e-06
  24  1.3542e-06
  25  1.67405e-06
  26  2.73961e-06
  27  5.36587e-06
  28  55.6579
  29  2.69445e-06
  30  6.58937e-07
  31  1.92664e-06
  32  0.306477
  33  0.250261
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.338e+01  5.614e+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:  9.046e-01  2.503e-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  3.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/358737/likelihoodResults_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.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) = 3834.32907252
delta logL = 0.187095037822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3834.32769556
delta logL = 0.188472004492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.432       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5580       1.0000          .0000       10.000    
     3 'Normalizat'    .85543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91040       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=   3834.328     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      289 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.417        41.137        .10543E-03    .26072E-03
   2  Index         2.5578        1.1020        .63908E-02    .12826E-03
   3  Normalizat    .85594        .28089        .26994E-03   -.12473E-02
   4  Prefactor     .91026        .24369        .22809E-03   -.14173E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4169
  Index      = 2.55783
  Normalizat = 0.855938
  Prefactor  = 0.910256
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.417        34.346        .21086E-04   -1.4948    
   2  Index         2.5578        .92213        .25563E-03   -.51030    
   3  Normalizat    .85594        .28113        .53988E-04   -.98026    
   4  Prefactor     .91026        .24382        .45618E-04   -.95784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94488e-09
Minuit parameter uncertainties:
  1  34.3927
  2  0.92914
  3  0.281609
  4  0.244111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358737': 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) = 3834.32769117
delta logL = 0.188476390353

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.442e+01  3.439e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.558e+00  9.291e-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:  9.103e-01  2.441e-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.559e-01  2.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/358737/cmap_HighResolution_436579201_436838401_4FGL_J2234.2-4156_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-28 14:55:37.464173', job_id='358737', GAL2='0.91', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1632866137.46', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.88e-01', ts2='0.60', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='761' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 358737: <4FGL_J2234.2-4156_daily_bin761> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin761> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:28 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:30 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:30 2021
Terminated at Tue Sep 28 14:55:38 2021
Results reported at Tue Sep 28 14:55:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin761 338.568 -41.9411 436579201 436838401 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

