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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1662
RA = 338.568, Dec = -41.9411
tmin = 670118401, tmax = 670377601
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='124955', job_status='RUN', time_executed='2022-03-31 00:36:44.692346', time_epoch_executed='1648712204.69' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124955/ft1_4FGL_J2234.2-4156_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124955/ft1_4FGL_J2234.2-4156_daily_bin1662.fits outfile=/scratch/kocevski/124955/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1662.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=670118401.0 tmax=670377601.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.43
user 3.21
sys 0.20

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

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

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124955/ft1_filtered_4FGL_J2234.2-4156_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124955/ltcube_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.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/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits
.....................!
real 12.00
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124955/ft1_filtered_4FGL_J2234.2-4156_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124955/ltcube_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.fits outfile=/scratch/kocevski/124955/expmap_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.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/124955/ltcube_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.fits
.....................!
real 191.44
user 185.85
sys 5.19

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/124955/ft1_filtered_4FGL_J2234.2-4156_daily_bin1662.fits scfile=/scratch/kocevski/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits outfile=/scratch/kocevski/124955/cmap_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124955/ft1_filtered_4FGL_J2234.2-4156_daily_bin1662.fits scfile=/scratch/kocevski/124955/ft2_4FGL_J2234.2-4156_daily_bin1662.fits outfile=/scratch/kocevski/124955/cmap_HighResolution_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.434       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54362E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97167E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .66024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12224E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.104       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10281E-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      '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.489       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.595       1.0000         .10000E-03   10000.    
    29 'norm      '    .48203       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.2988       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2344       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80499       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=   5760.385     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     5305 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.439        41.186       -.76282E-06    .94110E-07
   2  norm          8.2120        5.6091       -.13103E-06   -.20895E-05
   3  Prefactor     .10000E-03    5.7151       -.10734E-06** at limit **
   4  Prefactor     .10000E-03    4.5489       -.12805E-06** at limit **
   5  Prefactor     .10072E-03    32.308        .26805E-05** at limit **
   6  Prefactor     .34187        9.3178       -.78114E-06   -.73637E-04
   7  Prefactor     .10000E-03    1545.6        .32533E-05** at limit **
   8  norm          .66373        11.695       -.11961E-05    .16822E-03
   9  Prefactor     .10000E-03    4.6351       -.36023E-06** at limit **
  10  Prefactor     .10000E-03    1.2176        .45557E-06** at limit **
  11  Prefactor     86.235        54.375       -.58830E-06   -.12846E-05
  12  Prefactor     1.8156        4.6784        .78041E-06    .23573E-03
  13  Prefactor     1.7490        94.595       -.86629E-06   -.78560E-05
  14  Prefactor     .10000E-03    42.765        .29887E-05** at limit **
  15  Prefactor     .10078E-03    35.831       -.47100E-05** at limit **
  16  Prefactor     18.612        14.696        .75486E-06    .71597E-03
  17  Prefactor     .10000E-03    38.958       -.49482E-07** at limit **
  18  Prefactor     29.797        16.551       -.57486E-06    .20400E-04
  19  Prefactor     .10000E-03    2.0761        .27196E-06** at limit **
  20  Prefactor     16.105        24.455       -.20403E-06    .57284E-04
  21  Prefactor     .10000E-03    181.62       -.13013E-05** at limit **
  22  Prefactor     .10000E-03    11.634       -.90042E-07** at limit **
  23  norm          .10000E-03    2.7399       -.21106E-08** at limit **
  24  norm          .10000E-03    1.6331       -.23583E-08** at limit **
  25  norm          .10000E-03    3.9163       -.92909E-06** at limit **
  26  norm          11.486        8.1639       -.12913E-06   -.56648E-05
  27  Prefactor     .10000E-03    1.2782       -.60189E-08** at limit **
  28  Prefactor     16.585        22.010       -.59340E-06   -.18186E-04
  29  norm          .48515        4.6126        .15006E-05    .24870E-03
  30  Prefactor     .10000E-03    3.4439       -.96498E-08** at limit **
  31  norm          3.2978        3.9601       -.50739E-06   -.64699E-04
  32  Normalizat    1.2352        .19454        .13834E-05    .24507E-03
  33  Prefactor     .80426        .17538        .51455E-06    .18796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.439
  norm       = 8.21199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100721
  Prefactor  = 0.341867
  Prefactor  = 0.000100001
  norm       = 0.663728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.2353
  Prefactor  = 1.81555
  Prefactor  = 1.749
  Prefactor  = 0.0001
  Prefactor  = 0.000100782
  Prefactor  = 18.6116
  Prefactor  = 0.0001
  Prefactor  = 29.797
  Prefactor  = 0.0001
  Prefactor  = 16.1051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.4864
  Prefactor  = 0.0001
  Prefactor  = 16.5853
  norm       = 0.485147
  Prefactor  = 0.0001
  norm       = 3.29777
  Normalizat = 1.2352
  Prefactor  = 0.804262
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.385     FROM HESSE     STATUS=OK           699 CALLS     6004 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.439        41.158        .70358E-04   -1.4568    
   2  norm          8.2120        5.6158        .13676E-03   -1.5135    
   3  Prefactor     .10000E-03    5.7944        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6436        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10072E-03    160.36        .71511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .34187        58.557        .40499E-02   -1.5591    
   7  Prefactor     .10000E-03    1551.0        .36286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .66373        11.717        .23817E-02   -1.5545    
   9  Prefactor     .10000E-03    4.6775        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2093        .81211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.235        54.519        .21624E-03   -1.3848    
  12  Prefactor     1.8156        4.6356        .24981E-03   -1.5438    
  13  Prefactor     1.7490        95.306        .31400E-03   -1.5443    
  14  Prefactor     .10000E-03    42.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10078E-03    264.82        .72706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.612        13.857        .92858E-04   -1.4845    
  17  Prefactor     .10000E-03    38.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.797        16.593        .73377E-04   -1.4616    
  19  Prefactor     .10000E-03    2.0769        .10664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.105        24.416        .99804E-04   -1.4905    
  21  Prefactor     .10000E-03    183.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7401        .12270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6332        .94725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.0730        .29331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.486        8.1674        .11819E-03   -1.5030    
  27  Prefactor     .10000E-03    1.2795        .83802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.585        21.831        .98317E-04   -1.4893    
  29  norm          .48515        4.7011        .14430E-02   -1.5569    
  30  Prefactor     .10000E-03    3.4494        .13756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.2978        3.9341        .15489E-03   -1.5345    
  32  Normalizat    1.2352        .23056        .23181E-03   -.85522    
  33  Prefactor     .80426        .20774        .26376E-03   -.99571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10571e-08
Minuit parameter uncertainties:
  1  41.194
  2  5.61621
  3  1.1637e-05
  4  6.22037e-06
  5  0.0215629
  6  8.95607
  7  0.00222622
  8  5.57825
  9  7.06717e-06
  10  4.24144e-06
  11  54.5506
  12  4.63647
  13  25.8645
  14  0.000150888
  15  0.0289056
  16  13.8593
  17  1.00595e-05
  18  16.5954
  19  3.47059e-06
  20  24.4306
  21  0.000351114
  22  1.72496e-05
  23  6.50176e-07
  24  2.11357e-07
  25  3.54541e-05
  26  8.16817
  27  6.9911e-07
  28  21.8411
  29  3.02042
  30  1.9955e-06
  31  3.93445
  32  0.230752
  33  0.207939
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.624e+01  5.455e+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:  8.043e-01  2.079e-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.235e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.87
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.80e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 2.14e-05

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) = 5760.3851669
delta logL = 4.14080222981e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.38514262
delta logL = 6.56860684103e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.827       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9990       1.0000          .0000       10.000    
     3 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80443       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=   5760.385     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.807        69.357        .21682E-03    .75348E-04
   2  Index         1.9987        .58835        .64537E-02    .35251E-04
   3  Normalizat    1.2347        .22069        .23185E-03    .15277E-03
   4  Prefactor     .80450        .20338        .26372E-03    .12088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.807
  Index      = 1.99866
  Normalizat = 1.23467
  Prefactor  = 0.8045
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.385     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.807        65.773        .86728E-05   -1.3853    
   2  Index         1.9987        .55704        .25815E-03   -.64384    
   3  Normalizat    1.2347        .22025        .46370E-04   -.85538    
   4  Prefactor     .80450        .20336        .10549E-04   -.99563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15235e-11
Minuit parameter uncertainties:
  1  65.8289
  2  0.558855
  3  0.220418
  4  0.203553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124955': 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) = 5760.38514193
delta logL = 6.63712044116e-05

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.581e+01  6.583e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.999e+00  5.589e-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.045e-01  2.036e-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.235e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.86
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.00 +/- 0.56
Photon Flux (Free Index): 4.84e-08 +/- 4.83e-08
Energy Flux (Free Index): 3.36e-05 +/- 2.92e-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/124955/cmap_HighResolution_670118401_670377601_4FGL_J2234.2-4156_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.80e-08', energy_flux2='3.36e-05', photon_flux_error='3.03e-08', dlogl='6.64e-05', energy_flux='3.38e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2022-03-31 00:50:34.097678', photon_index_error2='0.56', photon_index2='2.00', ts='10.87', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.92e-05', EG='1.24', time_epoch_completed='1648713034.1', return_code='0', job_id='124955', GAL2='0.80', EG2='1.23', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='4.83e-08', ts2='10.86', photon_index='1.99' WHERE bin_id='1662' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:50:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 124955: <4FGL_J2234.2-4156_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:28 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:30 2022
Terminated at Thu Mar 31 00:50:34 2022
Results reported at Thu Mar 31 00:50:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1662 338.568 -41.9411 670118401 670377601 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 :                                   830.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

