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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1427
RA = 36.9544, Dec = 22.7775
tmin = 609206401, tmax = 609465601
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='429188', job_status='RUN', time_executed='2021-08-16 00:01:00.210973', time_epoch_executed='1629097260.21' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429188/ft1_4FGL_J0227.8+2246_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429188/ft1_4FGL_J0227.8+2246_daily_bin1427.fits outfile=/scratch/kocevski/429188/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1427.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=609206401.0 tmax=609465601.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.66
user 2.80
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.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/429188/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.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.87
user 0.35
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/429188/ltcube_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.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/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits
.....................!
real 15.91
user 14.06
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/429188/ltcube_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits outfile=/scratch/kocevski/429188/expmap_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.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/429188/ltcube_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits
.....................!
real 193.51
user 186.26
sys 6.51

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/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits outfile=/scratch/kocevski/429188/cmap_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.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.84
user 0.39
sys 1.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits outfile=/scratch/kocevski/429188/cmap_HighResolution_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.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.85
user 0.39
sys 1.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429188/Model_4FGL_J0227.8+2246_daily_bin1427.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/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits......................!
real 28.93
user 25.73
sys 2.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits', '/scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits', expMap='/scratch/kocevski/429188/expmap_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits', expCube='/scratch/kocevski/429188/ltcube_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429188/Model_4FGL_J0227.8+2246_daily_bin1427.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/429188/ft1_filtered_4FGL_J0227.8+2246_daily_bin1427.fits
Spacecraft file(s): /scratch/kocevski/429188/ft2_4FGL_J0227.8+2246_daily_bin1427.fits
Exposure map: /scratch/kocevski/429188/expmap_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits
Exposure cube: /scratch/kocevski/429188/ltcube_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429188/Model_4FGL_J0227.8+2246_daily_bin1427.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 933.461565801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.797       1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    .14110E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3041.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15359E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17270       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4138       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11693E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13498E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4327       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99538       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   933.3354     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     4254 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    6828.8       -.24942E-05** at limit **
   2  Prefactor     .10087E-03    9874.8        .38598E-03** at limit **
   3  norm          10000.        450.28       -.28462E-06** at limit **
   4  Prefactor    10000.0        6469.1        .43415E-06** at limit **
   5  norm          .10000E-03    710.66        .19596E-05** at limit **
   6  Prefactor    10000.0        6760.5        .12662E-05** at limit **
   7  Prefactor    10000.0        1122.8        .38806E-06** at limit **
   8  Prefactor     3043.7        3029.4       -.28594E-04   -.19586E-04
   9  Prefactor     .10000E-03    116.50       -.17396E-06** at limit **
  10  Prefactor     .10000E-03    48.493        .81364E-06** at limit **
  11  norm          .10000E-03    1605.5       -.28551E-05** at limit **
  12  Prefactor     .10000E-03    222.07        .28756E-07** at limit **
  13  Prefactor     .10000E-03    98.739        .69361E-08** at limit **
  14  Prefactor     .10711E-03    9997.8       -.53820E-03** at limit **
  15  Prefactor     .10000E-03    48.378        .25060E-07** at limit **
  16  norm          .10000E-03    10.403        .47329E-05** at limit **
  17  Prefactor     .10000E-03    82.431        .27820E-07** at limit **
  18  norm          1.4500        3.3844        .61433E-06   -.68258E-05
  19  Prefactor     .10000E-03    133.50        .87995E-08** at limit **
  20  Prefactor     54.733        85.755        .34928E-06   -.17797E-04
  21  Prefactor     .10000E-03    254.87        .33280E-06** at limit **
  22  Prefactor     3.4030        50.793       -.52108E-05   -.15038E-04
  23  Prefactor     .10000E-03    45.742       -.33412E-07** at limit **
  24  Prefactor     .10000E-03    213.60        .20365E-05** at limit **
  25  norm          .10000E-03    14.164        .80956E-07** at limit **
  26  Prefactor     .10000E-03    224.03        .29865E-06** at limit **
  27  Prefactor     8.4187        16.982        .16958E-05   -.64683E-04
  28  Normalizat    .10000E-01    .15971        .12432E-04** at limit **
  29  Prefactor     .99563        .16381       -.66307E-05   -.28676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 0.000100866
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 3043.74
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107107
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.44999
  Prefactor  = 0.0001
  Prefactor  = 54.7328
  Prefactor  = 0.0001
  Prefactor  = 3.40302
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.41869
  Normalizat = 0.01
  Prefactor  = 0.995634
 **********
 **   18 **HESSE 
 **********

 FCN=   933.3354     FROM HESSE     STATUS=OK           541 CALLS     4795 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6829.1        .19027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10087E-03    9890.0        .37993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10000.        450.38        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6469.1        .18869E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    710.45        .20518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6759.9        .18280E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        1122.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3043.7        3031.9        .43476E-04   -.40199    
   9  Prefactor     .10000E-03    116.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1605.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    222.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    98.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10711E-03    1047.2        .35476       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.147        .18718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    82.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4500        3.3246        .76694E-04   -1.5467    
  19  Prefactor     .10000E-03    133.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.733        85.428        .54208E-04   -1.4227    
  21  Prefactor     .10000E-03    255.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4030        50.924        .21894E-03   -1.5339    
  23  Prefactor     .10000E-03    45.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    214.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    14.174        .11234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    224.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.4187        17.026        .13805E-03   -1.5128    
  28  Normalizat    .10000E-01    .16834        .76084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .99563        .16644        .15027E-03   -.92875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15237e-09
Minuit parameter uncertainties:
  1  0.0669598
  2  0.904704
  3  2.5477e-05
  4  0.00287427
  5  0.000480422
  6  0.0322761
  7  0.00127
  8  3310.06
  9  1.89105e-05
  10  5.31502e-05
  11  0.00158371
  12  9.86426e-05
  13  2.14491e-06
  14  0.175697
  15  1.20576e-05
  16  0.000531272
  17  6.82603e-05
  18  3.32503
  19  5.48696e-06
  20  85.6197
  21  0.000440846
  22  26.3548
  23  4.03228e-05
  24  0.000766503
  25  2.78728e-05
  26  0.000207951
  27  17.0359
  28  8.1165e-06
  29  0.166524
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.071e-04  1.757e-01  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:  9.956e-01  1.665e-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  8.117e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 1.36e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429188/likelihoodResults_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.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) = 933.335424471
delta logL = -2.23200004257e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 933.335424443
delta logL = -1.94587073565e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1436       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99564       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   933.3354     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    937.03        .18142E-01** at limit **
   2  Index         2.1690        8.7899        .50000        .52358E-06
   3  Normalizat    .10000E-01    .34141E-04    .76082E-03** at limit **
   4  Prefactor     .99564        .21412E-02    .15027E-03   -.66083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100065
  Index      = 2.16897
  Normalizat = 0.01
  Prefactor  = 0.995635
 **********
 **   18 **HESSE 
 **********

 FCN=   933.3354     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    9998.2        .72570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1690        8.9036        .50000       -.60189    
   3  Normalizat    .10000E-01    .86603E-03    .15216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99564        .10784E-01    .30055E-04   -.92875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42919e-09
Minuit parameter uncertainties:
  1  0.0810756
  2  612.123
  3  4.23694e-08
  4  0.0107843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429188': 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) = 933.335424251
delta logL = -2.75770162261e-09

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e-04  8.108e-02  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.169e+00  6.121e+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:  9.956e-01  1.078e-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  4.237e-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/429188/cmap_HighResolution_609206401_609465601_4FGL_J0227.8+2246_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-01', job_status='DONE', photon_flux_upper_limit='1.36e-06', time_completed='2021-08-16 00:08:56.912442', job_id='429188', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629097736.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-2.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1427' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:08:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 429188: <4FGL_J0227.8+2246_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1427> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 23:55:30 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:56:54 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:56:54 2021
Terminated at Mon Aug 16 00:08:57 2021
Results reported at Mon Aug 16 00:08:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1427 36.9544 22.7775 609206401 609465601 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 :                                   441.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             181.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            807 sec.

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

