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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin600
RA = 338.568, Dec = -41.9411
tmin = 394848001, tmax = 395107201
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='357636', job_status='RUN', time_executed='2021-09-28 14:36:45.576023', time_epoch_executed='1632865005.58' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357636

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357636/ft1_4FGL_J2234.2-4156_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357636/ft1_4FGL_J2234.2-4156_daily_bin600.fits outfile=/scratch/kocevski/357636/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin600.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.24
user 4.98
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357636/ft1_filtered_4FGL_J2234.2-4156_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/357636/ltcube_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.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/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits
.....................!
real 11.72
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357636/ft1_filtered_4FGL_J2234.2-4156_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/357636/ltcube_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.fits outfile=/scratch/kocevski/357636/expmap_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.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/357636/ltcube_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.fits
.....................!
real 190.94
user 186.25
sys 4.30

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/357636/ft1_filtered_4FGL_J2234.2-4156_daily_bin600.fits scfile=/scratch/kocevski/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits outfile=/scratch/kocevski/357636/cmap_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357636/ft1_filtered_4FGL_J2234.2-4156_daily_bin600.fits scfile=/scratch/kocevski/357636/ft2_4FGL_J2234.2-4156_daily_bin600.fits outfile=/scratch/kocevski/357636/cmap_HighResolution_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.552       1.0000         .10000E-03   10000.    
     2 'norm      '    .21066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.537       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    100.17       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4543       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.4123       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.0320       1.0000         .10000E-03   10000.    
    30 'Prefactor '    32.355       1.0000         .10000E-03   10000.    
    31 'norm      '    4.8255       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83846       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=   4042.894     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4572 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.527        43.753        .31501E-05   -.63444E-04
   2  norm          .10119E-03    5.3208        .55845E-05** at limit **
   3  Prefactor     .10000E-03    7.1975        .51490E-06** at limit **
   4  Prefactor     13.560        11.236        .10357E-06   -.17477E-03
   5  Prefactor     10.446        48.264        .67455E-05    .15535E-04
   6  Prefactor     1.0093        9.3884       -.17766E-05   -.36608E-03
   7  Prefactor     .10000E-03    36.424        .26785E-05** at limit **
   8  norm          1.4887        10.813        .16623E-04    .38310E-03
   9  Prefactor     3.9154        8.4980        .18809E-06   -.90406E-04
  10  Prefactor     .10000E-03    3.3341        .77835E-06** at limit **
  11  Prefactor     100.19        65.293       -.13135E-05   -.70590E-04
  12  Prefactor     9.4508        9.3032        .81641E-06    .56409E-04
  13  Prefactor     .10000E-03    10.952        .12729E-05** at limit **
  14  Prefactor     .19650        19.866        .62875E-05   -.25976E-03
  15  Prefactor     19.806        40.756       -.18786E-05   -.23709E-04
  16  Prefactor     .10000E-03    16.696       -.14729E-06** at limit **
  17  Prefactor     .10000E-03    44.455        .22565E-05** at limit **
  18  Prefactor     .10000E-03    7.5147       -.10780E-06** at limit **
  19  Prefactor     .10000E-03    7.0529        .25726E-06** at limit **
  20  Prefactor     .10000E-03    29.763       -.21648E-05** at limit **
  21  Prefactor     46.525        77.143        .48498E-05   -.31571E-04
  22  Prefactor     .10000E-03    9.2029       -.19885E-06** at limit **
  23  norm          .10000E-03    11.663       -.11226E-05** at limit **
  24  norm          .10000E-03    2.3081       -.64560E-08** at limit **
  25  norm          .10000E-03    2.9384        .66930E-07** at limit **
  26  norm          5.4124        6.4044       -.21388E-06   -.58738E-04
  27  Prefactor     .10000E-03    2.7142       -.15180E-06** at limit **
  28  Prefactor     .10000E-03    16.818        .20446E-06** at limit **
  29  norm          2.0310        3.2100       -.66041E-07   -.11343E-03
  30  Prefactor     32.359        20.566        .62300E-06    .49586E-04
  31  norm          4.8252        4.9650        .34750E-06   -.19353E-04
  32  Normalizat    1.0404        .22884        .14416E-05   -.15266E-03
  33  Prefactor     .83806        .20615       -.34907E-05   -.18892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5269
  norm       = 0.000101193
  Prefactor  = 0.0001
  Prefactor  = 13.5602
  Prefactor  = 10.4464
  Prefactor  = 1.00933
  Prefactor  = 0.0001
  norm       = 1.48868
  Prefactor  = 3.91545
  Prefactor  = 0.000100001
  Prefactor  = 100.189
  Prefactor  = 9.45082
  Prefactor  = 0.0001
  Prefactor  = 0.196502
  Prefactor  = 19.806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5251
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.41244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03097
  Prefactor  = 32.3594
  norm       = 4.82523
  Normalizat = 1.04036
  Prefactor  = 0.838059
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.894     FROM HESSE     STATUS=OK           699 CALLS     5271 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.527        42.708        .88350E-04   -1.4802    
   2  norm          .10119E-03    49.538        .23123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2253        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.560        11.219        .10878E-03   -1.4971    
   5  Prefactor     10.446        47.719        .12343E-03   -1.5061    
   6  Prefactor     1.0093        9.3171        .36624E-03   -1.5507    
   7  Prefactor     .10000E-03    36.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4887        11.077        .17579E-02   -1.5464    
   9  Prefactor     3.9154        8.4867        .20385E-03   -1.5312    
  10  Prefactor     .10000E-03    3.4037        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     100.19        65.319        .20084E-03   -1.3703    
  12  Prefactor     9.4508        9.3067        .65168E-03   -1.5093    
  13  Prefactor     .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19650        22.027        .86380E-01   -1.5619    
  15  Prefactor     19.806        40.740        .89951E-04   -1.4818    
  16  Prefactor     .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5324        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1699        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.525        77.088        .58758E-04   -1.4343    
  22  Prefactor     .10000E-03    9.2186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.3081        .94344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9465        .10632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4124        6.4037        .85387E-03   -1.5243    
  27  Prefactor     .10000E-03    2.7161        .10228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.0310        3.1837        .13786E-03   -1.5423    
  30  Prefactor     32.359        20.580        .70444E-04   -1.4570    
  31  norm          4.8252        4.9544        .13878E-03   -1.5269    
  32  Normalizat    1.0404        .26619        .24449E-03   -.91690    
  33  Prefactor     .83806        .23759        .24734E-03   -.98340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43548e-08
Minuit parameter uncertainties:
  1  42.7712
  2  0.0153887
  3  1.28906e-05
  4  11.2209
  5  44.7128
  6  6.13415
  7  5.94327e-05
  8  8.12362
  9  8.48934
  10  9.07328e-05
  11  65.366
  12  9.30817
  13  1.22559e-05
  14  4.16146
  15  40.7973
  16  0.000121022
  17  5.75983e-05
  18  1.22439e-05
  19  0.000100937
  20  4.47668e-05
  21  77.2538
  22  3.91451e-06
  23  5.54729e-05
  24  6.19972e-07
  25  8.10312e-06
  26  6.40448
  27  1.64448e-05
  28  1.66692e-05
  29  3.184
  30  20.5843
  31  4.95486
  32  0.26653
  33  0.237885
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.002e+02  6.537e+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.381e-01  2.379e-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.040e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 3.93e-05 +/- 2.56e-05

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) = 4042.75715364
delta logL = 0.136916396179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4042.75512978
delta logL = 0.138940258269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.733       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2441       1.0000          .0000       10.000    
     3 'Normalizat'    1.0260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84642       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=   4042.755     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      290 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.811        79.507        .24035E-03    .65346E-04
   2  Index         2.2451        .54002        .38246E-02    .49018E-04
   3  Normalizat    1.0260        .25011        .24599E-03   -.90030E-04
   4  Prefactor     .84591        .22909        .24629E-03    .14201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.8107
  Index      = 2.24512
  Normalizat = 1.02599
  Prefactor  = 0.845913
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.755     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.811        73.356        .96139E-05   -1.4035    
   2  Index         2.2451        .49811        .15298E-03   -.58353    
   3  Normalizat    1.0260        .25015        .98395E-05   -.92165    
   4  Prefactor     .84591        .22918        .98516E-05   -.98057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59491e-10
Minuit parameter uncertainties:
  1  73.4517
  2  0.499298
  3  0.250437
  4  0.229444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357636': 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) = 4042.75511173
delta logL = 0.13895830648

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.981e+01  7.345e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.245e+00  4.993e-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.459e-01  2.294e-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.026e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.25 +/- 0.50
Photon Flux (Free Index): 6.91e-08 +/- 4.90e-08
Energy Flux (Free Index): 2.86e-05 +/- 2.33e-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/357636/cmap_HighResolution_394848001_395107201_4FGL_J2234.2-4156_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='2.86e-05', photon_flux_error='3.64e-08', dlogl='1.39e-01', energy_flux='3.93e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-28 14:47:13.000015', photon_index_error2='0.50', photon_index2='2.25', ts='4.64', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='1.04', time_epoch_completed='1632865633.0', return_code='0', job_id='357636', GAL2='0.85', EG2='1.03', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='4.90e-08', ts2='4.90', photon_index='1.99' WHERE bin_id='600' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 357636: <4FGL_J2234.2-4156_daily_bin600> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:25 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:28 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:36:28 2021
Terminated at Tue Sep 28 14:47:13 2021
Results reported at Tue Sep 28 14:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin600 338.568 -41.9411 394848001 395107201 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 :                                   625.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            648 sec.

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

