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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1097
RA = 338.568, Dec = -41.9411
tmin = 523670401, tmax = 523929601
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='360242', job_status='RUN', time_executed='2021-09-28 14:46:33.499412', time_epoch_executed='1632865593.5' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360242/ft1_4FGL_J2234.2-4156_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360242/ft1_4FGL_J2234.2-4156_daily_bin1097.fits outfile=/scratch/kocevski/360242/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1097.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=523670401.0 tmax=523929601.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.56
user 3.31
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/360242/ltcube_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.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/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/360242/ltcube_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.fits outfile=/scratch/kocevski/360242/expmap_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.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/360242/ltcube_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.fits
.....................!
real 191.97
user 187.09
sys 4.56

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/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits scfile=/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits outfile=/scratch/kocevski/360242/cmap_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits scfile=/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits outfile=/scratch/kocevski/360242/cmap_HighResolution_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/360242/ft2_4FGL_J2234.2-4156_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360242/Model_4FGL_J2234.2-4156_daily_bin1097.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/360242/ft1_filtered_4FGL_J2234.2-4156_daily_bin1097.fits.....................!
real 40.55
user 39.25
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37348E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.463       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.770       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.9206       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8785       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.0086       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.3933       1.0000         .10000E-03   10000.    
    31 'norm      '    4.5017       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0444       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=   4982.667     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4594 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.317        .27528E-06** at limit **
   2  norm          10.995        5.9705        .30552E-07    .15365E-04
   3  Prefactor     .10000E-03    5.5874       -.43555E-07** at limit **
   4  Prefactor     .10000E-03    3.5078       -.52618E-07** at limit **
   5  Prefactor     .10000E-03    219.51        .81594E-06** at limit **
   6  Prefactor     .10000E-03    3.8286        .25336E-06** at limit **
   7  Prefactor     70.503        96.622       -.35498E-05    .22860E-05
   8  norm          .10000E-03    6.5015        .72656E-09** at limit **
   9  Prefactor     10.596        11.692        .91888E-07   -.27892E-05
  10  Prefactor     12.224        5.3908        .81735E-07    .62932E-05
  11  Prefactor     24.242        29.016       -.55553E-07   -.49754E-06
  12  Prefactor     4.1394        5.6366        .81834E-06    .35275E-04
  13  Prefactor     .10000E-03    11.691        .36018E-06** at limit **
  14  Prefactor     .10000E-03    18.695        .87034E-06** at limit **
  15  Prefactor     17.256        32.954        .16119E-07    .53872E-05
  16  Prefactor     .10000E-03    5.5577       -.93449E-07** at limit **
  17  Prefactor     .10000E-03    138.43       -.81655E-06** at limit **
  18  Prefactor     2.2342        18.526        .63748E-05    .31099E-04
  19  Prefactor     .10000E-03    11.679       -.41517E-07** at limit **
  20  Prefactor     .10000E-03    36.258       -.36551E-06** at limit **
  21  Prefactor     18.854        69.132       -.12121E-04    .51857E-05
  22  Prefactor     .10000E-03    10.151       -.58698E-06** at limit **
  23  norm          8.9207        17.366       -.80259E-07    .44595E-05
  24  norm          3.8788        3.9033        .78522E-07   -.51365E-05
  25  norm          .10000E-03    1.8507       -.15173E-07** at limit **
  26  norm          .10000E-03    6.5979       -.26651E-07** at limit **
  27  Prefactor     .10000E-03    3.7685       -.12177E-06** at limit **
  28  Prefactor     .10000E-03    15.542       -.12996E-05** at limit **
  29  norm          3.0085        3.3425        .13893E-07    .27757E-04
  30  Prefactor     8.3945        12.986        .14364E-06    .93936E-05
  31  norm          4.5018        3.9962        .16861E-06    .12356E-04
  32  Normalizat    1.0806        .23332       -.22513E-05    .36569E-04
  33  Prefactor     1.0444        .20739        .22672E-05   -.35997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.9954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.5026
  norm       = 0.0001
  Prefactor  = 10.5956
  Prefactor  = 12.2237
  Prefactor  = 24.2418
  Prefactor  = 4.13942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8541
  Prefactor  = 0.0001
  norm       = 8.92074
  norm       = 3.87882
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00853
  Prefactor  = 8.39448
  norm       = 4.50178
  Normalizat = 1.08055
  Prefactor  = 1.04444
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.667     FROM HESSE     STATUS=OK           689 CALLS     5283 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.995        5.9824        .60411E-03   -1.5045    
   3  Prefactor     .10000E-03    5.6248        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5177        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    227.46        .42589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8398        .13485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.503        96.576        .47822E-04   -1.4027    
   8  norm          .10000E-03    6.6292        .17576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.596        11.759        .12310E-03   -1.5057    
  10  Prefactor     12.224        5.4001        .51780E-03   -1.5009    
  11  Prefactor     24.242        29.016        .81362E-04   -1.4723    
  12  Prefactor     4.1394        5.6250        .91805E-03   -1.5301    
  13  Prefactor     .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.256        33.138        .96438E-04   -1.4877    
  16  Prefactor     .10000E-03    5.5675        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    138.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2342        18.595        .13760E-02   -1.5409    
  19  Prefactor     .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.854        69.477        .92446E-04   -1.4839    
  22  Prefactor     .10000E-03    10.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9207        17.360        .13420E-03   -1.5111    
  24  norm          3.8788        3.9109        .13664E-03   -1.5314    
  25  norm          .10000E-03    1.8512        .93770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.6308        .17708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7922        .13366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.0085        3.3377        .13132E-03   -1.5361    
  30  Prefactor     8.3945        12.975        .13837E-03   -1.5128    
  31  norm          4.5018        3.9927        .12898E-03   -1.5284    
  32  Normalizat    1.0806        .27393        .26011E-03   -.90379    
  33  Prefactor     1.0444        .24395        .25079E-03   -.91262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51632e-11
Minuit parameter uncertainties:
  1  4.13594e-06
  2  5.98271
  3  1.00252e-05
  4  3.52835e-06
  5  0.000316814
  6  1.24929e-05
  7  96.7914
  8  3.09526e-06
  9  11.7612
  10  5.4003
  11  29.0324
  12  5.62575
  13  2.33238e-06
  14  1.36041e-05
  15  33.1732
  16  2.37253e-07
  17  4.14245e-05
  18  12.896
  19  1.47958e-05
  20  1.90262e-05
  21  69.7777
  22  1.74816e-06
  23  17.3703
  24  3.91116
  25  1.9219e-07
  26  1.59381e-06
  27  1.26535e-06
  28  6.69812e-06
  29  3.33789
  30  12.9797
  31  3.99291
  32  0.274287
  33  0.244206
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.424e+01  2.903e+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.044e+00  2.442e-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.081e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 9.51e-06 +/- 1.14e-05

TS (Fixed Index): 1.74
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360242/likelihoodResults_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.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) = 4982.53583601
delta logL = 0.13145211059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4982.53016741
delta logL = 0.137120708396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.819       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6073       1.0000          .0000       10.000    
     3 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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=   4982.530     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      300 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.827        42.476        .67913E-04    .53234E-05
   2  Index         1.6072        .70781        .10743E-01    .13158E-03
   3  Normalizat    1.0847        .24778        .25968E-03   -.56039E-05
   4  Prefactor     1.0424        .23658        .25099E-03    .19930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8275
  Index      = 1.60716
  Normalizat = 1.08469
  Prefactor  = 1.04238
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.530     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.827        42.097        .13583E-04   -1.4527    
   2  Index         1.6072        .70187        .21486E-02   -.74581    
   3  Normalizat    1.0847        .24804        .10387E-04   -.90245    
   4  Prefactor     1.0424        .23683        .10040E-04   -.91330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89207e-13
Minuit parameter uncertainties:
  1  42.1333
  2  0.70621
  3  0.248302
  4  0.237069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360242': 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) = 4982.53016721
delta logL = 0.137120906937

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.483e+01  4.213e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.607e+00  7.062e-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.042e+00  2.371e-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.085e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.61 +/- 0.71
Photon Flux (Free Index): 9.21e-09 +/- 1.33e-08
Energy Flux (Free Index): 2.04e-05 +/- 3.86e-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/360242/cmap_HighResolution_523670401_523929601_4FGL_J2234.2-4156_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='2.04e-05', photon_flux_error='1.62e-08', dlogl='1.37e-01', energy_flux='9.51e-06', photon_flux2='9.21e-09', job_status='DONE', time_completed='2021-09-28 14:59:49.890876', photon_index_error2='0.71', photon_index2='1.61', ts='1.74', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.74e-08', energy_flux_error2='3.86e-05', EG='1.08', time_epoch_completed='1632866389.89', return_code='0', job_id='360242', GAL2='1.04', EG2='1.08', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='1.33e-08', ts2='2.02', photon_index='1.99' WHERE bin_id='1097' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 360242: <4FGL_J2234.2-4156_daily_bin1097> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1097> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:29 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:31 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:31 2021
Terminated at Tue Sep 28 14:59:53 2021
Results reported at Tue Sep 28 14:59:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1097 338.568 -41.9411 523670401 523929601 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 :                                   796.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            864 sec.

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

