aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 147 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1772
RA = 338.568, Dec = -41.9411
tmin = 698630401, tmax = 698889601
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='653606', job_status='RUN', time_executed='2023-02-24 03:03:27.019581', time_epoch_executed='1677236607.02' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653606/ft1_4FGL_J2234.2-4156_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653606/ft1_4FGL_J2234.2-4156_daily_bin1772.fits outfile=/scratch/kocevski/653606/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1772.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=698630401.0 tmax=698889601.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.02
user 2.83
sys 0.18

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

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

Number of photons that the gtmktime cut: 36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/653606/ltcube_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.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/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits
.....................!
real 12.38
user 12.07
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/653606/ltcube_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits outfile=/scratch/kocevski/653606/expmap_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.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/653606/ltcube_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits
.....................!
real 192.18
user 187.32
sys 4.53

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/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits scfile=/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits outfile=/scratch/kocevski/653606/cmap_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.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.69
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits scfile=/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits outfile=/scratch/kocevski/653606/cmap_HighResolution_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653606/Model_4FGL_J2234.2-4156_daily_bin1772.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/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits....................................!
real 15.65
user 14.48
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits', '/scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits', expMap='/scratch/kocevski/653606/expmap_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits', expCube='/scratch/kocevski/653606/ltcube_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/653606/Model_4FGL_J2234.2-4156_daily_bin1772.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  0.000e+00  1.000e+06 ( 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/653606/ft1_filtered_4FGL_J2234.2-4156_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/653606/ft2_4FGL_J2234.2-4156_daily_bin1772.fits
Exposure map: /scratch/kocevski/653606/expmap_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits
Exposure cube: /scratch/kocevski/653606/ltcube_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/653606/Model_4FGL_J2234.2-4156_daily_bin1772.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) = 306.730609496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
     2 'norm      '    11.113       1.0000          .0000       .10000E+07
     3 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13600E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24980E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .47651E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .11158E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    9447.4       1.0000          .0000       .10000E+07
    10 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26780E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45042E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .52741E+06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .74707E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19595E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10060E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .61101E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    20 'norm      '    .16098E-08   1.0000          .0000       .10000E+07
    21 'norm      '    .13822E-07   1.0000          .0000       .10000E+07
    22 'norm      '    8.5488       1.0000          .0000       .10000E+07
    23 'norm      '    .32196E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    8.4616       1.0000          .0000       .10000E+07
    25 'Prefactor '    .26040E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .20706E-07   1.0000          .0000       .10000E+07
    27 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    28 'norm      '    .14988E-08   1.0000          .0000       .10000E+07
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .15847       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   306.7162     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     4797 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24623E-05    17.645       -.32622E-05** at limit **
   2  norm          11.113        9.7023        .18425E-06    .61692E-03
   3  Prefactor     .77716E-09    9.4747        .28231E-05** at limit **
   4  Prefactor      .0000        8.8445       -.10211E-05** at limit **
   5  Prefactor     .10181E-06    28.364       -.76413E-06** at limit **
   6  Prefactor     .10087E-05    19.396        .45991E-05** at limit **
   7  Prefactor     .89702E-04    57.554       -.45974E-05** at limit **
   8  norm          .20262E-07    16.767       -.20597E-05** at limit **
   9  Prefactor     9447.4        1.0000       -.22781E-11    .15659E-03
  10  Prefactor     .19751E-04    64.622       -.51527E-05** at limit **
  11  Prefactor     .93228        1.5705       -.22249E-06    .49167E-02
  12  Prefactor     .28752E-04    95.579        .34916E-05** at limit **
  13  Prefactor     .52741E+06    1.0000        .99361E-13   -.79090E-04
  14  Prefactor     .10000E+07    10.492        .89625E-06   -.19951E-01
  15  Prefactor     .34214E-03    97.258        .78411E-05** at limit **
  16  Prefactor     .11331E-03    94.718        .14348E-04** at limit **
  17  Prefactor     .25464E-03    115.04        .19512E-04** at limit **
  18  Prefactor     .59476        192.45       -.34152E-05    .79587E-01
  19  Prefactor     .22254E-06    10.919       -.99442E-06** at limit **
  20  norm          .30431E-06    18.173        .28827E-05** at limit **
  21  norm          .38858E-09    13.959        .25922E-05** at limit **
  22  norm          8.5491        14.941        .26497E-05    .13969E-03
  23  norm           .0000        8.2915        .36016E-06** at limit **
  24  Prefactor     8.4618        10.748        .97260E-07    .14671E-03
  25  Prefactor     .42378E-03    197.20        .18532E-04** at limit **
  26  norm           .0000        4.6919       -.17903E-06** at limit **
  27  Prefactor     .16098E-08    9.0080       -.21596E-05** at limit **
  28  norm           .0000        3.7237       -.23637E-06** at limit **
  29  Normalizat    .10000E-01    .52778E-01    .31762E-04** at limit **
  30  Prefactor     .15847        .13709        .14782E-04    .21494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46225e-06
  norm       = 11.1127
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 1.01807e-07
  Prefactor  = 1.00875e-06
  Prefactor  = 8.9702e-05
  norm       = 2.02616e-08
  Prefactor  = 9447.42
  Prefactor  = 1.97515e-05
  Prefactor  = 0.932278
  Prefactor  = 2.87515e-05
  Prefactor  = 527409
  Prefactor  = 999999
  Prefactor  = 0.000342142
  Prefactor  = 0.00011331
  Prefactor  = 0.00025464
  Prefactor  = 0.594761
  Prefactor  = 2.22544e-07
  norm       = 3.04312e-07
  norm       = 3.88578e-10
  norm       = 8.5491
  norm       = 0
  Prefactor  = 8.4618
  Prefactor  = 0.000423785
  norm       = 0
  Prefactor  = 1.60982e-09
  norm       = 0
  Normalizat = 0.01
  Prefactor  = 0.158466
 **********
 **   18 **HESSE 
 **********

 FCN=   306.7162     FROM HESSE     STATUS=OK           624 CALLS     5421 TOTAL
                     EDM=   .18E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24623E-05    21.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.113        9.7132        .30029E-03   -1.5641    
   3  Prefactor     .77716E-09    9.4846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        8.8451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10181E-06    28.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10087E-05    19.968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .89702E-04    116.33        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20262E-07    16.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9447.4        9846.7        .10337E-04   -1.3761    
  10  Prefactor     .19751E-04    126.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93228        95019.        .42118E-03   -1.5689    
  12  Prefactor     .28752E-04    97.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .52741E+06    .40176E+06    .20030E-04    .54845E-01
  14  Prefactor     .10000E+07    23148.        .42118E-03    1.5689    
  15  Prefactor     .34214E-03    182.06        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11331E-03    213.52        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25464E-03    288.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59476        4837.2        .42118E-03   -1.5693    
  19  Prefactor     .22254E-06    23.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .30431E-06    24.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38858E-09    14.000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.5491        15.106        .34261E-03   -1.5649    
  23  norm           .0000        8.2904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.4618        10.754        .34438E-03   -1.5650    
  25  Prefactor     .42378E-03    326.71        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm           .0000        4.6813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16098E-08    9.0164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        3.7229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .52810E-01    .56356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .15847        .13995        .34633E-01   -1.3184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000175394
Minuit parameter uncertainties:
  1  0.0144973
  2  9.71317
  3  0.000169415
  4  2.08492e-05
  5  0.00340332
  6  0.00897623
  7  0.204311
  8  0.00116672
  9  9863.76
  10  0.0998163
  11  605.116
  12  0.105928
  13  466915
  14  284.349
  15  0.499175
  16  0.311102
  17  0.542144
  18  107.361
  19  0.00457141
  20  0.00546343
  21  0.000146073
  22  15.1065
  23  2.54788e-05
  24  10.754
  25  0.744227
  26  5.24918e-06
  27  0.000242428
  28  6.73504e-06
  29  4.3764e-07
  30  0.140248
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.323e-01  6.051e+02  0.000e+00  1.000e+06 ( 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.585e-01  1.402e-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.000e-02  4.376e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.61e-04 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e+01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653606/likelihoodResults_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 306.716220482
delta logL = -1.31103661261e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 306.716215747
delta logL = 4.73376650234e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25798E-02   1.0000          .0000       .10000E+07
     2 'Index     '    1.9785       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15847       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=   306.7162     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      251 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43643E-05    66668.        .84235E-04** at limit **
   2  Index         1.9637        5.9731        .50000       -.15632E-09
   3  Normalizat    .10000E-01    .51733E-01    .12442E-02** at limit **
   4  Prefactor     .15847        .13489        .18670E-03   -.99330E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36429e-06
  Index      = 1.96368
  Normalizat = 0.01
  Prefactor  = 0.158466
 **********
 **   18 **HESSE 
 **********

 FCN=   306.7162     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43643E-05    66433.        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9637        5.9735        .50000       -.65261    
   3  Normalizat    .10000E-01    .51733E-01    .24885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15847        .13489        .74681E-05   -1.3184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41708e-11
Minuit parameter uncertainties:
  1  1.0892
  2  3.97259
  3  3.34124e-08
  4  0.135153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653606': 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) = 306.716215734
delta logL = 4.74723810839e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.364e-06  1.089e+00  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.964e+00  3.973e+00  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.585e-01  1.352e-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.000e-02  3.341e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/653606/cmap_HighResolution_698630401_698889601_4FGL_J2234.2-4156_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e+01', job_status='DONE', photon_flux_upper_limit='1.61e-04', time_completed='2023-02-24 03:09:25.755275', job_id='653606', GAL2='0.16', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677236965.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.16', dlogl='4.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1772' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 03:09:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 653606: <4FGL_J2234.2-4156_daily_bin1772> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 24 03:00:29 2023
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 03:00:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 03:00:30 2023
Terminated at Fri Feb 24 03:09:26 2023
Results reported at Fri Feb 24 03:09:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1772 338.568 -41.9411 698630401 698889601 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 :                                   361.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            537 sec.

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

