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


Performing analysis on: 4FGL_J0233.5+0654_daily_bin637
RA = 38.3857, Dec = 6.9083
tmin = 404438401, tmax = 404697601
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='503176', job_status='RUN', time_executed='2021-08-16 04:11:35.147465', time_epoch_executed='1629112295.15' WHERE source_name='4FGL J0233.5+0654' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503176/ft1_4FGL_J0233.5+0654_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503176/ft1_4FGL_J0233.5+0654_daily_bin637.fits outfile=/scratch/kocevski/503176/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin637.fits ra=38.3857 dec=6.9083 rad=12.0 tmin=404438401.0 tmax=404697601.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 13.79
user 12.35
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.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/503176/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/503176/ft1_filtered_4FGL_J0233.5+0654_daily_bin637.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.47
user 0.36
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503176/ft1_filtered_4FGL_J0233.5+0654_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/503176/ltcube_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.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/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits
.....................!
real 14.73
user 13.28
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503176/ft1_filtered_4FGL_J0233.5+0654_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/503176/ltcube_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.fits outfile=/scratch/kocevski/503176/expmap_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.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/503176/ltcube_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.fits
.....................!
real 194.70
user 187.36
sys 6.65

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/503176/ft1_filtered_4FGL_J0233.5+0654_daily_bin637.fits scfile=/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits outfile=/scratch/kocevski/503176/cmap_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.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.52
user 0.38
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503176/ft1_filtered_4FGL_J0233.5+0654_daily_bin637.fits scfile=/scratch/kocevski/503176/ft2_4FGL_J0233.5+0654_daily_bin637.fits outfile=/scratch/kocevski/503176/cmap_HighResolution_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.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.45
user 0.38
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.953       1.0000         .10000E-03   10000.    
     2 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86352E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12373E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.578       1.0000         .10000E-03   10000.    
    19 'norm      '    37.963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11702E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53918E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.559       1.0000         .10000E-03   10000.    
    25 'norm      '    19.594       1.0000         .10000E-03   10000.    
    26 'norm      '    30.405       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .38980       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2002       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=   1429.539     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4598 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.952        28.361        .16634E-06   -.76915E-05
   2  norm          .10000E-03    64.717        .74820E-05** at limit **
   3  Prefactor     .10000E-03    51.943        .33486E-04** at limit **
   4  Prefactor     .10000E-03    23.689        .92633E-05** at limit **
   5  norm          .10000E-03    17.486        .18041E-04** at limit **
   6  Prefactor     .10000E-03    5.1918       -.38991E-07** at limit **
   7  norm          2.6119        3.1745       -.13162E-06   -.24757E-04
   8  Prefactor     .10000E-03    233.36        .78107E-04** at limit **
   9  Prefactor     .10000E-03    395.30       -.22802E-03** at limit **
  10  Prefactor     .10000E-03    107.27       -.67904E-06** at limit **
  11  Prefactor     .10062E-03    7067.4       -.16060E-02** at limit **
  12  Prefactor     .10000E-03    40.878       -.12231E-04** at limit **
  13  Prefactor     71.066        79.862        .14770E-04    .56094E-04
  14  Prefactor     .10002E-03    147.10        .80581E-04** at limit **
  15  Prefactor     .10000E-03    27.563       -.70016E-05** at limit **
  16  norm          2.6443        2.8593       -.99443E-08    .15469E-03
  17  Prefactor     .10000E-03    114.62        .14785E-04** at limit **
  18  Prefactor     52.573        70.601       -.59974E-05    .32571E-04
  19  norm          37.981        59.793        .11336E-04   -.98034E-05
  20  Prefactor     .10000E-03    87.876       -.28810E-04** at limit **
  21  Prefactor     .10000E-03    88.401       -.28728E-04** at limit **
  22  Prefactor     .10007E-03    1492.0       -.23256E-03** at limit **
  23  Prefactor     .10000E-03    81.399       -.27547E-04** at limit **
  24  Prefactor     14.558        15.588        .16341E-06    .38102E-04
  25  norm          19.592        26.300        .22940E-06    .52879E-05
  26  norm          30.405        17.773       -.48121E-06    .13609E-04
  27  Prefactor     .10000E-03    7.2522       -.32352E-07** at limit **
  28  norm          .10000E-03    8.4367        .36514E-08** at limit **
  29  Prefactor     .10000E-03    15.348       -.84458E-06** at limit **
  30  Prefactor     .10000E-03    17.960       -.20180E-04** at limit **
  31  Prefactor     .10000E-03    4.2663        .15243E-07** at limit **
  32  Normalizat    .38999        .61461       -.27268E-06    .16332E-03
  33  Prefactor     1.2002        .31956        .44963E-06    .67435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61194
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100624
  Prefactor  = 0.0001
  Prefactor  = 71.0662
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 2.64429
  Prefactor  = 0.0001
  Prefactor  = 52.5727
  norm       = 37.9815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 14.5578
  norm       = 19.5923
  norm       = 30.4045
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.389986
  Prefactor  = 1.20021
 **********
 **   18 **HESSE 
 **********

 FCN=   1429.539     FROM HESSE     STATUS=OK           677 CALLS     5275 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.952        28.063        .10358E-03   -1.4934    
   2  norm          .10000E-03    64.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.694        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.499        .15448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1959        .84144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6119        3.1093        .65859E-04   -1.5385    
   8  Prefactor     .10000E-03    233.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    395.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    107.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10062E-03    7084.2        .18343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.066        79.821        .47627E-04   -1.4020    
  14  Prefactor     .10002E-03    147.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6443        2.8645        .64886E-04   -1.5383    
  17  Prefactor     .10000E-03    114.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.573        69.625        .55312E-04   -1.4257    
  19  norm          37.981        59.545        .65050E-04   -1.4475    
  20  Prefactor     .10000E-03    87.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    88.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    1516.2        .21120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    81.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.558        15.589        .10497E-03   -1.4945    
  25  norm          19.592        26.303        .90483E-04   -1.4822    
  26  norm          30.405        17.859        .72662E-04   -1.4605    
  27  Prefactor     .10000E-03    7.2906        .99439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.4410        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    15.363        .14470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.972        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.2671        .76282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .38999        .57397        .56945E-03   -1.1782    
  33  Prefactor     1.2002        .31240        .18849E-03   -.86325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91191e-09
Minuit parameter uncertainties:
  1  28.0882
  2  2.85884e-05
  3  8.62056e-05
  4  1.61985e-06
  5  7.91332e-06
  6  1.62588e-06
  7  3.10948
  8  0.00136991
  9  1.78891e-05
  10  0.000238274
  11  0.110928
  12  5.83023e-05
  13  79.9415
  14  0.00363228
  15  1.14907e-05
  16  2.86465
  17  9.93093e-05
  18  69.7331
  19  59.6381
  20  1.81549e-05
  21  0.000121096
  22  0.0219059
  23  9.84515e-06
  24  15.5934
  25  26.3184
  26  17.8624
  27  1.24959e-06
  28  4.43497e-06
  29  4.76982e-06
  30  3.97591e-06
  31  7.14926e-07
  32  0.582973
  33  0.312883
Done.

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

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  7.107e+01  7.994e+01  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:  1.200e+00  3.129e-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:  3.900e-01  5.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 38.386 6.908
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 1.59e-07
Energy Flux (Fixed Index): 5.11e-05 +/- 5.74e-05

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

Saving results to:
/scratch/kocevski/503176/likelihoodResults_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.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) = 1429.30635668
delta logL = 0.232895657989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1429.27580506
delta logL = 0.263447282535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.609       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7909       1.0000          .0000       10.000    
     3 'Normalizat'    .42640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1881       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=   1429.276     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.647        100.70        .89495E-05   -.20230E-04
   2  Index         1.7910        .68366        .28523E-04   -.16191E-04
   3  Normalizat    .42645        .52013       -.57310E-05   -.10013E-03
   4  Prefactor     1.1881        .29614       -.37384E-06   -.18804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.6467
  Index      = 1.79099
  Normalizat = 0.426452
  Prefactor  = 1.18806
 **********
 **   18 **HESSE 
 **********

 FCN=   1429.276     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.647        100.45        .20769E-03   -1.3770    
   2  Index         1.7910        .68253        .60733E-02   -.69685    
   3  Normalizat    .42645        .51805        .54607E-03   -1.1596    
   4  Prefactor     1.1881        .29527        .18929E-03   -.86700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.406e-10
Minuit parameter uncertainties:
  1  100.636
  2  0.686185
  3  0.524043
  4  0.295678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503176': 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) = 1429.27580496
delta logL = 0.26344737719

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  9.365e+01  1.006e+02  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  1.791e+00  6.862e-01  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:  1.188e+00  2.957e-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:  4.265e-01  5.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 38.386 6.908
Photon Index (Free Index): 1.79 +/- 0.69
Photon Flux (Free Index): 8.57e-08 +/- 1.19e-07
Energy Flux (Free Index): 1.05e-04 +/- 1.69e-04

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/503176/cmap_HighResolution_404438401_404697601_4FGL_J0233.5+0654_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-02', comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='1.05e-04', photon_flux_error='1.59e-07', dlogl='2.63e-01', energy_flux='5.11e-05', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-08-16 04:20:10.290063', photon_index_error2='0.69', photon_index2='1.79', ts='1.61', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='5.59e-07', energy_flux_error2='1.69e-04', EG='0.39', time_epoch_completed='1629112810.29', return_code='0', job_id='503176', GAL2='1.19', EG2='0.43', return_code2='0', energy_flux_error='5.74e-05', photon_flux_error2='1.19e-07', ts2='2.14', photon_index='2.33' WHERE bin_id='637' AND source_name='4FGL J0233.5+0654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:20:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 503176: <4FGL_J0233.5+0654_daily_bin637> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_daily_bin637 38.3857 6.9083 404438401 404697601 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 :                                   522.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             245.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            861 sec.

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

