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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1192
RA = 37.7086, Dec = 40.5416
tmin = 548294401, tmax = 548553601
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='481139', job_status='RUN', time_executed='2021-08-16 02:53:42.694816', time_epoch_executed='1629107622.69' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481139/ft1_4FGL_J0230.8+4032_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481139/ft1_4FGL_J0230.8+4032_daily_bin1192.fits outfile=/scratch/kocevski/481139/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1192.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=548294401.0 tmax=548553601.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.62
user 3.67
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.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/481139/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.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.17
user 0.33
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/481139/ltcube_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.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/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits
.....................!
real 14.89
user 13.72
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/481139/ltcube_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits outfile=/scratch/kocevski/481139/expmap_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.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/481139/ltcube_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits
.....................!
real 194.40
user 186.64
sys 6.97

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/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits scfile=/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits outfile=/scratch/kocevski/481139/cmap_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.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.39
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits scfile=/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits outfile=/scratch/kocevski/481139/cmap_HighResolution_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.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.20
user 0.39
sys 0.79

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits', '/scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits', expMap='/scratch/kocevski/481139/expmap_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits', expCube='/scratch/kocevski/481139/ltcube_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481139/Model_4FGL_J0230.8+4032_daily_bin1192.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/481139/ft1_filtered_4FGL_J0230.8+4032_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/481139/ft2_4FGL_J0230.8+4032_daily_bin1192.fits
Exposure map: /scratch/kocevski/481139/expmap_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits
Exposure cube: /scratch/kocevski/481139/ltcube_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481139/Model_4FGL_J0230.8+4032_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 348.388375559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 344.544213925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4403       1.0000         .10000E-03   10000.    
     6 'norm      '    .32367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.605       1.0000         .10000E-03   10000.    
     8 'norm      '    .10491E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83865E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12929E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23574E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .43743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .66049       1.0000         .10000E-03   10000.    
    15 'norm      '    38.032       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0689       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4130       1.0000         .10000E-03   10000.    
    20 'norm      '    .34234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8253       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4658       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5453       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61815       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=   344.5299     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      518 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0483        .46243E-06** at limit **
   2  Prefactor     72.420        81.498       -.46192E-06   -.15109E-01
   3  Prefactor     18.636        42.099       -.11612E-05    .21875E-02
   4  Prefactor     49.934        81.327       -.13587E-05   -.12649E-01
   5  Prefactor     .11268E-02    1749.0       -.20989E-04** at limit **
   6  norm          .10000E-03    9.7330       -.41065E-05** at limit **
   7  Prefactor     22.912        32.335       -.10226E-05    .21007E-02
   8  norm          .10000E-03    16.176       -.16442E-05** at limit **
   9  Prefactor     .10000E-03    17.775        .12748E-07** at limit **
  10  norm          .10000E-03    5.6672        .22867E-05** at limit **
  11  norm          .10000E-03    23.057       -.72283E-07** at limit **
  12  Prefactor     .10000E-03    51.252        .17224E-05** at limit **
  13  norm          .10000E-03    184.79       -.16032E-05** at limit **
  14  Prefactor     .10001E-03    308.19       -.24959E-05** at limit **
  15  norm          37.937        15.746       -.46252E-06   -.18589E-03
  16  norm          5.5285        1.0041         .0000         .0000    
  17  Prefactor     .10249E-03    323.82        .12986E-04** at limit **
  18  Prefactor     1.0689        1.2157         .0000         .0000    
  19  norm          3.4130        1.0111         .0000         .0000    
  20  norm          .10000E-03    113.83        .10109E-05** at limit **
  21  Prefactor     1.8253        1.0435         .0000         .0000    
  22  Prefactor     3.4658        1.0108         .0000         .0000    
  23  norm          4.5453        1.0062         .0000         .0000    
  24  Normalizat    .10000E-01    .70254       -.99491E-05** at limit **
  25  Prefactor     .62284        .32198        .15446E-05   -.65484E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 72.4203
  Prefactor  = 18.6358
  Prefactor  = 49.9342
  Prefactor  = 0.00112682
  norm       = 0.0001
  Prefactor  = 22.9115
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 37.9369
  norm       = 5.52851
  Prefactor  = 0.000102486
  Prefactor  = 1.06895
  norm       = 3.41296
  norm       = 0.0001
  Prefactor  = 1.82527
  Prefactor  = 3.46582
  norm       = 4.54534
  Normalizat = 0.01
  Prefactor  = 0.622841
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   344.5299     FROM HESSE     STATUS=FAILED        71 CALLS      589 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     72.420        84.787        .11542E-02   -1.4004    
   3  Prefactor     18.636        36.541        .23732E-02   -1.4844    
   4  Prefactor     49.934        81.155        .14479E-02   -1.4294    
   5  Prefactor     .11268E-02    1851.5        .47775E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.6395        .10679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.912        26.611        .20611E-02   -1.4750    
   8  norm          .10000E-03    16.111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.774        .91975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    23.056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    184.57        .11013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    307.90        .11909E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          37.937        14.447        .16248E-02   -1.4475    
  16  norm          526.35        520.78         .0000       -1.5238    
  17  Prefactor     .10249E-03    .44535E-01    .12986E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0689        1.2157         .0000       -1.5501    
  19  norm          3.4130        1.0111         .0000       -1.5338    
  20  norm          .10000E-03    .28139        .10109E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8253        1.0435         .0000       -1.5438    
  22  Prefactor     3.4658        1.0108         .0000       -1.5336    
  23  norm          4.5453        1.0062         .0000       -1.5282    
  24  Normalizat    .10000E-01    .25505       -.99491E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .62284        .96999        .15446E-05   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.78742e-10
Minuit parameter uncertainties:
  1  6.75469e-06
  2  84.9293
  3  36.585
  4  81.3354
  5  2.85072
  6  8.85651e-05
  7  26.6244
  8  4.75121e-05
  9  3.56235e-07
  10  3.85099e-05
  11  2.61615e-06
  12  8.47365e-05
  13  0.000312116
  14  0.00249954
  15  14.4483
  16  1.00415
  17  0.000665437
  18  1.21575
  19  1.01115
  20  2.43813e-06
  21  1.04355
  22  1.0108
  23  1.00618
  24  1.00072e-06
  25  0.998125
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 344.529920738

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  3.121e-04  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.228e-01  9.981e-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.001e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/481139/likelihoodResults_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.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) = 344.529946444
delta logL = -2.57064627363e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 344.529921919
delta logL = -1.18135670846e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16467E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4611       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62289       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=   344.5299     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7818.8        .15348E-01** at limit **
   2  alpha         1.8876        3.3246        .18347        .43259E-08
   3  Normalizat    .10000E-01    .55030E-01    .87046E-02** at limit **
   4  Prefactor     .62284        .72772E-01    .19784E-03    .56590E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100019
  alpha      = 1.88755
  Normalizat = 0.01
  Prefactor  = 0.622843
 **********
 **   18 **HESSE 
 **********

 FCN=   344.5299     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    206.23        .25852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8876        3.9740        .73389E-02   -.24750    
   3  Normalizat    .10000E-01    .70525        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62284        .26291        .39568E-04   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44757e-10
Minuit parameter uncertainties:
  1  0.00398963
  2  2021.98
  3  3.9807e-06
  4  0.263429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481139': 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) = 344.529920715
delta logL = 2.29841248256e-08

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  3.990e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.888e+00  2.022e+03  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.228e-01  2.634e-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  3.981e-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/481139/cmap_HighResolution_548294401_548553601_4FGL_J0230.8+4032_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-03', job_status='DONE', photon_flux_upper_limit='5.63e-06', time_completed='2021-08-16 02:59:31.869968', job_id='481139', GAL2='0.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629107971.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.62', dlogl='2.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1192' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 02:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 481139: <4FGL_J0230.8+4032_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1192> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 02:50:25 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:53:14 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:53:14 2021
Terminated at Mon Aug 16 02:59:32 2021
Results reported at Mon Aug 16 02:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1192 37.7086 40.5416 548294401 548553601 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 :                                   356.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   378 sec.
    Turnaround time :                            547 sec.

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

