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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1004
RA = 338.568, Dec = -41.9411
tmin = 499564801, tmax = 499824001
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='360090', job_status='RUN', time_executed='2021-09-28 14:46:33.632213', time_epoch_executed='1632865593.63' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360090/ft1_4FGL_J2234.2-4156_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360090/ft1_4FGL_J2234.2-4156_daily_bin1004.fits outfile=/scratch/kocevski/360090/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1004.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=499564801.0 tmax=499824001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.05
user 4.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.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/360090/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/360090/ltcube_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.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/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits
.....................!
real 13.22
user 12.79
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/360090/ltcube_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.fits outfile=/scratch/kocevski/360090/expmap_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.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/360090/ltcube_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.fits
.....................!
real 192.29
user 186.43
sys 5.32

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/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits outfile=/scratch/kocevski/360090/cmap_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.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/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits outfile=/scratch/kocevski/360090/cmap_HighResolution_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/360090/ft2_4FGL_J2234.2-4156_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360090/Model_4FGL_J2234.2-4156_daily_bin1004.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/360090/ft1_filtered_4FGL_J2234.2-4156_daily_bin1004.fits....................!
real 30.22
user 28.89
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2815.42861903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18776E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    16.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26842E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10383E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24548E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.520       1.0000         .10000E-03   10000.    
    15 'Prefactor '    120.93       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8522       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76475E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94173E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44078       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4044       1.0000         .10000E-03   10000.    
    23 'norm      '    27.462       1.0000         .10000E-03   10000.    
    24 'norm      '    6.7745       1.0000         .10000E-03   10000.    
    25 'norm      '    .11891E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .26749E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    245.18       1.0000         .10000E-03   10000.    
    29 'norm      '    .11251E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12188E-02   1.0000         .10000E-03   10000.    
    31 'norm      '    .30605E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10675       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2815.422     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     3387 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.643       -.18609E-05** at limit **
   2  norm          16.296        6.6849       -.38560E-06   -.25929E-03
   3  Prefactor     19.116        12.769       -.95800E-05   -.19490E-02
   4  Prefactor     .10000E-03    14.171        .53059E-05** at limit **
   5  Prefactor     52.072        38.296       -.22599E-04    .99698E-02
   6  Prefactor     17.619        15.166       -.13425E-06   -.19752E-02
   7  Prefactor     .10189E-03    109.14       -.52724E-04** at limit **
   8  norm          .10000E-03    64.703       -.14553E-04** at limit **
   9  Prefactor     .10000E-03    4.2917        .11446E-05** at limit **
  10  Prefactor     6.5258        7.5494       -.22233E-05    .51443E-04
  11  Prefactor     .10002E-03    51.712        .26674E-05** at limit **
  12  Prefactor     13.125        13.474        .66304E-05    .71535E-03
  13  Prefactor     30.830        55.509        .29367E-05   -.20993E-02
  14  Prefactor     14.083        48.810       -.13849E-04   -.21457E-05
  15  Prefactor     121.60        7.9792       -.22693E-06    .81548E-03
  16  Prefactor     3.7691        2.9621       -.28461E-05    .12185E-03
  17  Prefactor     .10081E-03    125.32        .35040E-04** at limit **
  18  Prefactor     23.815        7.6773       -.26952E-05    .38706E-02
  19  Prefactor     27.338        7.6859        .90870E-05   -.37170E-02
  20  Prefactor     .19115E-03    154.34       -.48533E-04** at limit **
  21  Prefactor     .10195E-03    214.42        .12677E-04** at limit **
  22  Prefactor     4.3060        13.998       -.94755E-05    .40585E-02
  23  norm          27.635        13.340       -.29207E-05    .37112E-02
  24  norm          6.7318        12.071       -.44392E-04   -.44283E-02
  25  norm          .10000E-03    9.3947        .61604E-06** at limit **
  26  norm          .10000E-03    24.505        .41957E-05** at limit **
  27  Prefactor     9.9041        10.159        .43389E-05    .38129E-03
  28  Prefactor     254.56        115.79       -.19743E-05   -.10087E-02
  29  norm          .10000E-03    10.954       -.15080E-04** at limit **
  30  Prefactor     .10000E-03    12.520       -.35261E-05** at limit **
  31  norm          .10000E-03    25.148        .10684E-04** at limit **
  32  Normalizat    .10100        .34492       -.65657E-06    .22417E-04
  33  Prefactor     1.3262        .30402        .29210E-05    .15613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.2965
  Prefactor  = 19.1159
  Prefactor  = 0.0001
  Prefactor  = 52.0721
  Prefactor  = 17.6192
  Prefactor  = 0.00010189
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.5258
  Prefactor  = 0.000100022
  Prefactor  = 13.1255
  Prefactor  = 30.8295
  Prefactor  = 14.0827
  Prefactor  = 121.604
  Prefactor  = 3.76905
  Prefactor  = 0.000100807
  Prefactor  = 23.8152
  Prefactor  = 27.3378
  Prefactor  = 0.000191153
  Prefactor  = 0.00010195
  Prefactor  = 4.30596
  norm       = 27.6347
  norm       = 6.73182
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.90413
  Prefactor  = 254.557
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.100998
  Prefactor  = 1.32622
 **********
 **   18 **HESSE 
 **********

 FCN=   2815.422     FROM HESSE     STATUS=NOT POSDEF   765 CALLS     4152 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.788        .10142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.296        6.6684        .24811E-02   -1.4900    
   3  Prefactor     19.116        21.853        .22976E-02   -1.4833    
   4  Prefactor     .10000E-03    12.837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.072        55.178        .13789E-02   -1.4263    
   6  Prefactor     17.619        21.961        .23884E-02   -1.4868    
   7  Prefactor     .10189E-03    102.07        .99729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.0050        .90749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5258        11.532        .39343E-02   -1.5197    
  11  Prefactor     .10002E-03    46.864        .10018E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.125        19.310        .27486E-02   -1.4983    
  13  Prefactor     30.830        93.413        .17531E-02   -1.4597    
  14  Prefactor     14.083        69.520        .29508E-02   -1.4957    
  15  Prefactor     121.60        117.78        .91491E-03   -1.3498    
  16  Prefactor     3.7691        53.042        .51403E-02   -1.5320    
  17  Prefactor     .10081E-03    114.56        .93985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.815        49.463        .20526E-02   -1.4732    
  19  Prefactor     27.338        17.549        .19133E-02   -1.4662    
  20  Prefactor     .19115E-03    348.73        .94834E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10195E-03    203.39        .11027E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3060        97.631        .47975E-02   -1.5293    
  23  norm          27.635        43.487        .19112E-02   -1.4656    
  24  norm          6.7318        12.439        .38539E-02   -1.5189    
  25  norm          .10000E-03    8.4388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    22.120        .10719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.9041        9.9853        .31715E-02   -1.5078    
  28  Prefactor     254.56        228.79        .64662E-03   -1.2503    
  29  norm          .10000E-03    9.8301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.327        .10313E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.246        .10691E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10100        8.1944        .18369       -1.3796    
  33  Prefactor     1.3262        1.4011        .46455E-01   -.82531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91431e-06
Minuit parameter uncertainties:
  1  7.48864e-05
  2  6.66871
  3  21.8626
  4  4.17221e-05
  5  55.2324
  6  21.9712
  7  0.0278233
  8  0.000242643
  9  2.20797e-05
  10  11.5361
  11  0.00201015
  12  19.319
  13  93.8612
  14  62.6957
  15  118.004
  16  28.3085
  17  0.0192663
  18  49.5487
  19  17.5523
  20  0.358689
  21  0.0399642
  22  41.0826
  23  43.5365
  24  12.4434
  25  0.000199312
  26  0.000141091
  27  9.98695
  28  229.605
  29  0.000185558
  30  3.68136e-05
  31  9.12325e-05
  32  1.96075
  33  1.4444
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2815.42202617

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.010e-03  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.326e+00  1.444e+00  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.010e-01  1.961e+00  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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360090/likelihoodResults_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.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) = 2815.42211792
delta logL = -9.17524125725e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2815.42202646
delta logL = -2.92101049126e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1684       1.0000          .0000       10.000    
     3 'Normalizat'    .10100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3262       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=   2815.422     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      284 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    184.24        .18142E-02** at limit **
   2  Index         2.1065        6.6946        .50000        .74298E-05
   3  Normalizat    .10099        .13715E-01    .76622E-02   -.75425E-04
   4  Prefactor     1.3262        .12368E-01    .20533E-03   -.33464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101445
  Index      = 2.10655
  Normalizat = 0.100994
  Prefactor  = 1.32622
 **********
 **   18 **HESSE 
 **********

 FCN=   2815.422     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      315 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10144E-03    797.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1065        8.8590        .50000       -.61712    
   3  Normalizat    .10099        .29272E-01    .30649E-03   -1.3796    
   4  Prefactor     1.3262        .26398E-01    .41066E-04   -.82531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39586e-09
Minuit parameter uncertainties:
  1  0.0688032
  2  453.343
  3  0.0292768
  4  0.0263983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360090': 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) = 2815.42202636
delta logL = -1.87233581528e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  6.880e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.107e+00  4.533e+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.326e+00  2.640e-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.010e-01  2.928e-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/360090/cmap_HighResolution_499564801_499824001_4FGL_J2234.2-4156_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 14:56:08.705741', job_id='360090', GAL2='1.33', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1632866168.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.33', dlogl='-1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1004' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 360090: <4FGL_J2234.2-4156_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1004> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:16 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:17 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:45:17 2021
Terminated at Tue Sep 28 14:56:09 2021
Results reported at Tue Sep 28 14:56:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1004 338.568 -41.9411 499564801 499824001 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 :                                   574.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

