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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin729
RA = 338.568, Dec = -41.9411
tmin = 428284801, tmax = 428544001
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='358690', job_status='RUN', time_executed='2021-09-28 14:41:51.759101', time_epoch_executed='1632865311.76' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358690/ft1_4FGL_J2234.2-4156_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358690/ft1_4FGL_J2234.2-4156_daily_bin729.fits outfile=/scratch/kocevski/358690/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin729.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.07
user 5.83
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/358690/ltcube_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.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/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits
.....................!
real 11.88
user 11.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/358690/ltcube_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.fits outfile=/scratch/kocevski/358690/expmap_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.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/358690/ltcube_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.fits
.....................!
real 191.69
user 186.60
sys 4.77

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/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits scfile=/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits outfile=/scratch/kocevski/358690/cmap_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits scfile=/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits outfile=/scratch/kocevski/358690/cmap_HighResolution_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/358690/ft2_4FGL_J2234.2-4156_daily_bin729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358690/Model_4FGL_J2234.2-4156_daily_bin729.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/358690/ft1_filtered_4FGL_J2234.2-4156_daily_bin729.fits.....................!
real 37.83
user 36.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.5626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1226       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    116.53       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   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 '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15293E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0694       1.0000         .10000E-03   10000.    
    25 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.800       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .30694       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.427       1.0000         .10000E-03   10000.    
    31 'norm      '    15.411       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .53822       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=   3999.076     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4686 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    57.362       -.44559E-05** at limit **
   2  norm          6.5623        3.9791       -.11473E-06    .13447E-03
   3  Prefactor     9.7271        10.599        .29944E-06    .76384E-05
   4  Prefactor     .10000E-03    3.7157        .15989E-07** at limit **
   5  Prefactor     6.1632        57.232        .25614E-05    .37663E-04
   6  Prefactor     9.7889        9.7435       -.42072E-06    .45618E-04
   7  Prefactor     .10005E-03    232.47       -.11145E-04** at limit **
   8  norm          3.6499        6.0092        .46325E-07   -.84540E-05
   9  Prefactor     .10000E-03    13.443       -.16140E-06** at limit **
  10  Prefactor     .10000E-03    3.8667        .50693E-07** at limit **
  11  Prefactor     42.241        48.797        .47999E-06    .19802E-04
  12  Prefactor     .10000E-03    2.2052       -.82420E-07** at limit **
  13  Prefactor     2.6315        82.387        .24754E-05    .42246E-05
  14  Prefactor     .10000E-03    26.183        .48277E-06** at limit **
  15  Prefactor     4.0215        36.600        .10763E-04   -.32837E-04
  16  Prefactor     .10000E-03    18.997       -.19828E-05** at limit **
  17  Prefactor     116.51        129.71       -.39162E-05   -.32600E-04
  18  Prefactor     .10000E-03    7.4075       -.74452E-09** at limit **
  19  Prefactor     .10000E-03    5.7619        .16201E-07** at limit **
  20  Prefactor     .10000E-03    17.506        .10634E-05** at limit **
  21  Prefactor     .10000E-03    38.509        .20503E-05** at limit **
  22  Prefactor     .10000E-03    112.49        .36140E-05** at limit **
  23  norm          .10000E-03    5.3651       -.13101E-07** at limit **
  24  norm          1.0721        33.450        .12342E-04   -.10456E-03
  25  norm          .10000E-03    5.1137       -.96606E-07** at limit **
  26  norm          22.798        15.366        .53332E-07   -.43133E-05
  27  Prefactor     .10000E-03    6.3620       -.23768E-06** at limit **
  28  Prefactor     .10000E-03    25.002       -.69341E-06** at limit **
  29  norm          .33242        4.2474       -.15059E-06    .11734E-03
  30  Prefactor     14.432        27.298        .11390E-06   -.49668E-04
  31  norm          15.398        9.2652       -.12166E-06   -.11418E-03
  32  Normalizat    1.1363        .21035       -.62498E-06   -.35333E-04
  33  Prefactor     .53821        .17290       -.75978E-06   -.45454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 6.56233
  Prefactor  = 9.7271
  Prefactor  = 0.0001
  Prefactor  = 6.16319
  Prefactor  = 9.7889
  Prefactor  = 0.000100048
  norm       = 3.64993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.2409
  Prefactor  = 0.0001
  Prefactor  = 2.6315
  Prefactor  = 0.0001
  Prefactor  = 4.02152
  Prefactor  = 0.000100001
  Prefactor  = 116.509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.07207
  norm       = 0.0001
  norm       = 22.7975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.332421
  Prefactor  = 14.4318
  norm       = 15.3978
  Normalizat = 1.13628
  Prefactor  = 0.538205
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.076     FROM HESSE     STATUS=OK           693 CALLS     5379 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    58.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5623        3.9763        .93961E-04   -1.5196    
   3  Prefactor     9.7271        10.589        .12848E-03   -1.5084    
   4  Prefactor     .10000E-03    3.7372        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1632        57.092        .16225E-03   -1.5211    
   6  Prefactor     9.7889        9.7106        .12808E-03   -1.5082    
   7  Prefactor     .10005E-03    240.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6499        5.9984        .19343E-03   -1.5326    
   9  Prefactor     .10000E-03    13.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3932        .23537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.241        48.616        .61684E-04   -1.4407    
  12  Prefactor     .10000E-03    2.2115        .91705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6315        82.135        .25129E-03   -1.5384    
  14  Prefactor     .10000E-03    26.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0215        37.457        .10057E-02   -1.5307    
  16  Prefactor     .10000E-03    19.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     116.51        129.38        .18637E-03   -1.3545    
  18  Prefactor     .10000E-03    7.4186        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8000        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    114.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.3656        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0721        33.511        .47010E-03   -1.5501    
  25  norm          .10000E-03    5.1422        .13954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.798        15.365        .83887E-04   -1.4753    
  27  Prefactor     .10000E-03    6.3774        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .33242        19.119        .23961E-02   -1.5593    
  30  Prefactor     14.432        27.280        .10545E-03   -1.4948    
  31  norm          15.398        9.5197        .10202E-03   -1.4923    
  32  Normalizat    1.1363        .23991        .21661E-03   -.88595    
  33  Prefactor     .53821        .19829        .25907E-03   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46756e-10
Minuit parameter uncertainties:
  1  0.00124654
  2  3.97643
  3  10.5907
  4  3.03303e-06
  5  37.5634
  6  9.71217
  7  0.00684552
  8  5.99936
  9  1.30286e-05
  10  2.64209e-05
  11  48.6619
  12  5.26465e-06
  13  29.447
  14  8.90754e-05
  15  24.5665
  16  0.000243647
  17  129.696
  18  1.91352e-06
  19  3.12258e-06
  20  0.000193216
  21  0.000549161
  22  0.000532686
  23  1.37234e-06
  24  11.9945
  25  4.10854e-06
  26  15.3679
  27  3.84017e-05
  28  0.000108979
  29  5.04295
  30  27.3035
  31  9.52063
  32  0.240139
  33  0.198543
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.224e+01  4.866e+01  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.382e-01  1.985e-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.136e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.91e-05

TS (Fixed Index): 1.62
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358690/likelihoodResults_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.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): 0
logL (Free Index) = 3999.03036406
delta logL = 0.0454903085451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3999.0216923
delta logL = 0.0541620706886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5643       1.0000          .0000       10.000    
     3 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55326       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=   3999.022     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      346 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.964        90.342        .83408E-04    .32644E-04
   2  Index         2.5663        2.2633        .48525E-02    .21913E-04
   3  Normalizat    1.1022        .27942        .21960E-03    .23788E-04
   4  Prefactor     .55514        .21319        .25548E-03    .15753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9639
  Index      = 2.56632
  Normalizat = 1.10218
  Prefactor  = 0.555141
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.022     FROM HESSE     STATUS=OK            25 CALLS      371 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.964        53.788        .33363E-05   -1.4749    
   2  Index         2.5663        1.3816        .19410E-03   -.50835    
   3  Normalizat    1.1022        .25132        .87842E-05   -.89682    
   4  Prefactor     .55514        .20191        .10219E-04   -1.0951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92414e-12
Minuit parameter uncertainties:
  1  53.9014
  2  1.40577
  3  0.251592
  4  0.202173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358690': 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) = 3999.021646
delta logL = 0.0542083729702

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.296e+01  5.390e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.566e+00  1.406e+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:  5.551e-01  2.022e-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.102e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.57 +/- 1.41
Photon Flux (Free Index): 5.00e-08 +/- 8.71e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.35e-05

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/358690/cmap_HighResolution_428284801_428544001_4FGL_J2234.2-4156_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.36e-05', photon_flux_error='2.71e-08', dlogl='5.42e-02', energy_flux='1.66e-05', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-09-28 14:53:48.791123', photon_index_error2='1.41', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='1.35e-05', EG='1.14', time_epoch_completed='1632866028.79', return_code='0', job_id='358690', GAL2='0.56', EG2='1.10', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='8.71e-08', ts2='1.74', photon_index='1.99' WHERE bin_id='729' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:53:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 358690: <4FGL_J2234.2-4156_daily_bin729> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin729 338.568 -41.9411 428284801 428544001 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 :                                   716.00 sec.
    Max Memory :                                 1168 MB
    Average Memory :                             331.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

