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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin670
RA = 338.568, Dec = -41.9411
tmin = 412992001, tmax = 413251201
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='358600', job_status='RUN', time_executed='2021-09-28 14:43:15.582502', time_epoch_executed='1632865395.58' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358600/ft1_4FGL_J2234.2-4156_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358600/ft1_4FGL_J2234.2-4156_daily_bin670.fits outfile=/scratch/kocevski/358600/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin670.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=412992001.0 tmax=413251201.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.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/358600/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.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/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/358600/ltcube_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.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/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits
.....................!
real 11.73
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/358600/ltcube_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.fits outfile=/scratch/kocevski/358600/expmap_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.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/358600/ltcube_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.fits
.....................!
real 191.63
user 186.49
sys 4.80

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/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.fits scfile=/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits outfile=/scratch/kocevski/358600/cmap_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/358600/ft2_4FGL_J2234.2-4156_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358600/Model_4FGL_J2234.2-4156_daily_bin670.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/358600/ft1_filtered_4FGL_J2234.2-4156_daily_bin670.fits......................!
real 20.64
user 19.50
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.917       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28305E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    153.30       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.650       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    44.025       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    17.809       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.6790       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .43597E-01   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=   1055.560     FROM MIGRAD    STATUS=CONVERGED   1551 CALLS     7440 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    296.45        .18142E-02** at limit **
   2  norm          .10000E-03    32.528        .35554E-03** at limit **
   3  Prefactor     23.406        32.746        .82791E-04   -.16758E-03
   4  Prefactor     .10000E-03    12.570        .11249E-02** at limit **
   5  Prefactor     .10000E-03    399.57        .18142E-02** at limit **
   6  Prefactor     87.919        111.82        .21425E-03   -.15977E-04
   7  Prefactor     .10000E-03    6419.2        .21414E-02** at limit **
   8  norm          .10000E-03    190.63        .18142E-02** at limit **
   9  Prefactor     .10000E-03    46.999        .18142E-02** at limit **
  10  Prefactor     15.036        21.755        .10328E-03   -.12172E-03
  11  Prefactor     153.30        157.16        .32557E-04   -.24269E-04
  12  Prefactor     .10000E-03    19.450        .14001E-02** at limit **
  13  Prefactor     .10000E-03    30.675        .17578E-02** at limit **
  14  Prefactor     36.074        91.105        .66708E-04   -.62580E-04
  15  Prefactor     .10000E-03    491.38        .18142E-02** at limit **
  16  Prefactor     .10000E-03    146.02        .18142E-02** at limit **
  17  Prefactor     .10006E-03    1317.3        .18142E-02** at limit **
  18  Prefactor     21.975        24.703        .85445E-04   -.17143E-03
  19  Prefactor     .10000E-03    23.055        .15226E-02** at limit **
  20  Prefactor     .10000E-03    214.03        .18142E-02** at limit **
  21  Prefactor     .10000E-03    56.204        .18142E-02** at limit **
  22  Prefactor     45.435        9947.8        .31435E-02    .25440E-04
  23  norm          .10000E-03    38.936        .18142E-02** at limit **
  24  norm          42.127        6044.1        .30211E-03    .59372E-04
  25  norm          .10000E-03    5.5485        .74761E-03** at limit **
  26  norm          17.808        18.784        .94907E-04   -.81839E-04
  27  Prefactor     .10000E-03    47.280        .18142E-02** at limit **
  28  Prefactor     .10000E-03    70.763        .18142E-02** at limit **
  29  norm          .10000E-03    4.6117        .68139E-03** at limit **
  30  Prefactor     .10000E-03    346.11        .18142E-02** at limit **
  31  norm          .10000E-03    6.3561        .80016E-03** at limit **
  32  Normalizat    1.6787        .63751        .20461E-03   -.13845E-03
  33  Prefactor     .43686E-01    1.3213        .78770E-02   -.44710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 23.4058
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 87.9191
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0363
  Prefactor  = 153.302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0743
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100065
  Prefactor  = 21.9749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4345
  norm       = 0.0001
  norm       = 42.1265
  norm       = 0.0001
  norm       = 17.8076
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.67872
  Prefactor  = 0.0436855
 **********
 **   18 **HESSE 
 **********

 FCN=   1055.560     FROM HESSE     STATUS=OK           663 CALLS     8103 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    32.530        .71107E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.406        32.399        .16558E-04   -1.4740    
   4  Prefactor     .10000E-03    12.570        .22498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    399.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     87.919        111.76        .42850E-04   -1.3830    
   7  Prefactor     .10000E-03    6419.2        .42828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    190.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.036        21.751        .41312E-05   -1.4932    
  11  Prefactor     153.30        157.15        .65115E-05   -1.3225    
  12  Prefactor     .10000E-03    19.450        .28002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.676        .35155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.074        90.743        .13342E-04   -1.4506    
  15  Prefactor     .10000E-03    491.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    146.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    1317.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.975        24.638        .17089E-04   -1.4770    
  19  Prefactor     .10000E-03    23.056        .30451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    214.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    56.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.435        9530.7        .12574E-03   -1.4359    
  23  norm          .10000E-03    38.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          42.127        1999.2        .12084E-04   -1.4409    
  25  norm          .10000E-03    5.5485        .14952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          17.808        18.783        .18981E-04   -1.4864    
  27  Prefactor     .10000E-03    47.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    70.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.6117        .13628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    346.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.3561        .16003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.6787        .56919        .40922E-04   -.72873    
  33  Prefactor     .43686E-01    1.0557        .31508E-03   -1.4385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6467e-10
Minuit parameter uncertainties:
  1  0.00190778
  2  0.000238484
  3  32.4237
  4  2.83241e-05
  5  0.00110937
  6  112.026
  7  0.00426732
  8  6.67053e-05
  9  7.62197e-05
  10  21.7625
  11  157.581
  12  2.42832e-06
  13  2.66885e-05
  14  91.0933
  15  0.000542935
  16  0.000914184
  17  0.0189188
  18  24.6491
  19  3.90944e-05
  20  0.000518424
  21  0.000142581
  22  1795.31
  23  5.69785e-05
  24  603.202
  25  1.19949e-06
  26  18.7897
  27  0.00039528
  28  2.34822e-05
  29  4.32306e-06
  30  0.00055834
  31  4.85255e-06
  32  0.571426
  33  0.438474
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  4.369e-02  4.385e-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.679e+00  5.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 8.77e-08
Energy Flux (Fixed Index): 6.01e-05 +/- 6.18e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1055.55533614
delta logL = 0.00461775759982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1055.55356649
delta logL = 0.00638741670809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    163.08       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8906       1.0000          .0000       10.000    
     3 'Normalizat'    1.6862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41083E-01   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=   1055.554     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     163.14        184.28        .15791E-03    .25559E-05
   2  Index         1.8902        .90475        .52875E-02   -.21829E-05
   3  Normalizat    1.6869        .55827        .20427E-03    .58437E-06
   4  Prefactor     .40670E-01    1.2001        .79458E-02    .94708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 163.136
  Index      = 1.89019
  Normalizat = 1.68692
  Prefactor  = 0.0406698
 **********
 **   18 **HESSE 
 **********

 FCN=   1055.554     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     163.14        182.26        .63163E-05   -1.3146    
   2  Index         1.8902        .89384        .21150E-03   -.67125    
   3  Normalizat    1.6869        .51452        .81709E-05   -.72653    
   4  Prefactor     .40670E-01    1.0250        .15892E-02   -1.4432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06932e-11
Minuit parameter uncertainties:
  1  182.898
  2  0.901789
  3  0.516163
  4  0.416586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358600': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1055.55356526
delta logL = 0.00638864430175

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.631e+02  1.829e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.890e+00  9.018e-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:  4.067e-02  4.166e-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.687e+00  5.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.89 +/- 0.90
Photon Flux (Free Index): 7.32e-08 +/- 1.26e-07
Energy Flux (Free Index): 6.74e-05 +/- 1.02e-04

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/358600/cmap_HighResolution_412992001_413251201_4FGL_J2234.2-4156_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='6.74e-05', photon_flux_error='8.77e-08', dlogl='6.39e-03', energy_flux='6.01e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-28 14:50:29.876788', photon_index_error2='0.90', photon_index2='1.89', ts='4.04', fit_tolerance='1e-08', GAL='0.04', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='1.68', time_epoch_completed='1632865829.88', return_code='0', job_id='358600', GAL2='0.04', EG2='1.69', return_code2='0', energy_flux_error='6.18e-05', photon_flux_error2='1.26e-07', ts2='4.06', photon_index='1.99' WHERE bin_id='670' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 358600: <4FGL_J2234.2-4156_daily_bin670> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin670 338.568 -41.9411 412992001 413251201 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 :                                   435.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

