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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin681
RA = 338.568, Dec = -41.9411
tmin = 415843201, tmax = 416102401
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='358617', job_status='RUN', time_executed='2021-09-28 14:40:38.808678', time_epoch_executed='1632865238.81' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358617/ft1_4FGL_J2234.2-4156_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358617/ft1_4FGL_J2234.2-4156_daily_bin681.fits outfile=/scratch/kocevski/358617/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin681.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=415843201.0 tmax=416102401.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.90
user 5.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/358617/ltcube_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.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/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits
.....................!
real 11.97
user 11.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/358617/ltcube_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.fits outfile=/scratch/kocevski/358617/expmap_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.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/358617/ltcube_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.fits
.....................!
real 191.03
user 185.27
sys 5.20

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/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits scfile=/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits outfile=/scratch/kocevski/358617/cmap_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits scfile=/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits outfile=/scratch/kocevski/358617/cmap_HighResolution_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/358617/ft2_4FGL_J2234.2-4156_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358617/Model_4FGL_J2234.2-4156_daily_bin681.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/358617/ft1_filtered_4FGL_J2234.2-4156_daily_bin681.fits.....................!
real 36.05
user 34.62
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.739       1.0000         .10000E-03   10000.    
     2 'norm      '    .27443E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.781       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.298       1.0000         .10000E-03   10000.    
    23 'norm      '    13.432       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7558       1.0000         .10000E-03   10000.    
    26 'norm      '    11.024       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3473       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3723       1.0000         .10000E-03   10000.    
    29 'norm      '    2.7469       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95307       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77075       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=   4167.165     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     5447 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.714        57.895        .98790E-05    .24235E-03
   2  norm          .10046E-03    7.6724       -.70450E-05** at limit **
   3  Prefactor     5.6591        11.375       -.67556E-06    .72977E-04
   4  Prefactor     14.172        14.574        .48955E-06    .18343E-03
   5  Prefactor     53.952        49.070        .18136E-05    .91239E-04
   6  Prefactor     1.7844        14.012       -.45198E-05    .71627E-04
   7  Prefactor     .10000E-03    62.299       -.28798E-05** at limit **
   8  norm          .10000E-03    5.7714        .14946E-07** at limit **
   9  Prefactor     .75384        7.8431        .24194E-05    .53013E-03
  10  Prefactor     .10000E-03    1.3093       -.18505E-07** at limit **
  11  Prefactor     .10000E-03    17.854       -.12109E-05** at limit **
  12  Prefactor     8.3340        6.2376       -.53417E-06   -.24003E-04
  13  Prefactor     15.373        24.353       -.25465E-06   -.47068E-04
  14  Prefactor     .10000E-03    14.956        .10922E-05** at limit **
  15  Prefactor     32.885        49.175        .67540E-05   -.32231E-04
  16  Prefactor     .60729        169.00       -.28720E-04   -.31627E-04
  17  Prefactor     .10000E-03    87.560        .70078E-05** at limit **
  18  Prefactor     .10000E-03    11.285       -.43200E-06** at limit **
  19  Prefactor     1.9296        7.0832       -.24551E-05    .19301E-03
  20  Prefactor     .10000E-03    18.827       -.97570E-06** at limit **
  21  Prefactor     .10000E-03    22.703        .17854E-05** at limit **
  22  Prefactor     51.284        22.100       -.12939E-06   -.28918E-04
  23  norm          13.440        16.791        .14079E-06   -.20926E-04
  24  norm          .10000E-03    3.2619       -.31005E-07** at limit **
  25  norm          3.7569        4.6295        .68466E-07   -.10395E-03
  26  norm          11.024        8.1673       -.50715E-07   -.36524E-04
  27  Prefactor     1.3480        6.3075       -.30576E-05    .25214E-03
  28  Prefactor     1.3697        156.97       -.80666E-05    .43795E-04
  29  norm          2.7474        3.6590        .21340E-06   -.26531E-03
  30  Prefactor     .10000E-03    10.722       -.50897E-07** at limit **
  31  norm          .10000E-03    2.2403       -.10472E-07** at limit **
  32  Normalizat    .95298        .22301        .27383E-05    .27053E-03
  33  Prefactor     .77089        .19687       -.11143E-05   -.14087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7139
  norm       = 0.000100456
  Prefactor  = 5.65914
  Prefactor  = 14.1723
  Prefactor  = 53.9521
  Prefactor  = 1.78443
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.753838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.33405
  Prefactor  = 15.373
  Prefactor  = 0.0001
  Prefactor  = 32.8855
  Prefactor  = 0.607293
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.92963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2839
  norm       = 13.4397
  norm       = 0.0001
  norm       = 3.75689
  norm       = 11.0239
  Prefactor  = 1.34801
  Prefactor  = 1.36971
  norm       = 2.74736
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.952984
  Prefactor  = 0.770891
 **********
 **   18 **HESSE 
 **********

 FCN=   4167.165     FROM HESSE     STATUS=OK           703 CALLS     6150 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.714        58.728        .68988E-04   -1.4546    
   2  norm          .10046E-03    65.996        .24493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6591        11.345        .84425E-03   -1.5232    
   4  Prefactor     14.172        14.516        .10638E-03   -1.4955    
   5  Prefactor     53.952        48.815        .54618E-04   -1.4238    
   6  Prefactor     1.7844        14.230        .15634E-02   -1.5441    
   7  Prefactor     .10000E-03    62.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7971        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .75384        15.630        .32550E-02   -1.5534    
  10  Prefactor     .10000E-03    1.3208        .72122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3340        6.2825        .12908E-03   -1.5131    
  13  Prefactor     15.373        24.266        .10213E-03   -1.4924    
  14  Prefactor     .10000E-03    15.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.885        59.414        .69986E-04   -1.4560    
  16  Prefactor     .60729        255.85        .46951E-02   -1.5552    
  17  Prefactor     .10000E-03    87.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9296        7.1636        .14946E-02   -1.5430    
  20  Prefactor     .10000E-03    18.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.284        22.095        .55995E-04   -1.4274    
  23  norm          13.440        16.784        .10929E-03   -1.4975    
  24  norm          .10000E-03    3.2662        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7569        4.6220        .14475E-03   -1.5320    
  26  norm          11.024        8.1690        .12066E-03   -1.5044    
  27  Prefactor     1.3480        6.4844        .15693E-02   -1.5476    
  28  Prefactor     1.3697        153.24        .18603E-02   -1.5474    
  29  norm          2.7474        3.5641        .12099E-03   -1.5376    
  30  Prefactor     .10000E-03    10.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.2747        .94276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95298        .25757        .23069E-03   -.94623    
  33  Prefactor     .77089        .23103        .24703E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75477e-08
Minuit parameter uncertainties:
  1  58.8293
  2  0.0109829
  3  11.3489
  4  14.5201
  5  48.851
  6  10.0813
  7  0.000112745
  8  1.91972e-05
  9  6.86675
  10  1.25913e-05
  11  2.3883e-05
  12  6.283
  13  24.2819
  14  8.1903e-05
  15  59.5214
  16  25.0362
  17  0.000230384
  18  0.000173649
  19  7.16683
  20  3.12933e-05
  21  8.4336e-05
  22  22.0982
  23  16.79
  24  4.84183e-06
  25  4.62241
  26  8.16986
  27  5.91387
  28  29.0506
  29  3.56437
  30  6.49791e-05
  31  6.81899e-06
  32  0.257908
  33  0.231324
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.388e-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:  7.709e-01  2.313e-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.530e-01  2.579e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358617/likelihoodResults_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.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) = 4167.16484682
delta logL = -0.000266684910457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4167.16458048
delta logL = -3.42964085576e-07

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 'Index     '    2.0854       1.0000          .0000       10.000    
     3 'Normalizat'    .95297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77090       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=   4167.165     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    569.27        .90712E-02** at limit **
   2  Index         2.0529        5.7739        .50000        .15458E-04
   3  Normalizat    .95298        .29446E-01    .45575E-01   -.24181E-04
   4  Prefactor     .77090        .28792E-01    .43337E-01   -.86025E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.05291
  Normalizat = 0.952977
  Prefactor  = 0.770898
 **********
 **   18 **HESSE 
 **********

 FCN=   4167.165     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0529        6.0082        .50000       -.63034    
   3  Normalizat    .95298        .22617        .23069E-03   -.94623    
   4  Prefactor     .77090        .22111        .24703E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43459e-10
Minuit parameter uncertainties:
  1  0.000238378
  2  4.28681
  3  0.226394
  4  0.221365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358617': 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) = 4167.16458035
delta logL = -2.13621206058e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.384e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.053e+00  4.287e+00  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:  7.709e-01  2.214e-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.530e-01  2.264e-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/358617/cmap_HighResolution_415843201_416102401_4FGL_J2234.2-4156_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-28 14:53:54.556462', job_id='358617', GAL2='0.77', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632866034.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-2.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='681' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:53:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 358617: <4FGL_J2234.2-4156_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin681 338.568 -41.9411 415843201 416102401 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 :                                   794.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

