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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin810
RA = 338.568, Dec = -41.9411
tmin = 449280001, tmax = 449539201
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='358810', job_status='RUN', time_executed='2021-09-28 14:42:34.436563', time_epoch_executed='1632865354.44' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358810/ft1_4FGL_J2234.2-4156_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358810/ft1_4FGL_J2234.2-4156_daily_bin810.fits outfile=/scratch/kocevski/358810/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin810.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=449280001.0 tmax=449539201.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.83
user 5.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits" evtable="EVENTS" scfile=/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits sctable="SC_DATA" outfile=/scratch/kocevski/358810/ltcube_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.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/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits
.....................!
real 12.09
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/358810/ltcube_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.fits outfile=/scratch/kocevski/358810/expmap_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.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/358810/ltcube_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.fits
.....................!
real 190.38
user 184.71
sys 5.32

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/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits scfile=/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits outfile=/scratch/kocevski/358810/cmap_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits scfile=/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits outfile=/scratch/kocevski/358810/cmap_HighResolution_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/358810/ft2_4FGL_J2234.2-4156_daily_bin810.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358810/Model_4FGL_J2234.2-4156_daily_bin810.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/358810/ft1_filtered_4FGL_J2234.2-4156_daily_bin810.fits.....................!
real 45.65
user 44.23
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.7321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10901E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1613       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14065E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22633E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    9.7524       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .90846E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    105.24       1.0000         .10000E-03   10000.    
    29 'norm      '    7.0495       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81490       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=   5411.292     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4650 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.350       -.48935E-06** at limit **
   2  norm          7.7314        4.9324       -.23190E-07    .11804E-04
   3  Prefactor     1.4671        10.079       -.57802E-06   -.67835E-05
   4  Prefactor     .10000E-03    3.1841       -.58821E-07** at limit **
   5  Prefactor     58.780        48.394       -.61762E-06   -.28374E-04
   6  Prefactor     5.3463        9.6169        .22339E-06   -.18462E-04
   7  Prefactor     .10000E-03    45.187        .17599E-05** at limit **
   8  norm          .10000E-03    6.1286       -.85514E-07** at limit **
   9  Prefactor     7.1602        12.530       -.35223E-06   -.36224E-04
  10  Prefactor     1.5778        3.3872        .13749E-06   -.24554E-04
  11  Prefactor     .10000E-03    19.398        .82610E-07** at limit **
  12  Prefactor     .10000E-03    2.5232        .60754E-06** at limit **
  13  Prefactor     .10000E-03    14.387        .25487E-06** at limit **
  14  Prefactor     .54279        36.571        .10113E-05   -.12007E-05
  15  Prefactor     9.2500        74.796       -.53761E-05   -.21978E-04
  16  Prefactor     2.8356        29.657        .51771E-05    .13875E-04
  17  Prefactor     .10000E-03    190.09       -.28420E-05** at limit **
  18  Prefactor     8.9546        21.046       -.38717E-06   -.18871E-04
  19  Prefactor     1.7055        11.232       -.31782E-05   -.11572E-03
  20  Prefactor     .10000E-03    18.640        .61392E-06** at limit **
  21  Prefactor     .10000E-03    33.901       -.74309E-06** at limit **
  22  Prefactor     .10198E-03    26.665        .54283E-05** at limit **
  23  norm          9.7670        18.973        .84942E-06    .16460E-04
  24  norm          .10000E-03    3.2903        .61795E-08** at limit **
  25  norm          .10000E-03    6.4384       -.10090E-05** at limit **
  26  norm          .10004E-03    82.802       -.89966E-05** at limit **
  27  Prefactor     .10000E-03    2.9697        .20211E-07** at limit **
  28  Prefactor     105.15        88.440       -.31988E-05   -.44909E-04
  29  norm          7.0524        9.9328        .85297E-06    .22877E-04
  30  Prefactor     .10000E-03    11.858       -.51788E-07** at limit **
  31  norm          .10000E-03    5.6080       -.10158E-06** at limit **
  32  Normalizat    1.4127        .24070        .33659E-06   -.21284E-03
  33  Prefactor     .81486        .19225       -.44056E-06   -.90585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.73138
  Prefactor  = 1.46711
  Prefactor  = 0.0001
  Prefactor  = 58.7805
  Prefactor  = 5.34626
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.1602
  Prefactor  = 1.57778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.542786
  Prefactor  = 9.24998
  Prefactor  = 2.83559
  Prefactor  = 0.000100001
  Prefactor  = 8.9546
  Prefactor  = 1.70548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101985
  norm       = 9.76696
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 105.151
  norm       = 7.05244
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.41265
  Prefactor  = 0.814859
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.292     FROM HESSE     STATUS=OK           705 CALLS     5355 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7314        4.9346        .12259E-03   -1.5152    
   3  Prefactor     1.4671        10.030        .35494E-03   -1.5466    
   4  Prefactor     .10000E-03    3.2044        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.780        48.341        .52312E-04   -1.4173    
   6  Prefactor     5.3463        9.5944        .17378E-03   -1.5245    
   7  Prefactor     .10000E-03    45.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.638        .35330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1602        12.626        .74948E-03   -1.5173    
  10  Prefactor     1.5778        3.3509        .18908E-03   -1.5457    
  11  Prefactor     .10000E-03    19.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5335        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .54279        50.889        .11368       -1.5561    
  15  Prefactor     9.2500        75.515        .13286E-03   -1.5100    
  16  Prefactor     2.8356        29.751        .24028E-03   -1.5371    
  17  Prefactor     .10000E-03    191.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9546        21.173        .13389E-03   -1.5109    
  19  Prefactor     1.7055        11.379        .16097E-02   -1.5447    
  20  Prefactor     .10000E-03    18.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10198E-03    207.17        .50663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.7670        18.975        .12832E-03   -1.5083    
  24  norm          .10000E-03    3.2904        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.3739        .18091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10004E-03    85.255        .59323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9706        .12380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     105.15        88.415        .19600E-03   -1.3653    
  29  norm          7.0524        9.9213        .15109E-03   -1.5177    
  30  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.6171        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4127        .29069        .25196E-03   -.80263    
  33  Prefactor     .81486        .22718        .27486E-03   -.99183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72669e-09
Minuit parameter uncertainties:
  1  1.00382e-05
  2  4.93488
  3  7.6736
  4  5.79789e-06
  5  48.373
  6  9.59712
  7  0.000120686
  8  3.08051e-05
  9  12.6308
  10  3.35133
  11  4.20808e-06
  12  2.39805e-06
  13  1.55136e-05
  14  10.5195
  15  52.9498
  16  18.3811
  17  0.000877985
  18  21.1904
  19  8.81266
  20  1.83766e-05
  21  3.98473e-05
  22  0.040699
  23  18.9867
  24  7.0573e-07
  25  4.09936e-05
  26  0.00364073
  27  4.88344e-07
  28  88.526
  29  9.92364
  30  1.22858e-07
  31  6.07588e-07
  32  0.291035
  33  0.227438
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.208e-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:  8.149e-01  2.274e-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.413e+00  2.910e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358810/likelihoodResults_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.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) = 5411.29179811
delta logL = -0.000244733066211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5411.29155332
delta logL = 4.98876033816e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9043       1.0000          .0000       10.000    
     3 'Normalizat'    1.4127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81487       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=   5411.292     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1553.3        .90712E-02** at limit **
   2  Index         1.8981        7.4352        .50000        .23613E-05
   3  Normalizat    1.4127        .55013E-01    .56978E-01    .32524E-05
   4  Prefactor     .81486        .47298E-01    .43910E-01    .15476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89813
  Normalizat = 1.41265
  Prefactor  = 0.814858
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.292     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6631.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8981        5.8933        .50000       -.66922    
   3  Normalizat    1.4127        .10998        .25196E-03   -.80263    
   4  Prefactor     .81486        .94560E-01    .27486E-03   -.99183    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.67793e-10
Minuit parameter uncertainties:
  1  4.75524e-05
  2  53.6451
  3  0.109998
  4  0.0945789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358810': 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) = 5411.29155331
delta logL = 6.35081960354e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.755e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.898e+00  5.365e+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.149e-01  9.458e-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.413e+00  1.100e-01  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/358810/cmap_HighResolution_449280001_449539201_4FGL_J2234.2-4156_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-28 14:56:50.692520', job_id='358810', GAL2='0.81', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632866210.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='810' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 358810: <4FGL_J2234.2-4156_daily_bin810> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin810> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:34 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:36 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:40:36 2021
Terminated at Tue Sep 28 14:56:51 2021
Results reported at Tue Sep 28 14:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin810 338.568 -41.9411 449280001 449539201 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 :                                   855.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

