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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1249
RA = 37.7086, Dec = 40.5416
tmin = 563068801, tmax = 563328001
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='481220', job_status='RUN', time_executed='2021-08-16 02:56:40.048581', time_epoch_executed='1629107800.05' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481220/ft1_4FGL_J0230.8+4032_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481220/ft1_4FGL_J0230.8+4032_daily_bin1249.fits outfile=/scratch/kocevski/481220/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1249.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=563068801.0 tmax=563328001.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.24
user 3.29
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.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/481220/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.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.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/481220/ltcube_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.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/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits
.....................!
real 16.26
user 15.18
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/481220/ltcube_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits outfile=/scratch/kocevski/481220/expmap_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.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/481220/ltcube_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits
.....................!
real 201.36
user 194.21
sys 6.67

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/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits outfile=/scratch/kocevski/481220/cmap_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.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 1.20
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits outfile=/scratch/kocevski/481220/cmap_HighResolution_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.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 1.22
user 0.39
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481220/Model_4FGL_J0230.8+4032_daily_bin1249.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/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits.....................................!
real 19.11
user 16.93
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits', '/scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits', expMap='/scratch/kocevski/481220/expmap_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits', expCube='/scratch/kocevski/481220/ltcube_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481220/Model_4FGL_J0230.8+4032_daily_bin1249.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/481220/ft1_filtered_4FGL_J0230.8+4032_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/481220/ft2_4FGL_J0230.8+4032_daily_bin1249.fits
Exposure map: /scratch/kocevski/481220/expmap_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits
Exposure cube: /scratch/kocevski/481220/ltcube_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481220/Model_4FGL_J0230.8+4032_daily_bin1249.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) = 447.089617244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20167E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13236E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    25.366       1.0000         .10000E-03   10000.    
    16 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7505       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4334       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.276       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62364       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   446.8209     FROM MIGRAD    STATUS=FAILED       558 CALLS     3813 TOTAL
                     EDM=   .52E-02  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 35.2%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10064E-03    5693.3         .0000    ** at limit **
   2  Prefactor     .26090E-03    5691.3         .0000    ** at limit **
   3  Prefactor     12.342        5812.9         .0000       -.35785    
   4  Prefactor     .11733E-02    5692.6         .0000    ** at limit **
   5  Prefactor     .30420E-01    5689.2         .0000       -.70660E-01
   6  norm          .10086E-03    5692.6         .0000    ** at limit **
   7  Prefactor     .14884E-03    5692.4         .0000    ** at limit **
   8  norm          .13451E-02    5692.5         .0000    ** at limit **
   9  Prefactor     .28773E-01    5689.2         .0000       -.72013E-01
  10  norm          .12192E-03    5693.3         .0000    ** at limit **
  11  norm          .10935E-03    5693.4         .0000    ** at limit **
  12  Prefactor     .27422E-01    5699.0         .0000        .45254E-01
  13  norm          .14820E-01    5695.1         .0000        .34173E-01
  14  Prefactor     .96211        5916.9         .0000        .51983E-01
  15  norm          5290.4        5280.4         .0000       -.37978E-02
  16  norm          .10463E-02    5692.4         .0000    ** at limit **
  17  Prefactor     24.600        6783.9         .0000       -.17022E-04
  18  Prefactor     .30252E-03    5691.6         .0000    ** at limit **
  19  norm          9998.4        6044.3         .0000        .50968E-01
  20  norm          23.883        7862.0         .0000       -.32726E-04
  21  Prefactor     9868.3        9051.6         .0000        .24469E-01
  22  Prefactor     7968.8        5705.6         .0000       -.51142E-02
  23  norm          9983.7        9779.1         .0000        .63475E-01
  24  Normalizat    .10094E-01    5.7063         .0000        .30483E-01
  25  Prefactor     .62021        6.4419         .0000       -.37485    
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   446.8209     FROM SIMPLEX   STATUS=PROGRESS    1424 CALLS     5237 TOTAL
                     EDM=   .20E-04  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 35.2%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    5693.3        .20246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22505E-03    5691.3        .14608E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.342        5812.9        .85977E-06   -1.5005    
   4  Prefactor     .93531E-03    5692.6        .17334E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30395E-01    5689.2        .10323E-04   -1.5743    
   6  norm          .10301E-03    5692.6        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10366E-03    5692.4        .27508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12876E-02    5692.5        .45794E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .28745E-01    5689.2        .60648E-05   -1.5742    
  10  norm          .10000E-03    5693.3        .36763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10090E-03    5693.4        .19907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27443E-01    5699.0        .46654E-05   -1.5675    
  13  norm          .14874E-01    5695.1        .16174E-04   -1.5684    
  14  Prefactor     .96222        5916.9        .30417E-05   -1.5512    
  15  norm          5290.4        5280.4        .72436E-07    .58109E-01
  16  norm          .11504E-02    5692.4        .21510E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.601        6783.9        .19452E-05   -1.4716    
  18  Prefactor     .15983E-03    5691.6        .80529E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9998.4        6044.3        .88662E-05    1.5964    
  20  norm          23.884        7862.0        .40026E-05   -1.4730    
  21  Prefactor     9868.3        9051.6        .27840E-05    1.8008    
  22  Prefactor     7968.8        5705.6        .57361E-06    .63572    
  23  norm          9983.7        9779.1        .81441E-05    1.6515    
  24  Normalizat    .10094E-01    5.7063        .29328E-04   -1.5647    
  25  Prefactor     .62021        6.4419        .63140E-06   -1.0674    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   446.8074     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     6105 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1500        .44300E-04** at limit **
   2  Prefactor     .10000E-03    78.998        .36285E-03** at limit **
   3  Prefactor     12.581        19.860        .21902E-04    .98708E-04
   4  Prefactor     .10000E-03    62.927        .33225E-03** at limit **
   5  Prefactor     .10000E-03    116.14        .36285E-03** at limit **
   6  norm          .10000E-03    24.608        .20602E-03** at limit **
   7  Prefactor     .10000E-03    36.173        .25042E-03** at limit **
   8  norm          .10000E-03    71.894        .35550E-03** at limit **
   9  Prefactor     .10000E-03    111.61        .36285E-03** at limit **
  10  norm          .10000E-03    5.9120        .10050E-03** at limit **
  11  norm          .10000E-03    1.2739        .46374E-04** at limit **
  12  Prefactor     .10001E-03    166.21        .36285E-03** at limit **
  13  norm          .10001E-03    163.25        .36285E-03** at limit **
  14  Prefactor     .10005E-03    667.95        .41133E-03** at limit **
  15  norm         10000.0        2289.9        .79537E-02** at limit **
  16  norm          .10000E-03    67.724        .34500E-03** at limit **
  17  Prefactor     29.218        2284.7        .13550E-03   -.18452E-04
  18  Prefactor     .10000E-03    40.287        .26455E-03** at limit **
  19  norm         10000.0        815.69        .38033E-03** at limit **
  20  norm          33.189        2283.2        .19125E-03   -.38360E-04
  21  Prefactor    10000.0        2092.9        .40756E-03** at limit **
  22  Prefactor    10000.0        2284.6        .96361E-02** at limit **
  23  norm         10000.0        1336.1        .42806E-03** at limit **
  24  Normalizat    .10000E-01    .39450        .16330E-01** at limit **
  25  Prefactor     .62332        .16859        .27268E-04   -.10757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.5815
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.00010001
  Prefactor  = 0.000100054
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 29.2176
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 33.1888
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.623322
 **********
 **   18 **HESSE 
 **********

 FCN=   446.8074     FROM HESSE     STATUS=OK           409 CALLS     6514 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1500        .88599E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.998        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.581        19.858        .43804E-05   -1.4998    
   4  Prefactor     .10000E-03    62.927        .66450E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    116.14        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    24.608        .41204E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.173        .50083E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    71.894        .71100E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    111.61        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.9120        .20100E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2739        .92748E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    166.21        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    163.25        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    667.95        .82266E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        2289.9        .15907E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    67.724        .69000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.218        2284.7        .27101E-02   -1.4626    
  18  Prefactor     .10000E-03    40.287        .52910E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        815.68        .38033E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          33.189        2283.2        .38251E-02   -1.4555    
  21  Prefactor    10000.0        2092.9        .40756E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        2284.5        .19272E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        1336.1        .42806E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .39457        .32660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .62332        .16855        .54535E-05   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1637e-09
Minuit parameter uncertainties:
  1  5.51618e-07
  2  0.00084871
  3  19.8685
  4  0.000208597
  5  0.00142446
  6  7.55065e-07
  7  5.05677e-06
  8  6.04211e-05
  9  0.00128416
  10  6.64198e-06
  11  6.9248e-07
  12  0.00183098
  13  0.00254025
  14  0.0122048
  15  2.09413
  16  0.000182097
  17  539.698
  18  3.92634e-05
  19  0.0103109
  20  575.139
  21  0.0080194
  22  0.286443
  23  0.0058469
  24  8.05115e-07
  25  0.16869
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  2.540e-03  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:  6.233e-01  1.687e-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  8.051e-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: 3.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481220/likelihoodResults_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.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) = 446.80741319
delta logL = -2.77604571011e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 446.807412576
delta logL = -2.71470715916e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95589E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3059       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62322       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.

 FCN=   446.8074     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      198 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    169.41        .90788E-02** at limit **
   2  alpha         2.3348        3.5131        .41309       -.84623E-06
   3  Normalizat    .10000E-01    .36627        .20348    ** at limit **
   4  Prefactor     .62332        .16687        .30855E-01    .34801E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 2.33479
  Normalizat = 0.01
  Prefactor  = 0.623323
 **********
 **   18 **HESSE 
 **********

 FCN=   446.8074     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    168.66        .18158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3348        3.5116        .16524       -.66130E-01
   3  Normalizat    .10000E-01    .39455        .81604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62332        .15915        .13635E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27508e-10
Minuit parameter uncertainties:
  1  0.00407826
  2  2.49469
  3  1.10198e-06
  4  0.159268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481220': 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) = 446.807385419
delta logL = 9.78042180577e-09

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  4.078e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.335e+00  2.495e+00  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:  6.233e-01  1.593e-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.102e-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/481220/cmap_HighResolution_563068801_563328001_4FGL_J0230.8+4032_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-03', job_status='DONE', photon_flux_upper_limit='3.11e-06', time_completed='2021-08-16 03:03:16.943462', job_id='481220', GAL2='0.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629108196.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='9.78e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1249' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 03:03:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 481220: <4FGL_J0230.8+4032_daily_bin1249> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1249> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 02:50:31 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:54:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 02:54:22 2021
Terminated at Mon Aug 16 03:03:17 2021
Results reported at Mon Aug 16 03:03:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1249 37.7086 40.5416 563068801 563328001 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 :                                   404.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            766 sec.

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

