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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1055
RA = 338.568, Dec = -41.9411
tmin = 512784001, tmax = 513043201
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='360174', job_status='RUN', time_executed='2021-09-28 14:46:59.097099', time_epoch_executed='1632865619.1' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360174/ft1_4FGL_J2234.2-4156_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360174/ft1_4FGL_J2234.2-4156_daily_bin1055.fits outfile=/scratch/kocevski/360174/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1055.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.38
user 4.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.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/360174/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.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/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/360174/ltcube_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.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/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits
.....................!
real 11.86
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/360174/ltcube_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.fits outfile=/scratch/kocevski/360174/expmap_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.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/360174/ltcube_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.fits
.....................!
real 189.93
user 186.05
sys 3.57

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/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits outfile=/scratch/kocevski/360174/cmap_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.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/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits outfile=/scratch/kocevski/360174/cmap_HighResolution_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/360174/ft2_4FGL_J2234.2-4156_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360174/Model_4FGL_J2234.2-4156_daily_bin1055.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/360174/ft1_filtered_4FGL_J2234.2-4156_daily_bin1055.fits.....................!
real 45.92
user 44.70
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.825       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    77.335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96210E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29351E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11526E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.3026       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.4164       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96229       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0851       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=   5806.591     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4662 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.836        47.418       -.10621E-05   -.60636E-05
   2  norm          9.2606        5.2264        .29905E-07   -.22155E-05
   3  Prefactor     .10000E-03    6.2121        .32480E-06** at limit **
   4  Prefactor     .10000E-03    4.7595       -.30240E-06** at limit **
   5  Prefactor     55.498        38.963       -.36045E-05   -.32147E-04
   6  Prefactor     1.7096        3.4527        .10210E-05   -.19579E-02
   7  Prefactor     .10000E-03    46.441       -.20973E-05** at limit **
   8  norm          3.3109        7.3761       -.15082E-06   -.88708E-03
   9  Prefactor     10.963        10.379       -.15905E-06   -.89743E-04
  10  Prefactor     .10000E-03    1.6711        .77051E-06** at limit **
  11  Prefactor     77.262        53.959       -.16240E-04   -.26916E-03
  12  Prefactor     .10000E-03    2.7881        .30203E-07** at limit **
  13  Prefactor     .10000E-03    13.486       -.31345E-05** at limit **
  14  Prefactor     .10000E-03    22.014        .37759E-05** at limit **
  15  Prefactor     54.454        31.184       -.18965E-05   -.10180E-03
  16  Prefactor     .10000E-03    4.8806        .34618E-06** at limit **
  17  Prefactor     .10000E-03    139.07        .31395E-04** at limit **
  18  Prefactor     7.5981        8.9961       -.30258E-06   -.29238E-04
  19  Prefactor     .10000E-03    7.2976       -.23081E-06** at limit **
  20  Prefactor     .10000E-03    15.795        .31892E-05** at limit **
  21  Prefactor     .10000E-03    61.449       -.42767E-06** at limit **
  22  Prefactor     13.099        13.553       -.71117E-06   -.10650E-03
  23  norm          .10000E-03    16.355       -.83202E-05** at limit **
  24  norm          .10008E-03    4.3159        .21849E-05** at limit **
  25  norm          .10000E-03    2.6059       -.20644E-07** at limit **
  26  norm          .10000E-03    8.6879        .40516E-06** at limit **
  27  Prefactor     4.3037        5.4653       -.21324E-06   -.84672E-03
  28  Prefactor     .10000E-03    26.570        .15966E-05** at limit **
  29  norm          2.4187        3.7955       -.21221E-06   -.94745E-04
  30  Prefactor     .10000E-03    5.7092       -.19141E-06** at limit **
  31  norm          .10000E-03    4.4560        .27542E-07** at limit **
  32  Normalizat    .96165        .20451        .20956E-05   -.42452E-03
  33  Prefactor     1.0855        .18477        .29040E-06   -.28806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.836
  norm       = 9.26062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.4982
  Prefactor  = 1.70963
  Prefactor  = 0.0001
  norm       = 3.31092
  Prefactor  = 10.9634
  Prefactor  = 0.000100002
  Prefactor  = 77.2621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.4543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.5981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0989
  norm       = 0.0001
  norm       = 0.000100082
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.3037
  Prefactor  = 0.0001
  norm       = 2.41871
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.961645
  Prefactor  = 1.08553
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.591     FROM HESSE     STATUS=OK           693 CALLS     5355 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.836        47.380        .51873E-04   -1.4159    
   2  norm          9.2606        5.2228        .11904E-03   -1.5099    
   3  Prefactor     .10000E-03    6.4204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8073        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.498        39.453        .53844E-04   -1.4217    
   6  Prefactor     1.7096        8.1331        .16117E-02   -1.5446    
   7  Prefactor     .10000E-03    46.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3109        7.6966        .11124E-02   -1.5344    
   9  Prefactor     10.963        10.439        .12103E-03   -1.5046    
  10  Prefactor     .10000E-03    3.0443        .19090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     77.262        54.889        .45663E-04   -1.3948    
  12  Prefactor     .10000E-03    2.8316        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.132        .97320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.454        31.293        .54350E-04   -1.4231    
  16  Prefactor     .10000E-03    4.8930        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    138.85        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5981        8.9998        .14551E-03   -1.5157    
  19  Prefactor     .10000E-03    7.4110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.099        13.531        .11069E-03   -1.4984    
  23  norm          .10000E-03    16.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10008E-03    15.116        .30280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6135        .12001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.7525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.3037        5.4838        .97108E-03   -1.5293    
  28  Prefactor     .10000E-03    26.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.4187        3.7693        .17855E-03   -1.5397    
  30  Prefactor     .10000E-03    5.7137        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    4.5937        .31344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96165        .23684        .26418E-03   -.94327    
  33  Prefactor     1.0855        .21486        .24045E-03   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99157e-08
Minuit parameter uncertainties:
  1  47.4101
  2  5.2231
  3  1.64131e-05
  4  8.12842e-06
  5  39.4717
  6  7.45921
  7  1.68905e-05
  8  7.69893
  9  10.4404
  10  0.000146878
  11  54.925
  12  3.90518e-06
  13  3.3232e-05
  14  0.000228777
  15  31.3028
  16  8.24351e-06
  17  0.000627045
  18  9.00145
  19  3.14208e-05
  20  2.15683e-05
  21  7.2817e-05
  22  13.5346
  23  6.74887e-06
  24  0.00222826
  25  5.0941e-07
  26  1.62342e-05
  27  5.48446
  28  1.64006e-05
  29  3.76969
  30  3.63304e-06
  31  6.70539e-06
  32  0.237096
  33  0.21503
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  7.726e+01  5.492e+01  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.086e+00  2.150e-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:  9.616e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 2.15e-05

TS (Fixed Index): 3.86
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360174/likelihoodResults_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5806.14488511
delta logL = 0.445739631312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5806.13957469
delta logL = 0.451050054035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.086       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4704       1.0000          .0000       10.000    
     3 'Normalizat'    .92871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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=   5806.140     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.089        55.096        .63310E-04    .11658E-03
   2  Index         2.4702        .61578        .37527E-02    .10599E-03
   3  Normalizat    .92875        .22344        .26827E-03    .22605E-03
   4  Prefactor     1.1027        .21247        .23887E-03    .28504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0894
  Index      = 2.47024
  Normalizat = 0.928753
  Prefactor  = 1.10273
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.140     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.089        47.129        .12662E-04   -1.4441    
   2  Index         2.4702        .52660        .15011E-03   -.53049    
   3  Normalizat    .92875        .22306        .10731E-04   -.95457    
   4  Prefactor     1.1027        .21231        .47774E-04   -.89379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43903e-11
Minuit parameter uncertainties:
  1  47.1724
  2  0.527913
  3  0.223284
  4  0.212471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360174': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5806.13957443
delta logL = 0.451050310595

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.009e+01  4.717e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.470e+00  5.279e-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.103e+00  2.125e-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:  9.288e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.47 +/- 0.53
Photon Flux (Free Index): 6.86e-08 +/- 4.61e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.40e-05

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/360174/cmap_HighResolution_512784001_513043201_4FGL_J2234.2-4156_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='2.06e-05', photon_flux_error='3.06e-08', dlogl='4.51e-01', energy_flux='3.03e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-28 15:01:54.689852', photon_index_error2='0.53', photon_index2='2.47', ts='3.86', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.40e-05', EG='0.96', time_epoch_completed='1632866514.69', return_code='0', job_id='360174', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='4.61e-08', ts2='4.78', photon_index='1.99' WHERE bin_id='1055' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 360174: <4FGL_J2234.2-4156_daily_bin1055> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1055 338.568 -41.9411 512784001 513043201 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 :                                   894.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             280.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1013 sec.
    Turnaround time :                            992 sec.

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

