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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1125
RA = 338.568, Dec = -41.9411
tmin = 530928001, tmax = 531187201
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='360288', job_status='RUN', time_executed='2021-09-28 14:46:49.408372', time_epoch_executed='1632865609.41' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360288/ft1_4FGL_J2234.2-4156_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360288/ft1_4FGL_J2234.2-4156_daily_bin1125.fits outfile=/scratch/kocevski/360288/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1125.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=530928001.0 tmax=531187201.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.65
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.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/360288/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/360288/ltcube_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.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/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits
.....................!
real 12.31
user 11.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/360288/ltcube_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.fits outfile=/scratch/kocevski/360288/expmap_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.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/360288/ltcube_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.fits
.....................!
real 191.53
user 186.18
sys 4.97

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/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits outfile=/scratch/kocevski/360288/cmap_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits outfile=/scratch/kocevski/360288/cmap_HighResolution_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.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/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/360288/ft2_4FGL_J2234.2-4156_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360288/Model_4FGL_J2234.2-4156_daily_bin1125.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/360288/ft1_filtered_4FGL_J2234.2-4156_daily_bin1125.fits.....................!
real 44.99
user 43.62
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    36.192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.580       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45473E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1093       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.006       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.6732       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5299       1.0000         .10000E-03   10000.    
    28 'Prefactor '    127.73       1.0000         .10000E-03   10000.    
    29 'norm      '    2.7240       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10512E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .69617       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97885       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=   5780.947     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4661 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.026        .22337E-06** at limit **
   2  norm          36.190        6.9650       -.46738E-07   -.11889E-03
   3  Prefactor     .23893        37.489        .16495E-04   -.25876E-03
   4  Prefactor     .10000E-03    2.5201        .44989E-07** at limit **
   5  Prefactor     26.270        29.758        .47199E-05    .57206E-03
   6  Prefactor     1.0812        9.8172        .30850E-06    .64759E-03
   7  Prefactor     .10000E-03    127.71        .20259E-05** at limit **
   8  norm          11.313        7.2895        .61694E-07    .10190E-03
   9  Prefactor     5.2109        7.7276       -.17919E-06    .60310E-04
  10  Prefactor     1.1125        3.2809       -.53542E-07    .61510E-03
  11  Prefactor     .10000E-03    10.895        .20992E-06** at limit **
  12  Prefactor     6.6656        5.9893        .12183E-06    .47520E-03
  13  Prefactor     5.4638        9.3387       -.27475E-07    .22397E-04
  14  Prefactor     .10000E-03    15.418       -.48074E-06** at limit **
  15  Prefactor     23.554        26.088        .82936E-06    .42136E-03
  16  Prefactor     .10000E-03    7.8155        .64677E-06** at limit **
  17  Prefactor     .10000E-03    30.680       -.15896E-05** at limit **
  18  Prefactor     .10000E-03    4.6884       -.10333E-06** at limit **
  19  Prefactor     .10000E-03    1.8447       -.30654E-08** at limit **
  20  Prefactor     .10000E-03    12.146       -.17001E-06** at limit **
  21  Prefactor     1.8461        322.88        .28676E-05    .15376E-04
  22  Prefactor     16.006        13.582       -.12824E-05   -.40072E-03
  23  norm          .10000E-03    6.0609       -.17698E-06** at limit **
  24  norm          .10000E-03    1.6850        .79031E-07** at limit **
  25  norm          2.6717        6.3506       -.53817E-06    .12695E-03
  26  norm          .10000E-03    3.1946       -.29181E-07** at limit **
  27  Prefactor     2.5300        2.7442        .18979E-07   -.74567E-04
  28  Prefactor     127.68        52.812        .13292E-05    .30500E-03
  29  norm          2.7289        5.7963       -.19148E-06    .32208E-03
  30  Prefactor     .10000E-03    7.0003       -.53125E-07** at limit **
  31  norm          .10000E-03    4.3211       -.15380E-06** at limit **
  32  Normalizat    .69594        .18111        .49259E-06    .39277E-03
  33  Prefactor     .97908        .16292       -.57491E-06    .25643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 36.1899
  Prefactor  = 0.238935
  Prefactor  = 0.0001
  Prefactor  = 26.2704
  Prefactor  = 1.08123
  Prefactor  = 0.0001
  norm       = 11.3126
  Prefactor  = 5.21091
  Prefactor  = 1.1125
  Prefactor  = 0.0001
  Prefactor  = 6.66559
  Prefactor  = 5.46377
  Prefactor  = 0.0001
  Prefactor  = 23.5542
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.84613
  Prefactor  = 16.0055
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.67169
  norm       = 0.0001
  Prefactor  = 2.53002
  Prefactor  = 127.681
  norm       = 2.72894
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.695942
  Prefactor  = 0.979079
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.947     FROM HESSE     STATUS=OK           691 CALLS     5352 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          36.190        6.9622        .66617E-04   -1.4504    
   3  Prefactor     .23893        39.472        .35694E-02   -1.5610    
   4  Prefactor     .10000E-03    2.5250        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.270        29.986        .78187E-04   -1.4682    
   6  Prefactor     1.0812        10.693        .44721E-03   -1.5500    
   7  Prefactor     .10000E-03    128.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.313        7.2899        .11911E-03   -1.5035    
   9  Prefactor     5.2109        7.7839        .17611E-03   -1.5251    
  10  Prefactor     1.1125        3.2904        .22168E-03   -1.5497    
  11  Prefactor     .10000E-03    10.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6656        5.9765        .15544E-03   -1.5192    
  13  Prefactor     5.4638        9.3286        .17190E-03   -1.5240    
  14  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.554        24.295        .82489E-04   -1.4737    
  16  Prefactor     .10000E-03    18.764        .37693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7107        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8480        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8461        326.45        .28407E-03   -1.5436    
  22  Prefactor     16.006        13.665        .10011E-03   -1.4908    
  23  norm          .10000E-03    6.0832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6852        .96396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.6717        6.2790        .24925E-03   -1.5381    
  26  norm          .10000E-03    3.1986        .13272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.5300        2.7488        .12799E-03   -1.5390    
  28  Prefactor     127.68        52.290        .35622E-04   -1.3443    
  29  norm          2.7289        5.6645        .21087E-03   -1.5378    
  30  Prefactor     .10000E-03    7.0710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    4.3653        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .69594        .21772        .26859E-03   -1.0405    
  33  Prefactor     .97908        .19608        .22107E-03   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70241e-09
Minuit parameter uncertainties:
  1  2.37308e-05
  2  6.96238
  3  6.14491
  4  5.47284e-06
  5  30.0031
  6  6.80175
  7  0.000365514
  8  7.29042
  9  7.78542
  10  3.29097
  11  2.85441e-05
  12  5.97701
  13  9.33109
  14  5.97864e-05
  15  24.3049
  16  9.59358e-05
  17  0.000346097
  18  5.43463e-06
  19  3.35171e-08
  20  2.01958e-05
  21  49.3731
  22  13.6672
  23  1.6908e-05
  24  5.30203e-06
  25  6.2805
  26  3.01486e-06
  27  2.74896
  28  52.3085
  29  5.66558
  30  4.11275e-07
  31  5.98784e-05
  32  0.217991
  33  0.196227
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.854e-05  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.791e-01  1.962e-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.959e-01  2.180e-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: 3.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360288/likelihoodResults_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.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) = 5780.94785744
delta logL = -0.000436530186562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5780.94742078
delta logL = 1.35595655593e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9646       1.0000          .0000       10.000    
     3 'Normalizat'    .69593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97909       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=   5780.947     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    71.448        .18142E-02** at limit **
   2  Index         1.9133        8.3874        .50000        .16621E-04
   3  Normalizat    .69594        .10085E-01    .26859E-03    .10205E-03
   4  Prefactor     .97908        .97766E-02    .22107E-03   -.26638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101098
  Index      = 1.91328
  Normalizat = 0.69594
  Prefactor  = 0.97908
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.947     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    313.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9133        7.6408        .50000       -.66536    
   3  Normalizat    .69594        .21685E-01    .10744E-04   -1.0405    
   4  Prefactor     .97908        .21021E-01    .88430E-05   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16315e-08
Minuit parameter uncertainties:
  1  0.0372838
  2  391.03
  3  0.0216853
  4  0.0210213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360288': 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) = 5780.94742059
delta logL = 3.17951162287e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.791e-01  2.102e-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:  6.959e-01  2.169e-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/360288/cmap_HighResolution_530928001_531187201_4FGL_J2234.2-4156_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2021-09-28 15:01:37.924022', job_id='360288', GAL2='0.98', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632866497.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1125' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 360288: <4FGL_J2234.2-4156_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1125 338.568 -41.9411 530928001 531187201 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 :                                   888.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

