/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 132 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 = 7433
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin422
RA = 338.568, Dec = -41.9411
tmin = 348710401, tmax = 348969601
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='357360', job_status='RUN', time_executed='2021-09-28 14:38:22.420588', time_epoch_executed='1632865102.42' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357360/ft1_4FGL_J2234.2-4156_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357360/ft1_4FGL_J2234.2-4156_daily_bin422.fits outfile=/scratch/kocevski/357360/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin422.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=348710401.0 tmax=348969601.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.58
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357360/ft1_filtered_4FGL_J2234.2-4156_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/357360/ltcube_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.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/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits
.....................!
real 13.05
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357360/ft1_filtered_4FGL_J2234.2-4156_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/357360/ltcube_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.fits outfile=/scratch/kocevski/357360/expmap_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.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/357360/ltcube_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.fits
.....................!
real 190.56
user 185.18
sys 5.06

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/357360/ft1_filtered_4FGL_J2234.2-4156_daily_bin422.fits scfile=/scratch/kocevski/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits outfile=/scratch/kocevski/357360/cmap_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357360/ft1_filtered_4FGL_J2234.2-4156_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/357360/ft2_4FGL_J2234.2-4156_daily_bin422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357360/Model_4FGL_J2234.2-4156_daily_bin422.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/357360/ft1_filtered_4FGL_J2234.2-4156_daily_bin422.fits.....................!
real 37.62
user 36.36
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.831       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.466       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16550E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .59327       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8388       1.0000         .10000E-03   10000.    
    26 'norm      '    15.776       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    12.771       1.0000         .10000E-03   10000.    
    30 'Prefactor '    54.404       1.0000         .10000E-03   10000.    
    31 'norm      '    .53437       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89017       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0538       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=   4400.332     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4513 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.841        45.865        .15508E-04    .98683E-05
   2  norm          .10000E-03    2.8325       -.34966E-06** at limit **
   3  Prefactor     .10000E-03    4.6222        .22808E-06** at limit **
   4  Prefactor     .10000E-03    3.2904       -.32322E-05** at limit **
   5  Prefactor     .10000E-03    13.326        .30499E-05** at limit **
   6  Prefactor     .10000E-03    3.3645        .41621E-05** at limit **
   7  Prefactor     56.454        97.848       -.15478E-04   -.24180E-04
   8  norm          .10000E-03    2.6426       -.96672E-07** at limit **
   9  Prefactor     16.419        12.928        .15871E-06   -.10320E-03
  10  Prefactor     1.7534        4.6940       -.80325E-06   -.63046E-03
  11  Prefactor     .10000E-03    14.760       -.14525E-05** at limit **
  12  Prefactor     25.982        10.110        .21207E-06    .62916E-05
  13  Prefactor     .10000E-03    9.1189       -.50529E-06** at limit **
  14  Prefactor     .10000E-03    10.651        .15370E-05** at limit **
  15  Prefactor     .10000E-03    9.6467       -.11307E-05** at limit **
  16  Prefactor     .10000E-03    23.168       -.94857E-06** at limit **
  17  Prefactor     .10000E-03    39.279        .22772E-05** at limit **
  18  Prefactor     .10017E-03    7.7052        .23634E-05** at limit **
  19  Prefactor     .10000E-03    2.8576        .33426E-07** at limit **
  20  Prefactor     56.560        46.840        .22241E-05    .13163E-04
  21  Prefactor     .10000E-03    43.642       -.17538E-04** at limit **
  22  Prefactor     .10000E-03    21.091       -.86003E-05** at limit **
  23  norm          .59788        11.705       -.15282E-05   -.44527E-04
  24  norm          .10000E-03    2.4317       -.12749E-06** at limit **
  25  norm          7.8392        8.8805       -.18690E-06    .73818E-05
  26  norm          15.776        15.295        .99112E-07   -.11265E-05
  27  Prefactor     .10000E-03    3.6705       -.13700E-05** at limit **
  28  Prefactor     .10000E-03    28.488        .11065E-04** at limit **
  29  norm          12.773        8.1684       -.12726E-06    .23401E-03
  30  Prefactor     54.408        28.209        .25514E-05    .13254E-03
  31  norm          .54182        7.4079       -.20269E-05   -.86151E-04
  32  Normalizat    .89018        .24245       -.13686E-05    .80385E-05
  33  Prefactor     1.0538        .21600        .93254E-07   -.28303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.4536
  norm       = 0.0001
  Prefactor  = 16.4192
  Prefactor  = 1.75336
  Prefactor  = 0.0001
  Prefactor  = 25.9821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Prefactor  = 56.5603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.597877
  norm       = 0.0001
  norm       = 7.83923
  norm       = 15.7761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7727
  Prefactor  = 54.408
  norm       = 0.541817
  Normalizat = 0.890182
  Prefactor  = 1.05379
 **********
 **   18 **HESSE 
 **********

 FCN=   4400.332     FROM HESSE     STATUS=OK           689 CALLS     5202 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.841        45.656        .80388E-04   -1.4711    
   2  norm          .10000E-03    2.8625        .10889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6448        .13927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2938        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3826        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.454        98.214        .53384E-04   -1.4204    
   8  norm          .10000E-03    2.6438        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.419        12.971        .98841E-04   -1.4897    
  10  Prefactor     1.7534        4.7090        .22155E-03   -1.5443    
  11  Prefactor     .10000E-03    14.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.982        10.118        .78592E-04   -1.4688    
  13  Prefactor     .10000E-03    9.1225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10017E-03    36.124        .35356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8627        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.560        46.835        .26671E-03   -1.4202    
  21  Prefactor     .10000E-03    43.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .59788        51.351        .44059E-02   -1.5553    
  24  norm          .10000E-03    2.4319        .10103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8392        8.9006        .14322E-03   -1.5148    
  26  norm          15.776        15.296        .10084E-03   -1.4913    
  27  Prefactor     .10000E-03    3.6800        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.773        8.0910        .11209E-03   -1.4993    
  30  Prefactor     54.408        28.303        .54381E-04   -1.4231    
  31  norm          .54182        16.576        .32352E-02   -1.5561    
  32  Normalizat    .89018        .28973        .28341E-03   -.96806    
  33  Prefactor     1.0538        .26031        .24315E-03   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94937e-08
Minuit parameter uncertainties:
  1  45.7199
  2  7.47935e-05
  3  5.31948e-06
  4  5.85834e-06
  5  7.03079e-06
  6  2.00965e-05
  7  98.497
  8  2.06765e-06
  9  12.9731
  10  4.70997
  11  6.16991e-06
  12  10.1187
  13  1.29757e-06
  14  5.13923e-06
  15  5.66497e-06
  16  5.53005e-05
  17  2.30883e-06
  18  0.00497908
  19  2.18697e-06
  20  46.8655
  21  1.90507e-05
  22  1.41389e-07
  23  11.0907
  24  2.59492e-07
  25  8.90213
  26  15.2997
  27  1.89882e-05
  28  4.58526e-05
  29  8.09173
  30  28.3095
  31  5.99492
  32  0.290241
  33  0.260625
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.170e-06  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.054e+00  2.606e-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.902e-01  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/357360/likelihoodResults_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.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): 102
logL (Free Index) = 4400.33231182
delta logL = -0.000319723654684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4400.33199374
delta logL = -1.6449848772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2965       1.0000          .0000       10.000    
     3 'Normalizat'    .89015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0538       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=   4400.332     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10286E-03    3.0361        .18142E-01** at limit **
   2  Index         2.2191        8.8128        .50000        .26800E-04
   3  Normalizat    .89018        .28909E-02    .28341E-03    .44647E-04
   4  Prefactor     1.0538        .26926E-02    .24315E-03    .67796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102862
  Index      = 2.21909
  Normalizat = 0.890181
  Prefactor  = 1.05379
 **********
 **   18 **HESSE 
 **********

 FCN=   4400.332     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10286E-03    59.159        .21587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2191        7.6339        .50000       -.58978    
   3  Normalizat    .89018        .12831E-01    .11336E-04   -.96806    
   4  Prefactor     1.0538        .11951E-01    .97260E-05   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09363e-08
Minuit parameter uncertainties:
  1  0.026052
  2  195.526
  3  0.0128314
  4  0.0119511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357360': 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): 102
logL (Free Index) = 4400.33199334
delta logL = -1.24089001474e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.029e-04  2.605e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.219e+00  1.955e+02  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.054e+00  1.195e-02  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.902e-01  1.283e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/357360/cmap_HighResolution_348710401_348969601_4FGL_J2234.2-4156_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-09-28 14:50:32.928876', job_id='357360', GAL2='1.05', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632865832.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='422' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:32 PDT 2021


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

Job <4FGL_J2234.2-4156_daily_bin422> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:00 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:01 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:01 2021
Terminated at Tue Sep 28 14:50:33 2021
Results reported at Tue Sep 28 14:50:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin422 338.568 -41.9411 348710401 348969601 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

