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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1425
RA = 36.9544, Dec = 22.7775
tmin = 608688001, tmax = 608947201
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='429185', job_status='RUN', time_executed='2021-08-16 00:00:48.391101', time_epoch_executed='1629097248.39' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429185

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429185/ft1_4FGL_J0227.8+2246_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429185/ft1_4FGL_J0227.8+2246_daily_bin1425.fits outfile=/scratch/kocevski/429185/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1425.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=608688001.0 tmax=608947201.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 8.24
user 2.82
sys 5.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/429185/ltcube_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.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/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits
.....................!
real 21.42
user 15.17
sys 6.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/429185/ltcube_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits outfile=/scratch/kocevski/429185/expmap_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.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/429185/ltcube_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits
.....................!
real 198.93
user 186.13
sys 12.17

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/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits scfile=/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits outfile=/scratch/kocevski/429185/cmap_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.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 5.59
user 0.37
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits scfile=/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits outfile=/scratch/kocevski/429185/cmap_HighResolution_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.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 5.60
user 0.37
sys 5.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits', '/scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits', expMap='/scratch/kocevski/429185/expmap_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits', expCube='/scratch/kocevski/429185/ltcube_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429185/Model_4FGL_J0227.8+2246_daily_bin1425.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/429185/ft1_filtered_4FGL_J0227.8+2246_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/429185/ft2_4FGL_J0227.8+2246_daily_bin1425.fits
Exposure map: /scratch/kocevski/429185/expmap_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits
Exposure cube: /scratch/kocevski/429185/ltcube_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429185/Model_4FGL_J0227.8+2246_daily_bin1425.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) = 387.992062412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62223E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32440E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10386E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22908E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .30765E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21801E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28184E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    .55671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57509E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52809E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    96.716       1.0000         .10000E-03   10000.    
    16 'norm      '    151.38       1.0000         .10000E-03   10000.    
    17 'Prefactor '    119.07       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27312E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11570E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21888E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    588.67       1.0000         .10000E-03   10000.    
    25 'norm      '    32.988       1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.082       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76956       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=   385.3336     FROM MIGRAD    STATUS=CONVERGED   1254 CALLS     4814 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    984.96        .18659E-02** at limit **
   2  Prefactor     .10000E-03    1041.7        .19742E-02** at limit **
   3  norm          .10000E-03    14.964        .74447E-03** at limit **
   4  Prefactor     .10000E-03    1426.6        .18274E-02** at limit **
   5  norm          .10001E-03    802.17        .19801E-02** at limit **
   6  Prefactor     9.7144        2294.0        .64699E-03   -.38291E-05
   7  Prefactor     .10000E-03    105.13        .18142E-02** at limit **
   8  Prefactor     .10000E-03    738.61        .21416E-02** at limit **
   9  Prefactor    10000.0        1403.1        .18174E-02** at limit **
  10  Prefactor    10000.0        2128.3        .18142E-02** at limit **
  11  norm          .10087E-03    2272.0        .23000E-02** at limit **
  12  Prefactor     .10000E-03    721.51        .21086E-02** at limit **
  13  Prefactor     .10000E-03    207.96        .18142E-02** at limit **
  14  Prefactor     .10005E-03    1298.3        .18568E-02** at limit **
  15  Prefactor     96.796        142.84        .20436E-03   -.71728E-05
  16  norm          151.30        123.81        .16380E-03   -.39475E-05
  17  Prefactor     119.22        152.29        .18439E-03    .36994E-06
  18  norm          3.1974        5.4815        .49291E-04    .13767E-04
  19  Prefactor     .10004E-03    572.36        .21429E-02** at limit **
  20  Prefactor     .10000E-03    54.338        .14309E-02** at limit **
  21  Prefactor     .10000E-03    743.25        .18162E-02** at limit **
  22  Prefactor     .10000E-03    34.022        .11272E-02** at limit **
  23  Prefactor     .10000E-03    138.87        .18142E-02** at limit **
  24  Prefactor     589.03        728.50        .84971E-04   -.12276E-05
  25  norm          33.013        53.163        .69767E-04   -.11427E-04
  26  Prefactor     49.286        1034.8        .28914E-03   -.47625E-05
  27  Prefactor     .10000E-03    13.979        .71901E-03** at limit **
  28  Normalizat    .10000E-01    .36038        .76585E-02** at limit **
  29  Prefactor     .76914        .24784        .15466E-03   -.24073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.00010001
  Prefactor  = 9.71437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100868
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 96.7956
  norm       = 151.301
  Prefactor  = 119.223
  norm       = 3.19745
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 589.034
  norm       = 33.0127
  Prefactor  = 49.286
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.769138
 **********
 **   18 **HESSE 
 **********

 FCN=   385.3336     FROM HESSE     STATUS=OK           527 CALLS     5341 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    984.96        .37318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1041.7        .39484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.964        .14889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1426.6        .36548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    802.17        .39602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7144        2294.0        .12940E-01   -1.5085    
   7  Prefactor     .10000E-03    105.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    738.61        .42832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        1402.9        .36349E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        2127.8        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10087E-03    2272.0        .46001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    721.51        .42173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    207.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    1298.3        .37135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     96.796        142.84        .81744E-05   -1.3737    
  16  norm          151.30        123.81        .65520E-05   -1.3242    
  17  Prefactor     119.22        152.32        .73754E-05   -1.3520    
  18  norm          3.1974        5.4828        .19716E-05   -1.5350    
  19  Prefactor     .10004E-03    572.36        .42858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.338        .28618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    743.30        .36323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.022        .22544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    138.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     589.03        728.49        .16994E-04   -1.0805    
  25  norm          33.013        53.163        .27907E-05   -1.4558    
  26  Prefactor     49.286        1034.4        .11566E-04   -1.4303    
  27  Prefactor     .10000E-03    13.979        .14380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .36039        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .76914        .24783        .30931E-04   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06829e-10
Minuit parameter uncertainties:
  1  0.0031206
  2  4.15746e-05
  3  3.76962e-08
  4  0.00385027
  5  0.00570563
  6  311.526
  7  5.87184e-07
  8  0.00120922
  9  0.022543
  10  0.0931223
  11  0.092576
  12  0.00351215
  13  7.39749e-05
  14  0.0168805
  15  143.354
  16  124.025
  17  152.829
  18  5.48368
  19  0.00916255
  20  1.10361e-05
  21  0.00259982
  22  5.63097e-06
  23  0.000127821
  24  740.648
  25  53.2394
  26  460.974
  27  2.32321e-05
  28  3.05022e-06
  29  0.248189
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e-04  1.688e-02  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:  7.691e-01  2.482e-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  3.050e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.72558914533

TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.59e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429185/likelihoodResults_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.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) = 385.334533965
delta logL = -0.000946880496656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 385.334533961
delta logL = -0.000946876288026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1405       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=   385.3345     FROM MIGRAD    STATUS=CONVERGED     20 CALLS       85 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1384        3.4501        .50000        .81680E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.13838
 **********
 **   18 **HESSE 
 **********

 FCN=   385.3345     FROM HESSE     STATUS=OK            11 CALLS       96 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1384        3.4501        .50000       -.60934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67156e-11
Minuit parameter uncertainties:
  1  4.10014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429185': 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) = 385.334533957
delta logL = -0.000946872110205

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  9.631e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
243        Index:  2.138e+00  4.100e+00  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:  7.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.002e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/429185/cmap_HighResolution_608688001_608947201_4FGL_J0227.8+2246_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.59e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-16 00:09:05.623990', job_id='429185', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629097745.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-9.47e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1425' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:09:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 429185: <4FGL_J0227.8+2246_daily_bin1425> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1425> 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) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:56:53 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:53 2021
Terminated at Mon Aug 16 00:09:07 2021
Results reported at Mon Aug 16 00:09:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1425 36.9544 22.7775 608688001 608947201 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 :                                   515.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             209.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            817 sec.

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

