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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin955
RA = 338.568, Dec = -41.9411
tmin = 486864001, tmax = 487123201
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='359021', job_status='RUN', time_executed='2021-09-28 14:43:03.272011', time_epoch_executed='1632865383.27' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359021/ft1_4FGL_J2234.2-4156_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359021/ft1_4FGL_J2234.2-4156_daily_bin955.fits outfile=/scratch/kocevski/359021/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin955.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=486864001.0 tmax=487123201.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.52
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359021/ft1_filtered_4FGL_J2234.2-4156_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/359021/ltcube_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.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/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits
.....................!
real 11.61
user 11.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359021/ft1_filtered_4FGL_J2234.2-4156_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/359021/ltcube_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.fits outfile=/scratch/kocevski/359021/expmap_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.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/359021/ltcube_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.fits
.....................!
real 190.20
user 185.62
sys 4.25

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/359021/ft1_filtered_4FGL_J2234.2-4156_daily_bin955.fits scfile=/scratch/kocevski/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits outfile=/scratch/kocevski/359021/cmap_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.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.56
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359021/ft1_filtered_4FGL_J2234.2-4156_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/359021/ft2_4FGL_J2234.2-4156_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359021/Model_4FGL_J2234.2-4156_daily_bin955.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/359021/ft1_filtered_4FGL_J2234.2-4156_daily_bin955.fits.....................!
real 41.74
user 40.06
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9835       1.0000         .10000E-03   10000.    
     2 'norm      '    16.085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5523       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1197       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5123       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11355E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21863E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.4362       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16707E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.845       1.0000         .10000E-03   10000.    
    29 'norm      '    9.1856       1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95238       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96521       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=   4992.030     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4519 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9738        129.81       -.38160E-05   -.12696E-04
   2  norm          16.084        7.2024       -.21562E-06    .31779E-04
   3  Prefactor     4.5524        13.081       -.19123E-06   -.90920E-04
   4  Prefactor     2.1196        9.3266       -.13165E-05   -.31276E-03
   5  Prefactor     .10000E-03    23.709        .14922E-05** at limit **
   6  Prefactor     2.9352        9.1529       -.96881E-06   -.25590E-03
   7  Prefactor     .10000E-03    85.422        .19470E-05** at limit **
   8  norm          6.7176        7.3858       -.76945E-07   -.20047E-04
   9  Prefactor     .10000E-03    5.6195        .92108E-08** at limit **
  10  Prefactor     .10000E-03    1.7034        .13506E-07** at limit **
  11  Prefactor     .10000E-03    19.042       -.45614E-05** at limit **
  12  Prefactor     9.5121        7.1992       -.62742E-06   -.10182E-03
  13  Prefactor     .10000E-03    6.5521        .22681E-07** at limit **
  14  Prefactor     5.1989        31.785       -.41420E-05   -.28202E-04
  15  Prefactor     .10000E-03    24.225        .58068E-05** at limit **
  16  Prefactor     .10000E-03    19.108       -.69999E-05** at limit **
  17  Prefactor     .10000E-03    258.07       -.20972E-05** at limit **
  18  Prefactor     .10000E-03    16.822        .79500E-05** at limit **
  19  Prefactor     .10000E-03    2.0921        .33224E-08** at limit **
  20  Prefactor     .10000E-03    10.331        .53225E-06** at limit **
  21  Prefactor     .10000E-03    36.253       -.28539E-05** at limit **
  22  Prefactor     .10000E-03    4.8805       -.82884E-08** at limit **
  23  norm          .10000E-03    4.5360       -.22127E-07** at limit **
  24  norm          .10000E-03    2.1597        .17164E-08** at limit **
  25  norm          .10000E-03    2.7779       -.14766E-06** at limit **
  26  norm          7.4369        9.1066        .10445E-06   -.29140E-04
  27  Prefactor     .10000E-03    12.573       -.17468E-05** at limit **
  28  Prefactor     46.861        49.618        .72842E-05    .48587E-05
  29  norm          9.1843        7.9061        .10339E-05   -.12206E-03
  30  Prefactor     20.521        21.577        .10550E-06    .51821E-04
  31  norm          .10000E-03    2.2419       -.14042E-06** at limit **
  32  Normalizat    .95194        .20450       -.12089E-05    .23254E-04
  33  Prefactor     .96555        .18574        .10280E-05   -.50838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97376
  norm       = 16.0844
  Prefactor  = 4.55236
  Prefactor  = 2.1196
  Prefactor  = 0.0001
  Prefactor  = 2.93521
  Prefactor  = 0.0001
  norm       = 6.71764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.5121
  Prefactor  = 0.0001
  Prefactor  = 5.19887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.43691
  Prefactor  = 0.0001
  Prefactor  = 46.8606
  norm       = 9.18431
  Prefactor  = 20.5208
  norm       = 0.0001
  Normalizat = 0.951935
  Prefactor  = 0.965546
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.030     FROM HESSE     STATUS=OK           689 CALLS     5208 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9738        127.68        .23504E-03   -1.5363    
   2  norm          16.084        7.1326        .99864E-04   -1.4906    
   3  Prefactor     4.5524        12.871        .18868E-03   -1.5281    
   4  Prefactor     2.1196        9.1942        .28328E-03   -1.5417    
   5  Prefactor     .10000E-03    23.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9352        9.1914        .23684E-03   -1.5365    
   7  Prefactor     .10000E-03    85.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7176        7.3892        .15480E-03   -1.5190    
   9  Prefactor     .10000E-03    5.7098        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7246        .90016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5121        7.2183        .12994E-03   -1.5091    
  13  Prefactor     .10000E-03    6.5539        .17664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1989        32.223        .17647E-03   -1.5252    
  15  Prefactor     .10000E-03    24.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    261.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0939        .99799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8834        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.5380        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1607        .10141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7854        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.4369        9.1035        .14707E-03   -1.5162    
  27  Prefactor     .10000E-03    12.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     46.861        49.829        .58583E-04   -1.4338    
  29  norm          9.1843        7.8898        .13224E-03   -1.5102    
  30  Prefactor     20.521        21.485        .88393E-04   -1.4802    
  31  norm          .10000E-03    2.2495        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95194        .23822        .25481E-03   -.94659    
  33  Prefactor     .96555        .21659        .24015E-03   -.93887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57597e-10
Minuit parameter uncertainties:
  1  39.0591
  2  7.13294
  3  12.8791
  4  8.83112
  5  2.12459e-05
  6  9.19582
  7  0.000118712
  8  7.3902
  9  4.89859e-06
  10  3.31579e-06
  11  1.52787e-05
  12  7.21899
  13  3.10804e-06
  14  25.9065
  15  4.37175e-05
  16  0.00014566
  17  0.00024743
  18  2.93193e-05
  19  1.5902e-07
  20  2.34982e-06
  21  4.90086e-06
  22  3.67583e-07
  23  2.11278e-06
  24  2.06686e-07
  25  2.39089e-05
  26  9.10521
  27  4.05247e-06
  28  49.8731
  29  7.89071
  30  21.4927
  31  2.07286e-05
  32  0.238484
  33  0.216789
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.528e-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.655e-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:  9.519e-01  2.385e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359021/likelihoodResults_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.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) = 4992.02984322
delta logL = -0.000250408519605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4992.01398306
delta logL = 0.0156097590434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21543E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3015       1.0000          .0000       10.000    
     3 'Normalizat'    .93871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97320       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=   4992.014     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20651E-02    .79102E-01    .23304E-02** at limit **
   2  Index         5.3160        1.6520        .20175        .23189E-04
   3  Normalizat    .93874        .14779E-01    .45394E-01   -.72008E-04
   4  Prefactor     .97315        .14090E-01    .45931E-01    .33088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0020651
  Index      = 5.31597
  Normalizat = 0.938736
  Prefactor  = 0.973152
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.014     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20651E-02    2.8378        .12777E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3160        7.3397        .76650E-02    .63237E-01
   3  Normalizat    .93874        .10785        .25649E-03   -.95112    
   4  Prefactor     .97315        .10081        .23936E-03   -.93630    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44107e-06
Minuit parameter uncertainties:
  1  0.149361
  2  24.0428
  3  0.107872
  4  0.100831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359021': 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) = 4992.01398137
delta logL = 0.0156114426873

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.065e-03  1.494e-01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  5.316e+00  2.404e+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.732e-01  1.008e-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:  9.387e-01  1.079e-01  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/359021/cmap_HighResolution_486864001_487123201_4FGL_J2234.2-4156_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-28 14:56:06.349352', job_id='359021', GAL2='0.97', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1632866166.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.56e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='955' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 359021: <4FGL_J2234.2-4156_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin955 338.568 -41.9411 486864001 487123201 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 :                                   783.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

