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


Performing analysis on: 4FGL_J0233.5+0654_daily_bin451
RA = 38.3857, Dec = 6.9083
tmin = 356227201, tmax = 356486401
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='502890', job_status='RUN', time_executed='2021-08-16 04:08:56.367140', time_epoch_executed='1629112136.37' WHERE source_name='4FGL J0233.5+0654' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502890

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502890/ft1_4FGL_J0233.5+0654_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/502890/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502890/ft1_4FGL_J0233.5+0654_daily_bin451.fits outfile=/scratch/kocevski/502890/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin451.fits ra=38.3857 dec=6.9083 rad=12.0 tmin=356227201.0 tmax=356486401.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 4.05
user 2.42
sys 1.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.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/502890/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/502890/ft1_filtered_4FGL_J0233.5+0654_daily_bin451.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.65
user 0.29
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502890/ft1_filtered_4FGL_J0233.5+0654_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/502890/ltcube_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.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/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits
.....................!
real 4.51
user 2.88
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502890/ft1_filtered_4FGL_J0233.5+0654_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/502890/ltcube_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.fits outfile=/scratch/kocevski/502890/expmap_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.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/502890/ltcube_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.fits
.....................!
real 158.91
user 152.16
sys 5.99

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/502890/ft1_filtered_4FGL_J0233.5+0654_daily_bin451.fits scfile=/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits outfile=/scratch/kocevski/502890/cmap_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 1.63
user 0.33
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502890/ft1_filtered_4FGL_J0233.5+0654_daily_bin451.fits scfile=/scratch/kocevski/502890/ft2_4FGL_J0233.5+0654_daily_bin451.fits outfile=/scratch/kocevski/502890/cmap_HighResolution_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 1.76
user 0.33
sys 1.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12212E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.255       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.040       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12413E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .77128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.334       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    36.939       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2248       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92369       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=   1174.401     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     4629 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.329        .10311E-05** at limit **
   2  norm          .10202E-03    31.268       -.65506E-06** at limit **
   3  Prefactor     16.109        5.2817       -.13685E-06   -.99144E-03
   4  Prefactor     11.255        15.622        .27739E-06   -.28482E-02
   5  norm          .10000E-03    12.058       -.43986E-06** at limit **
   6  Prefactor     11.043        9.1715        .10457E-06   -.27913E-03
   7  norm          3.5384        3.2370        .73338E-07   -.75121E-06
   8  Prefactor     .10400E-03    19.761        .35453E-06** at limit **
   9  Prefactor     23.387        2.8413        .35128E-06    .64398E-04
  10  Prefactor     .10000E-03    17.112        .13403E-06** at limit **
  11  Prefactor     .10002E-03    115.71       -.20658E-05** at limit **
  12  Prefactor     1.9405        75.705       -.33547E-05   -.56332E-03
  13  Prefactor     7.2450        67.429        .14199E-05    .68500E-03
  14  Prefactor     14.318        11.612       -.71271E-06    .21255E-04
  15  Prefactor     .10003E-03    46.595        .50917E-06** at limit **
  16  norm          .10000E-03    .73252       -.34820E-07** at limit **
  17  Prefactor     15.385        375.09        .22180E-04   -.19263E-03
  18  Prefactor     .10000E-03    20.318        .12162E-07** at limit **
  19  norm          .10000E-03    13.013       -.17861E-05** at limit **
  20  Prefactor     .10101E-03    36.234        .94795E-06** at limit **
  21  Prefactor     .10203E-03    8265.7        .14362E-03** at limit **
  22  Prefactor     55.103        21.417       -.39142E-07    .76846E-03
  23  Prefactor     .10151E-03    25.302       -.56342E-06** at limit **
  24  Prefactor     .10000E-03    10.775        .11310E-06** at limit **
  25  norm          .10000E-03    20.153        .23598E-06** at limit **
  26  norm          .10000E-03    7.6407        .18384E-06** at limit **
  27  Prefactor     .10000E-03    8.0379       -.17810E-06** at limit **
  28  norm          36.918        25.540       -.83303E-06   -.26688E-02
  29  Prefactor     .10000E-03    25.911       -.45694E-06** at limit **
  30  Prefactor     .10189E-03    27.533        .47061E-06** at limit **
  31  Prefactor     .10000E-03    12.635        .37118E-06** at limit **
  32  Normalizat    1.2249        .67186       -.29380E-06    .11613E-04
  33  Prefactor     .92385        .32641       -.17974E-06    .20892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000102024
  Prefactor  = 16.1095
  Prefactor  = 11.2552
  norm       = 0.0001
  Prefactor  = 11.0432
  norm       = 3.53842
  Prefactor  = 0.000103995
  Prefactor  = 23.3873
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 1.94054
  Prefactor  = 7.24499
  Prefactor  = 14.3181
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 15.3854
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101012
  Prefactor  = 0.000102033
  Prefactor  = 55.1031
  Prefactor  = 0.000101511
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 36.9175
  Prefactor  = 0.000100003
  Prefactor  = 0.000101892
  Prefactor  = 0.0001
  Normalizat = 1.22488
  Prefactor  = 0.923851
 **********
 **   18 **HESSE 
 **********

 FCN=   1174.401     FROM HESSE     STATUS=OK           757 CALLS     5386 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10202E-03    36.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.109        26.387        .24943E-02   -1.4905    
   4  Prefactor     11.255        16.659        .29854E-02   -1.5037    
   5  norm          .10000E-03    12.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.043        9.1742        .30145E-02   -1.5043    
   7  norm          3.5384        3.2313        .53721E-02   -1.5332    
   8  Prefactor     .10400E-03    30.076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.387        375.20        .20695E-02   -1.4740    
  10  Prefactor     .10000E-03    17.107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    115.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9405        84.158        .73655E-02   -1.5429    
  13  Prefactor     7.2450        70.095        .37206E-02   -1.5170    
  14  Prefactor     14.318        27.371        .26456E-02   -1.4951    
  15  Prefactor     .10003E-03    46.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .72198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.385        680.75        .26400E-02   -1.4923    
  18  Prefactor     .10000E-03    20.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10101E-03    38.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10203E-03    355.30        .14792       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     55.103        186.07        .13481E-02   -1.4222    
  23  Prefactor     .10151E-03    29.215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    20.142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.6288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.0387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          36.918        27.975        .16485E-02   -1.4492    
  29  Prefactor     .10000E-03    25.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10189E-03    32.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2249        .61530        .78966E-01   -.85837    
  33  Prefactor     .92385        .28663        .45306E-01   -.95313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22804e-07
Minuit parameter uncertainties:
  1  5.90061e-05
  2  0.0171943
  3  26.406
  4  16.6664
  5  1.87701e-05
  6  9.17534
  7  3.23142
  8  0.0219345
  9  188.767
  10  8.44504e-06
  11  0.00300099
  12  25.5966
  13  45.1395
  14  27.3953
  15  0.00236993
  16  5.69196e-07
  17  207.245
  18  0.000169583
  19  0.000112269
  20  0.0125428
  21  0.0540818
  22  188.083
  23  0.0132945
  24  6.49641e-06
  25  0.000104135
  26  9.75449e-06
  27  9.46596e-06
  28  27.9848
  29  0.000518111
  30  0.0156785
  31  1.53901e-05
  32  0.619003
  33  0.287099
Done.

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

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  7.245e+00  4.514e+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:  9.239e-01  2.871e-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.225e+00  6.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/502890/likelihoodResults_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.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) = 1174.38664278
delta logL = 0.0148380126268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1174.38385238
delta logL = 0.017628408018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8049       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8609       1.0000          .0000       10.000    
     3 'Normalizat'    1.2161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92574       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=   1174.384     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      267 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7986        77.927        .18353E-03   -.14524E-03
   2  Index         2.8613        3.3051        .88171E-02   -.49555E-04
   3  Normalizat    1.2162        .60566        .35056E-03   -.19888E-03
   4  Prefactor     .92575        .30922        .20132E-03   -.26482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79861
  Index      = 2.86128
  Normalizat = 1.21616
  Prefactor  = 0.925751
 **********
 **   18 **HESSE 
 **********

 FCN=   1174.384     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7986        50.817        .73414E-05   -1.5270    
   2  Index         2.8613        2.7791        .35268E-03   -.44200    
   3  Normalizat    1.2162        .60608        .70111E-04   -.86105    
   4  Prefactor     .92575        .30934        .40265E-04   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66886e-10
Minuit parameter uncertainties:
  1  31.2651
  2  2.99321
  3  0.609639
  4  0.30993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502890': 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) = 1174.38385235
delta logL = 0.0176284423892

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  4.799e+00  3.127e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.861e+00  2.993e+00  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:  9.258e-01  3.099e-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.216e+00  6.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/502890/cmap_HighResolution_356227201_356486401_4FGL_J0233.5+0654_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-02', job_status='DONE', photon_flux_upper_limit='3.28e-07', time_completed='2021-08-16 04:15:03.657936', job_id='502890', GAL2='0.93', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1629112503.66', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.76e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='451' AND source_name='4FGL J0233.5+0654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 502890: <4FGL_J0233.5+0654_daily_bin451> in cluster <slac> Done

Job <4FGL_J0233.5+0654_daily_bin451> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 04:05:31 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 04:06:46 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:06:46 2021
Terminated at Mon Aug 16 04:15:04 2021
Results reported at Mon Aug 16 04:15:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_daily_bin451 38.3857 6.9083 356227201 356486401 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 :                                   382.15 sec.
    Max Memory :                                 1222 MB
    Average Memory :                             234.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            573 sec.

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

