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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1000
RA = 338.568, Dec = -41.9411
tmin = 498528001, tmax = 498787201
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='360083', job_status='RUN', time_executed='2021-09-28 14:47:30.704697', time_epoch_executed='1632865650.7' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360083/ft1_4FGL_J2234.2-4156_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits


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

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

Done.
real 5.00
user 4.71
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/360083/ltcube_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.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/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits
.....................!
real 12.34
user 11.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/360083/ltcube_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.fits outfile=/scratch/kocevski/360083/expmap_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.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/360083/ltcube_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.fits
.....................!
real 191.75
user 185.29
sys 5.55

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/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits scfile=/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits outfile=/scratch/kocevski/360083/cmap_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.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.55
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits scfile=/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits outfile=/scratch/kocevski/360083/cmap_HighResolution_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/360083/ft2_4FGL_J2234.2-4156_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360083/Model_4FGL_J2234.2-4156_daily_bin1000.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/360083/ft1_filtered_4FGL_J2234.2-4156_daily_bin1000.fits.....................!
real 35.00
user 33.67
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4588       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19437E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.561       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    190.79       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11173E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.673       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.9162       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .38483       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1840       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=   4001.894     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4640 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4541        25.784       -.26889E-05   -.99785E-05
   2  norm          1.7968        3.8593       -.50090E-06   -.42469E-03
   3  Prefactor     .10000E-03    2.1830        .18694E-08** at limit **
   4  Prefactor     1.4128        5.1175       -.15566E-05   -.59463E-03
   5  Prefactor     13.042        29.807       -.17201E-04   -.15838E-03
   6  Prefactor     .10028E-03    7.9775        .37306E-05** at limit **
   7  Prefactor     .10000E-03    42.038       -.18218E-05** at limit **
   8  norm          .10000E-03    4.4553        .39995E-06** at limit **
   9  Prefactor     8.7557        7.6290       -.52986E-06   -.11376E-03
  10  Prefactor     .10000E-03    2.0387       -.52575E-07** at limit **
  11  Prefactor     .10000E-03    15.697       -.30968E-05** at limit **
  12  Prefactor     9.6804        9.2746        .36778E-05   -.21053E-03
  13  Prefactor     .10000E-03    10.759        .33644E-05** at limit **
  14  Prefactor     .10000E-03    11.667       -.28992E-05** at limit **
  15  Prefactor     41.533        42.050       -.18742E-04   -.91031E-04
  16  Prefactor     .10001E-03    7.4671        .62885E-06** at limit **
  17  Prefactor     72.055        111.24       -.11081E-03   -.56190E-05
  18  Prefactor     .10000E-03    17.939        .40072E-05** at limit **
  19  Prefactor     9.3702        7.9248       -.13940E-05   -.13434E-02
  20  Prefactor     190.80        85.042        .68660E-05   -.10409E-04
  21  Prefactor     .10000E-03    41.235       -.42426E-05** at limit **
  22  Prefactor     .10000E-03    7.5523       -.60037E-06** at limit **
  23  norm          .10000E-03    6.6809        .99040E-06** at limit **
  24  norm          .10000E-03    3.3509        .35185E-07** at limit **
  25  norm          .10000E-03    4.3976       -.14009E-05** at limit **
  26  norm          .10000E-03    22.156       -.56199E-06** at limit **
  27  Prefactor     .10000E-03    2.0075        .41758E-07** at limit **
  28  Prefactor     54.688        41.001        .94946E-05    .79099E-04
  29  norm          .10000E-03    4.7718       -.12221E-05** at limit **
  30  Prefactor     .10000E-03    4.5097        .11134E-05** at limit **
  31  norm          1.9159        3.3265       -.60532E-06   -.19338E-03
  32  Normalizat    .38453        .19951        .87522E-07   -.12922E-03
  33  Prefactor     1.1843        .19035        .31074E-05   -.44918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.45415
  norm       = 1.79676
  Prefactor  = 0.0001
  Prefactor  = 1.41282
  Prefactor  = 13.042
  Prefactor  = 0.000100277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.7557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.68043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5328
  Prefactor  = 0.000100006
  Prefactor  = 72.0545
  Prefactor  = 0.0001
  Prefactor  = 9.37023
  Prefactor  = 190.802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6882
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.91587
  Normalizat = 0.384532
  Prefactor  = 1.18429
 **********
 **   18 **HESSE 
 **********

 FCN=   4001.894     FROM HESSE     STATUS=OK           689 CALLS     5329 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4541        25.593        .13783E-03   -1.5126    
   2  norm          1.7968        3.8180        .16855E-03   -1.5440    
   3  Prefactor     .10000E-03    2.1908        .91268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4128        5.0959        .26219E-03   -1.5470    
   5  Prefactor     13.042        29.510        .11080E-03   -1.4986    
   6  Prefactor     .10028E-03    75.516        .33819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.4697        .13041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7557        7.6210        .13547E-03   -1.5116    
  10  Prefactor     .10000E-03    2.1300        .17626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6804        9.2441        .12880E-03   -1.5086    
  13  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.533        41.973        .62180E-04   -1.4418    
  16  Prefactor     .10001E-03    7.4942        .16878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.055        110.92        .23630E-03   -1.4008    
  18  Prefactor     .10000E-03    18.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3702        7.9404        .65467E-03   -1.5096    
  20  Prefactor     190.80        84.970        .14620E-03   -1.2936    
  21  Prefactor     .10000E-03    41.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5643        .16980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.6873        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.3559        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.4285        .12948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    22.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.0084        .87539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     54.688        40.838        .54248E-04   -1.4228    
  29  norm          .10000E-03    4.9579        .26895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.5106        .13121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.9159        3.2955        .14757E-03   -1.5431    
  32  Normalizat    .38453        .21717        .31882E-03   -1.1811    
  33  Prefactor     1.1843        .21021        .18730E-03   -.86816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79646e-09
Minuit parameter uncertainties:
  1  25.6264
  2  3.81855
  3  1.98802e-06
  4  5.09746
  5  29.5433
  6  0.00915527
  7  5.38234e-05
  8  2.61891e-05
  9  7.62185
  10  8.99468e-06
  11  6.02678e-06
  12  9.24543
  13  2.20294e-05
  14  1.57614e-05
  15  42.0032
  16  0.000413921
  17  111.24
  18  0.000178538
  19  7.94127
  20  85.0248
  21  7.95766e-05
  22  7.27039e-06
  23  1.20381e-05
  24  8.37655e-07
  25  6.75295e-05
  26  0.000199065
  27  1.56669e-06
  28  40.8589
  29  0.000160392
  30  3.82685e-06
  31  3.29584
  32  0.217646
  33  0.210361
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.184e+00  2.104e-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:  3.845e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/360083/likelihoodResults_498528001_498787201_4FGL_J2234.2-4156_daily_bin1000.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) = 4001.89383718
delta logL = -0.000298452140214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4001.89354634
delta logL = -7.60772536523e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8604       1.0000          .0000       10.000    
     3 'Normalizat'    .38448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1843       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=   4001.894     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6824        .90712E-02** at limit **
   2  Index         2.8311        6.4145        .50000        .57811E-04
   3  Normalizat    .38453        .47827E-02    .72006E-01    .24022E-04
   4  Prefactor     1.1843        .47885E-02    .35012E-01   -.45013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.83111
  Normalizat = 0.384529
  Prefactor  = 1.1843
 **********
 **   18 **HESSE 
 **********

 FCN=   4001.894     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.82        .13488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8311        8.1406        .50000       -.44868    
   3  Normalizat    .38453        .21765E-01    .31882E-03   -1.1811    
   4  Prefactor     1.1843        .21842E-01    .18730E-03   -.86816    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7986e-08
Minuit parameter uncertainties:
  1  0.000603859
  2  21.9345
  3  0.0217654
  4  0.0218423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360083': 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) = 4001.8935459
delta logL = -7.16723752703e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.039e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.831e+00  2.193e+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:  1.184e+00  2.184e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  3.845e-01  2.177e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-28 14:59:32.617235', job_id='360083', GAL2='1.18', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1632866372.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-7.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1000' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 360083: <4FGL_J2234.2-4156_daily_bin1000> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1000> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:15 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:17 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:45:17 2021
Terminated at Tue Sep 28 14:59:33 2021
Results reported at Tue Sep 28 14:59:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1000 338.568 -41.9411 498528001 498787201 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

