/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 82 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_bin1275
RA = 338.568, Dec = -41.9411
tmin = 569808001, tmax = 570067201
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='361562', job_status='RUN', time_executed='2021-09-28 14:51:58.303942', time_epoch_executed='1632865918.3' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361562/ft1_4FGL_J2234.2-4156_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361562/ft1_4FGL_J2234.2-4156_daily_bin1275.fits outfile=/scratch/kocevski/361562/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1275.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=569808001.0 tmax=570067201.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/361562/ltcube_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.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/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/361562/ltcube_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.fits outfile=/scratch/kocevski/361562/expmap_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.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/361562/ltcube_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.fits
.....................!
real 189.66
user 185.04
sys 4.23

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/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits scfile=/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits outfile=/scratch/kocevski/361562/cmap_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits scfile=/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits outfile=/scratch/kocevski/361562/cmap_HighResolution_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/361562/ft2_4FGL_J2234.2-4156_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361562/Model_4FGL_J2234.2-4156_daily_bin1275.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/361562/ft1_filtered_4FGL_J2234.2-4156_daily_bin1275.fits.....................!
real 45.78
user 44.41
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .62405E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8024       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3266       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22340E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49329       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42451       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2772       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6404       1.0000         .10000E-03   10000.    
    26 'norm      '    .38573E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6143       1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.004       1.0000         .10000E-03   10000.    
    29 'norm      '    9.2080       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87075       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98661       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=   5986.291     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4594 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.307       -.14773E-06** at limit **
   2  norm          .10000E-03    2.2788       -.86747E-07** at limit **
   3  Prefactor     9.8038        8.9454        .13110E-05   -.10446E-03
   4  Prefactor     .10000E-03    14.717       -.13011E-06** at limit **
   5  Prefactor     28.952        32.334        .57145E-07   -.93132E-05
   6  Prefactor     15.105        9.1615        .11305E-06    .19724E-04
   7  Prefactor     .10000E-03    52.358       -.20319E-05** at limit **
   8  norm          .10000E-03    9.2940        .18424E-06** at limit **
   9  Prefactor     14.846        10.820        .65012E-06    .39118E-04
  10  Prefactor     8.3242        4.6526       -.60100E-07   -.14313E-03
  11  Prefactor     .10000E-03    41.959        .57849E-07** at limit **
  12  Prefactor     27.411        8.1188        .67399E-07   -.21665E-05
  13  Prefactor     .10000E-03    71.273        .53050E-05** at limit **
  14  Prefactor     30.484        25.408       -.23342E-06   -.81128E-04
  15  Prefactor     .10000E-03    9.6665       -.34406E-06** at limit **
  16  Prefactor     7.4170        7.2936        .63993E-07    .22191E-05
  17  Prefactor     25.459        48.384       -.42988E-06   -.15213E-04
  18  Prefactor     9.0416        11.636        .72802E-06    .52081E-04
  19  Prefactor     .49294        7.8353        .29835E-05   -.22339E-03
  20  Prefactor     .10000E-03    10.065        .32559E-06** at limit **
  21  Prefactor     .10000E-03    127.70       -.20196E-05** at limit **
  22  Prefactor     .41402        9.7936        .30661E-06   -.21102E-04
  23  norm          5.2782        8.1474        .13231E-06   -.27632E-05
  24  norm          .10000E-03    2.7075        .38511E-08** at limit **
  25  norm          5.6409        5.1783       -.22436E-06   -.95130E-04
  26  norm          .10007E-03    4.9897       -.32870E-06** at limit **
  27  Prefactor     3.6137        3.5967       -.33322E-07   -.46759E-05
  28  Prefactor     33.968        35.432       -.21383E-05   -.14429E-03
  29  norm          9.2087        6.4564        .52794E-06   -.31483E-04
  30  Prefactor     .10000E-03    3.7853       -.14491E-07** at limit **
  31  norm          .10000E-03    1.5219       -.27861E-07** at limit **
  32  Normalizat    .87168        .20658       -.73588E-06   -.75707E-04
  33  Prefactor     .98561        .18111       -.41367E-06   -.60238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 9.80378
  Prefactor  = 0.0001
  Prefactor  = 28.9523
  Prefactor  = 15.1046
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.8457
  Prefactor  = 8.32416
  Prefactor  = 0.0001
  Prefactor  = 27.4109
  Prefactor  = 0.000100002
  Prefactor  = 30.4836
  Prefactor  = 0.0001
  Prefactor  = 7.41702
  Prefactor  = 25.459
  Prefactor  = 9.04161
  Prefactor  = 0.492935
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.414019
  norm       = 5.27823
  norm       = 0.0001
  norm       = 5.6409
  norm       = 0.000100071
  Prefactor  = 3.61374
  Prefactor  = 33.9677
  norm       = 9.20873
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.871679
  Prefactor  = 0.985609
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.291     FROM HESSE     STATUS=OK           713 CALLS     5307 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.232        .22481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8038        8.9928        .63995E-03   -1.5082    
   4  Prefactor     .10000E-03    15.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.952        32.340        .74459E-04   -1.4631    
   6  Prefactor     15.105        9.1648        .10305E-03   -1.4930    
   7  Prefactor     .10000E-03    52.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.4615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.846        10.855        .10392E-03   -1.4937    
  10  Prefactor     8.3242        4.6666        .11726E-03   -1.5131    
  11  Prefactor     .10000E-03    42.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.411        8.1380        .76514E-04   -1.4660    
  13  Prefactor     .10000E-03    73.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.484        25.539        .72529E-04   -1.4603    
  15  Prefactor     .10000E-03    9.6872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4170        7.2929        .14725E-03   -1.5163    
  17  Prefactor     25.459        48.402        .79386E-04   -1.4698    
  18  Prefactor     9.0416        11.713        .13319E-03   -1.5106    
  19  Prefactor     .49294        8.5828        .42693E-02   -1.5568    
  20  Prefactor     .10000E-03    10.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    129.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .41402        119.03        .46251E-02   -1.5579    
  23  norm          5.2782        8.1401        .17497E-03   -1.5248    
  24  norm          .10000E-03    2.7141        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6409        5.1824        .15845E-03   -1.5233    
  26  norm          .10007E-03    5.1475        .60604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6137        3.6023        .14239E-03   -1.5328    
  28  Prefactor     33.968        36.148        .68720E-04   -1.4542    
  29  norm          9.2087        6.4882        .13189E-03   -1.5101    
  30  Prefactor     .10000E-03    3.7896        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.5236        .93162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .87168        .24454        .27164E-03   -.97463    
  33  Prefactor     .98561        .21195        .24620E-03   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71531e-07
Minuit parameter uncertainties:
  1  1.2201e-05
  2  0.000527008
  3  8.99404
  4  3.75392e-05
  5  32.3591
  6  9.16564
  7  0.000378369
  8  1.614e-05
  9  10.8564
  10  4.66684
  11  5.29539e-05
  12  8.13829
  13  0.000714138
  14  25.548
  15  2.58501e-05
  16  7.29379
  17  48.4763
  18  11.7155
  19  4.11404
  20  2.71971e-05
  21  0.000519052
  22  14.0665
  23  8.14181
  24  5.04514e-07
  25  5.18281
  26  0.00121292
  27  3.60251
  28  36.1715
  29  6.48868
  30  1.30404e-06
  31  8.79346e-07
  32  0.244847
  33  0.212134
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.295e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.856e-01  2.121e-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:  8.717e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361562/likelihoodResults_569808001_570067201_4FGL_J2234.2-4156_daily_bin1275.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.2908472
delta logL = -0.000113067610982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.2907343
delta logL = -1.65108758665e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9307       1.0000          .0000       10.000    
     3 'Normalizat'    .87168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98561       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.

 FCN=   5986.291     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      234 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    876.68        .90712E-02** at limit **
   2  Index         1.9662        8.4018        .50000       -.79760E-05
   3  Normalizat    .87168        .22036E-01    .44539E-01    .17119E-04
   4  Prefactor     .98561        .21229E-01    .46087E-01    .81696E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.9662
  Normalizat = 0.871679
  Prefactor  = 0.985609
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.291     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2296.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9662        5.3517        .50000       -.65198    
   3  Normalizat    .87168        .38453E-01    .27164E-03   -.97463    
   4  Prefactor     .98561        .37050E-01    .24620E-03   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.61436e-09
Minuit parameter uncertainties:
  1  0.00281298
  2  31.5117
  3  0.0384542
  4  0.0370508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361562': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.29073419
delta logL = -5.31363184564e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.813e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.966e+00  3.151e+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:  9.856e-01  3.705e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.717e-01  3.845e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-28 15:07:03.676222', job_id='361562', GAL2='0.99', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632866823.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-5.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1275' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 361562: <4FGL_J2234.2-4156_daily_bin1275> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1275> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:25 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:27 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:50:27 2021
Terminated at Tue Sep 28 15:07:04 2021
Results reported at Tue Sep 28 15:07:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1275 338.568 -41.9411 569808001 570067201 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 :                                   903.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

