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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1002
RA = 338.568, Dec = -41.9411
tmin = 499046401, tmax = 499305601
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='360087', job_status='RUN', time_executed='2021-09-28 14:45:34.071755', time_epoch_executed='1632865534.07' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360087/ft1_4FGL_J2234.2-4156_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360087/ft1_4FGL_J2234.2-4156_daily_bin1002.fits outfile=/scratch/kocevski/360087/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1002.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.30
user 4.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.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/360087/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.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/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/360087/ltcube_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.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/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits
.....................!
real 11.89
user 11.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/360087/ltcube_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.fits outfile=/scratch/kocevski/360087/expmap_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.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/360087/ltcube_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.fits
.....................!
real 190.54
user 185.12
sys 5.01

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/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.fits scfile=/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits outfile=/scratch/kocevski/360087/cmap_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/360087/ft2_4FGL_J2234.2-4156_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360087/Model_4FGL_J2234.2-4156_daily_bin1002.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/360087/ft1_filtered_4FGL_J2234.2-4156_daily_bin1002.fits......................!
real 30.94
user 29.71
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11120       1.0000         .10000E-03   10000.    
     2 'norm      '    15.704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.249       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.038       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.928       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    23.459       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    84.360       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72349       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=   3260.727     FROM MIGRAD    STATUS=CONVERGED   1617 CALLS     5262 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    81.756        .12285    ** at limit **
   2  norm          15.719        8.5085        .10107E-03   -.20770E-03
   3  Prefactor     6.7949        10.468        .15396E-03   -.77904E-05
   4  Prefactor     .10000E-03    4.6717        .12042E-02** at limit **
   5  Prefactor     .10000E-03    46.048        .18142E-02** at limit **
   6  Prefactor     19.254        12.603        .91289E-04   -.49191E-05
   7  Prefactor     41.962        105.38        .61828E-04   -.48359E-05
   8  norm          .10000E-03    2.9647        .96025E-03** at limit **
   9  Prefactor     .10000E-03    3.9549        .11077E-02** at limit **
  10  Prefactor     .10000E-03    1.7173        .72955E-03** at limit **
  11  Prefactor     .10000E-03    27.903        .18142E-02** at limit **
  12  Prefactor     10.925        7.9159        .12120E-03   -.38929E-05
  13  Prefactor     .10000E-03    20.596        .18142E-02** at limit **
  14  Prefactor     8.6579        35.418        .13623E-03   -.91795E-06
  15  Prefactor     .10000E-03    11.792        .18142E-02** at limit **
  16  Prefactor     5.5818        14.281        .17011E-03   -.10593E-04
  17  Prefactor     .10000E-03    54.186        .18142E-02** at limit **
  18  Prefactor     .10000E-03    20.687        .18142E-02** at limit **
  19  Prefactor     .10000E-03    18.980        .36285E-03** at limit **
  20  Prefactor     24.314        57.613        .81098E-04    .44607E-04
  21  Prefactor     32.511        112.13        .70303E-04   -.18597E-05
  22  Prefactor     .10000E-03    15.696        .18142E-02** at limit **
  23  norm          .10000E-03    9.3455        .17039E-02** at limit **
  24  norm          .10000E-03    3.1528        .99025E-03** at limit **
  25  norm          .10000E-03    3.8784        .10970E-02** at limit **
  26  norm          23.442        17.528        .82701E-04   -.47426E-04
  27  Prefactor     .10000E-03    2.4893        .87959E-03** at limit **
  28  Prefactor     84.316        59.635        .21868E-03   -.23602E-03
  29  norm          .10000E-03    4.3339        .11567E-02** at limit **
  30  Prefactor     .10000E-03    4.9296        .12382E-02** at limit **
  31  norm          .10000E-03    3.9405        .11049E-02** at limit **
  32  Normalizat    1.2243        .32071        .23303E-03   -.11650E-03
  33  Prefactor     .72243        .27905        .27445E-03   -.53810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  norm       = 15.7193
  Prefactor  = 6.79487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2542
  Prefactor  = 41.9625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9246
  Prefactor  = 0.0001
  Prefactor  = 8.65791
  Prefactor  = 0.0001
  Prefactor  = 5.58176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3136
  Prefactor  = 32.5105
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.4425
  Prefactor  = 0.0001
  Prefactor  = 84.3157
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22429
  Prefactor  = 0.722435
 **********
 **   18 **HESSE 
 **********

 FCN=   3260.727     FROM HESSE     STATUS=OK           671 CALLS     5933 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    80.234        .12429       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.719        8.5061        .40428E-05   -1.4915    
   3  Prefactor     6.7949        10.468        .61583E-05   -1.5187    
   4  Prefactor     .10000E-03    4.6718        .24084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.254        12.604        .36516E-05   -1.4830    
   7  Prefactor     41.962        105.39        .12366E-04   -1.4411    
   8  norm          .10000E-03    2.9647        .19205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9550        .22154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7173        .14591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.925        7.9157        .48478E-05   -1.5047    
  13  Prefactor     .10000E-03    20.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6579        35.415        .54493E-05   -1.5119    
  15  Prefactor     .10000E-03    11.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5818        14.280        .68042E-05   -1.5235    
  17  Prefactor     .10000E-03    54.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.981        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.314        57.612        .16220E-04   -1.4721    
  21  Prefactor     32.511        112.35        .28121E-05   -1.4567    
  22  Prefactor     .10000E-03    15.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.3460        .34078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.1528        .19805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.8785        .21941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.442        17.528        .33080E-05   -1.4739    
  27  Prefactor     .10000E-03    2.4893        .17592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     84.316        59.634        .87472E-05   -1.3869    
  29  norm          .10000E-03    4.3341        .23135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.9296        .24764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    3.9406        .22097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2243        .32105        .46606E-04   -.85855    
  33  Prefactor     .72243        .27934        .10978E-04   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89398e-10
Minuit parameter uncertainties:
  1  0.00288998
  2  8.50677
  3  10.4704
  4  1.44311e-06
  5  2.1851e-05
  6  12.6054
  7  105.86
  8  6.58092e-07
  9  1.94902e-06
  10  2.05722e-07
  11  2.18462e-06
  12  7.91648
  13  1.58053e-05
  14  35.0569
  15  1.40836e-05
  16  14.289
  17  7.45111e-05
  18  2.94731e-05
  19  9.07087e-05
  20  57.744
  21  113.089
  22  7.93652e-06
  23  1.5473e-06
  24  1.38461e-07
  25  3.29119e-06
  26  17.5321
  27  8.42521e-08
  28  59.6767
  29  1.00855e-05
  30  8.22948e-08
  31  5.99731e-06
  32  0.321565
  33  0.279889
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.185e-06  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.224e-01  2.799e-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.224e+00  3.216e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360087/likelihoodResults_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.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) = 3260.7271377
delta logL = -0.000170168198565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3260.72696805
delta logL = -5.08913672093e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1890       1.0000          .0000       10.000    
     3 'Normalizat'    1.2243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72243       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=   3260.727     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    102.75        .18142E-02** at limit **
   2  Index         2.1363        8.5774        .50000        .11686E-04
   3  Normalizat    1.2243        .12790E-01    .23303E-03   -.95239E-04
   4  Prefactor     .72243        .11936E-01    .27444E-03   -.75744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101128
  Index      = 2.13631
  Normalizat = 1.22429
  Prefactor  = 0.722434
 **********
 **   18 **HESSE 
 **********

 FCN=   3260.727     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    454.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1363        6.5940        .50000       -.60984    
   3  Normalizat    1.2243        .27498E-01    .46607E-04   -.85855    
   4  Prefactor     .72243        .25660E-01    .10978E-04   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85199e-09
Minuit parameter uncertainties:
  1  0.0456312
  2  357.774
  3  0.0274986
  4  0.0256605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360087': 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) = 3260.72696789
delta logL = -3.53302766598e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.011e-04  4.563e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.136e+00  3.578e+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:  7.224e-01  2.566e-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.224e+00  2.750e-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/360087/cmap_HighResolution_499046401_499305601_4FGL_J2234.2-4156_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 14:56:43.417991', job_id='360087', GAL2='0.72', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632866203.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1002' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 360087: <4FGL_J2234.2-4156_daily_bin1002> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1002> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:15 2021
Job was executed on host(s) <bullet0217>, 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:44 2021
Results reported at Tue Sep 28 14:56:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1002 338.568 -41.9411 499046401 499305601 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 :                                   668.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            689 sec.

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

