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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1595
RA = 338.568, Dec = -41.9411
tmin = 652752001, tmax = 653011201
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='363106', job_status='RUN', time_executed='2021-09-28 14:59:04.188213', time_epoch_executed='1632866344.19' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363106/ft1_4FGL_J2234.2-4156_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363106/ft1_4FGL_J2234.2-4156_daily_bin1595.fits outfile=/scratch/kocevski/363106/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1595.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=652752001.0 tmax=653011201.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.14
user 2.93
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/363106/ltcube_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.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/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits
.....................!
real 12.30
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/363106/ltcube_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.fits outfile=/scratch/kocevski/363106/expmap_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.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/363106/ltcube_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.fits
.....................!
real 192.45
user 186.72
sys 5.41

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/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits scfile=/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits outfile=/scratch/kocevski/363106/cmap_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits scfile=/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits outfile=/scratch/kocevski/363106/cmap_HighResolution_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.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/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/363106/ft2_4FGL_J2234.2-4156_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363106/Model_4FGL_J2234.2-4156_daily_bin1595.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/363106/ft1_filtered_4FGL_J2234.2-4156_daily_bin1595.fits.........................!
real 17.10
user 15.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    126.83       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    450.54       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82286E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15572E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .96113E-03   1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .72885E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .27981E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .24226E-03   1.0000         .10000E-03   10000.    
    31 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .68954E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85204       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=   576.0208     FROM MIGRAD    STATUS=CONVERGED   1531 CALLS     5338 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     126.85        105.80        .17873E-03   -.72349E-04
   2  norm          .10000E-03    11.337        .78703E-03** at limit **
   3  Prefactor     26.825        36.915        .77353E-04   -.87077E-04
   4  Prefactor     20.664        33.432        .88131E-04   -.91114E-04
   5  Prefactor     70.379        160.84        .47862E-04   -.46521E-04
   6  Prefactor     72.103        51.218        .47285E-04   -.23775E-03
   7  Prefactor     .10000E-03    198.46        .18142E-02** at limit **
   8  norm          .10000E-03    9.3928        .71871E-03** at limit **
   9  Prefactor     .10000E-03    43.593        .15475E-02** at limit **
  10  Prefactor     .10000E-03    11.664        .80061E-03** at limit **
  11  Prefactor     450.73        426.90        .96422E-04    .11593E-04
  12  Prefactor     16.066        18.830        .99924E-04   -.50089E-04
  13  Prefactor     28.961        418.06        .74274E-04   -.18926E-04
  14  Prefactor     .10000E-03    250.06        .18142E-02** at limit **
  15  Prefactor     .10000E-03    56.297        .17607E-02** at limit **
  16  Prefactor     6.7212        37.848        .15506E-03   -.27449E-04
  17  Prefactor     .10000E-03    171.71        .18142E-02** at limit **
  18  Prefactor     .10000E-03    370.68        .20885E-02** at limit **
  19  Prefactor     .10000E-03    42.871        .15364E-02** at limit **
  20  Prefactor     .10000E-03    81.116        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1311.9        .18142E-02** at limit **
  22  Prefactor     .10000E-03    97.556        .18142E-02** at limit **
  23  norm          .10000E-03    214.35        .18142E-02** at limit **
  24  norm          .10000E-03    95.156        .18142E-02** at limit **
  25  norm          .10000E-03    882.92        .20788E-02** at limit **
  26  norm         10000.0        9646.9        .21251E-02** at limit **
  27  Prefactor     .10000E-03    119.46        .18142E-02** at limit **
  28  Prefactor     .10000E-03    8700.0        .18634E-02** at limit **
  29  norm          .10000E-03    1690.7        .21419E-02** at limit **
  30  Prefactor     .10000E-03    596.03        .18142E-02** at limit **
  31  norm         10000.0        7703.3        .18142E-02** at limit **
  32  Normalizat    .68025E-01    7.1697        .89393E-02   -.26854E-04
  33  Prefactor     .85227        .70379        .21986E-03   -.79457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 126.853
  norm       = 0.0001
  Prefactor  = 26.8255
  Prefactor  = 20.6635
  Prefactor  = 70.3791
  Prefactor  = 72.1033
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 450.735
  Prefactor  = 16.0664
  Prefactor  = 28.9611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.72118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Normalizat = 0.0680247
  Prefactor  = 0.85227
 **********
 **   18 **HESSE 
 **********

 FCN=   576.0208     FROM HESSE     STATUS=OK           663 CALLS     6001 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     126.85        105.01        .35745E-04   -1.3451    
   2  norm          .10000E-03    11.337        .15741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.825        36.394        .15471E-04   -1.4672    
   4  Prefactor     20.664        33.280        .17626E-04   -1.4799    
   5  Prefactor     70.379        158.71        .95723E-05   -1.4028    
   6  Prefactor     72.103        49.085        .94571E-05   -1.4008    
   7  Prefactor     .10000E-03    198.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.3928        .14374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.593        .30951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.664        .16012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     450.73        423.01        .19284E-04   -1.1429    
  12  Prefactor     16.066        18.813        .39970E-05   -1.4906    
  13  Prefactor     28.961        389.54        .14855E-04   -1.4631    
  14  Prefactor     .10000E-03    250.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.298        .35214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7212        35.920        .62022E-05   -1.5189    
  17  Prefactor     .10000E-03    171.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    370.68        .41770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.871        .30727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1311.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    97.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    214.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    95.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    882.92        .41577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        9646.9        .42501E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    119.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8700.0        .37268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1690.7        .42838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    596.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm         10000.0        7703.3        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .68025E-01    6.4344        .35757E-03   -1.4182    
  33  Prefactor     .85227        .59658        .43973E-04   -.97829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44742e-10
Minuit parameter uncertainties:
  1  105.165
  2  5.47882e-07
  3  36.424
  4  33.3095
  5  159.68
  6  49.1122
  7  0.000138775
  8  3.99024e-06
  9  0.000415602
  10  6.44511e-06
  11  426
  12  18.8199
  13  214.153
  14  0.00079421
  15  4.41222e-05
  16  31.1045
  17  2.63026e-05
  18  0.000423503
  19  1.11001e-05
  20  6.87805e-06
  21  0.00069219
  22  1.71496e-06
  23  3.83878e-06
  24  2.00397e-06
  25  2.415e-05
  26  0.000400934
  27  6.81705e-06
  28  0.00376512
  29  5.71329e-05
  30  2.27964e-07
  31  0.00141536
  32  0.985879
  33  0.601216
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.507e+02  4.260e+02  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:  8.523e-01  6.012e-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:  6.802e-02  9.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 2.37e-07
Energy Flux (Fixed Index): 1.77e-04 +/- 1.67e-04

TS (Fixed Index): 2.55
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 8.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363106/likelihoodResults_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.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) = 575.962000006
delta logL = 0.0587774082692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 575.960288475
delta logL = 0.0604889388949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    323.14       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2467       1.0000          .0000       10.000    
     3 'Normalizat'    .24800E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   575.9603     FROM MIGRAD    STATUS=FAILED        92 CALLS      299 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     322.77        493.47        .11310E-03   -.34528E-05
   2  Index         2.2462        .80392        .23608E-02   -.64625E-05
   3  Normalizat    .24249E-01    9.9535        .12661E-01    .48779E-04
   4  Prefactor     .87245        .92260        .21778E-03   -.69807E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   575.9603     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      371 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     322.77        493.47        .69242E-03   -1.2095    
   2  Index         2.2462        .80392        .32909E-03   -.58327    
   3  Normalizat    .24249E-01    9.9535        .54617E-02   -1.4952    
   4  Prefactor     .87245        .92260        .19305E-03   -.97110    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   575.9603     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      411 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     322.77        473.44        .22620E-04   -.16334E-06
   2  Index         2.2462        .75383        .94432E-04    .13544E-06
   3  Normalizat    .24249E-01    8.7781        .25321E-02    .19191E-05
   4  Prefactor     .87245        .60821        .43557E-04    .65252E-08
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 322.77
  Index      = 2.24621
  Normalizat = 0.024249
  Prefactor  = 0.872452
 **********
 **   18 **HESSE 
 **********

 FCN=   575.9603     FROM HESSE     STATUS=OK            25 CALLS      436 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     322.77        472.74        .45241E-05   -1.2095    
   2  Index         2.2462        .75145        .37773E-05   -.58327    
   3  Normalizat    .24249E-01    8.5176        .50642E-03   -1.4952    
   4  Prefactor     .87245        .57663        .87114E-05   -.97110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81358e-14
Minuit parameter uncertainties:
  1  478.565
  2  0.755575
  3  0.781351
  4  0.580719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363106': 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) = 575.960284047
delta logL = 0.0604933670562

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.228e+02  4.786e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.246e+00  7.556e-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:  8.725e-01  5.807e-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:  2.425e-02  7.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.25 +/- 0.76
Photon Flux (Free Index): 3.20e-07 +/- 3.46e-07
Energy Flux (Free Index): 1.32e-04 +/- 1.50e-04

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/363106/cmap_HighResolution_652752001_653011201_4FGL_J2234.2-4156_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-02', comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='1.32e-04', photon_flux_error='2.37e-07', dlogl='6.05e-02', energy_flux='1.77e-04', photon_flux2='3.20e-07', job_status='DONE', time_completed='2021-09-28 15:05:32.352511', photon_index_error2='0.76', photon_index2='2.25', ts='2.55', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='8.52e-07', energy_flux_error2='1.50e-04', EG='0.07', time_epoch_completed='1632866732.35', return_code='0', job_id='363106', GAL2='0.87', EG2='0.02', return_code2='0', energy_flux_error='1.67e-04', photon_flux_error2='3.46e-07', ts2='2.49', photon_index='1.99' WHERE bin_id='1595' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 363106: <4FGL_J2234.2-4156_daily_bin1595> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:40 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:41 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:55:41 2021
Terminated at Tue Sep 28 15:05:33 2021
Results reported at Tue Sep 28 15:05:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1595 338.568 -41.9411 652752001 653011201 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 :                                   386.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            593 sec.

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

