/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 0 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin80
RA = 338.568, Dec = -41.9411
tmin = 260064001, tmax = 260323201
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='355735', job_status='RUN', time_executed='2021-09-28 14:30:51.962149', time_epoch_executed='1632864651.96' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355735/ft1_4FGL_J2234.2-4156_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355735/ft1_4FGL_J2234.2-4156_daily_bin80.fits outfile=/scratch/kocevski/355735/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin80.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.48
user 1.30
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/355735/ltcube_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.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/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits
.....................!
real 12.56
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/355735/ltcube_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.fits outfile=/scratch/kocevski/355735/expmap_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.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/355735/ltcube_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.fits
.....................!
real 190.15
user 185.39
sys 4.26

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/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits scfile=/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits outfile=/scratch/kocevski/355735/cmap_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits scfile=/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits outfile=/scratch/kocevski/355735/cmap_HighResolution_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/355735/ft2_4FGL_J2234.2-4156_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355735/Model_4FGL_J2234.2-4156_daily_bin80.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/355735/ft1_filtered_4FGL_J2234.2-4156_daily_bin80.fits.....................!
real 47.17
user 45.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.027       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51068E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16121E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    110.77       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.815       1.0000         .10000E-03   10000.    
    23 'norm      '    9.1711       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9095       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-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 '    2.3122       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92856       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99572       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=   5803.933     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     5273 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.026        43.404       -.55143E-06   -.11733E-04
   2  norm          6.3619        4.3136        .53124E-07   -.14598E-04
   3  Prefactor     .10006E-03    5.0981        .22304E-06** at limit **
   4  Prefactor     .10000E-03    6.1550        .46862E-06** at limit **
   5  Prefactor     69.241        43.675        .86639E-06   -.64719E-06
   6  Prefactor     .10000E-03    6.5494       -.79531E-06** at limit **
   7  Prefactor     110.76        87.341        .10486E-05    .71679E-05
   8  norm          .10000E-03    2.9055       -.12356E-07** at limit **
   9  Prefactor     .10000E-03    2.1843        .23979E-07** at limit **
  10  Prefactor     .10000E-03    2.3627       -.26415E-06** at limit **
  11  Prefactor     36.453        41.402        .24515E-06   -.57402E-05
  12  Prefactor     4.5638        5.8520        .21115E-06    .16282E-04
  13  Prefactor     42.193        21.563       -.51671E-08    .52686E-05
  14  Prefactor     .10000E-03    6.8867        .40236E-07** at limit **
  15  Prefactor     15.513        24.192       -.62176E-06    .16916E-06
  16  Prefactor     3.5408        10.152        .13447E-05    .13880E-03
  17  Prefactor     10.842        171.39       -.86820E-05   -.32487E-05
  18  Prefactor     3.8530        12.797        .24449E-06    .24921E-05
  19  Prefactor     3.1785        6.1549        .37030E-05   -.11572E-03
  20  Prefactor     .10000E-03    9.0726        .31227E-07** at limit **
  21  Prefactor     .10000E-03    50.545        .63500E-07** at limit **
  22  Prefactor     13.814        14.452       -.63569E-07    .19393E-05
  23  norm          9.1688        13.626       -.93535E-07   -.36077E-06
  24  norm          .10000E-03    2.2177       -.31145E-07** at limit **
  25  norm          .10000E-03    1.3085        .25699E-08** at limit **
  26  norm          6.9089        6.9595        .22450E-07    .29870E-05
  27  Prefactor     .10000E-03    5.1486       -.32283E-06** at limit **
  28  Prefactor     .10000E-03    7.5781       -.57123E-07** at limit **
  29  norm          .10000E-03    .92321       -.86075E-10** at limit **
  30  Prefactor     2.3105        10.266        .90800E-06    .12931E-04
  31  norm          .10000E-03    1.0564        .14387E-08** at limit **
  32  Normalizat    .92850        .19016       -.11208E-05   -.18088E-04
  33  Prefactor     .99591        .17055        .27047E-06   -.22998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0257
  norm       = 6.36193
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 69.2412
  Prefactor  = 0.0001
  Prefactor  = 110.764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4531
  Prefactor  = 4.56381
  Prefactor  = 42.1925
  Prefactor  = 0.0001
  Prefactor  = 15.5131
  Prefactor  = 3.54083
  Prefactor  = 10.842
  Prefactor  = 3.85304
  Prefactor  = 3.17848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8139
  norm       = 9.16883
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.90886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.31053
  norm       = 0.0001
  Normalizat = 0.928495
  Prefactor  = 0.99591
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.933     FROM HESSE     STATUS=OK           705 CALLS     5978 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.026        43.256        .81719E-04   -1.4727    
   2  norm          6.3619        4.3082        .12052E-03   -1.5203    
   3  Prefactor     .10006E-03    12.031        .51358E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.035        .35322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     69.241        43.700        .48236E-04   -1.4042    
   6  Prefactor     .10000E-03    6.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     110.76        87.297        .19109E-03   -1.3599    
   8  norm          .10000E-03    2.9115        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1888        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4234        .22867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.453        41.385        .66371E-04   -1.4500    
  12  Prefactor     4.5638        5.8380        .18843E-03   -1.5281    
  13  Prefactor     42.193        21.571        .61713E-04   -1.4408    
  14  Prefactor     .10000E-03    6.8905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.513        24.151        .10166E-03   -1.4920    
  16  Prefactor     3.5408        10.130        .21476E-03   -1.5332    
  17  Prefactor     10.842        170.40        .12185E-03   -1.5049    
  18  Prefactor     3.8530        12.876        .20553E-03   -1.5315    
  19  Prefactor     3.1785        6.1699        .11363E-02   -1.5351    
  20  Prefactor     .10000E-03    9.0728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.814        14.462        .10776E-03   -1.4964    
  23  norm          9.1688        13.620        .13234E-03   -1.5102    
  24  norm          .10000E-03    2.2188        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.3089        .85107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.9089        6.9622        .15263E-03   -1.5182    
  27  Prefactor     .10000E-03    5.2429        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.5812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .92480        .71483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.3105        10.181        .26981E-03   -1.5404    
  31  norm          .10000E-03    1.0568        .76470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .92850        .22119        .25485E-03   -.95466    
  33  Prefactor     .99591        .19871        .23540E-03   -.92866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03235e-10
Minuit parameter uncertainties:
  1  43.3127
  2  4.3084
  3  0.00174338
  4  0.00024342
  5  43.7198
  6  0.000111144
  7  87.3989
  8  9.14526e-07
  9  2.40816e-07
  10  2.44117e-05
  11  41.4179
  12  5.83875
  13  21.5751
  14  8.72477e-06
  15  24.166
  16  10.1348
  17  86.2571
  18  12.8853
  19  6.17116
  20  4.68319e-06
  21  1.45644e-05
  22  14.4661
  23  13.6242
  24  1.2513e-07
  25  1.24613e-07
  26  6.96302
  27  4.1483e-05
  28  1.01207e-07
  29  2.32808e-07
  30  9.70269
  31  1.75274e-07
  32  0.221409
  33  0.198851
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.645e+01  4.142e+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:  9.959e-01  1.989e-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.285e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/355735/likelihoodResults_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.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) = 5803.88133761
delta logL = 0.0511908519447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5803.88014745
delta logL = 0.0523810159602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2844       1.0000          .0000       10.000    
     3 'Normalizat'    .91688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0011       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=   5803.880     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.667        51.059        .76150E-04   -.36278E-04
   2  Index         2.2847        1.0735        .78129E-02   -.52051E-04
   3  Normalizat    .91680        .20962        .25633E-03   -.80196E-03
   4  Prefactor     1.0013        .19622        .23484E-03   -.11338E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6669
  Index      = 2.28471
  Normalizat = 0.916795
  Prefactor  = 1.00131
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.880     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.667        43.930        .30460E-05   -1.4655    
   2  Index         2.2847        .92354        .31252E-03   -.57408    
   3  Normalizat    .91680        .20820        .51266E-04   -.95872    
   4  Prefactor     1.0013        .19576        .46968E-04   -.92686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45015e-09
Minuit parameter uncertainties:
  1  43.9814
  2  0.931153
  3  0.208381
  4  0.195896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355735': 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) = 5803.88014597
delta logL = 0.0523824883676

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.767e+01  4.398e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.285e+00  9.312e-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.001e+00  1.959e-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.168e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.28 +/- 0.93
Photon Flux (Free Index): 3.01e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.34e-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/355735/cmap_HighResolution_260064001_260323201_4FGL_J2234.2-4156_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='1.17e-05', photon_flux_error='2.30e-08', dlogl='5.24e-02', energy_flux='1.43e-05', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-09-28 14:46:17.757356', photon_index_error2='0.93', photon_index2='2.28', ts='1.31', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='1.34e-05', EG='0.93', time_epoch_completed='1632865577.76', return_code='0', job_id='355735', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.42e-08', ts2='1.41', photon_index='1.99' WHERE bin_id='80' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 355735: <4FGL_J2234.2-4156_daily_bin80> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin80> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 14:30:41 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:30:42 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:30:42 2021
Terminated at Tue Sep 28 14:46:18 2021
Results reported at Tue Sep 28 14:46:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin80 338.568 -41.9411 260064001 260323201 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 :                                   925.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

