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


Performing analysis on: 4FGL_J0233.5+0654_daily_bin960
RA = 38.3857, Dec = 6.9083
tmin = 488160001, tmax = 488419201
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='505864', job_status='RUN', time_executed='2021-08-16 04:16:23.193845', time_epoch_executed='1629112583.19' WHERE source_name='4FGL J0233.5+0654' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505864

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505864/ft1_4FGL_J0233.5+0654_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505864/ft1_4FGL_J0233.5+0654_daily_bin960.fits outfile=/scratch/kocevski/505864/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin960.fits ra=38.3857 dec=6.9083 rad=12.0 tmin=488160001.0 tmax=488419201.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.17
user 5.13
sys 0.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.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/505864/ft1_filteredMKT_4FGL_J0233.5+0654_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/505864/ft1_filtered_4FGL_J0233.5+0654_daily_bin960.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.24
user 0.32
sys 0.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505864/ft1_filtered_4FGL_J0233.5+0654_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/505864/ltcube_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.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/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits
.....................!
real 15.63
user 14.23
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505864/ft1_filtered_4FGL_J0233.5+0654_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/505864/ltcube_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.fits outfile=/scratch/kocevski/505864/expmap_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.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/505864/ltcube_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.fits
.....................!
real 197.10
user 190.12
sys 6.12

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/505864/ft1_filtered_4FGL_J0233.5+0654_daily_bin960.fits scfile=/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits outfile=/scratch/kocevski/505864/cmap_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.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.29
user 0.35
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505864/ft1_filtered_4FGL_J0233.5+0654_daily_bin960.fits scfile=/scratch/kocevski/505864/ft2_4FGL_J0233.5+0654_daily_bin960.fits outfile=/scratch/kocevski/505864/cmap_HighResolution_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.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.26
user 0.38
sys 0.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3361       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1313       1.0000         .10000E-03   10000.    
     5 'norm      '    21.967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3325       1.0000         .10000E-03   10000.    
     7 'norm      '    .82930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7049       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4420       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.808       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.2336       1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.868       1.0000         .10000E-03   10000.    
    30 'Prefactor '    34.601       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88460       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90398       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=   7256.597     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4551 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3360        5.4853        .42698E-07   -.60566E-04
   2  norm          6.4598        13.506        .43125E-08   -.56374E-06
   3  Prefactor     1.3150        4.8631       -.91374E-09   -.44272E-03
   4  Prefactor     3.1313        3.0818        .95916E-08   -.33084E-05
   5  norm          21.967        7.4602        .16625E-07    .29719E-05
   6  Prefactor     5.3327        3.1415        .46052E-07    .31639E-04
   7  norm          .82937        1.0271        .15999E-07    .15128E-05
   8  Prefactor     21.342        21.451       -.74310E-06    .83671E-05
   9  Prefactor     .10000E-03    62.796       -.28557E-05** at limit **
  10  Prefactor     7.0684        7.0818       -.99603E-08    .78219E-05
  11  Prefactor     .10000E-03    22.554       -.56342E-05** at limit **
  12  Prefactor     9.7185        13.947        .46986E-06   -.31581E-04
  13  Prefactor     25.287        18.529        .31384E-06    .20965E-04
  14  Prefactor     .10000E-03    7.7126       -.26391E-05** at limit **
  15  Prefactor     .10000E-03    5.6348       -.21679E-05** at limit **
  16  norm          3.7049        .86320        .18021E-08   -.24310E-03
  17  Prefactor     72.592        59.240       -.11725E-05   -.24316E-04
  18  Prefactor     7.4418        10.041        .63346E-08   -.89821E-05
  19  norm          1.3985        28.226       -.81474E-06    .28009E-05
  20  Prefactor     .10000E-03    12.189        .86814E-05** at limit **
  21  Prefactor     .10000E-03    24.043        .11730E-04** at limit **
  22  Prefactor     .10000E-03    22.804       -.28949E-05** at limit **
  23  Prefactor     .10000E-03    13.653       -.86486E-05** at limit **
  24  Prefactor     .10000E-03    5.7124        .17684E-05** at limit **
  25  norm          .10000E-03    4.6346        .19099E-06** at limit **
  26  norm          11.808        5.0241       -.58264E-07   -.54135E-04
  27  Prefactor     .10000E-03    6.4759        .14762E-05** at limit **
  28  norm          1.2366        9.3229        .58167E-07   -.31108E-03
  29  Prefactor     12.859        20.151       -.44081E-05   -.36847E-04
  30  Prefactor     34.605        27.627        .54269E-05   -.42475E-04
  31  Prefactor     .10000E-03    3.9759       -.60043E-07** at limit **
  32  Normalizat    .88460        .20160       -.76890E-06   -.20972E-04
  33  Prefactor     .90399        .10181        .16174E-06   -.94714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33601
  norm       = 6.45984
  Prefactor  = 1.31501
  Prefactor  = 3.13131
  norm       = 21.9668
  Prefactor  = 5.33268
  norm       = 0.829368
  Prefactor  = 21.3415
  Prefactor  = 0.0001
  Prefactor  = 7.06845
  Prefactor  = 0.0001
  Prefactor  = 9.71854
  Prefactor  = 25.2875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70494
  Prefactor  = 72.5922
  Prefactor  = 7.44184
  norm       = 1.39852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8081
  Prefactor  = 0.0001
  norm       = 1.2366
  Prefactor  = 12.8594
  Prefactor  = 34.6054
  Prefactor  = 0.0001
  Normalizat = 0.884604
  Prefactor  = 0.903994
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.597     FROM HESSE     STATUS=OK           699 CALLS     5250 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3360        5.4971        .79730E-03   -1.5204    
   2  norm          6.4598        13.496        .15791E-03   -1.5200    
   3  Prefactor     1.3150        9.6528        .19208E-02   -1.5479    
   4  Prefactor     3.1313        3.0734        .14264E-03   -1.5354    
   5  norm          21.967        7.4559        .42730E-03   -1.4770    
   6  Prefactor     5.3327        3.1379        .10876E-03   -1.5246    
   7  norm          .82937        1.0014        .88066E-04   -1.5526    
   8  Prefactor     21.342        21.448        .86699E-04   -1.4784    
   9  Prefactor     .10000E-03    62.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0684        7.0580        .15088E-03   -1.5176    
  11  Prefactor     .10000E-03    22.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7185        13.886        .64271E-03   -1.5084    
  13  Prefactor     25.287        18.529        .79663E-04   -1.4702    
  14  Prefactor     .10000E-03    7.7600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7049        .86348        .36352E-04   -1.5323    
  17  Prefactor     72.592        58.998        .47120E-04   -1.4002    
  18  Prefactor     7.4418        10.045        .14702E-03   -1.5162    
  19  norm          1.3985        28.197        .36797E-03   -1.5471    
  20  Prefactor     .10000E-03    12.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.6424        .17909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.808        5.0255        .11658E-03   -1.5021    
  27  Prefactor     .10000E-03    6.6751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.2366        19.093        .20226E-02   -1.5486    
  29  Prefactor     12.859        20.138        .11167E-03   -1.4991    
  30  Prefactor     34.605        27.529        .68126E-04   -1.4531    
  31  Prefactor     .10000E-03    4.0466        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .88460        .21920        .35980E-03   -.97003    
  33  Prefactor     .90399        .11652        .18663E-03   -.96002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34892e-09
Minuit parameter uncertainties:
  1  5.49757
  2  13.5022
  3  7.12695
  4  3.07354
  5  7.45619
  6  3.13801
  7  1.00146
  8  21.4556
  9  6.91607e-06
  10  7.05879
  11  2.36805e-06
  12  13.891
  13  18.5332
  14  1.30919e-05
  15  1.47941e-06
  16  0.86348
  17  59.0456
  18  10.0469
  19  12.5656
  20  3.50749e-07
  21  1.71674e-05
  22  3.44327e-06
  23  3.49699e-06
  24  2.28388e-05
  25  1.7379e-06
  26  5.02569
  27  7.18414e-05
  28  9.72131
  29  20.1486
  30  27.5387
  31  1.28778e-06
  32  0.219417
  33  0.116557
Done.

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

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  2.529e+01  1.853e+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.040e-01  1.166e-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.846e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 38.386 6.908
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.33e-05

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) = 7256.5372325
delta logL = 0.0599052165035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7256.53352967
delta logL = 0.0636080458298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.277       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1207       1.0000          .0000       10.000    
     3 'Normalizat'    .89215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90266       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=   7256.534     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.278        22.377        .75341E-04    .11016E-04
   2  Index         2.1207        .59967        .94070E-02    .27369E-03
   3  Normalizat    .89202        .20205        .35858E-03   -.70702E-05
   4  Prefactor     .90272        .10584        .18677E-03   -.44166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2784
  Index      = 2.12072
  Normalizat = 0.892015
  Prefactor  = 0.902722
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.534     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.278        22.150        .30136E-05   -1.4644    
   2  Index         2.1207        .59373        .18814E-02   -.61365    
   3  Normalizat    .89202        .20209        .14343E-04   -.96741    
   4  Prefactor     .90272        .10588        .37355E-04   -.96046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03866e-12
Minuit parameter uncertainties:
  1  22.1565
  2  0.595837
  3  0.20226
  4  0.1059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505864': 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) = 7256.53352945
delta logL = 0.06360827138

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  2.828e+01  2.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.121e+00  5.958e-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:  9.027e-01  1.059e-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.920e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 38.386 6.908
Photon Index (Free Index): 2.12 +/- 0.60
Photon Flux (Free Index): 4.04e-08 +/- 4.25e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/505864/cmap_HighResolution_488160001_488419201_4FGL_J0233.5+0654_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='2.12e-05', photon_flux_error='3.69e-08', dlogl='6.36e-02', energy_flux='1.82e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-08-16 04:31:40.138085', photon_index_error2='0.60', photon_index2='2.12', ts='5.32', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.88', time_epoch_completed='1629113500.14', return_code='0', job_id='505864', GAL2='0.90', EG2='0.89', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.25e-08', ts2='5.43', photon_index='2.33' WHERE bin_id='960' AND source_name='4FGL J0233.5+0654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:31:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 505864: <4FGL_J0233.5+0654_daily_bin960> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_daily_bin960 38.3857 6.9083 488160001 488419201 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 :                                   924.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            966 sec.

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

