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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1321
RA = 338.568, Dec = -41.9411
tmin = 581731201, tmax = 581990401
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='361636', job_status='RUN', time_executed='2021-09-28 14:50:52.336291', time_epoch_executed='1632865852.34' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361636/ft1_4FGL_J2234.2-4156_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361636/ft1_4FGL_J2234.2-4156_daily_bin1321.fits outfile=/scratch/kocevski/361636/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1321.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=581731201.0 tmax=581990401.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 2.56
user 2.35
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.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/361636/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.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/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/361636/ltcube_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.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/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits
.....................!
real 12.28
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/361636/ltcube_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.fits outfile=/scratch/kocevski/361636/expmap_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.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/361636/ltcube_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.fits
.....................!
real 190.03
user 184.29
sys 5.26

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/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.fits scfile=/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits outfile=/scratch/kocevski/361636/cmap_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.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.54
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/361636/ft2_4FGL_J2234.2-4156_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361636/Model_4FGL_J2234.2-4156_daily_bin1321.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/361636/ft1_filtered_4FGL_J2234.2-4156_daily_bin1321.fits.....................!
real 42.28
user 41.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.953       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0497       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12135E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0865       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10166E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32525E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15783E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.588       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1100       1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6921       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8024       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.7413       1.0000         .10000E-03   10000.    
    29 'norm      '    1.9967       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.4665       1.0000         .10000E-03   10000.    
    31 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71812       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4030       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=   5369.555     FROM MIGRAD    STATUS=CONVERGED   1634 CALLS     5380 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.951        40.769        .57314E-04    .14679E-05
   2  norm          3.0486        4.2121        .16945E-03   -.13620E-04
   3  Prefactor     .10000E-03    33.757        .35796E-02** at limit **
   4  Prefactor     8.1239        14.256        .14069E-03    .31030E-04
   5  Prefactor     .10000E-03    15.639        .18142E-02** at limit **
   6  Prefactor     16.261        11.180        .99325E-04   -.39717E-04
   7  Prefactor     .10000E-03    68.193        .18142E-02** at limit **
   8  norm          .10000E-03    3.4180        .13223E-02** at limit **
   9  Prefactor     .10000E-03    3.1764        .12739E-02** at limit **
  10  Prefactor     4.0863        3.1410        .11009E-03   -.53491E-04
  11  Prefactor     .10000E-03    38.974        .18142E-02** at limit **
  12  Prefactor     18.986        9.2598        .91956E-04   -.10261E-03
  13  Prefactor     26.595        24.801        .77688E-04    .10683E-04
  14  Prefactor     18.938        29.140        .92035E-04   -.48175E-05
  15  Prefactor     .10001E-03    37.359        .10450    ** at limit **
  16  Prefactor     .10008E-03    14.274        .65424E-01** at limit **
  17  Prefactor     46.111        96.519        .59071E-04   -.22902E-04
  18  Prefactor     .10000E-03    29.656        .36285E-03** at limit **
  19  Prefactor     .10000E-03    2.0680        .10286E-02** at limit **
  20  Prefactor     .10000E-03    29.900        .18142E-02** at limit **
  21  Prefactor     44.574        54.106        .60041E-04    .56804E-05
  22  Prefactor     2.1085        13.941        .28402E-03   -.18213E-04
  23  norm          .10000E-03    6.0347        .17530E-02** at limit **
  24  norm          .10000E-03    2.2241        .10670E-02** at limit **
  25  norm          .10000E-03    5.5565        .33112E-03** at limit **
  26  norm          1.6903        11.078        .32357E-03    .33379E-04
  27  Prefactor     1.8021        3.5787        .18465E-03   -.41252E-05
  28  Prefactor     5.7579        91.600        .16763E-03   -.13632E-04
  29  norm          1.9959        6.0195        .23056E-03    .37819E-04
  30  Prefactor     4.4661        10.388        .95262E-03   -.13139E-04
  31  norm          .10000E-03    6.2977        .35150E-03** at limit **
  32  Normalizat    .71769        .26572        .31133E-03   -.21910E-06
  33  Prefactor     1.4036        .25203        .22952E-03    .13567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.951
  norm       = 3.04863
  Prefactor  = 0.0001
  Prefactor  = 8.12389
  Prefactor  = 0.0001
  Prefactor  = 16.2608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08626
  Prefactor  = 0.0001
  Prefactor  = 18.9859
  Prefactor  = 26.5955
  Prefactor  = 18.9377
  Prefactor  = 0.000100011
  Prefactor  = 0.000100083
  Prefactor  = 46.1113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5736
  Prefactor  = 2.10846
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.69033
  Prefactor  = 1.80208
  Prefactor  = 5.75794
  norm       = 1.99588
  Prefactor  = 4.46612
  norm       = 0.0001
  Normalizat = 0.71769
  Prefactor  = 1.40362
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.555     FROM HESSE     STATUS=OK           683 CALLS     6063 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.951        40.770        .11463E-04   -1.4308    
   2  norm          3.0486        4.2119        .67780E-05   -1.5359    
   3  Prefactor     .10000E-03    33.973        .71592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1239        14.247        .56276E-05   -1.5138    
   5  Prefactor     .10000E-03    15.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.261        11.181        .39730E-05   -1.4901    
   7  Prefactor     .10000E-03    68.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4180        .26447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1765        .25478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0863        3.1409        .44037E-05   -1.5304    
  11  Prefactor     .10000E-03    38.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.986        9.2603        .36783E-05   -1.4836    
  13  Prefactor     26.595        24.806        .31075E-05   -1.4676    
  14  Prefactor     18.938        29.138        .36814E-05   -1.4837    
  15  Prefactor     .10001E-03    35.615        .10778       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    12.617        .71276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.111        96.512        .11814E-04   -1.4349    
  18  Prefactor     .10000E-03    29.658        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0680        .20573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.574        54.107        .12008E-04   -1.4372    
  22  Prefactor     2.1085        13.941        .11361E-04   -1.5418    
  23  norm          .10000E-03    6.0360        .35059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.2241        .21340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.5567        .66224E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6903        11.075        .12943E-04   -1.5448    
  27  Prefactor     1.8021        3.5775        .73859E-05   -1.5439    
  28  Prefactor     5.7579        91.291        .67051E-05   -1.5228    
  29  norm          1.9959        6.0060        .92225E-05   -1.5425    
  30  Prefactor     4.4661        10.384        .38105E-04   -1.5285    
  31  norm          .10000E-03    6.2980        .70300E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .71769        .26596        .12453E-04   -1.0320    
  33  Prefactor     1.4036        .25227        .45903E-04   -.80276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52393e-10
Minuit parameter uncertainties:
  1  40.7931
  2  4.21232
  3  4.11143e-05
  4  14.2527
  5  1.97934e-05
  6  11.182
  7  2.57496e-05
  8  2.20313e-06
  9  8.8273e-06
  10  3.14104
  11  0.000182727
  12  9.26104
  13  24.8157
  14  29.16
  15  0.00123976
  16  0.00204665
  17  96.8418
  18  8.25466e-05
  19  2.88307e-06
  20  9.89152e-05
  21  54.1669
  22  10.8465
  23  1.77691e-06
  24  1.20296e-06
  25  1.90801e-05
  26  8.65563
  27  3.57793
  28  45.937
  29  6.00784
  30  10.3881
  31  1.88275e-05
  32  0.266437
  33  0.252494
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.827e-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:  1.404e+00  2.525e-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:  7.177e-01  2.664e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361636/likelihoodResults_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.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) = 5369.55538686
delta logL = -0.00012216088362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5369.55526549
delta logL = -7.9003348219e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19231E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2360       1.0000          .0000       10.000    
     3 'Normalizat'    .71769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4036       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=   5369.555     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    13.405        .90712E-02** at limit **
   2  Index         2.2573        5.4060        .50000       -.40040E-05
   3  Normalizat    .71769        .26629E-02    .70349E-01   -.14678E-03
   4  Prefactor     1.4036        .26606E-02    .51916E-01   -.39125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Index      = 2.25734
  Normalizat = 0.717694
  Prefactor  = 1.40361
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.555     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    165.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2573        6.1258        .50000       -.58061    
   3  Normalizat    .71769        .93734E-02    .31133E-03   -1.0320    
   4  Prefactor     1.4036        .93805E-02    .22952E-03   -.80276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44528e-08
Minuit parameter uncertainties:
  1  0.00565365
  2  187.814
  3  0.00937342
  4  0.00938054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361636': 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) = 5369.55526447
delta logL = 2.23737515626e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.654e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.257e+00  1.878e+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:  1.404e+00  9.381e-03  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:  7.177e-01  9.373e-03  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/361636/cmap_HighResolution_581731201_581990401_4FGL_J2234.2-4156_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-28 15:05:41.050728', job_id='361636', GAL2='1.40', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632866741.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='2.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1321' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 361636: <4FGL_J2234.2-4156_daily_bin1321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1321 338.568 -41.9411 581731201 581990401 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 :                                   886.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

