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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1499
RA = 37.7086, Dec = 40.5416
tmin = 627868801, tmax = 628128001
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='483918', job_status='RUN', time_executed='2021-08-16 03:06:43.920593', time_epoch_executed='1629108403.92' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483918/ft1_4FGL_J0230.8+4032_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483918/ft1_4FGL_J0230.8+4032_daily_bin1499.fits outfile=/scratch/kocevski/483918/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1499.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=627868801.0 tmax=628128001.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 10.55
user 2.27
sys 8.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.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/483918/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.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 8.57
user 0.32
sys 8.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/483918/ltcube_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.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/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits
.....................!
real 23.31
user 13.75
sys 9.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/483918/ltcube_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits outfile=/scratch/kocevski/483918/expmap_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.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/483918/ltcube_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits
.....................!
real 204.59
user 187.61
sys 15.93

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
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0230.8+4032 @ 37.7086 40.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits outfile=/scratch/kocevski/483918/cmap_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.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=37.7086 yref=40.5416 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 8.49
user 0.37
sys 8.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits outfile=/scratch/kocevski/483918/cmap_HighResolution_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.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=37.7086 yref=40.5416 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 8.40
user 0.42
sys 7.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483918/Model_4FGL_J0230.8+4032_daily_bin1499.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
adding source W 3
Working on...
/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits..............!
real 25.79
user 13.73
sys 11.81

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits', '/scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits', expMap='/scratch/kocevski/483918/expmap_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits', expCube='/scratch/kocevski/483918/ltcube_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/483918/Model_4FGL_J0230.8+4032_daily_bin1499.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0230.8+4032'

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  3.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/483918/ft1_filtered_4FGL_J0230.8+4032_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/483918/ft2_4FGL_J0230.8+4032_daily_bin1499.fits
Exposure map: /scratch/kocevski/483918/expmap_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits
Exposure cube: /scratch/kocevski/483918/ltcube_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/483918/Model_4FGL_J0230.8+4032_daily_bin1499.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) = 144.986815746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13217E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71570       1.0000         .10000E-03   10000.    
     6 'norm      '    .16952E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13914E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    19.146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20017E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .16196E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.731       1.0000         .10000E-03   10000.    
    13 'norm      '    .15092E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36259       1.0000         .10000E-03   10000.    
    15 'norm      '    .30476E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .35922E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2713       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35803E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30179E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1987       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36406E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .79073       1.0000         .10000E-03   10000.    
    23 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   144.9015     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2099 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0765        .53909E-05** at limit **
   2  Prefactor     65.925        102.52        .76227E-05   -.63955E-02
   3  Prefactor     .10000E-03    16.502       -.97018E-05** at limit **
   4  Prefactor     .10029E-03    93.537       -.61605E-05** at limit **
   5  Prefactor     .10523E-03    292.09        .10110E-04** at limit **
   6  norm          .10000E-03    17.722       -.43524E-06** at limit **
   7  Prefactor     .10000E-03    25.401       -.38281E-05** at limit **
   8  norm          19.575        32.283        .10803E-05   -.11965E-01
   9  Prefactor     .10000E-03    77.112       -.54332E-05** at limit **
  10  norm          .10000E-03    11.833       -.29776E-05** at limit **
  11  norm          .10000E-03    1.4694       -.15615E-07** at limit **
  12  Prefactor     41.598        49.395        .25590E-05    .26807E-02
  13  norm          .10000E-03    37.504        .63734E-05** at limit **
  14  Prefactor     .12102E-03    319.27        .22211E-04** at limit **
  15  norm          .10000E-03    25.901       -.71579E-05** at limit **
  16  norm          .10005E-03    89.999        .21122E-05** at limit **
  17  Prefactor     .10896E-03    304.73        .23695E-04** at limit **
  18  Prefactor     .10000E-03    14.262       -.38024E-06** at limit **
  19  norm          .10001E-03    78.344       -.80640E-05** at limit **
  20  norm          .35502E-02    313.67       -.10591E-04   -.31590E-02
  21  Prefactor     .10000E-03    41.452        .69786E-05** at limit **
  22  Prefactor     .19702E-03    293.86        .32142E-04** at limit **
  23  norm          .10000E-03    3.1689        .47112E-07** at limit **
  24  Normalizat    .10000E-01    1.2250       -.33891E-04** at limit **
  25  Prefactor     .74563        .25460        .26178E-05   -.29416E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 65.9248
  Prefactor  = 0.0001
  Prefactor  = 0.000100293
  Prefactor  = 0.000105234
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5755
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 41.5975
  norm       = 0.0001
  Prefactor  = 0.000121015
  norm       = 0.0001
  norm       = 0.000100046
  Prefactor  = 0.000108958
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.00355019
  Prefactor  = 0.0001
  Prefactor  = 0.00019702
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.745633
 **********
 **   18 **HESSE 
 **********

 FCN=   144.9015     FROM HESSE     STATUS=OK           461 CALLS     2560 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.925        109.39        .13208E-02   -1.4082    
   3  Prefactor     .10000E-03    16.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10029E-03    93.632        .90890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10523E-03    295.54        .12122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.708        .10186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.367        .90924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.575        39.751        .22884E-02   -1.4823    
   9  Prefactor     .10000E-03    77.111        .10114E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.624        .17897E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4698        .64610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.598        57.190        .14986E-02   -1.4417    
  13  norm          .10000E-03    37.491        .10233E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12102E-03    397.78        .10696E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.900        .99056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    90.009        .92011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10896E-03    311.50        .68124E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.275        .10657E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    78.164        .99110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .35502E-02    899.97        .69372E-02   -1.5720    
  21  Prefactor     .10000E-03    41.462        .10653E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .19702E-03    417.27        .12405E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.1182        .18969       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .74563        .26999        .25311E-01   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22918e-06
Minuit parameter uncertainties:
  1  3.98397e-06
  2  109.721
  3  1.02478e-05
  4  0.0105004
  5  0.0790533
  6  1.78193e-05
  7  4.84612e-05
  8  39.8046
  9  0.00090222
  10  3.67556e-05
  11  6.39687e-08
  12  57.2659
  13  2.45994e-05
  14  0.184095
  15  7.73202e-06
  16  0.00407956
  17  0.106204
  18  7.91846e-06
  19  0.00153733
  20  3.57938
  21  3.80763e-05
  22  0.405261
  23  1.61181e-06
  24  2.64182e-07
  25  0.270464
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  2.460e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.456e-01  2.705e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.000e-02  2.642e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.709 40.542
Photon Flux Upper Limit: 1.17e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483918/likelihoodResults_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 144.901633027
delta logL = -0.000120286906167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 144.901513307
delta logL = -5.66802128787e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   144.9015     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      298 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6986.8        .60966E-02** at limit **
   2  alpha         1.5492        3.6358        .16581       -.11001E-07
   3  Normalizat    .10000E-01    .29176        .75056E-02** at limit **
   4  Prefactor     .74563        .11996        .11189E-03    .81141E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.54918
  Normalizat = 0.01
  Prefactor  = 0.745633
 **********
 **   18 **HESSE 
 **********

 FCN=   144.9015     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    49.408        .82834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5492        3.5588        .66323E-02   -.39015    
   3  Normalizat    .10000E-01    1.2222        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74563        .24925        .22377E-04   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50528e-11
Minuit parameter uncertainties:
  1  0.000236135
  2  898.682
  3  1.54562e-06
  4  0.249623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483918': 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) = 144.901512419
delta logL = 3.215050981e-07

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  2.361e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.549e+00  8.987e+02  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.456e-01  2.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.000e-02  1.546e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.709 40.542

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/483918/cmap_HighResolution_627868801_628128001_4FGL_J0230.8+4032_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-04', job_status='DONE', photon_flux_upper_limit='1.17e-06', time_completed='2021-08-16 03:14:23.514578', job_id='483918', GAL2='0.75', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629108863.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1499' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 03:14:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 483918: <4FGL_J0230.8+4032_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1499> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 03:00:28 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 03:00:41 2021
Terminated at Mon Aug 16 03:14:25 2021
Results reported at Mon Aug 16 03:14:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1499 37.7086 40.5416 627868801 628128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0230.8+4032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             200.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            837 sec.

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

