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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1600
RA = 338.568, Dec = -41.9411
tmin = 654048001, tmax = 654307201
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='363114', job_status='RUN', time_executed='2021-09-28 14:55:55.982822', time_epoch_executed='1632866155.98' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363114/ft1_4FGL_J2234.2-4156_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363114/ft1_4FGL_J2234.2-4156_daily_bin1600.fits outfile=/scratch/kocevski/363114/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1600.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=654048001.0 tmax=654307201.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.64
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363114/ft1_filtered_4FGL_J2234.2-4156_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/363114/ltcube_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.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/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits
.....................!
real 12.01
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363114/ft1_filtered_4FGL_J2234.2-4156_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/363114/ltcube_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.fits outfile=/scratch/kocevski/363114/expmap_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.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/363114/ltcube_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.fits
.....................!
real 191.01
user 186.08
sys 4.60

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/363114/ft1_filtered_4FGL_J2234.2-4156_daily_bin1600.fits scfile=/scratch/kocevski/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits outfile=/scratch/kocevski/363114/cmap_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363114/ft1_filtered_4FGL_J2234.2-4156_daily_bin1600.fits scfile=/scratch/kocevski/363114/ft2_4FGL_J2234.2-4156_daily_bin1600.fits outfile=/scratch/kocevski/363114/cmap_HighResolution_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12761E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.051       1.0000         .10000E-03   10000.    
     8 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13281E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.491       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51983E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.418       1.0000         .10000E-03   10000.    
    24 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7214       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1697       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.939       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .26068E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .29979E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.3619       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92505       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86139       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=   6461.184     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4573 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.194        .83869E-06** at limit **
   2  norm          3.9873        2.9691        .11143E-06    .11399E-04
   3  Prefactor     16.734        9.1944        .24666E-06    .10369E-04
   4  Prefactor     .10000E-03    3.6100        .76488E-07** at limit **
   5  Prefactor     15.585        31.614        .11477E-05    .67744E-04
   6  Prefactor     13.818        7.5314        .14305E-06   -.30656E-04
   7  Prefactor     12.005        76.598       -.28590E-05   -.11884E-03
   8  norm          .10000E-03    5.0881       -.84237E-07** at limit **
   9  Prefactor     12.223        7.6050        .10693E-05    .23717E-03
  10  Prefactor     4.1324        2.9013        .20002E-08   -.18089E-03
  11  Prefactor     .10000E-03    10.649        .44949E-08** at limit **
  12  Prefactor     .10000E-03    3.0927        .10608E-06** at limit **
  13  Prefactor     9.9423        10.145       -.10379E-06   -.26023E-04
  14  Prefactor     .10000E-03    5.9958       -.62247E-07** at limit **
  15  Prefactor     4.7392        19.736        .10562E-05   -.11477E-04
  16  Prefactor     .10000E-03    9.1313        .18778E-06** at limit **
  17  Prefactor     .10000E-03    26.297       -.63367E-06** at limit **
  18  Prefactor     16.780        11.776        .20314E-06    .70795E-05
  19  Prefactor     .93950        7.4509        .45301E-05    .11278E-03
  20  Prefactor     .10000E-03    14.452       -.31757E-07** at limit **
  21  Prefactor     46.449        44.870       -.96613E-06   -.25182E-03
  22  Prefactor     .10066E-03    13.336        .45239E-05** at limit **
  23  norm          23.426        13.726        .15497E-07   -.91949E-04
  24  norm          .10000E-03    2.8228        .11838E-07** at limit **
  25  norm          2.7195        2.7021       -.93933E-07   -.54306E-04
  26  norm          5.1687        6.5161        .26483E-05    .40938E-03
  27  Prefactor     12.948        7.2882        .49735E-08   -.37232E-03
  28  Prefactor     .10000E-03    44.450       -.11675E-06** at limit **
  29  norm          .10000E-03    1.2473       -.16229E-07** at limit **
  30  Prefactor     .10000E-03    9.5299       -.83596E-07** at limit **
  31  norm          3.3676        3.9168        .16194E-06   -.25256E-04
  32  Normalizat    .92489        .17468       -.11766E-05   -.41272E-03
  33  Prefactor     .86170        .15989       -.46289E-06   -.40104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.98731
  Prefactor  = 16.7344
  Prefactor  = 0.0001
  Prefactor  = 15.585
  Prefactor  = 13.8184
  Prefactor  = 12.0051
  norm       = 0.0001
  Prefactor  = 12.2227
  Prefactor  = 4.13237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9423
  Prefactor  = 0.0001
  Prefactor  = 4.73915
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.7797
  Prefactor  = 0.939499
  Prefactor  = 0.0001
  Prefactor  = 46.4491
  Prefactor  = 0.000100664
  norm       = 23.4257
  norm       = 0.0001
  norm       = 2.71955
  norm       = 5.16873
  Prefactor  = 12.9481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.36756
  Normalizat = 0.924893
  Prefactor  = 0.861703
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.184     FROM HESSE     STATUS=OK           691 CALLS     5264 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9873        2.9704        .11570E-03   -1.5309    
   3  Prefactor     16.734        9.1899        .97898E-04   -1.4890    
   4  Prefactor     .10000E-03    3.6482        .14904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.585        31.608        .10128E-03   -1.4918    
   6  Prefactor     13.818        7.5201        .10776E-03   -1.4964    
   7  Prefactor     12.005        76.681        .11540E-03   -1.5015    
   8  norm          .10000E-03    5.1436        .17704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.223        7.6445        .57283E-03   -1.5009    
  10  Prefactor     4.1324        2.8991        .10986E-03   -1.5301    
  11  Prefactor     .10000E-03    10.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2242        .27583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9423        10.146        .12708E-03   -1.5077    
  14  Prefactor     .10000E-03    6.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7392        19.678        .18470E-03   -1.5273    
  16  Prefactor     .10000E-03    9.2335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.780        11.804        .97822E-04   -1.4888    
  19  Prefactor     .93950        7.6569        .41838E-03   -1.5514    
  20  Prefactor     .10000E-03    14.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.449        44.923        .58805E-04   -1.4344    
  22  Prefactor     .10066E-03    55.339        .47153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.426        13.714        .82775E-04   -1.4740    
  24  norm          .10000E-03    2.8283        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7195        2.7136        .12855E-03   -1.5378    
  26  norm          5.1687        6.5660        .88405E-03   -1.5253    
  27  Prefactor     12.948        6.9515        .11136E-03   -1.4988    
  28  Prefactor     .10000E-03    45.041        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.2523        .87613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    45.988        .45783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.3676        3.9066        .16625E-03   -1.5341    
  32  Normalizat    .92489        .20638        .24198E-03   -.95591    
  33  Prefactor     .86170        .18951        .23862E-03   -.97492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28774e-08
Minuit parameter uncertainties:
  1  0.000321047
  2  2.97055
  3  9.19063
  4  4.92126e-06
  5  31.6415
  6  7.52057
  7  60.796
  8  2.21503e-06
  9  7.64512
  10  2.89919
  11  1.05742e-05
  12  6.43176e-06
  13  10.1479
  14  4.95182e-06
  15  19.3245
  16  1.76756e-07
  17  0.000339639
  18  11.8058
  19  5.36486
  20  3.11865e-05
  21  44.9556
  22  0.0121333
  23  13.716
  24  2.16501e-06
  25  2.71369
  26  6.56691
  27  6.95192
  28  3.43802e-05
  29  1.77707e-07
  30  7.26239e-05
  31  3.90693
  32  0.206553
  33  0.18965
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.057e-05  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.617e-01  1.896e-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.249e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/363114/likelihoodResults_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.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) = 6461.18410764
delta logL = -0.000444248379608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6461.18366406
delta logL = -6.69564542477e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9707       1.0000          .0000       10.000    
     3 'Normalizat'    .92482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86167       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=   6461.184     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10318E-03    4.0795        .18142E-01** at limit **
   2  Index         1.8608        5.3005        .50000        .12178E-04
   3  Normalizat    .92489        .23299E-02    .24198E-03   -.28189E-06
   4  Prefactor     .86170        .22376E-02    .23862E-03    .24775E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103178
  Index      = 1.86083
  Normalizat = 0.924893
  Prefactor  = 0.861704
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.184     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10318E-03    110.11        .27001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8608        5.9262        .50000       -.67877    
   3  Normalizat    .92489        .12235E-01    .96794E-05   -.95591    
   4  Prefactor     .86170        .11750E-01    .95447E-05   -.97492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79528e-08
Minuit parameter uncertainties:
  1  0.0374835
  2  541.653
  3  0.0122346
  4  0.0117498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363114': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6461.18366306
delta logL = 3.34804099111e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.032e-04  3.748e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.861e+00  5.417e+02  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.617e-01  1.175e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.249e-01  1.223e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/363114/cmap_HighResolution_654048001_654307201_4FGL_J2234.2-4156_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-03', job_status='DONE', photon_flux_upper_limit='3.21e-08', time_completed='2021-09-28 15:12:08.132363', job_id='363114', GAL2='0.86', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632867128.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1600' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 363114: <4FGL_J2234.2-4156_daily_bin1600> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1600> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:41 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:43 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:55:43 2021
Terminated at Tue Sep 28 15:12:08 2021
Results reported at Tue Sep 28 15:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1600 338.568 -41.9411 654048001 654307201 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 :                                   969.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

