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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1215
RA = 36.8053, Dec = 39.4704
tmin = 554256001, tmax = 554515201
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='417211', job_status='RUN', time_executed='2021-08-15 23:20:49.810172', time_epoch_executed='1629094849.81' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417211/ft1_4FGL_J0227.2+3928_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417211/ft1_4FGL_J0227.2+3928_daily_bin1215.fits outfile=/scratch/kocevski/417211/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1215.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=554256001.0 tmax=554515201.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 11.65
user 3.82
sys 7.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.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/417211/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.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 8.05
user 0.35
sys 7.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/417211/ltcube_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.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/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits
.....................!
real 23.73
user 14.92
sys 8.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/417211/ltcube_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits outfile=/scratch/kocevski/417211/expmap_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.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/417211/ltcube_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits
.....................!
real 203.74
user 186.19
sys 16.71

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J0227.2+3928 @ 36.8053 39.4704

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits outfile=/scratch/kocevski/417211/cmap_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.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.8053 yref=39.4704 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 8.62
user 0.38
sys 8.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits outfile=/scratch/kocevski/417211/cmap_HighResolution_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.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.8053 yref=39.4704 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 7.72
user 0.39
sys 7.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417211/Model_4FGL_J0227.2+3928_daily_bin1215.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/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits..............................!
real 27.05
user 15.21
sys 11.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits', '/scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits', expMap='/scratch/kocevski/417211/expmap_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits', expCube='/scratch/kocevski/417211/ltcube_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/417211/Model_4FGL_J0227.2+3928_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.2+3928'

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/417211/ft1_filtered_4FGL_J0227.2+3928_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/417211/ft2_4FGL_J0227.2+3928_daily_bin1215.fits
Exposure map: /scratch/kocevski/417211/expmap_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits
Exposure cube: /scratch/kocevski/417211/ltcube_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/417211/Model_4FGL_J0227.2+3928_daily_bin1215.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) = 317.786178875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    130.45       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9387       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .16575E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15311E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28764E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7607       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80279       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   317.7762     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2461 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.211        16.859       -.47224E-05    .30226E-05
   2  Prefactor     .10000E-03    41.339        .24454E-06** at limit **
   3  Prefactor     .10000E-03    8.6634        .18609E-07** at limit **
   4  Prefactor     130.46        135.94        .55628E-05    .12979E-05
   5  Prefactor     .10000E-03    161.45        .17475E-04** at limit **
   6  norm          .10000E-03    12.012        .31982E-06** at limit **
   7  Prefactor     .10000E-03    18.819        .16698E-04** at limit **
   8  norm          .10000E-03    17.674       -.89386E-05** at limit **
   9  Prefactor     .10000E-03    106.91        .19534E-06** at limit **
  10  norm          3.9382        4.3114       -.11932E-06    .19150E-03
  11  norm          .10000E-03    .92660       -.11608E-07** at limit **
  12  Prefactor     .10000E-03    12.263       -.49395E-06** at limit **
  13  norm          .10000E-03    19.715       -.89037E-05** at limit **
  14  Prefactor     .10000E-03    159.16        .12074E-04** at limit **
  15  norm          28.090        20.638        .33481E-06   -.15876E-05
  16  Prefactor     .10000E-03    351.19        .57039E-04** at limit **
  17  norm          .10000E-03    15.192        .11394E-05** at limit **
  18  norm          .10000E-03    409.67       -.32164E-04** at limit **
  19  Prefactor     .10000E-03    139.60       -.27749E-04** at limit **
  20  Prefactor     .10000E-03    1251.6       -.45602E-03** at limit **
  21  norm          8.7463        5.6170        .29570E-06    .91865E-03
  22  Normalizat    .80152        .94437        .67878E-05    .14690E-04
  23  Prefactor     .53952        .38543       -.68834E-06    .45980E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.2109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93822
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.0903
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74628
  Normalizat = 0.801518
  Prefactor  = 0.539521
 **********
 **   18 **HESSE 
 **********

 FCN=   317.7762     FROM HESSE     STATUS=OK           350 CALLS     2811 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.211        16.890        .59732E-04   -1.4744    
   2  Prefactor     .10000E-03    41.345        .11209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6646        .51285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     130.46        135.95        .35253E-04   -1.3419    
   5  Prefactor     .10000E-03    161.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.012        .60393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.817        .75597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.684        .73200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    107.16        .18025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9382        4.3510        .36212E-04   -1.5311    
  11  norm          .10000E-03    .93010        .16770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.263        .61022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    19.715        .77381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    159.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.090        20.634        .66757E-04   -1.4647    
  16  Prefactor     .10000E-03    351.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.192        .67922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    410.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    139.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1251.5        .19874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7463        5.6174        .32965E-04   -1.5116    
  22  Normalizat    .80152        1.0910        .36247E-03   -1.0001    
  23  Prefactor     .53952        .44764        .18094E-03   -1.1020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40057e-10
Minuit parameter uncertainties:
  1  16.8937
  2  5.97814e-05
  3  1.38244e-05
  4  136.28
  5  7.40221e-06
  6  7.82873e-07
  7  1.57374e-06
  8  2.07673e-06
  9  5.69474e-05
  10  4.35139
  11  2.10611e-07
  12  7.90227e-07
  13  2.02407e-06
  14  1.48227e-05
  15  20.6394
  16  5.76676e-05
  17  1.22718e-06
  18  0.00022018
  19  7.9177e-05
  20  1.06059e-05
  21  5.61778
  22  1.12319
  23  0.450617
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.902e-07  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  5.395e-01  4.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.015e-01  1.123e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.805 39.470
Photon Flux Upper Limit: 6.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417211/likelihoodResults_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.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) = 317.776307742
delta logL = -0.000150451425611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 317.776161402
delta logL = -4.11104457498e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3191       1.0000          .0000       10.000    
     3 'Normalizat'    .80103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53972       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   317.7762     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      296 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    414.48        .45081E-02** at limit **
   2  Index         1.7579        8.3042        .50000        .21496E-06
   3  Normalizat    .80153        .10401        .36247E-03    .84599E-04
   4  Prefactor     .53952        .43572E-01    .18094E-03    .16718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.75792
  Normalizat = 0.801526
  Prefactor  = 0.539521
 **********
 **   18 **HESSE 
 **********

 FCN=   317.7762     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1781.9        .87399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7579        5.3116        .50000       -.70550    
   3  Normalizat    .80153        .23823        .72493E-04   -1.0001    
   4  Prefactor     .53952        .99874E-01    .36189E-04   -1.1020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00598e-10
Minuit parameter uncertainties:
  1  0.00725574
  2  2414.98
  3  0.238539
  4  0.0999061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417211': 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) = 317.776155203
delta logL = 2.08839458082e-06

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.256e-03  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  1.758e+00  2.415e+03  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  5.395e-01  9.991e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.015e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.805 39.470

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/417211/cmap_HighResolution_554256001_554515201_4FGL_J0227.2+3928_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-02', job_status='DONE', photon_flux_upper_limit='6.88e-07', time_completed='2021-08-15 23:28:46.917470', job_id='417211', GAL2='0.54', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629095326.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1215' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 417211: <4FGL_J0227.2+3928_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1215> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 23:15:25 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:15:56 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:15:56 2021
Terminated at Sun Aug 15 23:28:49 2021
Results reported at Sun Aug 15 23:28:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1215 36.8053 39.4704 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.2+3928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             196.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            804 sec.

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

