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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin370
RA = 338.568, Dec = -41.9411
tmin = 335232001, tmax = 335491201
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='357278', job_status='RUN', time_executed='2021-09-28 14:36:06.904349', time_epoch_executed='1632864966.9' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357278/ft1_4FGL_J2234.2-4156_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits


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

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

Done.
real 3.77
user 3.57
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.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/357278/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin370.fits evtable="EVENTS" outfile="/scratch/kocevski/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/357278/ltcube_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.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/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits
.....................!
real 11.60
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/357278/ltcube_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.fits outfile=/scratch/kocevski/357278/expmap_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.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/357278/ltcube_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.fits
.....................!
real 190.45
user 185.14
sys 4.95

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/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits outfile=/scratch/kocevski/357278/cmap_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.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.51
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits outfile=/scratch/kocevski/357278/cmap_HighResolution_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/357278/ft2_4FGL_J2234.2-4156_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357278/Model_4FGL_J2234.2-4156_daily_bin370.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/357278/ft1_filtered_4FGL_J2234.2-4156_daily_bin370.fits.....................!
real 38.41
user 37.17
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .65764       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3093       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25595E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15913E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19010E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5961       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.8082       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0561       1.0000         .10000E-03   10000.    
    25 'norm      '    10.848       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.075       1.0000         .10000E-03   10000.    
    29 'norm      '    8.8022       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.877       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96386       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95550       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=   4485.063     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4632 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.632       -.19893E-06** at limit **
   2  norm          .65887        7.7654        .36012E-05    .94328E-05
   3  Prefactor     12.939        13.989        .25516E-06   -.49831E-04
   4  Prefactor     5.9101        10.256       -.69586E-07   -.70596E-04
   5  Prefactor     18.733        60.066        .26232E-05    .61242E-04
   6  Prefactor     2.3011        18.967        .39011E-05    .85434E-05
   7  Prefactor     .10000E-03    155.90        .69543E-05** at limit **
   8  norm          .10000E-03    4.0000       -.42718E-07** at limit **
   9  Prefactor     .10000E-03    14.917        .85324E-07** at limit **
  10  Prefactor     .10001E-03    2.6316        .29872E-06** at limit **
  11  Prefactor     .10000E-03    232.49        .13307E-05** at limit **
  12  Prefactor     1.3255        8.0174        .23649E-05    .52412E-04
  13  Prefactor     .10000E-03    7.5820        .57719E-08** at limit **
  14  Prefactor     5.6475        23.455        .11588E-05   -.10113E-04
  15  Prefactor     77.460        40.403       -.89686E-06    .14315E-03
  16  Prefactor     .10164E-03    12.067       -.19014E-05** at limit **
  17  Prefactor     .10000E-03    30.850       -.89626E-06** at limit **
  18  Prefactor     9.5966        13.472        .44733E-06   -.61407E-05
  19  Prefactor     .10000E-03    7.2663        .22455E-08** at limit **
  20  Prefactor     .10000E-03    23.457        .13620E-06** at limit **
  21  Prefactor     .10000E-03    35.056        .86963E-06** at limit **
  22  Prefactor     .10000E-03    12.088        .21345E-07** at limit **
  23  norm          8.8104        9.5602        .13511E-07   -.10908E-04
  24  norm          6.0563        7.9860        .18276E-06    .84925E-05
  25  norm          10.848        7.3864       -.21312E-07    .17340E-04
  26  norm          .10000E-03    6.5517        .35707E-08** at limit **
  27  Prefactor     .10000E-03    4.0510       -.10642E-07** at limit **
  28  Prefactor     13.032        59.288       -.55302E-05   -.51467E-04
  29  norm          8.8056        7.8217        .79578E-06    .29291E-04
  30  Prefactor     18.875        18.579        .31263E-06   -.26303E-05
  31  norm          .10000E-03    2.2232       -.13112E-06** at limit **
  32  Normalizat    .96376        .23054       -.75511E-06   -.16177E-03
  33  Prefactor     .95566        .19924       -.16589E-05   -.14353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.658875
  Prefactor  = 12.9385
  Prefactor  = 5.9101
  Prefactor  = 18.7326
  Prefactor  = 2.30112
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.32552
  Prefactor  = 0.0001
  Prefactor  = 5.64753
  Prefactor  = 77.4599
  Prefactor  = 0.000101639
  Prefactor  = 0.0001
  Prefactor  = 9.59658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.81043
  norm       = 6.05625
  norm       = 10.8482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0315
  norm       = 8.80564
  Prefactor  = 18.8749
  norm       = 0.0001
  Normalizat = 0.963761
  Prefactor  = 0.955659
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.063     FROM HESSE     STATUS=OK           699 CALLS     5331 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .65887        8.0553        .35363E-02   -1.5546    
   3  Prefactor     12.939        13.947        .11136E-03   -1.4988    
   4  Prefactor     5.9101        10.211        .16519E-03   -1.5222    
   5  Prefactor     18.733        60.610        .92758E-04   -1.4842    
   6  Prefactor     2.3011        18.715        .27000E-03   -1.5405    
   7  Prefactor     .10000E-03    156.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.0152        .13081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    31.307        .20479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    235.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3255        7.9110        .34510E-03   -1.5478    
  13  Prefactor     .10000E-03    7.5842        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6475        23.509        .16896E-03   -1.5233    
  15  Prefactor     77.460        38.234        .45620E-04   -1.3945    
  16  Prefactor     .10164E-03    120.70        .41228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5966        13.544        .12936E-03   -1.5088    
  19  Prefactor     .10000E-03    7.3229        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.8104        9.5605        .13506E-03   -1.5114    
  24  norm          6.0563        7.9785        .16315E-03   -1.5216    
  25  norm          10.848        7.3994        .12164E-03   -1.5049    
  26  norm          .10000E-03    6.5698        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.0557        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.032        59.703        .11077E-03   -1.4986    
  29  norm          8.8056        7.8262        .13402E-03   -1.5114    
  30  Prefactor     18.875        18.592        .92186E-04   -1.4839    
  31  norm          .10000E-03    2.2238        .97448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96376        .27383        .25719E-03   -.94255    
  33  Prefactor     .95566        .23647        .24051E-03   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33682e-08
Minuit parameter uncertainties:
  1  0.000113577
  2  4.60799
  3  13.9503
  4  10.2138
  5  60.8098
  6  13.1302
  7  0.00128468
  8  2.8841e-06
  9  5.93985e-05
  10  0.00081429
  11  0.000669421
  12  6.47752
  13  3.06176e-06
  14  23.0604
  15  38.2457
  16  0.0281897
  17  7.75884e-05
  18  13.5485
  19  1.56842e-05
  20  2.0559e-05
  21  0.000108522
  22  1.49103e-05
  23  9.56216
  24  7.97993
  25  7.4
  26  8.13028e-06
  27  1.43152e-06
  28  55.8782
  29  7.82712
  30  18.5974
  31  2.56469e-06
  32  0.274229
  33  0.23673
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.694e-04  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.557e-01  2.367e-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:  9.638e-01  2.742e-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: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357278/likelihoodResults_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.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) = 4485.06291948
delta logL = -2.00989252335e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4485.06291948
delta logL = -2.00981576199e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9922       1.0000          .0000       10.000    
     3 'Normalizat'    .96376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95566       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=   4485.063     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      221 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15138E-03    .55977        .12586    ** at limit **
   2  Index         2.1518        5.1671        .50000       -.93205E-05
   3  Normalizat    .96377        .48463E-03    .45711E-01    .63619E-03
   4  Prefactor     .95566        .45385E-03    .45711E-01    .55387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00015138
  Index      = 2.15176
  Normalizat = 0.963765
  Prefactor  = 0.955658
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.063     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      260 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15138E-03    .48695        .13479       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1518        5.2119        .50000       -.60608    
   3  Normalizat    .96377        .47809E-03    .25719E-03   -.94254    
   4  Prefactor     .95566        .44777E-03    .24051E-03   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16018e-10
Minuit parameter uncertainties:
  1  0.0100039
  2  7.48797
  3  0.000478089
  4  0.000447771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357278': 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) = 4485.06289914
delta logL = 2.45182491199e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.514e-04  1.000e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.152e+00  7.488e+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:  9.557e-01  4.478e-04  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:  9.638e-01  4.781e-04  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/357278/cmap_HighResolution_335232001_335491201_4FGL_J2234.2-4156_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-28 14:48:38.173026', job_id='357278', GAL2='0.96', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632865718.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.45e-07', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='370' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:48:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 357278: <4FGL_J2234.2-4156_daily_bin370> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin370> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:49 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35:52 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:35:52 2021
Terminated at Tue Sep 28 14:48:38 2021
Results reported at Tue Sep 28 14:48:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin370 338.568 -41.9411 335232001 335491201 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 :                                   750.15 sec.
    Max Memory :                                 1067 MB
    Average Memory :                             339.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

