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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin750
RA = 338.568, Dec = -41.9411
tmin = 433728001, tmax = 433987201
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='358721', job_status='RUN', time_executed='2021-09-28 14:40:58.227776', time_epoch_executed='1632865258.23' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358721/ft1_4FGL_J2234.2-4156_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358721/ft1_4FGL_J2234.2-4156_daily_bin750.fits outfile=/scratch/kocevski/358721/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin750.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=433728001.0 tmax=433987201.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.06
user 5.80
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/358721/ltcube_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.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/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits
.....................!
real 13.82
user 13.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/358721/ltcube_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.fits outfile=/scratch/kocevski/358721/expmap_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.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/358721/ltcube_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.fits
.....................!
real 190.92
user 186.34
sys 4.27

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/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits scfile=/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits outfile=/scratch/kocevski/358721/cmap_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits scfile=/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits outfile=/scratch/kocevski/358721/cmap_HighResolution_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/358721/ft2_4FGL_J2234.2-4156_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358721/Model_4FGL_J2234.2-4156_daily_bin750.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/358721/ft1_filtered_4FGL_J2234.2-4156_daily_bin750.fits.....................!
real 34.48
user 33.20
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .82075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66906       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.897       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6477       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.5977       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83174       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=   3756.239     FROM MIGRAD    STATUS=CONVERGED   1568 CALLS     5248 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.806        .18142E-02** at limit **
   2  norm          .82087        11.345        .38439E-03   -.17613E-04
   3  Prefactor     15.893        13.669        .10048E-03   -.57475E-04
   4  Prefactor     .10000E-03    7.0534        .15876E-02** at limit **
   5  Prefactor     .56853        89.764        .13456        .60767E-04
   6  Prefactor     .10000E-03    6.5911        .15335E-02** at limit **
   7  Prefactor     .10000E-03    45.072        .18142E-02** at limit **
   8  norm          8.6402        11.787        .68181E-03    .17316E-04
   9  Prefactor     .10000E-03    7.8681        .16708E-02** at limit **
  10  Prefactor     7.2190        4.9043        .10678E-03   -.96353E-05
  11  Prefactor     .10000E-03    19.245        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.4526        .12534E-02** at limit **
  13  Prefactor     21.110        25.989        .87236E-04    .63727E-04
  14  Prefactor     .10000E-03    18.798        .18142E-02** at limit **
  15  Prefactor     .10000E-03    53.574        .18142E-02** at limit **
  16  Prefactor     .10000E-03    30.009        .36285E-03** at limit **
  17  Prefactor     .10000E-03    35.891        .18142E-02** at limit **
  18  Prefactor     7.9663        8.9192        .71025E-03    .20568E-04
  19  Prefactor     .10000E-03    2.5332        .95187E-03** at limit **
  20  Prefactor     27.919        42.580        .75850E-04    .11364E-03
  21  Prefactor     50.677        48.734        .56323E-04   -.13512E-03
  22  Prefactor     .10000E-03    9.1971        .18132E-02** at limit **
  23  norm          .10000E-03    5.5665        .14119E-02** at limit **
  24  norm          .10000E-03    5.8856        .14470E-02** at limit **
  25  norm          .10000E-03    6.0033        .28771E-03** at limit **
  26  norm          2.6478        5.1174        .18854E-03   -.28461E-04
  27  Prefactor     .10000E-03    6.5757        .15277E-02** at limit **
  28  Prefactor     .10000E-03    77.112        .18142E-02** at limit **
  29  norm          5.5927        4.0920        .51042E-03   -.13954E-02
  30  Prefactor     .10000E-03    29.336        .18142E-02** at limit **
  31  norm          .10000E-03    9.8024        .23027E-02** at limit **
  32  Normalizat    1.0119        .24581        .22754E-03   -.29828E-03
  33  Prefactor     .83179        .23949        .24415E-03   -.15073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.820867
  Prefactor  = 15.8927
  Prefactor  = 0.0001
  Prefactor  = 0.568532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.64018
  Prefactor  = 0.0001
  Prefactor  = 7.21903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.11
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.96634
  Prefactor  = 0.0001
  Prefactor  = 27.919
  Prefactor  = 50.6766
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.6478
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.59267
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 1.01193
  Prefactor  = 0.831792
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.239     FROM HESSE     STATUS=OK           675 CALLS     5923 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .82087        11.337        .15375E-04   -1.5527    
   3  Prefactor     15.893        13.669        .40193E-05   -1.4910    
   4  Prefactor     .10000E-03    7.0539        .31752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56853        84.409        .13965       -1.5557    
   6  Prefactor     .10000E-03    6.5916        .30670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6402        11.788        .27272E-04   -1.5120    
   9  Prefactor     .10000E-03    7.8704        .33417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2190        4.9043        .42712E-05   -1.5171    
  11  Prefactor     .10000E-03    19.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4538        .25069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.110        25.987        .34894E-05   -1.4789    
  14  Prefactor     .10000E-03    18.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.011        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9663        8.9184        .28410E-04   -1.5143    
  19  Prefactor     .10000E-03    2.5332        .19037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.919        42.579        .15170E-04   -1.4651    
  21  Prefactor     50.677        48.733        .11265E-04   -1.4283    
  22  Prefactor     .10000E-03    9.1979        .36265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.5666        .28238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.8867        .28941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.0035        .57542E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6478        5.1173        .75417E-05   -1.5383    
  27  Prefactor     .10000E-03    6.5773        .30554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    77.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.5927        4.0902        .20417E-04   -1.5235    
  30  Prefactor     .10000E-03    29.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    9.8771        .46053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0119        .24596        .45508E-04   -.92632    
  33  Prefactor     .83179        .23966        .97661E-05   -.98567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41236e-09
Minuit parameter uncertainties:
  1  0.000188367
  2  6.10229
  3  13.6714
  4  4.92592e-05
  5  13.8736
  6  3.07806e-05
  7  0.000144513
  8  11.7907
  9  2.32834e-06
  10  4.90456
  11  2.68446e-05
  12  9.56453e-06
  13  26.0005
  14  4.23109e-05
  15  0.000425046
  16  0.000108909
  17  0.000360252
  18  8.91988
  19  3.11849e-07
  20  42.6249
  21  48.7716
  22  8.24865e-05
  23  1.10045e-05
  24  1.82885e-05
  25  3.21167e-05
  26  5.11818
  27  3.31731e-05
  28  0.000904961
  29  4.09044
  30  1.87969e-05
  31  0.000280178
  32  0.246231
  33  0.239964
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.684e-05  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:  8.318e-01  2.400e-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.012e+00  2.462e-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: 5.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358721/likelihoodResults_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.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) = 3756.23967024
delta logL = -0.000246148042152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3756.23942495
delta logL = -8.57793111209e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2072       1.0000          .0000       10.000    
     3 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83178       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=   3756.239     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      265 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    76.034        .18142E-02** at limit **
   2  Index         2.1483        5.7373        .50000        .18052E-04
   3  Normalizat    1.0119        .11219E-01    .22754E-03   -.21959E-04
   4  Prefactor     .83179        .11078E-01    .24415E-03   -.16460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010147
  Index      = 2.14832
  Normalizat = 1.01193
  Prefactor  = 0.83179
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.239     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10147E-03    333.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1483        6.0308        .50000       -.60691    
   3  Normalizat    1.0119        .24026E-01    .91015E-05   -.92632    
   4  Prefactor     .83179        .23723E-01    .97660E-05   -.98567    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15762e-08
Minuit parameter uncertainties:
  1  0.0445506
  2  338.663
  3  0.0240262
  4  0.023723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358721': 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) = 3756.23942469
delta logL = -6.00484327151e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.015e-04  4.455e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.148e+00  3.387e+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:  8.318e-01  2.372e-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.012e+00  2.403e-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/358721/cmap_HighResolution_433728001_433987201_4FGL_J2234.2-4156_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2021-09-28 14:53:05.579127', job_id='358721', GAL2='0.83', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632865985.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-6.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='750' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:53:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 358721: <4FGL_J2234.2-4156_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin750 338.568 -41.9411 433728001 433987201 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 :                                   726.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

