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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1524
RA = 338.568, Dec = -41.9411
tmin = 634348801, tmax = 634608001
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='362995', job_status='RUN', time_executed='2021-09-28 14:57:02.306751', time_epoch_executed='1632866222.31' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362995/ft1_4FGL_J2234.2-4156_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits


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

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

Done.
real 3.77
user 3.52
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/362995/ltcube_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.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/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits
.....................!
real 12.16
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/362995/ltcube_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.fits outfile=/scratch/kocevski/362995/expmap_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.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/362995/ltcube_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.fits
.....................!
real 190.76
user 185.35
sys 5.03

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/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits scfile=/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits outfile=/scratch/kocevski/362995/cmap_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.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/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits scfile=/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits outfile=/scratch/kocevski/362995/cmap_HighResolution_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/362995/ft2_4FGL_J2234.2-4156_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362995/Model_4FGL_J2234.2-4156_daily_bin1524.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/362995/ft1_filtered_4FGL_J2234.2-4156_daily_bin1524.fits.....................!
real 27.52
user 26.22
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7947       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30664E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    127.92       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.834       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.719       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.191       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97894       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=   2563.238     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     4565 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.051        .22943E-06** at limit **
   2  norm          14.598        9.2119        .82220E-07   -.43350E-05
   3  Prefactor     .10000E-03    5.4148        .14590E-06** at limit **
   4  Prefactor     .10000E-03    23.629        .87764E-06** at limit **
   5  Prefactor     .10000E-03    56.412       -.11754E-05** at limit **
   6  Prefactor     .10000E-03    22.168       -.12194E-04** at limit **
   7  Prefactor     2.6273        1859.7       -.36833E-04    .57011E-05
   8  norm          .10000E-03    4.4208       -.12346E-06** at limit **
   9  Prefactor     .10000E-03    5.3132        .16278E-06** at limit **
  10  Prefactor     5.0014        5.2084       -.33632E-07    .17125E-04
  11  Prefactor     .10000E-03    26.638        .15380E-06** at limit **
  12  Prefactor     .10000E-03    5.2213       -.97061E-06** at limit **
  13  Prefactor     52.217        43.514       -.28917E-06   -.92956E-05
  14  Prefactor     .10000E-03    115.62        .21861E-05** at limit **
  15  Prefactor     127.87        87.896       -.89985E-06   -.28739E-04
  16  Prefactor     10.831        31.142        .24678E-07    .18235E-04
  17  Prefactor     .10000E-03    89.488       -.37151E-06** at limit **
  18  Prefactor     22.677        20.835       -.19760E-06   -.15273E-05
  19  Prefactor     .10000E-03    24.467        .14852E-05** at limit **
  20  Prefactor     .10000E-03    83.145       -.70927E-06** at limit **
  21  Prefactor     .10000E-03    69.236        .69829E-06** at limit **
  22  Prefactor     .10000E-03    6.7734       -.10914E-07** at limit **
  23  norm          .10000E-03    6.2159        .17588E-07** at limit **
  24  norm          .10000E-03    3.9961        .10755E-07** at limit **
  25  norm          .10000E-03    2.8378        .64540E-07** at limit **
  26  norm          16.719        15.936       -.86847E-07   -.61929E-05
  27  Prefactor     .10000E-03    3.7277        .59391E-07** at limit **
  28  Prefactor     .10000E-03    37.579        .32634E-06** at limit **
  29  norm          .10000E-03    4.8270        .47805E-06** at limit **
  30  Prefactor     16.192        15.967       -.11817E-06    .75937E-06
  31  norm          .10000E-03    1.8564        .57428E-07** at limit **
  32  Normalizat    1.0629        .29927        .33322E-05    .13029E-04
  33  Prefactor     .97909        .28011       -.33688E-05    .10603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.5983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2171
  Prefactor  = 0.0001
  Prefactor  = 127.868
  Prefactor  = 10.8311
  Prefactor  = 0.0001
  Prefactor  = 22.6774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1924
  norm       = 0.0001
  Normalizat = 1.06287
  Prefactor  = 0.979089
 **********
 **   18 **HESSE 
 **********

 FCN=   2563.238     FROM HESSE     STATUS=OK           681 CALLS     5246 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.598        9.2289        .10483E-03   -1.4944    
   3  Prefactor     .10000E-03    5.4221        .11507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    56.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6273        1916.5        .24337E-02   -1.5384    
   8  norm          .10000E-03    4.4211        .10397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3194        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0014        5.2057        .11379E-03   -1.5261    
  11  Prefactor     .10000E-03    26.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2368        .11296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.217        43.570        .55501E-04   -1.4261    
  14  Prefactor     .10000E-03    117.98        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     127.87        87.801        .17797E-03   -1.3442    
  16  Prefactor     10.831        30.965        .12172E-03   -1.5050    
  17  Prefactor     .10000E-03    89.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.677        20.890        .84111E-04   -1.4755    
  19  Prefactor     .10000E-03    25.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    83.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    69.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7740        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.2161        .12329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.9963        .98852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8393        .83297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.719        15.941        .97953E-04   -1.4890    
  27  Prefactor     .10000E-03    3.7326        .95464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    37.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.9586        .21705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     16.192        15.978        .99535E-04   -1.4903    
  31  norm          .10000E-03    1.8577        .67369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0629        .34267        .25058E-03   -.90953    
  33  Prefactor     .97909        .32027        .25219E-03   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65106e-10
Minuit parameter uncertainties:
  1  4.41941e-05
  2  9.22979
  3  2.42819e-06
  4  5.62889e-05
  5  0.000200961
  6  0.000127806
  7  146.915
  8  2.6995e-06
  9  2.44535e-06
  10  5.20621
  11  3.30356e-05
  12  6.90087e-06
  13  43.5962
  14  0.000129106
  15  87.8905
  16  31.0108
  17  0.000239159
  18  20.8968
  19  2.45097e-05
  20  1.07722e-06
  21  0.000236238
  22  1.60442e-06
  23  2.63019e-06
  24  6.37602e-07
  25  3.14729e-08
  26  15.9449
  27  5.20983e-07
  28  0.000182974
  29  9.3821e-06
  30  15.9822
  31  4.74943e-07
  32  0.343389
  33  0.320896
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.063e+00  3.434e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362995/likelihoodResults_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.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) = 2563.23835131
delta logL = -0.000178024454272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2563.23817484
delta logL = -1.56155829245e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13366E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2163       1.0000          .0000       10.000    
     3 'Normalizat'    1.0629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97908       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=   2563.238     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      267 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10209E-03    114.00        .18142E-02** at limit **
   2  Index         2.1487        7.6252        .50000        .14330E-04
   3  Normalizat    1.0629        .16098E-01    .25058E-03   -.13339E-04
   4  Prefactor     .97909        .15695E-01    .25219E-03   -.23915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102088
  Index      = 2.14873
  Normalizat = 1.06287
  Prefactor  = 0.979085
 **********
 **   18 **HESSE 
 **********

 FCN=   2563.238     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10209E-03    488.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1487        8.8900        .50000       -.60681    
   3  Normalizat    1.0629        .34199E-01    .10023E-04   -.90953    
   4  Prefactor     .97909        .33342E-01    .10088E-04   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39423e-08
Minuit parameter uncertainties:
  1  0.0644339
  2  456.279
  3  0.0341998
  4  0.0333424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362995': 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) = 2563.23817378
delta logL = -4.97205292049e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.021e-04  6.443e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.149e+00  4.563e+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  3.334e-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:  1.063e+00  3.420e-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/362995/cmap_HighResolution_634348801_634608001_4FGL_J2234.2-4156_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-28 15:06:44.104677', job_id='362995', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632866804.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-4.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1524' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 362995: <4FGL_J2234.2-4156_daily_bin1524> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1524 338.568 -41.9411 634348801 634608001 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 :                                   579.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

