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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1221
RA = 338.568, Dec = -41.9411
tmin = 555811201, tmax = 556070401
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='361476', job_status='RUN', time_executed='2021-09-28 14:52:49.787890', time_epoch_executed='1632865969.79' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361476/ft1_4FGL_J2234.2-4156_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361476/ft1_4FGL_J2234.2-4156_daily_bin1221.fits outfile=/scratch/kocevski/361476/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1221.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=555811201.0 tmax=556070401.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.56
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.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/361476/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/361476/ft1_filtered_4FGL_J2234.2-4156_daily_bin1221.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361476/ft1_filtered_4FGL_J2234.2-4156_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/361476/ltcube_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.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/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361476/ft1_filtered_4FGL_J2234.2-4156_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/361476/ltcube_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.fits outfile=/scratch/kocevski/361476/expmap_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.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/361476/ltcube_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.fits
.....................!
real 190.44
user 185.33
sys 4.72

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/361476/ft1_filtered_4FGL_J2234.2-4156_daily_bin1221.fits scfile=/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits outfile=/scratch/kocevski/361476/cmap_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361476/ft1_filtered_4FGL_J2234.2-4156_daily_bin1221.fits scfile=/scratch/kocevski/361476/ft2_4FGL_J2234.2-4156_daily_bin1221.fits outfile=/scratch/kocevski/361476/cmap_HighResolution_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16113E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12406E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    160.80       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    24.177       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2624       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.0106       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.9532       1.0000         .10000E-03   10000.    
    31 'norm      '    3.2100       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .59278       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=   1289.983     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4479 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.996       -.66502E-06** at limit **
   2  norm          7.6227        14.843        .87449E-07   -.19601E-05
   3  Prefactor     2.7224        13.809        .56074E-06   -.87778E-05
   4  Prefactor     .10000E-03    12.591       -.52571E-06** at limit **
   5  Prefactor     .10000E-03    88.082        .36663E-05** at limit **
   6  Prefactor     .10000E-03    7.0146        .14525E-09** at limit **
   7  Prefactor     .10000E-03    77.422        .27529E-05** at limit **
   8  norm          .10000E-03    8.3699       -.34762E-08** at limit **
   9  Prefactor     .10000E-03    9.6881       -.49788E-07** at limit **
  10  Prefactor     5.3020        8.1272        .14488E-06   -.17168E-04
  11  Prefactor     .10000E-03    59.401       -.97647E-06** at limit **
  12  Prefactor     .10000E-03    28.130        .19888E-05** at limit **
  13  Prefactor     .10000E-03    16.292        .11016E-05** at limit **
  14  Prefactor     .10000E-03    39.090       -.41009E-06** at limit **
  15  Prefactor     .10001E-03    134.65       -.72617E-05** at limit **
  16  Prefactor     .10000E-03    19.796       -.87996E-06** at limit **
  17  Prefactor     .10000E-03    119.07       -.60719E-06** at limit **
  18  Prefactor     .10000E-03    62.559       -.25497E-06** at limit **
  19  Prefactor     .10000E-03    13.088       -.34880E-06** at limit **
  20  Prefactor     .10000E-03    49.421       -.21618E-05** at limit **
  21  Prefactor     160.80        175.87        .68371E-06    .29361E-05
  22  Prefactor     .10000E-03    21.903       -.66506E-06** at limit **
  23  norm          .10000E-03    12.046        .16726E-06** at limit **
  24  norm          .10000E-03    11.899        .28973E-06** at limit **
  25  norm          .10000E-03    18.219        .32427E-07** at limit **
  26  norm          24.182        23.385        .34584E-07   -.31752E-05
  27  Prefactor     3.2563        21.246        .96892E-06   -.29812E-04
  28  Prefactor     .10000E-03    101.05        .29237E-05** at limit **
  29  norm          8.0128        9.0744       -.48851E-06   -.33336E-05
  30  Prefactor     4.9774        94.079        .45273E-06    .28498E-04
  31  norm          3.2105        8.1168        .37175E-05   -.16868E-03
  32  Normalizat    1.2100        .35955       -.10618E-05    .66728E-05
  33  Prefactor     .59330        .32892        .64679E-06   -.14771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.62268
  Prefactor  = 2.72244
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.30198
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 160.804
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.1819
  Prefactor  = 3.25632
  Prefactor  = 0.000100001
  norm       = 8.01275
  Prefactor  = 4.97741
  norm       = 3.2105
  Normalizat = 1.21002
  Prefactor  = 0.593297
 **********
 **   18 **HESSE 
 **********

 FCN=   1289.983     FROM HESSE     STATUS=OK           679 CALLS     5158 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6227        14.963        .14522E-03   -1.5156    
   3  Prefactor     2.7224        13.754        .24693E-03   -1.5378    
   4  Prefactor     .10000E-03    12.637        .12458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0183        .92922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    78.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.3704        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7036        .10919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3020        8.1196        .12147E-03   -1.5247    
  11  Prefactor     .10000E-03    59.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.393        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    139.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.896        .15631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.146        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     160.80        176.53        .31801E-04   -1.3165    
  22  Prefactor     .10000E-03    21.959        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.046        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.923        .12107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    18.266        .14915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          24.182        23.395        .81466E-04   -1.4724    
  27  Prefactor     3.2563        19.909        .22421E-03   -1.5347    
  28  Prefactor     .10000E-03    101.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.0128        9.0559        .10847E-03   -1.5142    
  30  Prefactor     4.9774        89.111        .18071E-03   -1.5262    
  31  norm          3.2105        8.2670        .78852E-03   -1.5350    
  32  Normalizat    1.2100        .40906        .21616E-03   -.86294    
  33  Prefactor     .59330        .37392        .27259E-03   -1.0787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74867e-10
Minuit parameter uncertainties:
  1  0.000118261
  2  14.9704
  3  12.2424
  4  4.368e-05
  5  0.000830936
  6  9.94067e-07
  7  0.000595872
  8  5.29959e-07
  9  3.62048e-07
  10  8.12126
  11  0.000176844
  12  0.000268507
  13  0.000110113
  14  5.12178e-05
  15  0.00192372
  16  8.28272e-05
  17  0.00015205
  18  1.43188e-06
  19  2.52512e-05
  20  0.000365028
  21  177.111
  22  7.38257e-05
  23  6.99954e-06
  24  2.84726e-05
  25  9.05219e-06
  26  23.4036
  27  16.1111
  28  0.000628547
  29  9.05746
  30  42.1939
  31  8.26992
  32  0.410154
  33  0.375498
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.768e-04  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:  5.933e-01  3.755e-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.210e+00  4.102e-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: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361476/likelihoodResults_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.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) = 1289.98351494
delta logL = -7.95959490461e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1289.9834356
delta logL = -2.56022758549e-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.2760       1.0000          .0000       10.000    
     3 'Normalizat'    1.2100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59332       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=   1289.983     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.109        .90712E-02** at limit **
   2  Index         2.2499        7.2317        .50000        .46680E-05
   3  Normalizat    1.2100        .76292E-02    .34650E-01   -.12982E-04
   4  Prefactor     .59330        .69979E-02    .61615E-01    .11188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.24987
  Normalizat = 1.21002
  Prefactor  = 0.593299
 **********
 **   18 **HESSE 
 **********

 FCN=   1289.983     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    239.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2499        7.1618        .50000       -.58240    
   3  Normalizat    1.2100        .20352E-01    .21617E-03   -.86294    
   4  Prefactor     .59330        .18638E-01    .27259E-03   -1.0787    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05607e-07
Minuit parameter uncertainties:
  1  0.00214342
  2  311.074
  3  0.020352
  4  0.0186387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361476': 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) = 1289.98343557
delta logL = -2.24633822654e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.143e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.250e+00  3.111e+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:  5.933e-01  1.864e-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.210e+00  2.035e-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/361476/cmap_HighResolution_555811201_556070401_4FGL_J2234.2-4156_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-28 15:00:13.153793', job_id='361476', GAL2='0.59', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632866413.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='-2.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1221' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:00:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 361476: <4FGL_J2234.2-4156_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1221> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:17 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50: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:50:20 2021
Terminated at Tue Sep 28 15:00:13 2021
Results reported at Tue Sep 28 15:00:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1221 338.568 -41.9411 555811201 556070401 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 :                                   442.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             212.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            596 sec.

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

