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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin459
RA = 338.568, Dec = -41.9411
tmin = 358300801, tmax = 358560001
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='357412', job_status='RUN', time_executed='2021-09-28 14:36:22.565632', time_epoch_executed='1632864982.57' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357412

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357412/ft1_4FGL_J2234.2-4156_daily_bin459.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357412/ft1_4FGL_J2234.2-4156_daily_bin459.fits outfile=/scratch/kocevski/357412/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin459.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=358300801.0 tmax=358560001.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.50
user 5.10
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.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/357412/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin459.fits evtable="EVENTS" outfile="/scratch/kocevski/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.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/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits" evtable="EVENTS" scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits sctable="SC_DATA" outfile=/scratch/kocevski/357412/ltcube_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.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/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits
.....................!
real 11.68
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits sctable="SC_DATA" expcube=/scratch/kocevski/357412/ltcube_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.fits outfile=/scratch/kocevski/357412/expmap_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.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/357412/ltcube_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.fits
.....................!
real 190.59
user 184.97
sys 5.27

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/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits outfile=/scratch/kocevski/357412/cmap_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits outfile=/scratch/kocevski/357412/cmap_HighResolution_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/357412/ft2_4FGL_J2234.2-4156_daily_bin459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357412/Model_4FGL_J2234.2-4156_daily_bin459.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/357412/ft1_filtered_4FGL_J2234.2-4156_daily_bin459.fits.....................!
real 40.31
user 39.05
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22394E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4805       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.715       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.3275       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    20.517       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8449       1.0000         .10000E-03   10000.    
    28 'Prefactor '    41.324       1.0000         .10000E-03   10000.    
    29 'norm      '    4.8211       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .63656       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4544       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=   4997.794     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4558 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.202        .65009E-05** at limit **
   2  norm          1.3654        3.9277       -.14157E-05   -.78561E-03
   3  Prefactor     .10000E-03    15.518       -.50175E-05** at limit **
   4  Prefactor     .10000E-03    5.8419       -.15134E-06** at limit **
   5  Prefactor     46.364        53.074       -.22739E-04   -.37879E-05
   6  Prefactor     7.9196        12.902        .54905E-05    .17566E-04
   7  Prefactor     .10000E-03    114.87       -.15237E-04** at limit **
   8  norm          .10000E-03    3.2874        .22361E-06** at limit **
   9  Prefactor     .10046E-03    7.1978       -.81988E-07** at limit **
  10  Prefactor     4.8721        4.7247        .28361E-06   -.21669E-03
  11  Prefactor     .10000E-03    17.616        .15036E-05** at limit **
  12  Prefactor     5.3355        6.7997       -.81549E-06   -.23118E-03
  13  Prefactor     14.779        33.130       -.10593E-05   -.20902E-05
  14  Prefactor     .10000E-03    17.554        .11420E-05** at limit **
  15  Prefactor     40.495        31.729        .73620E-06    .24060E-06
  16  Prefactor     3.5090        7.4267       -.64377E-06   -.18575E-03
  17  Prefactor     .10000E-03    42.091       -.21015E-04** at limit **
  18  Prefactor     7.4857        16.758       -.20683E-05   -.47053E-04
  19  Prefactor     .10000E-03    4.7590        .18212E-06** at limit **
  20  Prefactor     .10000E-03    71.213        .21169E-04** at limit **
  21  Prefactor     .10000E-03    34.386        .10925E-04** at limit **
  22  Prefactor     14.718        21.440       -.10692E-05   -.12632E-04
  23  norm          .10000E-03    6.7791        .33915E-06** at limit **
  24  norm          5.3266        7.4250       -.99889E-07   -.40877E-04
  25  norm          .10000E-03    1.7797        .14727E-06** at limit **
  26  norm          20.517        12.810       -.18819E-06   -.36664E-05
  27  Prefactor     7.8448        9.7168       -.22349E-06   -.14982E-04
  28  Prefactor     41.302        40.186       -.13721E-04   -.46895E-05
  29  norm          4.8238        4.4315        .13310E-05    .15492E-04
  30  Prefactor     .10000E-03    11.670       -.46712E-05** at limit **
  31  norm          .10000E-03    1.8157        .20659E-06** at limit **
  32  Normalizat    .63598        .24001        .52141E-05   -.25139E-04
  33  Prefactor     1.4549        .20979       -.33052E-06    .12689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.36542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3635
  Prefactor  = 7.9196
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100456
  Prefactor  = 4.87212
  Prefactor  = 0.0001
  Prefactor  = 5.33551
  Prefactor  = 14.7788
  Prefactor  = 0.0001
  Prefactor  = 40.4947
  Prefactor  = 3.509
  Prefactor  = 0.0001
  Prefactor  = 7.48565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7182
  norm       = 0.0001
  norm       = 5.32664
  norm       = 0.0001
  norm       = 20.5174
  Prefactor  = 7.84483
  Prefactor  = 41.3018
  norm       = 4.82379
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.635983
  Prefactor  = 1.45491
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.794     FROM HESSE     STATUS=OK           697 CALLS     5255 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3654        3.9287        .23025E-03   -1.5474    
   3  Prefactor     .10000E-03    15.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8887        .16685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.364        52.872        .58868E-04   -1.4345    
   6  Prefactor     7.9196        12.825        .14239E-03   -1.5145    
   7  Prefactor     .10000E-03    114.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2906        .12518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10046E-03    111.29        .34871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8721        4.7172        .14284E-03   -1.5266    
  11  Prefactor     .10000E-03    17.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3355        6.7866        .17399E-03   -1.5246    
  13  Prefactor     14.779        32.692        .10419E-03   -1.4939    
  14  Prefactor     .10000E-03    17.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.495        31.641        .62994E-04   -1.4434    
  16  Prefactor     3.5090        7.4027        .21580E-03   -1.5333    
  17  Prefactor     .10000E-03    42.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4857        16.863        .14663E-03   -1.5161    
  19  Prefactor     .10000E-03    4.7946        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    71.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.718        21.422        .10441E-03   -1.4940    
  23  norm          .10000E-03    6.7862        .17977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.3266        7.4149        .17412E-03   -1.5246    
  25  norm          .10000E-03    1.7803        .92102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          20.517        12.807        .88427E-04   -1.4802    
  27  Prefactor     7.8448        9.6879        .14316E-03   -1.5148    
  28  Prefactor     41.302        40.209        .62357E-04   -1.4422    
  29  norm          4.8238        4.4194        .13058E-03   -1.5269    
  30  Prefactor     .10000E-03    11.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.8179        .93023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .63598        .27571        .33415E-03   -1.0648    
  33  Prefactor     1.4549        .24669        .22482E-03   -.78810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92181e-09
Minuit parameter uncertainties:
  1  1.05638e-05
  2  3.92948
  3  2.78026e-06
  4  4.91579e-06
  5  52.9253
  6  12.8291
  7  0.000108979
  8  3.18323e-06
  9  0.0142813
  10  4.71758
  11  1.42409e-05
  12  6.78756
  13  32.7315
  14  3.81458e-05
  15  31.654
  16  7.40467
  17  1.22301e-05
  18  16.8733
  19  1.42468e-05
  20  0.000214758
  21  1.97829e-05
  22  21.4336
  23  1.21761e-06
  24  7.41614
  25  4.69973e-06
  26  12.8091
  27  9.68986
  28  40.2355
  29  4.41974
  30  1.39423e-05
  31  1.33908e-05
  32  0.276307
  33  0.246887
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.424e-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:  1.455e+00  2.469e-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:  6.360e-01  2.763e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357412/likelihoodResults_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.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) = 4997.79390144
delta logL = -0.000269109596957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4997.7936326
delta logL = -2.70495547738e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8967       1.0000          .0000       10.000    
     3 'Normalizat'    .63599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4549       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=   4997.794     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    948.54        .90712E-02** at limit **
   2  Index         1.8856        5.9239        .50000        .46033E-05
   3  Normalizat    .63599        .40618E-01    .75477E-01    .24686E-04
   4  Prefactor     1.4549        .39826E-01    .50858E-01   -.38229E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88563
  Normalizat = 0.635985
  Prefactor  = 1.45491
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.794     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2294.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8856        7.1513        .50000       -.67241    
   3  Normalizat    .63599        .75337E-01    .33415E-03   -1.0648    
   4  Prefactor     1.4549        .74026E-01    .22483E-03   -.78810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8174e-09
Minuit parameter uncertainties:
  1  2.10466e-05
  2  45.5859
  3  0.0753495
  4  0.0740314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357412': 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) = 4997.79363219
delta logL = 1.34858964884e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.105e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.886e+00  4.559e+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.455e+00  7.403e-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:  6.360e-01  7.535e-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/357412/cmap_HighResolution_358300801_358560001_4FGL_J2234.2-4156_daily_bin459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-28 14:49:52.227727', job_id='357412', GAL2='1.45', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632865792.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='459' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:49:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 357412: <4FGL_J2234.2-4156_daily_bin459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin459 338.568 -41.9411 358300801 358560001 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

