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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1126
RA = 338.568, Dec = -41.9411
tmin = 531187201, tmax = 531446401
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='360290', job_status='RUN', time_executed='2021-09-28 14:45:44.651463', time_epoch_executed='1632865544.65' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360290/ft1_4FGL_J2234.2-4156_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360290/ft1_4FGL_J2234.2-4156_daily_bin1126.fits outfile=/scratch/kocevski/360290/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1126.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=531187201.0 tmax=531446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.00
user 3.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.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/360290/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.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.55
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/360290/ltcube_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.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/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits
.....................!
real 12.79
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/360290/ltcube_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.fits outfile=/scratch/kocevski/360290/expmap_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.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/360290/ltcube_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.fits
.....................!
real 192.12
user 186.28
sys 5.32

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/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits outfile=/scratch/kocevski/360290/cmap_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits outfile=/scratch/kocevski/360290/cmap_HighResolution_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.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/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/360290/ft2_4FGL_J2234.2-4156_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360290/Model_4FGL_J2234.2-4156_daily_bin1126.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/360290/ft1_filtered_4FGL_J2234.2-4156_daily_bin1126.fits.....................!
real 44.13
user 42.77
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
     2 'norm      '    17.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4294       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.494       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2349       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.510       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .31971       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4355       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4061       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.4795       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86109       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=   5308.658     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     3927 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.994        44.800        .13729E-05   -.13696E-04
   2  norm          17.370        6.7063       -.81087E-07   -.97346E-04
   3  Prefactor     25.880        11.786       -.17116E-07   -.98935E-04
   4  Prefactor     .10000E-03    8.3588        .11041E-05** at limit **
   5  Prefactor     .10000E-03    215.25        .68520E-05** at limit **
   6  Prefactor     6.4294        7.3630        .54399E-06   -.13386E-03
   7  Prefactor     .10000E-03    34.945       -.10181E-05** at limit **
   8  norm          .10000E-03    4.3370        .19835E-07** at limit **
   9  Prefactor     .10000E-03    6.6845       -.25299E-06** at limit **
  10  Prefactor     .10000E-03    1.1661        .15949E-07** at limit **
  11  Prefactor     .10000E-03    16.549       -.19538E-05** at limit **
  12  Prefactor     4.7510        6.1157        .17877E-05   -.53878E-05
  13  Prefactor     37.572        28.943        .38739E-06    .12372E-04
  14  Prefactor     21.494        20.956        .19615E-06    .90464E-05
  15  Prefactor     .10000E-03    6.5986        .23833E-06** at limit **
  16  Prefactor     4.6972        7.7671        .15359E-05   -.38393E-05
  17  Prefactor     .10000E-03    56.601        .26596E-05** at limit **
  18  Prefactor     .10000E-03    11.168        .10342E-06** at limit **
  19  Prefactor     8.2362        9.0993        .20944E-06    .11203E-04
  20  Prefactor     27.510        39.818       -.46839E-06   -.37352E-05
  21  Prefactor     .10000E-03    111.95       -.59507E-05** at limit **
  22  Prefactor     .10000E-03    4.0344        .16665E-08** at limit **
  23  norm          .10000E-03    8.6420       -.13077E-05** at limit **
  24  norm          .32368        4.4686       -.14142E-06   -.27238E-04
  25  norm          3.4354        4.3246        .23251E-07   -.11163E-04
  26  norm          5.4065        9.1571        .18020E-06    .17752E-05
  27  Prefactor     .10000E-03    2.7322       -.72189E-08** at limit **
  28  Prefactor     .10000E-03    17.595        .19598E-05** at limit **
  29  norm          .10000E-03    1.6698       -.40244E-07** at limit **
  30  Prefactor     .10000E-03    11.253        .16850E-06** at limit **
  31  norm          3.4805        4.9333        .29669E-06   -.11932E-04
  32  Normalizat    1.0833        .20105       -.10217E-05   -.77889E-04
  33  Prefactor     .86128        .18407       -.24620E-06   -.10280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9943
  norm       = 17.3703
  Prefactor  = 25.88
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42935
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75103
  Prefactor  = 37.5723
  Prefactor  = 21.4939
  Prefactor  = 0.0001
  Prefactor  = 4.69715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23617
  Prefactor  = 27.5099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.323677
  norm       = 3.43543
  norm       = 5.40645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.48046
  Normalizat = 1.08332
  Prefactor  = 0.861276
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.658     FROM HESSE     STATUS=OK           695 CALLS     4622 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.994        44.738        .94377E-04   -1.4859    
   2  norm          17.370        6.7044        .96101E-04   -1.4874    
   3  Prefactor     25.880        11.785        .78746E-04   -1.4690    
   4  Prefactor     .10000E-03    8.4557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    220.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4294        7.3575        .79143E-03   -1.5201    
   7  Prefactor     .10000E-03    34.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.3786        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1709        .76820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7510        6.1141        .92302E-03   -1.5272    
  13  Prefactor     37.572        28.978        .65387E-04   -1.4481    
  14  Prefactor     21.494        20.964        .86395E-04   -1.4780    
  15  Prefactor     .10000E-03    6.6040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6972        7.7560        .92835E-03   -1.5274    
  17  Prefactor     .10000E-03    56.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2362        9.1034        .13971E-03   -1.5134    
  20  Prefactor     27.510        39.829        .76381E-04   -1.4658    
  21  Prefactor     .10000E-03    112.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0360        .14293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.6778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .32368        12.618        .30062E-02   -1.5594    
  25  norm          3.4354        4.3196        .16553E-03   -1.5337    
  26  norm          5.4065        9.1499        .17283E-03   -1.5243    
  27  Prefactor     .10000E-03    2.7430        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.6741        .91899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.4805        4.9197        .18667E-03   -1.5335    
  32  Normalizat    1.0833        .23105        .24367E-03   -.90289    
  33  Prefactor     .86128        .21181        .25435E-03   -.97508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89892e-08
Minuit parameter uncertainties:
  1  44.8216
  2  6.70466
  3  11.7863
  4  5.64536e-06
  5  0.000552787
  6  7.35852
  7  6.7355e-06
  8  7.20551e-07
  9  4.57403e-06
  10  3.29976e-07
  11  1.10459e-05
  12  6.11487
  13  28.9886
  14  20.9709
  15  9.77987e-07
  16  7.7577
  17  2.71641e-05
  18  5.80631e-06
  19  9.10494
  20  39.8677
  21  8.00337e-06
  22  2.87325e-07
  23  1.05071e-07
  24  4.04213
  25  4.32002
  26  9.15228
  27  3.90103e-07
  28  7.89468e-06
  29  1.50555e-06
  30  2.8939e-06
  31  4.92027
  32  0.23127
  33  0.21201
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.105e-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.613e-01  2.120e-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.083e+00  2.313e-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: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360290/likelihoodResults_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.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) = 5308.65859638
delta logL = -0.000286955129013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5308.6583103
delta logL = -8.75100340636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2610       1.0000          .0000       10.000    
     3 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86129       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=   5308.658     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    68.166        .18142E-02** at limit **
   2  Index         2.2151        5.6949        .50000        .15193E-04
   3  Normalizat    1.0833        .10614E-01    .24367E-03   -.62283E-03
   4  Prefactor     .86128        .10045E-01    .25435E-03   -.34508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100865
  Index      = 2.21514
  Normalizat = 1.08331
  Prefactor  = 0.861279
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.658     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10087E-03    311.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2151        6.3743        .50000       -.59074    
   3  Normalizat    1.0833        .23212E-01    .48733E-04   -.90289    
   4  Prefactor     .86128        .21968E-01    .50870E-04   -.97508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.19892e-09
Minuit parameter uncertainties:
  1  0.0329903
  2  349.758
  3  0.0232124
  4  0.0219679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360290': 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) = 5308.65831008
delta logL = -6.60233126837e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.009e-04  3.299e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.215e+00  3.498e+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.613e-01  2.197e-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:  1.083e+00  2.321e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/360290/cmap_HighResolution_531187201_531446401_4FGL_J2234.2-4156_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-28 14:59:08.495965', job_id='360290', GAL2='0.86', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632866348.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-6.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1126' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 360290: <4FGL_J2234.2-4156_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1126 338.568 -41.9411 531187201 531446401 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

