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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin845
RA = 338.568, Dec = -41.9411
tmin = 458352001, tmax = 458611201
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='358862', job_status='RUN', time_executed='2021-09-28 14:40:56.066374', time_epoch_executed='1632865256.07' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358862

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358862/ft1_4FGL_J2234.2-4156_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358862/ft1_4FGL_J2234.2-4156_daily_bin845.fits outfile=/scratch/kocevski/358862/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin845.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=458352001.0 tmax=458611201.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 4.53
user 4.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits" evtable="EVENTS" scfile=/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits sctable="SC_DATA" outfile=/scratch/kocevski/358862/ltcube_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.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/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits
.....................!
real 11.86
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/358862/ltcube_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.fits outfile=/scratch/kocevski/358862/expmap_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.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/358862/ltcube_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.fits
.....................!
real 190.19
user 185.17
sys 4.71

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/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits scfile=/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits outfile=/scratch/kocevski/358862/cmap_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.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/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits scfile=/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits outfile=/scratch/kocevski/358862/cmap_HighResolution_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/358862/ft2_4FGL_J2234.2-4156_daily_bin845.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358862/Model_4FGL_J2234.2-4156_daily_bin845.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/358862/ft1_filtered_4FGL_J2234.2-4156_daily_bin845.fits.....................!
real 46.64
user 45.39
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    112.19       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2528       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.032       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23311E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.9381       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7735       1.0000         .10000E-03   10000.    
    25 'norm      '    5.0605       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    40.920       1.0000         .10000E-03   10000.    
    29 'norm      '    6.4356       1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.052       1.0000         .10000E-03   10000.    
    31 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94410       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=   5981.919     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4559 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.122       -.43452E-06** at limit **
   2  norm          4.9291        3.5109       -.19987E-07    .39877E-04
   3  Prefactor     14.754        10.548       -.48182E-06   -.50395E-05
   4  Prefactor     2.7397        8.8850        .50131E-05   -.23893E-03
   5  Prefactor     .10000E-03    25.692        .22400E-06** at limit **
   6  Prefactor     14.186        11.449        .31726E-06   -.76419E-04
   7  Prefactor     112.19        118.20       -.12340E-06   -.11958E-04
   8  norm          .10000E-03    2.6135       -.27714E-07** at limit **
   9  Prefactor     .10000E-03    3.5407        .46820E-07** at limit **
  10  Prefactor     3.2550        4.5647        .29319E-06   -.82308E-04
  11  Prefactor     .10000E-03    14.633        .13434E-06** at limit **
  12  Prefactor     3.5044        5.0452        .10608E-06   -.91984E-04
  13  Prefactor     .10000E-03    15.467        .71770E-06** at limit **
  14  Prefactor     16.036        21.576        .11035E-06   -.41246E-04
  15  Prefactor     12.568        30.409        .16268E-06   -.52730E-04
  16  Prefactor     8.8651        15.324        .36121E-06   -.97088E-04
  17  Prefactor     .10000E-03    219.94       -.61423E-06** at limit **
  18  Prefactor     5.1538        14.346        .19694E-05   -.75240E-04
  19  Prefactor     .10000E-03    5.0701        .53809E-07** at limit **
  20  Prefactor     60.835        40.699        .28001E-06   -.35236E-04
  21  Prefactor     .10000E-03    18.720       -.50259E-06** at limit **
  22  Prefactor     .10000E-03    3.7497       -.48345E-07** at limit **
  23  norm          8.9390        9.5461        .95041E-09    .21263E-04
  24  norm          3.7735        3.9812        .86392E-08    .40930E-05
  25  norm          5.0600        6.4158        .18075E-06   -.15557E-04
  26  norm          .10000E-03    3.8512        .14364E-07** at limit **
  27  Prefactor     .10000E-03    6.3811       -.24690E-05** at limit **
  28  Prefactor     40.938        59.159       -.13988E-05   -.42086E-04
  29  norm          6.4364        8.1249        .14020E-06   -.28637E-03
  30  Prefactor     20.087        17.979        .18253E-05    .27372E-03
  31  norm          .10000E-03    6.8622        .24866E-06** at limit **
  32  Normalizat    1.0841        .20460        .44038E-07   -.37261E-04
  33  Prefactor     .94470        .18208       -.13815E-05   -.86410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.92908
  Prefactor  = 14.7537
  Prefactor  = 2.73966
  Prefactor  = 0.0001
  Prefactor  = 14.1859
  Prefactor  = 112.185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25503
  Prefactor  = 0.0001
  Prefactor  = 3.50439
  Prefactor  = 0.0001
  Prefactor  = 16.0358
  Prefactor  = 12.5683
  Prefactor  = 8.86505
  Prefactor  = 0.000100003
  Prefactor  = 5.1538
  Prefactor  = 0.0001
  Prefactor  = 60.8347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.93901
  norm       = 3.77353
  norm       = 5.05997
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 40.9375
  norm       = 6.43639
  Prefactor  = 20.0872
  norm       = 0.0001
  Normalizat = 1.0841
  Prefactor  = 0.944702
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.919     FROM HESSE     STATUS=OK           695 CALLS     5254 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9291        3.5120        .11855E-03   -1.5264    
   3  Prefactor     14.754        10.560        .10428E-03   -1.4940    
   4  Prefactor     2.7397        8.9666        .12298E-02   -1.5377    
   5  Prefactor     .10000E-03    25.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.186        11.471        .53175E-03   -1.4955    
   7  Prefactor     112.19        118.23        .37979E-04   -1.3586    
   8  norm          .10000E-03    2.6159        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5511        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2550        4.5590        .18278E-03   -1.5347    
  11  Prefactor     .10000E-03    14.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5044        5.0286        .19680E-03   -1.5334    
  13  Prefactor     .10000E-03    15.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.036        21.613        .10003E-03   -1.4907    
  15  Prefactor     12.568        30.176        .11307E-03   -1.4999    
  16  Prefactor     8.8651        15.169        .13430E-03   -1.5112    
  17  Prefactor     .10000E-03    220.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1538        14.467        .88583E-03   -1.5254    
  19  Prefactor     .10000E-03    5.1329        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     60.835        40.672        .51439E-04   -1.4146    
  21  Prefactor     .10000E-03    18.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7510        .14627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9390        9.5462        .13407E-03   -1.5110    
  24  norm          3.7735        3.9854        .15475E-03   -1.5319    
  25  norm          5.0600        6.4313        .17874E-03   -1.5258    
  26  norm          .10000E-03    3.8719        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     40.938        59.217        .62663E-04   -1.4427    
  29  norm          6.4364        8.0891        .15821E-03   -1.5201    
  30  Prefactor     20.087        18.456        .89444E-04   -1.4811    
  31  norm          .10000E-03    7.0293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0841        .24715        .25997E-03   -.90264    
  33  Prefactor     .94470        .21664        .25755E-03   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09409e-10
Minuit parameter uncertainties:
  1  6.71481e-05
  2  3.51219
  3  10.5614
  4  8.97097
  5  5.65048e-06
  6  11.4728
  7  118.478
  8  2.77754e-06
  9  5.37125e-06
  10  4.55947
  11  2.3108e-05
  12  5.02921
  13  7.75407e-05
  14  21.6233
  15  30.2125
  16  15.1757
  17  0.00174525
  18  14.477
  19  6.3791e-06
  20  40.6908
  21  8.20995e-05
  22  6.35666e-06
  23  9.54786
  24  3.98571
  25  6.43214
  26  4.62948e-06
  27  0.000264402
  28  59.3019
  29  8.09048
  30  18.4613
  31  3.60281e-05
  32  0.247415
  33  0.216839
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.311e-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.447e-01  2.168e-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.084e+00  2.474e-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: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358862/likelihoodResults_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.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) = 5981.91912499
delta logL = -0.000324754889334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5981.91880134
delta logL = -1.10712880996e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2425       1.0000          .0000       10.000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94471       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=   5981.919     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10145E-03    62.013        .18142E-02** at limit **
   2  Index         2.1856        5.9098        .50000        .21744E-04
   3  Normalizat    1.0841        .10923E-01    .25997E-03   -.16137E-04
   4  Prefactor     .94470        .10232E-01    .25755E-03   -.58268E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101449
  Index      = 2.18555
  Normalizat = 1.0841
  Prefactor  = 0.944703
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.919     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10145E-03    275.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1856        6.0928        .50000       -.59788    
   3  Normalizat    1.0841        .23573E-01    .10399E-04   -.90264    
   4  Prefactor     .94470        .22082E-01    .10302E-04   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83318e-08
Minuit parameter uncertainties:
  1  0.040157
  2  341.582
  3  0.0235733
  4  0.0220824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358862': 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) = 5981.91880108
delta logL = -8.48558556754e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  4.016e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.186e+00  3.416e+02  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.447e-01  2.208e-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:  1.084e+00  2.357e-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/358862/cmap_HighResolution_458352001_458611201_4FGL_J2234.2-4156_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-28 14:55:39.475034', job_id='358862', GAL2='0.94', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632866139.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-8.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='845' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 358862: <4FGL_J2234.2-4156_daily_bin845> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin845> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:38 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:40 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:40:40 2021
Terminated at Tue Sep 28 14:55:42 2021
Results reported at Tue Sep 28 14:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin845 338.568 -41.9411 458352001 458611201 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 :                                   882.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            904 sec.

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

