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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1394
RA = 338.568, Dec = -41.9411
tmin = 600652801, tmax = 600912001
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='362791', job_status='RUN', time_executed='2021-09-28 14:59:17.141200', time_epoch_executed='1632866357.14' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362791/ft1_4FGL_J2234.2-4156_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362791/ft1_4FGL_J2234.2-4156_daily_bin1394.fits outfile=/scratch/kocevski/362791/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1394.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=600652801.0 tmax=600912001.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 3.63
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/362791/ltcube_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.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/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits
.....................!
real 11.88
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/362791/ltcube_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.fits outfile=/scratch/kocevski/362791/expmap_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.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/362791/ltcube_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.fits
.....................!
real 192.47
user 186.82
sys 5.34

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/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits scfile=/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits outfile=/scratch/kocevski/362791/cmap_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.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/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits scfile=/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits outfile=/scratch/kocevski/362791/cmap_HighResolution_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/362791/ft2_4FGL_J2234.2-4156_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362791/Model_4FGL_J2234.2-4156_daily_bin1394.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/362791/ft1_filtered_4FGL_J2234.2-4156_daily_bin1394.fits.....................!
real 35.60
user 34.30
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    10.843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.1557       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3798       1.0000         .10000E-03   10000.    
    25 'norm      '    .12960E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .20640E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    79.276       1.0000         .10000E-03   10000.    
    29 'norm      '    .24214E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88972       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4034.660     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4567 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.551       -.20309E-05** at limit **
   2  norm          10.842        6.3684        .11419E-07    .46773E-05
   3  Prefactor     15.676        11.896       -.42708E-07   -.11213E-04
   4  Prefactor     .10000E-03    5.8740        .24214E-06** at limit **
   5  Prefactor     33.025        36.988       -.76850E-06   -.79238E-04
   6  Prefactor     12.322        12.111       -.13902E-06   -.17429E-04
   7  Prefactor     .10000E-03    48.256        .95230E-06** at limit **
   8  norm          3.9284        7.3216        .57704E-05   -.45021E-03
   9  Prefactor     13.622        11.774       -.17922E-06   -.86717E-05
  10  Prefactor     5.1023        4.5824       -.17439E-06   -.12003E-03
  11  Prefactor     38.907        53.497       -.72888E-06   -.33198E-04
  12  Prefactor     .10000E-03    7.6891       -.25100E-06** at limit **
  13  Prefactor     .10000E-03    12.063       -.13186E-05** at limit **
  14  Prefactor     .10000E-03    9.0552        .76693E-06** at limit **
  15  Prefactor     47.078        35.718       -.13200E-05   -.36623E-04
  16  Prefactor     .10000E-03    12.975       -.23171E-06** at limit **
  17  Prefactor     .10000E-03    63.162        .13160E-05** at limit **
  18  Prefactor     32.824        20.258       -.33627E-06   -.38498E-04
  19  Prefactor     .38024        7.4735        .12725E-06   -.55651E-04
  20  Prefactor     .10000E-03    22.512       -.23929E-05** at limit **
  21  Prefactor     .10000E-03    20.717        .24459E-06** at limit **
  22  Prefactor     .10000E-03    19.553        .16834E-05** at limit **
  23  norm          7.1540        14.090        .22622E-05   -.90440E-04
  24  norm          3.3798        5.3734        .79311E-07   -.15130E-04
  25  norm          .10000E-03    4.1823       -.89177E-06** at limit **
  26  norm          .10001E-03    10.334        .93975E-06** at limit **
  27  Prefactor     .10000E-03    4.7944        .30591E-07** at limit **
  28  Prefactor     79.229        51.324       -.53477E-05   -.64750E-03
  29  norm          .10000E-03    5.6090       -.22412E-05** at limit **
  30  Prefactor     .10000E-03    13.830        .11676E-05** at limit **
  31  norm          .10000E-03    2.2607       -.32347E-06** at limit **
  32  Normalizat    .89024        .24668        .46773E-05   -.13123E-03
  33  Prefactor     .89835        .21484       -.36347E-05    .11888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 10.8416
  Prefactor  = 15.6756
  Prefactor  = 0.0001
  Prefactor  = 33.0253
  Prefactor  = 12.322
  Prefactor  = 0.000100001
  norm       = 3.92835
  Prefactor  = 13.6223
  Prefactor  = 5.10232
  Prefactor  = 38.9072
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 47.0785
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.8236
  Prefactor  = 0.380238
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.154
  norm       = 3.37982
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 79.2291
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.890242
  Prefactor  = 0.898346
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.660     FROM HESSE     STATUS=OK           691 CALLS     5258 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.842        6.3730        .11801E-03   -1.5049    
   3  Prefactor     15.676        11.897        .10116E-03   -1.4916    
   4  Prefactor     .10000E-03    5.8892        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.025        37.029        .69722E-04   -1.4558    
   6  Prefactor     12.322        12.103        .11411E-03   -1.5006    
   7  Prefactor     .10000E-03    48.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9284        7.5581        .10178E-02   -1.5312    
   9  Prefactor     13.622        11.779        .10851E-03   -1.4970    
  10  Prefactor     5.1023        4.5791        .12197E-03   -1.5256    
  11  Prefactor     38.907        53.417        .64255E-04   -1.4460    
  12  Prefactor     .10000E-03    7.8205        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.078        35.813        .58436E-04   -1.4335    
  16  Prefactor     .10000E-03    13.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.824        20.305        .69933E-04   -1.4561    
  19  Prefactor     .38024        23.618        .33113E-02   -1.5585    
  20  Prefactor     .10000E-03    22.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.1540        14.126        .74977E-03   -1.5173    
  24  norm          3.3798        5.3604        .18127E-03   -1.5340    
  25  norm          .10000E-03    4.2133        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    47.168        .39282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8397        .13581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     79.229        53.918        .22553E-03   -1.3925    
  29  norm          .10000E-03    5.5698        .14504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.2606        .93213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .89024        .28167        .26737E-03   -.96804    
  33  Prefactor     .89835        .24745        .24550E-03   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09112e-08
Minuit parameter uncertainties:
  1  0.000964896
  2  6.37337
  3  11.8992
  4  1.96016e-05
  5  37.0551
  6  12.105
  7  0.000311822
  8  7.55993
  9  11.7815
  10  4.57942
  11  53.4826
  12  5.71171e-05
  13  0.000224488
  14  0.000103741
  15  35.8293
  16  2.73474e-05
  17  0.000481383
  18  20.309
  19  5.99523
  20  0.000551383
  21  5.13158e-05
  22  0.000288041
  23  14.1325
  24  5.36111
  25  5.00295e-05
  26  0.0015994
  27  4.3634e-06
  28  53.951
  29  0.000112135
  30  0.000205931
  31  1.06302e-05
  32  0.282135
  33  0.247759
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.983e-01  2.478e-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:  8.902e-01  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/362791/likelihoodResults_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4034.61970253
delta logL = 0.040618346492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4034.61812594
delta logL = 0.042194935766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.595       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7397       1.0000          .0000       10.000    
     3 'Normalizat'    .89726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89409       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=   4034.618     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      306 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.622        71.681        .56943E-04    .33581E-04
   2  Index         1.7395        .84080        .97534E-02   -.50454E-05
   3  Normalizat    .89730        .25833        .26640E-03   -.38749E-04
   4  Prefactor     .89411        .23923        .24599E-03    .18533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.6224
  Index      = 1.73952
  Normalizat = 0.897302
  Prefactor  = 0.894107
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.618     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.622        70.342        .11389E-04   -1.4298    
   2  Index         1.7395        .82533        .39014E-03   -.71035    
   3  Normalizat    .89730        .25849        .10656E-04   -.96555    
   4  Prefactor     .89411        .23943        .98397E-05   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29898e-11
Minuit parameter uncertainties:
  1  70.4597
  2  0.83199
  3  0.258845
  4  0.23971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362791': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4034.61812574
delta logL = 0.042195137361

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.962e+01  7.046e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.740e+00  8.320e-01  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.941e-01  2.397e-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:  8.973e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
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/362791/cmap_HighResolution_600652801_600912001_4FGL_J2234.2-4156_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-28 15:11:02.301621', job_id='362791', GAL2='0.89', fit_tolerance='1e-08', EG2='0.90', EG='0.89', time_epoch_completed='1632867062.3', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.22e-02', ts2='0.94', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1394' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 362791: <4FGL_J2234.2-4156_daily_bin1394> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1394> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:12 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:14 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:55:14 2021
Terminated at Tue Sep 28 15:11:03 2021
Results reported at Tue Sep 28 15:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1394 338.568 -41.9411 600652801 600912001 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 :                                   702.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

