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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1012
RA = 338.568, Dec = -41.9411
tmin = 501638401, tmax = 501897601
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='360103', job_status='RUN', time_executed='2021-09-28 14:46:00.910946', time_epoch_executed='1632865560.91' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360103/ft1_4FGL_J2234.2-4156_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360103/ft1_4FGL_J2234.2-4156_daily_bin1012.fits outfile=/scratch/kocevski/360103/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1012.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=501638401.0 tmax=501897601.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.54
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/360103/ltcube_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.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/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/360103/ltcube_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.fits outfile=/scratch/kocevski/360103/expmap_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.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/360103/ltcube_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.fits
.....................!
real 191.49
user 186.48
sys 4.63

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/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits scfile=/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits outfile=/scratch/kocevski/360103/cmap_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits scfile=/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits outfile=/scratch/kocevski/360103/cmap_HighResolution_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.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/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/360103/ft2_4FGL_J2234.2-4156_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360103/Model_4FGL_J2234.2-4156_daily_bin1012.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/360103/ft1_filtered_4FGL_J2234.2-4156_daily_bin1012.fits.....................!
real 47.60
user 46.26
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.070       1.0000         .10000E-03   10000.    
     2 'norm      '    12.063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.030       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1950       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.246       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7470       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16937E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.5787       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .11681E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91040       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80611       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=   6309.624     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4576 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.061        35.297        .11545E-05   -.19754E-04
   2  norm          12.064        5.5788       -.10551E-06   -.17527E-05
   3  Prefactor     10.492        8.7284        .65673E-06   -.38165E-04
   4  Prefactor     .10000E-03    12.791        .19902E-06** at limit **
   5  Prefactor     1.3156        129.67        .12925E-06   -.18777E-05
   6  Prefactor     4.2195        6.6031        .24654E-05   -.17187E-03
   7  Prefactor     .10000E-03    40.884       -.32370E-06** at limit **
   8  norm          .10000E-03    1.6416        .25732E-08** at limit **
   9  Prefactor     .10000E-03    2.2445        .33416E-07** at limit **
  10  Prefactor     .10000E-03    .77400        .67313E-07** at limit **
  11  Prefactor     31.040        30.277       -.55832E-06    .12713E-04
  12  Prefactor     .10000E-03    2.9234        .11613E-05** at limit **
  13  Prefactor     30.328        21.854       -.93006E-08   -.10735E-04
  14  Prefactor     3.5821        14.556        .42110E-05   -.77062E-05
  15  Prefactor     .10000E-03    8.9602       -.33911E-06** at limit **
  16  Prefactor     .10000E-03    11.237       -.10997E-05** at limit **
  17  Prefactor     1.8904        794.32        .83825E-05   -.17521E-04
  18  Prefactor     .10000E-03    2.6456        .16178E-07** at limit **
  19  Prefactor     .10000E-03    3.1932        .14554E-06** at limit **
  20  Prefactor     .10000E-03    20.843        .28651E-06** at limit **
  21  Prefactor     .10000E-03    13.954       -.63527E-06** at limit **
  22  Prefactor     .10000E-03    3.3990       -.19705E-07** at limit **
  23  norm          .10000E-03    3.0252       -.20464E-07** at limit **
  24  norm          6.1950        4.8909        .44479E-07   -.19738E-04
  25  norm          .10000E-03    1.3492       -.12145E-06** at limit **
  26  norm          14.246        8.8662        .89097E-07    .13876E-04
  27  Prefactor     3.7470        4.2059        .21703E-06   -.15533E-05
  28  Prefactor     .10001E-03    85.128       -.38663E-05** at limit **
  29  norm          7.5789        3.7403        .37330E-06    .44317E-03
  30  Prefactor     .10000E-03    8.9374       -.28004E-06** at limit **
  31  norm          .10000E-03    2.5955       -.17861E-05** at limit **
  32  Normalizat    .91034        .15231       -.50973E-06   -.10696E-03
  33  Prefactor     .80618        .14647       -.82973E-06   -.16512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0608
  norm       = 12.0642
  Prefactor  = 10.4923
  Prefactor  = 0.0001
  Prefactor  = 1.31561
  Prefactor  = 4.21952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0405
  Prefactor  = 0.0001
  Prefactor  = 30.3283
  Prefactor  = 3.58211
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.89039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.19495
  norm       = 0.0001
  norm       = 14.2459
  Prefactor  = 3.74696
  Prefactor  = 0.000100013
  norm       = 7.57887
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.910339
  Prefactor  = 0.806178
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.624     FROM HESSE     STATUS=OK           693 CALLS     5269 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.061        35.289        .99910E-04   -1.4906    
   2  norm          12.064        5.5798        .11137E-03   -1.5013    
   3  Prefactor     10.492        8.7217        .61851E-03   -1.5060    
   4  Prefactor     .10000E-03    13.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3156        131.32        .38081E-03   -1.5479    
   6  Prefactor     4.2195        6.8139        .98089E-03   -1.5297    
   7  Prefactor     .10000E-03    40.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6420        .99395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2529        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .77750        .68245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.040        30.274        .71929E-04   -1.4593    
  12  Prefactor     .10000E-03    5.9744        .25458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.328        21.866        .72748E-04   -1.4606    
  14  Prefactor     3.5821        14.902        .10675E-02   -1.5329    
  15  Prefactor     .10000E-03    8.9942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8904        800.37        .30062E-03   -1.5433    
  18  Prefactor     .10000E-03    2.6527        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2381        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4018        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0269        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1950        4.8912        .15228E-03   -1.5210    
  25  norm          .10000E-03    1.3516        .90141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.246        8.8691        .10612E-03   -1.4953    
  27  Prefactor     3.7470        4.2018        .16750E-03   -1.5321    
  28  Prefactor     .10001E-03    87.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.5789        3.7424        .10378E-03   -1.5157    
  30  Prefactor     .10000E-03    9.0032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.9686        .22258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91034        .17744        .22549E-03   -.96098    
  33  Prefactor     .80618        .17075        .23181E-03   -.99501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32576e-10
Minuit parameter uncertainties:
  1  35.3348
  2  5.58003
  3  8.72277
  4  3.99701e-05
  5  26.3471
  6  6.81515
  7  5.21926e-05
  8  2.41028e-07
  9  4.11111e-06
  10  2.93005e-06
  11  30.2891
  12  4.09697e-05
  13  21.8717
  14  14.6184
  15  4.50501e-05
  16  0.000321577
  17  78.8777
  18  3.73923e-06
  19  7.96687e-06
  20  7.06901e-05
  21  3.87984e-05
  22  1.59869e-06
  23  3.11152e-07
  24  4.89152
  25  7.48814e-06
  26  8.86989
  27  4.20215
  28  0.00217806
  29  3.7425
  30  3.0176e-05
  31  9.59483e-05
  32  0.177552
  33  0.170864
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.104e+01  3.029e+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:  8.062e-01  1.709e-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.103e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/360103/likelihoodResults_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.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) = 6309.58255127
delta logL = 0.0413254280911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6309.57906843
delta logL = 0.0448082620587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.316       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7836       1.0000          .0000       10.000    
     3 'Normalizat'    .91495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80328       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=   6309.579     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      302 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.320        46.011        .63924E-04   -.14576E-03
   2  Index         1.7835        .67268        .76655E-02   -.10068E-03
   3  Normalizat    .91505        .17262        .22495E-03    .37275E-03
   4  Prefactor     .80319        .16858        .23218E-03    .56661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.32
  Index      = 1.78353
  Normalizat = 0.915049
  Prefactor  = 0.803189
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.579     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.320        44.722        .12785E-04   -1.4453    
   2  Index         1.7835        .65392        .30662E-03   -.69879    
   3  Normalizat    .91505        .17269        .44991E-04   -.95933    
   4  Prefactor     .80319        .16868        .46435E-04   -.99611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49774e-10
Minuit parameter uncertainties:
  1  44.7599
  2  0.657147
  3  0.17279
  4  0.168789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360103': 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) = 6309.57906825
delta logL = 0.0448084409272

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.932e+01  4.476e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.784e+00  6.571e-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:  8.032e-01  1.688e-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.150e-01  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.78 +/- 0.66
Photon Flux (Free Index): 1.43e-08 +/- 1.71e-08
Energy Flux (Free Index): 1.79e-05 +/- 2.93e-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/360103/cmap_HighResolution_501638401_501897601_4FGL_J2234.2-4156_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='1.79e-05', photon_flux_error='1.69e-08', dlogl='4.48e-02', energy_flux='1.22e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-28 15:01:46.091958', photon_index_error2='0.66', photon_index2='1.78', ts='2.27', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='6.19e-08', energy_flux_error2='2.93e-05', EG='0.91', time_epoch_completed='1632866506.09', return_code='0', job_id='360103', GAL2='0.80', EG2='0.92', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='1.71e-08', ts2='2.36', photon_index='1.99' WHERE bin_id='1012' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 360103: <4FGL_J2234.2-4156_daily_bin1012> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1012> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:17 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:19 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:19 2021
Terminated at Tue Sep 28 15:01:46 2021
Results reported at Tue Sep 28 15:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1012 338.568 -41.9411 501638401 501897601 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 :                                   944.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

