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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1527
RA = 338.568, Dec = -41.9411
tmin = 635126401, tmax = 635385601
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='363000', job_status='RUN', time_executed='2021-09-28 14:56:46.797480', time_epoch_executed='1632866206.8' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363000/ft1_4FGL_J2234.2-4156_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363000/ft1_4FGL_J2234.2-4156_daily_bin1527.fits outfile=/scratch/kocevski/363000/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1527.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.98
user 2.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363000/ft1_filtered_4FGL_J2234.2-4156_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/363000/ltcube_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.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/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits
.....................!
real 12.37
user 12.04
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363000/ft1_filtered_4FGL_J2234.2-4156_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/363000/ltcube_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.fits outfile=/scratch/kocevski/363000/expmap_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.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/363000/ltcube_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.fits
.....................!
real 190.79
user 185.01
sys 5.12

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363000/ft1_filtered_4FGL_J2234.2-4156_daily_bin1527.fits scfile=/scratch/kocevski/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits outfile=/scratch/kocevski/363000/cmap_HighResolution_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.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/363000/ft1_filtered_4FGL_J2234.2-4156_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/363000/ft2_4FGL_J2234.2-4156_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363000/Model_4FGL_J2234.2-4156_daily_bin1527.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/363000/ft1_filtered_4FGL_J2234.2-4156_daily_bin1527.fits.......................!
real 19.78
user 18.41
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.282       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6586       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.7044       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.892       1.0000         .10000E-03   10000.    
    29 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.968       1.0000         .10000E-03   10000.    
    31 'norm      '    5.9073       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .15695       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5430       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=   1207.151     FROM MIGRAD    STATUS=CONVERGED   1637 CALLS     6994 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1724.6        .18142E-02** at limit **
   2  norm          10000.        570.97        .18142E-02** at limit **
   3  Prefactor    10000.0        794.71        .18142E-02** at limit **
   4  Prefactor    10000.0        1158.8        .18142E-02** at limit **
   5  Prefactor     .10000E-03    116.15        .18142E-02** at limit **
   6  Prefactor     .10000E-03    19.759        .15090E-02** at limit **
   7  Prefactor     .10000E-03    162.41        .18142E-02** at limit **
   8  norm          .10000E-03    8.7998        .10067E-02** at limit **
   9  Prefactor     .10000E-03    17.750        .14301E-02** at limit **
  10  Prefactor     .10000E-03    7.0336        .89671E-03** at limit **
  11  Prefactor     15.375        259.56        .10246E-03   -.10264E-05
  12  Prefactor     .10000E-03    7.1370        .90452E-03** at limit **
  13  Prefactor     36.606        55.332        .66240E-04   -.12872E-06
  14  Prefactor     .10000E-03    26.191        .17375E-02** at limit **
  15  Prefactor     .10000E-03    83.128        .18142E-02** at limit **
  16  Prefactor     28.260        25.514        .75346E-04   -.67899E-05
  17  Prefactor     .10000E-03    93.161        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.023        .11268E-02** at limit **
  19  Prefactor     .42378E-01    38.943        .53005E-01    .42663E-04
  20  Prefactor     .10000E-03    23.143        .16332E-02** at limit **
  21  Prefactor     .10000E-03    63.308        .18142E-02** at limit **
  22  Prefactor     .10000E-03    20.947        .15485E-02** at limit **
  23  norm          2.6500        57.651        .12499E-02    .62417E-05
  24  norm          .10000E-03    3.4028        .62604E-03** at limit **
  25  norm          .10000E-03    4.1043        .68729E-03** at limit **
  26  norm          6.6999        14.569        .15497E-03    .22375E-05
  27  Prefactor     .10000E-03    5.7630        .81363E-03** at limit **
  28  Prefactor     54.950        101.78        .54140E-04    .14804E-04
  29  norm          .10000E-03    7.2207        .90536E-03** at limit **
  30  Prefactor     20.961        25.855        .87470E-04    .17351E-04
  31  norm          5.9042        13.776        .13656E-03    .46579E-04
  32  Normalizat    .15695        .59026        .62637E-03    .92475E-05
  33  Prefactor     1.5436        .59884        .22612E-03    .26662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3751
  Prefactor  = 0.0001
  Prefactor  = 36.6056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0423778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64997
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.69991
  Prefactor  = 0.0001
  Prefactor  = 54.9497
  norm       = 0.0001
  Prefactor  = 20.9607
  norm       = 5.90425
  Normalizat = 0.156948
  Prefactor  = 1.54359
 **********
 **   18 **HESSE 
 **********

 FCN=   1207.151     FROM HESSE     STATUS=OK           673 CALLS     7667 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1724.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10000.        570.97        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        794.71        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        1158.8        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    116.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.759        .30179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    162.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7998        .20134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.750        .28603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0341        .17934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.375        259.41        .40982E-05   -1.4924    
  12  Prefactor     .10000E-03    7.1373        .18090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.606        55.332        .26496E-05   -1.4497    
  14  Prefactor     .10000E-03    26.191        .34749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    83.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.260        25.509        .30138E-05   -1.4644    
  17  Prefactor     .10000E-03    93.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.023        .22536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .42378E-01    36.632        .55071E-01   -1.5667    
  20  Prefactor     .10000E-03    23.143        .32664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.951        .30971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6500        57.536        .49998E-04   -1.5382    
  24  norm          .10000E-03    3.4028        .12521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.1043        .13746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.6999        14.568        .61988E-05   -1.5190    
  27  Prefactor     .10000E-03    5.7630        .16273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     54.950        101.64        .21656E-05   -1.4224    
  29  norm          .10000E-03    7.2210        .18107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     20.961        25.847        .34988E-05   -1.4792    
  31  norm          5.9042        13.768        .54624E-05   -1.5222    
  32  Normalizat    .15695        .58507        .25055E-04   -1.3276    
  33  Prefactor     1.5436        .59650        .45223E-04   -.76326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16015e-11
Minuit parameter uncertainties:
  1  0.000561962
  2  3.56954e-05
  3  0.000100075
  4  0.00028527
  5  1.41689e-05
  6  5.10658e-07
  7  2.05813e-06
  8  2.97139e-07
  9  1.84999e-06
  10  3.43333e-07
  11  126.96
  12  4.9154e-06
  13  55.41
  14  2.54512e-06
  15  2.19993e-05
  16  25.5183
  17  5.12433e-07
  18  2.97565e-06
  19  2.49048
  20  2.44032e-06
  21  1.9151e-05
  22  3.34102e-05
  23  24.7223
  24  6.66573e-07
  25  2.59585e-06
  26  14.5762
  27  1.06969e-05
  28  101.966
  29  2.17104e-05
  30  25.8603
  31  13.7755
  32  0.596963
  33  0.599246
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.538e+01  1.270e+02  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:  1.544e+00  5.992e-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.569e-01  5.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 2.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363000/likelihoodResults_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.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) = 1207.05365847
delta logL = 0.0969413205498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1207.05154091
delta logL = 0.099058880277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.747       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4403       1.0000          .0000       10.000    
     3 'Normalizat'    .18740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5019       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=   1207.052     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      305 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.760        196.22        .45255E-04   -.20464E-03
   2  Index         1.4400        .93726        .78747E-02   -.19630E-03
   3  Normalizat    .18708        .51518        .57611E-03   -.13251E-04
   4  Prefactor     1.5024        .56589        .22835E-03    .10717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.7597
  Index      = 1.44002
  Normalizat = 0.187079
  Prefactor  = 1.50235
 **********
 **   18 **HESSE 
 **********

 FCN=   1207.052     FROM HESSE     STATUS=OK            23 CALLS      328 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.760        195.62        .90511E-05   -1.3931    
   2  Index         1.4400        .93465        .31499E-03   -.79234    
   3  Normalizat    .18708        .51413        .23044E-04   -1.3037    
   4  Prefactor     1.5024        .56470        .91339E-05   -.77474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72104e-09
Minuit parameter uncertainties:
  1  197.252
  2  0.946052
  3  0.52815
  4  0.567082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363000': 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) = 1207.05154057
delta logL = 0.0990592177557

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  7.876e+01  1.973e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.440e+00  9.461e-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.502e+00  5.671e-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.871e-01  5.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363000/cmap_HighResolution_635126401_635385601_4FGL_J2234.2-4156_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', job_status='DONE', photon_flux_upper_limit='2.44e-07', time_completed='2021-09-28 15:05:02.638156', job_id='363000', GAL2='1.50', fit_tolerance='1e-08', EG2='0.19', EG='0.16', time_epoch_completed='1632866702.64', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.54', dlogl='9.91e-02', ts2='0.23', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1527' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 363000: <4FGL_J2234.2-4156_daily_bin1527> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1527> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:31 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:55:33 2021
Terminated at Tue Sep 28 15:05:03 2021
Results reported at Tue Sep 28 15:05:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1527 338.568 -41.9411 635126401 635385601 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 :                                   493.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            572 sec.

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

