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


Performing analysis on: 4FGL_J0233.5+0654_daily_bin619
RA = 38.3857, Dec = 6.9083
tmin = 399772801, tmax = 400032001
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='503151', job_status='RUN', time_executed='2021-08-16 04:10:59.664663', time_epoch_executed='1629112259.66' WHERE source_name='4FGL J0233.5+0654' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503151/ft1_4FGL_J0233.5+0654_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503151/ft1_4FGL_J0233.5+0654_daily_bin619.fits outfile=/scratch/kocevski/503151/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin619.fits ra=38.3857 dec=6.9083 rad=12.0 tmin=399772801.0 tmax=400032001.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.01
user 4.97
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/503151/ltcube_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.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/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits
.....................!
real 14.81
user 13.53
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/503151/ltcube_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits outfile=/scratch/kocevski/503151/expmap_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.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/503151/ltcube_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits
.....................!
real 192.67
user 186.58
sys 4.82

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/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits scfile=/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits outfile=/scratch/kocevski/503151/cmap_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.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.28
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits scfile=/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits outfile=/scratch/kocevski/503151/cmap_HighResolution_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.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.35
user 0.40
sys 0.86

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits', '/scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits', expMap='/scratch/kocevski/503151/expmap_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits', expCube='/scratch/kocevski/503151/ltcube_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503151/Model_4FGL_J0233.5+0654_daily_bin619.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/503151/ft1_filtered_4FGL_J0233.5+0654_daily_bin619.fits
Spacecraft file(s): /scratch/kocevski/503151/ft2_4FGL_J0233.5+0654_daily_bin619.fits
Exposure map: /scratch/kocevski/503151/expmap_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits
Exposure cube: /scratch/kocevski/503151/ltcube_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503151/Model_4FGL_J0233.5+0654_daily_bin619.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) = 3677.08415429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3390       1.0000         .10000E-03   10000.    
     5 'norm      '    18.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    105.99       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1201       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7390       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.3813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13788E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.110       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6992       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2732       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.7025       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82959       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82658       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.

 FCN=   3677.062     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4552 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8711       -.15804E-06** at limit **
   2  norm          .10000E-03    8.3363        .49172E-06** at limit **
   3  Prefactor     .10000E-03    10.421        .57377E-06** at limit **
   4  Prefactor     7.3392        4.5982       -.15286E-06   -.24081E-03
   5  norm          18.772        9.1386       -.15707E-06   -.66148E-04
   6  Prefactor     .10000E-03    2.9204        .59698E-06** at limit **
   7  norm          .10000E-03    .75951       -.50725E-07** at limit **
   8  Prefactor     105.98        52.855       -.10742E-05    .20266E-04
   9  Prefactor     .10000E-03    30.755       -.29381E-05** at limit **
  10  Prefactor     .10000E-03    9.7081       -.39190E-06** at limit **
  11  Prefactor     61.336        136.40        .24505E-04    .20339E-03
  12  Prefactor     8.4809        13.211       -.16715E-05   -.68700E-04
  13  Prefactor     .10000E-03    11.904        .12671E-05** at limit **
  14  Prefactor     .10000E-03    9.6715       -.12797E-07** at limit **
  15  Prefactor     3.1197        11.026        .11565E-04   -.47330E-03
  16  norm          1.7390        .86207       -.33784E-06    .41612E-03
  17  Prefactor     .10000E-03    26.238        .58617E-06** at limit **
  18  Prefactor     .10000E-03    22.769        .18008E-05** at limit **
  19  norm          9.3796        14.929       -.34357E-06   -.39204E-04
  20  Prefactor     .10000E-03    12.758        .43930E-06** at limit **
  21  Prefactor     .10000E-03    69.620        .33991E-05** at limit **
  22  Prefactor     .10000E-03    111.39       -.37934E-05** at limit **
  23  Prefactor     34.115        31.755        .31031E-06    .77074E-05
  24  Prefactor     1.6993        5.6429        .89557E-06   -.54342E-04
  25  norm          .10000E-03    6.0048        .62956E-08** at limit **
  26  norm          5.2735        4.8521        .12545E-06   -.12084E-04
  27  Prefactor     .10000E-03    3.0133       -.32712E-07** at limit **
  28  norm          .10000E-03    4.4426       -.59336E-07** at limit **
  29  Prefactor     .10000E-03    14.325       -.11069E-05** at limit **
  30  Prefactor     .10000E-03    14.166       -.90854E-06** at limit **
  31  Prefactor     9.7031        8.3337        .94784E-06   -.19370E-03
  32  Normalizat    .82964        .25107       -.65726E-06   -.76423E-04
  33  Prefactor     .82654        .12608       -.11832E-05   -.34507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.33916
  norm       = 18.7715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 105.98
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 61.3364
  Prefactor  = 8.48091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11973
  norm       = 1.73899
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.37959
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 34.1153
  Prefactor  = 1.69925
  norm       = 0.0001
  norm       = 5.27351
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.70314
  Normalizat = 0.829641
  Prefactor  = 0.826544
 **********
 **   18 **HESSE 
 **********

 FCN=   3677.062     FROM HESSE     STATUS=OK           683 CALLS     5235 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8940        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.3435        .17106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3392        4.6000        .99328E-04   -1.5166    
   5  norm          18.772        9.1361        .92444E-04   -1.4841    
   6  Prefactor     .10000E-03    2.9667        .10088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .78453        .10297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     105.98        52.989        .39062E-04   -1.3645    
   9  Prefactor     .10000E-03    30.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.336        144.85        .25645E-03   -1.4140    
  12  Prefactor     8.4809        13.167        .13763E-03   -1.5125    
  13  Prefactor     .10000E-03    11.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1197        11.525        .11477E-02   -1.5355    
  16  norm          1.7390        .86890        .35918E-04   -1.5444    
  17  Prefactor     .10000E-03    26.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.3796        14.941        .13084E-03   -1.5095    
  20  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    70.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    111.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.115        31.783        .68613E-04   -1.4539    
  24  Prefactor     1.6993        5.6085        .25309E-03   -1.5447    
  25  norm          .10000E-03    6.0095        .14512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2735        4.8562        .12323E-03   -1.5249    
  27  Prefactor     .10000E-03    3.0220        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.4517        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     9.7031        8.3857        .64325E-03   -1.5085    
  32  Normalizat    .82964        .27526        .34813E-03   -.98978    
  33  Prefactor     .82654        .13983        .17267E-03   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85958e-09
Minuit parameter uncertainties:
  1  1.75228e-06
  2  4.3658e-05
  3  6.81841e-05
  4  4.60019
  5  9.13679
  6  3.72114e-05
  7  3.78956e-06
  8  53.0128
  9  0.000465732
  10  6.94793e-05
  11  145.699
  12  13.1715
  13  8.89722e-05
  14  0.000135836
  15  11.5334
  16  0.868903
  17  6.67325e-05
  18  0.000258007
  19  14.9471
  20  4.51832e-05
  21  0.00076924
  22  0.000991522
  23  31.7988
  24  5.61026
  25  2.78157e-06
  26  4.85659
  27  3.28562e-06
  28  2.33655e-06
  29  9.41228e-05
  30  8.23813e-05
  31  8.38669
  32  0.27572
  33  0.139892
Done.

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

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  8.897e-05  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:  8.265e-01  1.399e-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:  8.296e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/503151/likelihoodResults_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.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) = 3677.0621304
delta logL = -0.000399066595037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3677.06173214
delta logL = -8.02905105957e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3153       1.0000          .0000       10.000    
     3 'Normalizat'    .82988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82644       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=   3677.062     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    175.85        .18142E-02** at limit **
   2  Index         2.2390        5.7617        .50000        .89774E-05
   3  Normalizat    .82964        .27307E-01    .34813E-03   -.33799E-05
   4  Prefactor     .82654        .13630E-01    .17267E-03   -.47075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101688
  Index      = 2.23905
  Normalizat = 0.829643
  Prefactor  = 0.826543
 **********
 **   18 **HESSE 
 **********

 FCN=   3677.062     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10169E-03    710.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2390        6.1072        .50000       -.58499    
   3  Normalizat    .82964        .58352E-01    .13925E-04   -.98978    
   4  Prefactor     .82654        .29126E-01    .69070E-05   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74708e-08
Minuit parameter uncertainties:
  1  0.0701004
  2  1287.93
  3  0.0583568
  4  0.0291266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503151': 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) = 3677.06173118
delta logL = 1.59237970365e-07

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.017e-04  7.010e-02  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.239e+00  1.288e+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:  8.265e-01  2.913e-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:  8.296e-01  5.836e-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/503151/cmap_HighResolution_399772801_400032001_4FGL_J0233.5+0654_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-16 04:22:20.636943', job_id='503151', GAL2='0.83', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629112940.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='619' AND source_name='4FGL J0233.5+0654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:22:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 503151: <4FGL_J0233.5+0654_daily_bin619> in cluster <slac> Done

Job <4FGL_J0233.5+0654_daily_bin619> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 04:05:48 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 04:08:36 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:08:36 2021
Terminated at Mon Aug 16 04:22:21 2021
Results reported at Mon Aug 16 04:22:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_daily_bin619 38.3857 6.9083 399772801 400032001 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 :                                   686.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            993 sec.

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

