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


Performing analysis on: 4FGL_J0233.5+0654_daily_bin1230
RA = 38.3857, Dec = 6.9083
tmin = 558144001, tmax = 558403201
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='507411', job_status='RUN', time_executed='2021-08-16 04:23:07.419544', time_epoch_executed='1629112987.42' WHERE source_name='4FGL J0233.5+0654' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507411/ft1_4FGL_J0233.5+0654_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507411/ft1_4FGL_J0233.5+0654_daily_bin1230.fits outfile=/scratch/kocevski/507411/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin1230.fits ra=38.3857 dec=6.9083 rad=12.0 tmin=558144001.0 tmax=558403201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.21
user 4.05
sys 1.10

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.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/507411/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.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 1.42
user 0.35
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/507411/ltcube_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.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/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits
.....................!
real 14.68
user 13.29
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/507411/ltcube_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits outfile=/scratch/kocevski/507411/expmap_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.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/507411/ltcube_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits
.....................!
real 193.87
user 187.19
sys 5.70

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0233.5+0654 @ 38.3857 6.9083

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits outfile=/scratch/kocevski/507411/cmap_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.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=38.3857 yref=6.9083 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 1.43
user 0.40
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits outfile=/scratch/kocevski/507411/cmap_HighResolution_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.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=38.3857 yref=6.9083 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 1.41
user 0.42
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507411/Model_4FGL_J0233.5+0654_daily_bin1230.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/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits........................!
real 20.67
user 18.18
sys 2.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits', '/scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits', expMap='/scratch/kocevski/507411/expmap_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits', expCube='/scratch/kocevski/507411/ltcube_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507411/Model_4FGL_J0233.5+0654_daily_bin1230.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0233.5+0654'

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  5.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.332e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/507411/ft1_filtered_4FGL_J0233.5+0654_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/507411/ft2_4FGL_J0233.5+0654_daily_bin1230.fits
Exposure map: /scratch/kocevski/507411/expmap_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits
Exposure cube: /scratch/kocevski/507411/ltcube_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507411/Model_4FGL_J0233.5+0654_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 639.134780169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 630.036805059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .17163E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76712E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.777       1.0000         .10000E-03   10000.    
     5 'norm      '    .70686E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34056E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    440.60       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.600       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77334E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28233E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53273E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .12494E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10469E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .22498       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6230       1.0000         .10000E-03   10000.    
    22 'Prefactor '    246.78       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27986E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .73046E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .29718E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    61.873       1.0000         .10000E-03   10000.    
    28 'norm      '    .33306E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .19680E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21554E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .16895E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1329       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .27518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   629.8747     FROM MIGRAD    STATUS=CONVERGED    350 CALLS      718 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.006       -.32612E-05** at limit **
   2  norm          .10000E-03    138.54        .23750E-04** at limit **
   3  Prefactor     .10000E-03    24.542       -.17979E-05** at limit **
   4  Prefactor     40.706        61.642       -.28626E-04    .12416E-02
   5  norm          .10000E-03    24.745       -.12805E-04** at limit **
   6  Prefactor     .10000E-03    23.502       -.28583E-04** at limit **
   7  norm          .10000E-03    1.6391        .11378E-05** at limit **
   8  Prefactor     373.58        209.54        .60423E-05    .37881E-01
   9  Prefactor     9.4285        1.0014         .0000         .0000    
  10  Prefactor     .10000E-03    111.33       -.20884E-04** at limit **
  11  Prefactor     351.15        788.16       -.13205E-05    .76391E-02
  12  Prefactor     145.39        393.37       -.19631E-04   -.70635E-02
  13  Prefactor     .10010E-03    158.62       -.44522E-05** at limit **
  14  Prefactor     .10000E-03    45.267       -.37468E-04** at limit **
  15  Prefactor     .10025E-03    613.30        .36310E-04** at limit **
  16  norm          .10001E-03    167.49        .77328E-05** at limit **
  17  Prefactor     .48620E-01    686.56        .20424E-04   -.59606E-02
  18  Prefactor     .10034E-03    183.83        .20550E-04** at limit **
  19  norm          .10000E-03    135.08       -.37800E-04** at limit **
  20  Prefactor     3.1966        1.0128         .0000         .0000    
  21  Prefactor     .42827E-02    950.18       -.76320E-04    .30291E-02
  22  Prefactor     246.08        113.09        .78694E-05    .17532E-02
  23  Prefactor     2.5180        1.0212         .0000         .0000    
  24  Prefactor     .10000E-03    21.934       -.43621E-05** at limit **
  25  norm          .10000E-03    91.140       -.20650E-04** at limit **
  26  norm          .10000E-03    20.372        .44631E-05** at limit **
  27  Prefactor     62.062        43.039       -.23774E-05    .95914E-04
  28  norm          .10000E-03    187.49       -.62974E-04** at limit **
  29  Prefactor     .10011E-03    252.87        .19779E-05** at limit **
  30  Prefactor     .10093E-03    155.34        .51458E-04** at limit **
  31  Prefactor     .10000E-03    85.333       -.54986E-05** at limit **
  32  Normalizat    1.1465        .63031       -.16360E-04   -.48333E-05
  33  Prefactor     .26226        .43957        .36891E-05    .13242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7056
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 373.583
  Prefactor  = 9.42854
  Prefactor  = 0.0001
  Prefactor  = 351.149
  Prefactor  = 145.394
  Prefactor  = 0.000100098
  Prefactor  = 0.0001
  Prefactor  = 0.000100248
  norm       = 0.000100005
  Prefactor  = 0.0486199
  Prefactor  = 0.000100344
  norm       = 0.000100005
  Prefactor  = 3.19661
  Prefactor  = 0.00428267
  Prefactor  = 246.084
  Prefactor  = 2.51803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.0621
  norm       = 0.000100002
  Prefactor  = 0.000100107
  Prefactor  = 0.000100932
  Prefactor  = 0.0001
  Normalizat = 1.14647
  Prefactor  = 0.262262
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   629.8747     FROM HESSE     STATUS=FAILED        45 CALLS      763 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    138.11        .10181E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.520        .92743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.706        59.228        .14815E-02   -1.4431    
   5  norm          .10000E-03    24.596        .93705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.442        .98434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4985        .14065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     373.58        212.78        .48726E-03   -1.1818    
   9  Prefactor     494.68        485.22         .0000       -1.5094    
  10  Prefactor     .10000E-03    .26075       -.20884E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     351.15        4.2794       -.13205E-05   -1.1938    
  12  Prefactor     145.39        2.4675       -.19631E-04   -1.3290    
  13  Prefactor     .10010E-03    .22102       -.44522E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .24734       -.37468E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10025E-03    .22833        .36310E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    .26545        .77328E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .48620E-01    .15138        .20424E-04   -1.5752    
  18  Prefactor     .10034E-03    .20590        .20550E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .25457       -.37800E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1966        1.0128         .0000       -1.5350    
  21  Prefactor     .42827E-02    .70397E-01   -.76320E-04   -1.5695    
  22  Prefactor     246.08        .99863        .78694E-05   -1.2558    
  23  Prefactor     2.5180        1.0212         .0000       -1.5391    
  24  Prefactor     .10000E-03    .28673       -.43621E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .21693       -.20650E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .24598        .44631E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     62.062        1.0015       -.23774E-05   -1.4131    
  28  norm          .10000E-03    .21106       -.62974E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10011E-03    .25612        .19779E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10093E-03    .20841        .51458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .20735       -.54986E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1465        1.1410       -.16360E-04   -.88273    
  33  Prefactor     .26226        .56921        .36891E-05   -1.2455    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.84509e-09
Minuit parameter uncertainties:
  1  1.47045e-05
  2  0.000105781
  3  2.62423e-05
  4  59.3142
  5  7.47415e-05
  6  0.000268053
  7  1.82784e-06
  8  213.23
  9  1.00141
  10  2.04151e-05
  11  4.27938
  12  2.46747
  13  0.000294086
  14  1.28159e-06
  15  0.000476255
  16  7.46247e-05
  17  0.151383
  18  0.000531985
  19  6.88694e-05
  20  1.01279
  21  0.0343191
  22  0.998627
  23  1.02121
  24  6.19033e-06
  25  1.89896e-06
  26  4.81329e-06
  27  1.00155
  28  4.21367e-05
  29  0.000330588
  30  0.000881577
  31  5.92634e-08
  32  1.16713
  33  0.58199
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 629.874723051

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.001e-04  2.941e-04  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.332e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  2.623e-01  5.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.146e+00  1.167e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 38.386 6.908
Photon Flux Upper Limit: 8.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507411/likelihoodResults_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.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) = 629.874751874
delta logL = -2.88230004344e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 629.874723138
delta logL = -8.65680931383e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9587       1.0000          .0000       10.000    
     3 'Normalizat'    1.1465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+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=   629.8747     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-03    68.203        .18142E-01** at limit **
   2  Index         2.8721        6.5359        .50000        .12037E-05
   3  Normalizat    1.1465        .99654E-02    .24267E-03    .18833E-05
   4  Prefactor     .26226        .69073E-02    .33485E-03   -.83606E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102427
  Index      = 2.87214
  Normalizat = 1.14648
  Prefactor  = 0.26226
 **********
 **   18 **HESSE 
 **********

 FCN=   629.8747     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-03    895.95        .28534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8721        6.3460        .50000       -.43959    
   3  Normalizat    1.1465        .36645E-01    .48535E-04   -.88273    
   4  Prefactor     .26226        .25399E-01    .13394E-04   -1.2455    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74916e-10
Minuit parameter uncertainties:
  1  0.0947172
  2  1340.07
  3  0.036646
  4  0.0254005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507411': 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) = 629.874723121
delta logL = -7.03569185134e-08

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.024e-04  9.472e-02  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.872e+00  1.340e+03  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  2.623e-01  2.540e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.146e+00  3.665e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 38.386 6.908

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/507411/cmap_HighResolution_558144001_558403201_4FGL_J0233.5+0654_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-02', job_status='DONE', photon_flux_upper_limit='8.32e-07', time_completed='2021-08-16 04:29:07.242615', job_id='507411', GAL2='0.26', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629113347.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.26', dlogl='-7.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1230' AND source_name='4FGL J0233.5+0654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:29:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 507411: <4FGL_J0233.5+0654_daily_bin1230> in cluster <slac> Done

Job <4FGL_J0233.5+0654_daily_bin1230> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 04:20:33 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 04:22:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 04:22:40 2021
Terminated at Mon Aug 16 04:29:08 2021
Results reported at Mon Aug 16 04:29:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_daily_bin1230 38.3857 6.9083 558144001 558403201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0233.5+0654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   365.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             502.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   387 sec.
    Turnaround time :                            515 sec.

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

