/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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7435
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1337
RA = 338.568, Dec = -41.9411
tmin = 585878401, tmax = 586137601
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='361660', job_status='RUN', time_executed='2021-09-28 14:50:52.534665', time_epoch_executed='1632865852.53' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361660/ft1_4FGL_J2234.2-4156_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361660/ft1_4FGL_J2234.2-4156_daily_bin1337.fits outfile=/scratch/kocevski/361660/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1337.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=585878401.0 tmax=586137601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.81
user 2.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361660/ft1_filtered_4FGL_J2234.2-4156_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/361660/ltcube_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.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/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits
.....................!
real 12.24
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361660/ft1_filtered_4FGL_J2234.2-4156_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/361660/ltcube_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.fits outfile=/scratch/kocevski/361660/expmap_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.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/361660/ltcube_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.fits
.....................!
real 190.99
user 185.32
sys 5.29

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/361660/ft1_filtered_4FGL_J2234.2-4156_daily_bin1337.fits scfile=/scratch/kocevski/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits outfile=/scratch/kocevski/361660/cmap_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361660/ft1_filtered_4FGL_J2234.2-4156_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/361660/ft2_4FGL_J2234.2-4156_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361660/Model_4FGL_J2234.2-4156_daily_bin1337.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/361660/ft1_filtered_4FGL_J2234.2-4156_daily_bin1337.fits....................!
real 25.11
user 23.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .47502E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22991E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10977E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.298       1.0000         .10000E-03   10000.    
    23 'norm      '    14.659       1.0000         .10000E-03   10000.    
    24 'norm      '    .12831E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4986       1.0000         .10000E-03   10000.    
    28 'Prefactor '    77.221       1.0000         .10000E-03   10000.    
    29 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2830       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98361       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=   2009.656     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4568 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.002       -.52390E-06** at limit **
   2  norm          .10000E-03    16.658       -.45759E-06** at limit **
   3  Prefactor     .10000E-03    34.478       -.85219E-06** at limit **
   4  Prefactor     .10000E-03    12.383       -.87090E-06** at limit **
   5  Prefactor     .10001E-03    149.26       -.70588E-05** at limit **
   6  Prefactor     .10000E-03    11.024       -.11646E-06** at limit **
   7  Prefactor     .10000E-03    204.37       -.22818E-05** at limit **
   8  norm          .10011E-03    236.33       -.41787E-04** at limit **
   9  Prefactor     .10000E-03    7.7655        .32385E-07** at limit **
  10  Prefactor     16.835        12.587       -.19675E-05   -.23640E-03
  11  Prefactor     .10001E-03    226.75        .69706E-05** at limit **
  12  Prefactor     .10000E-03    10.029       -.84935E-07** at limit **
  13  Prefactor     .10000E-03    28.073        .70926E-06** at limit **
  14  Prefactor     15.688        50.721        .27029E-05    .45293E-04
  15  Prefactor     .10000E-03    31.616        .35199E-06** at limit **
  16  Prefactor     34.674        25.577        .27402E-07    .43276E-04
  17  Prefactor     .10000E-03    97.535       -.39452E-06** at limit **
  18  Prefactor     .10000E-03    12.595        .13509E-05** at limit **
  19  Prefactor     .10000E-03    39.622       -.62884E-06** at limit **
  20  Prefactor     .10000E-03    215.64       -.65663E-06** at limit **
  21  Prefactor     .10000E-03    60.449        .22131E-05** at limit **
  22  Prefactor     40.289        48.481        .54342E-07   -.81180E-05
  23  norm          14.660        22.338        .50168E-07    .12769E-05
  24  norm          .10000E-03    18.794        .86927E-06** at limit **
  25  norm          .10000E-03    3.7707        .61750E-07** at limit **
  26  norm          .10000E-03    12.336       -.10329E-05** at limit **
  27  Prefactor     3.4964        13.383       -.34195E-05   -.11735E-03
  28  Prefactor     77.214        76.800       -.64383E-06   -.27174E-04
  29  norm          .10000E-03    3.5599        .16931E-06** at limit **
  30  Prefactor     .10001E-03    37.266        .19505E-05** at limit **
  31  norm          .10000E-03    5.1216        .17838E-06** at limit **
  32  Normalizat    1.2836        .40850        .24617E-05    .31424E-03
  33  Prefactor     .98297        .36214       -.10965E-05   -.32294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100109
  Prefactor  = 0.0001
  Prefactor  = 16.8348
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6881
  Prefactor  = 0.0001
  Prefactor  = 34.6736
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 40.2887
  norm       = 14.6597
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.49639
  Prefactor  = 77.2142
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Normalizat = 1.28362
  Prefactor  = 0.982968
 **********
 **   18 **HESSE 
 **********

 FCN=   2009.656     FROM HESSE     STATUS=OK           679 CALLS     5247 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    43.277        .35070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.422        .15423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    150.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.040        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    204.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10011E-03    239.96        .41257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7683        .12202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.835        12.970        .48796E-03   -1.4887    
  11  Prefactor     .10001E-03    228.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.058        .13858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.688        50.801        .10095E-03   -1.4916    
  15  Prefactor     .10000E-03    31.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.674        25.522        .68046E-04   -1.4530    
  17  Prefactor     .10000E-03    97.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.685        .15585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    216.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.289        48.475        .63144E-04   -1.4438    
  23  norm          14.660        22.324        .10461E-03   -1.4942    
  24  norm          .10000E-03    19.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.7716        .85011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.426        .15395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.4964        13.459        .21616E-03   -1.5334    
  28  Prefactor     77.214        77.367        .45697E-04   -1.3948    
  29  norm          .10000E-03    3.5619        .82530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    37.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.1332        .99008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2836        .47905        .26956E-03   -.84057    
  33  Prefactor     .98297        .41084        .28181E-03   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57675e-09
Minuit parameter uncertainties:
  1  0.000109406
  2  0.000211398
  3  0.000100628
  4  9.28667e-05
  5  0.00254035
  6  2.06634e-05
  7  0.000929564
  8  0.0102583
  9  1.89267e-06
  10  12.9721
  11  0.0028554
  12  5.88857e-05
  13  6.12408e-05
  14  50.9413
  15  0.000124242
  16  25.5305
  17  0.000132622
  18  0.000176561
  19  0.000122442
  20  0.0001699
  21  0.000598027
  22  48.5229
  23  22.3363
  24  6.89026e-05
  25  1.54108e-06
  26  0.000104351
  27  13.4703
  28  77.4678
  29  3.35237e-06
  30  0.000970255
  31  3.01298e-06
  32  0.48072
  33  0.412156
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.855e-03  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.830e-01  4.122e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.284e+00  4.807e-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: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361660/likelihoodResults_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.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) = 2009.65597236
delta logL = -2.07141179089e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2009.54577446
delta logL = 0.110177186174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2047       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0492       1.0000          .0000       10.000    
     3 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       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.

 FCN=   2009.546     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      286 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2047        686.52        .37360E-02   -.96328E-04
   2  Index         3.0491        6.4889        .13560        .41260E-04
   3  Normalizat    1.2347        .93999E-01    .61897E-01    .27444E-05
   4  Prefactor     1.0026        .85586E-01    .44763E-01    .36319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.2047
  Index      = 3.04915
  Normalizat = 1.23474
  Prefactor  = 1.00264
 **********
 **   18 **HESSE 
 **********

 FCN=   2009.546     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2047        74.232        .14944E-03   -1.5171    
   2  Index         3.0491        2.1904        .48859E-02   -.40082    
   3  Normalizat    1.2347        .44525        .27378E-03   -.85536    
   4  Prefactor     1.0026        .40729        .27906E-03   -.92642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26733e-10
Minuit parameter uncertainties:
  1  46.3262
  2  2.28285
  3  0.446632
  4  0.40855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361660': 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) = 2009.54577444
delta logL = 0.110177199582

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.003e+00  4.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.235e+00  4.466e-01  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/361660/cmap_HighResolution_585878401_586137601_4FGL_J2234.2-4156_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-28 14:59:20.466391', job_id='361660', GAL2='1.00', fit_tolerance='1e-08', EG2='1.23', EG='1.28', time_epoch_completed='1632866360.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.10e-01', ts2='0.23', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1337' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 361660: <4FGL_J2234.2-4156_daily_bin1337> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1337> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:33 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:50:34 2021
Terminated at Tue Sep 28 14:59:21 2021
Results reported at Tue Sep 28 14:59:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1337 338.568 -41.9411 585878401 586137601 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 :                                   507.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            528 sec.

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

