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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1302
RA = 36.9544, Dec = 22.7775
tmin = 576806401, tmax = 577065601
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='427636', job_status='RUN', time_executed='2021-08-15 23:58:02.967941', time_epoch_executed='1629097082.97' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427636/ft1_4FGL_J0227.8+2246_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427636/ft1_4FGL_J0227.8+2246_daily_bin1302.fits outfile=/scratch/kocevski/427636/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1302.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=576806401.0 tmax=577065601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.05
user 2.87
sys 1.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.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/427636/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.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.42
user 0.34
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/427636/ltcube_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.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/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits
.....................!
real 16.55
user 14.48
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/427636/ltcube_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits outfile=/scratch/kocevski/427636/expmap_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.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/427636/ltcube_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits
.....................!
real 195.26
user 186.85
sys 5.83

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits outfile=/scratch/kocevski/427636/cmap_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.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=36.9544 yref=22.7775 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.43
user 0.38
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits outfile=/scratch/kocevski/427636/cmap_HighResolution_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.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=36.9544 yref=22.7775 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.54
user 0.40
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427636/Model_4FGL_J0227.8+2246_daily_bin1302.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits.....................!
real 30.39
user 27.15
sys 2.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits', '/scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits', expMap='/scratch/kocevski/427636/expmap_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits', expCube='/scratch/kocevski/427636/ltcube_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/427636/Model_4FGL_J0227.8+2246_daily_bin1302.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/427636/ft1_filtered_4FGL_J0227.8+2246_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/427636/ft2_4FGL_J0227.8+2246_daily_bin1302.fits
Exposure map: /scratch/kocevski/427636/expmap_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits
Exposure cube: /scratch/kocevski/427636/ltcube_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/427636/Model_4FGL_J0227.8+2246_daily_bin1302.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) = 936.758829949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.951       1.0000         .10000E-03   10000.    
     3 'norm      '    9998.1       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8189.2       1.0000         .10000E-03   10000.    
     5 'norm      '    9040.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .75197E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8681.7       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1310.2       1.0000         .10000E-03   10000.    
    11 'norm      '    .57352       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24438E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12526E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21745E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    179.98       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .64562E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   912.6238     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     3530 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     761.75        1630.7        .87186E-05   -.23102E-01
   2  Prefactor     668.95        1542.3        .85814E-05   -.16220E-01
   3  norm         10000.0        572.33        .39170E-05** at limit **
   4  Prefactor    10000.0        1582.2        .17997E-04   -.32787E-02
   5  norm          9992.2        724.86        .14801E-04    .48844E-01
   6  Prefactor     .10000E-03    9564.3        .55819E-04** at limit **
   7  Prefactor     .10000E-03    31.630       -.11268E-05** at limit **
   8  Prefactor     9999.7        1209.9        .13308E-04   -.21745E-01
   9  Prefactor     .10000E-03    52.609        .23338E-06** at limit **
  10  Prefactor     .21517E-02    1280.7        .20926E-04** at limit **
  11  norm          .10000E-03    792.46       -.70411E-05** at limit **
  12  Prefactor     .10000E-03    92.856       -.26054E-05** at limit **
  13  Prefactor     3.6258        189.28        .18817E-04    .46541E-04
  14  Prefactor     .10000E-03    342.77       -.17337E-05** at limit **
  15  Prefactor     .10000E-03    50.747        .25479E-05** at limit **
  16  norm          .10000E-03    13.599        .19886E-05** at limit **
  17  Prefactor     .10000E-03    45.442        .20102E-05** at limit **
  18  norm          1.9680        1.8422       -.12302E-06   -.14842E-03
  19  Prefactor     .10000E-03    112.32       -.57868E-05** at limit **
  20  Prefactor     .10000E-03    24.741       -.19125E-06** at limit **
  21  Prefactor     .10000E-03    58.055        .30720E-05** at limit **
  22  Prefactor     52.247        41.141       -.34357E-06   -.36220E-04
  23  Prefactor     .10000E-03    35.346        .40219E-06** at limit **
  24  Prefactor     .10000E-03    157.20       -.52867E-05** at limit **
  25  norm          .10000E-03    32.421        .12712E-05** at limit **
  26  Prefactor     174.01        451.01       -.86846E-05    .39700E-04
  27  Prefactor     .10000E-03    116.82        .28120E-05** at limit **
  28  Normalizat    .10000E-01    .42630       -.47154E-05** at limit **
  29  Prefactor     1.0117        .17929       -.25406E-05   -.15495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 761.746
  Prefactor  = 668.953
  norm       = 10000
  Prefactor  = 9999.98
  norm       = 9992.22
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9999.69
  Prefactor  = 0.0001
  Prefactor  = 0.00215167
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 174.007
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.01171
 **********
 **   18 **HESSE 
 **********

 FCN=   912.6238     FROM HESSE     STATUS=OK           599 CALLS     4129 TOTAL
                     EDM=   .22E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     761.75        5142.0        .13297E-02   -1.0115    
   2  Prefactor     668.95        2096.4        .16483E-02   -1.0476    
   3  norm         10000.0        467.21        .75859E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        1094.8        .25968E-03    1.5680    
   5  norm          9992.2        1249.4        .33959E-03    1.6266    
   6  Prefactor     .10000E-03    1952.5        .93923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9999.7        809.87        .29560E-03    1.5597    
   9  Prefactor     .10000E-03    51.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21517E-02    836.57        .29636E-03   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    597.22        .11567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    90.106        .10020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6258        170.82        .50240E-02   -1.6089    
  14  Prefactor     .10000E-03    297.11        .12662E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9680        1.8486        .73359E-02   -1.5427    
  19  Prefactor     .10000E-03    107.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    56.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.247        41.333        .14153E-02   -1.4261    
  23  Prefactor     .10000E-03    34.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    147.40        .10076E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    31.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     174.01        454.21        .75219E-03   -1.3062    
  27  Prefactor     .10000E-03    32.409        .84565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .33070        .27751       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.0117        .18461        .43376E-01   -.92340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00220533
Minuit parameter uncertainties:
  1  2652.78
  2  2487.51
  3  0.00134356
  4  9.52127
  5  201.575
  6  0.00119228
  7  2.7043e-05
  8  31.9318
  9  0.000105879
  10  2.65818
  11  0.000715144
  12  7.16634e-05
  13  49.9253
  14  0.000380074
  15  3.59214e-05
  16  6.47558e-05
  17  0.000116918
  18  1.84868
  19  0.000377941
  20  1.71728e-05
  21  0.000150498
  22  41.356
  23  3.51083e-05
  24  0.000431276
  25  6.22851e-05
  26  463.881
  27  0.000473953
  28  2.75546e-07
  29  0.184721
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  3.801e-04  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.012e+00  1.847e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  2.755e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 8.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427636/likelihoodResults_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.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) = 912.623844839
delta logL = -1.46208614069e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 912.623844064
delta logL = -1.38456914556e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95993E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1435       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   912.6238     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    350.36        .90748E-02** at limit **
   2  Index         2.0708        5.4343        .50000        .14751E-05
   3  Normalizat    .10000E-01    .54036E-03    .27751    ** at limit **
   4  Prefactor     1.0117        .64949E-02    .43088E-01   -.23714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.07081
  Normalizat = 0.01
  Prefactor  = 1.01171
 **********
 **   18 **HESSE 
 **********

 FCN=   912.6238     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1667.0        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0708        6.0345        .50000       -.62591    
   3  Normalizat    .10000E-01    .36073E-02    .10658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0117        .14554E-01    .15606E-03   -.92340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.93015e-08
Minuit parameter uncertainties:
  1  0.00888912
  2  640.447
  3  7.65584e-08
  4  0.0145543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427636': 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): 102
logL (Free Index) = 912.62383019
delta logL = 2.89220452032e-08

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  8.889e-03  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.071e+00  6.404e+02  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.012e+00  1.455e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  7.656e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

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/427636/cmap_HighResolution_576806401_577065601_4FGL_J0227.8+2246_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-02', job_status='DONE', photon_flux_upper_limit='8.38e-07', time_completed='2021-08-16 00:05:30.111824', job_id='427636', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629097530.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1302' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 427636: <4FGL_J0227.8+2246_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1302> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 23:50:42 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:54:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 23:54:01 2021
Terminated at Mon Aug 16 00:05:31 2021
Results reported at Mon Aug 16 00:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1302 36.9544 22.7775 576806401 577065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.8+2246 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   431.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            889 sec.

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

