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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1482
RA = 36.8053, Dec = 39.4704
tmin = 623462401, tmax = 623721601
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='420197', job_status='RUN', time_executed='2021-08-15 23:28:23.386761', time_epoch_executed='1629095303.39' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420197/ft1_4FGL_J0227.2+3928_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420197/ft1_4FGL_J0227.2+3928_daily_bin1482.fits outfile=/scratch/kocevski/420197/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1482.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=623462401.0 tmax=623721601.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.38
user 2.50
sys 5.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.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/420197/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.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.84
user 0.36
sys 5.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/420197/ltcube_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.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/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits
.....................!
real 21.24
user 14.86
sys 6.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/420197/ltcube_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits outfile=/scratch/kocevski/420197/expmap_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.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/420197/ltcube_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits
.....................!
real 200.21
user 186.28
sys 11.81

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/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits scfile=/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits outfile=/scratch/kocevski/420197/cmap_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.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 5.87
user 0.39
sys 5.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits scfile=/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits outfile=/scratch/kocevski/420197/cmap_HighResolution_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.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 5.30
user 0.39
sys 4.85

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits', '/scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits', expMap='/scratch/kocevski/420197/expmap_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits', expCube='/scratch/kocevski/420197/ltcube_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/420197/Model_4FGL_J0227.2+3928_daily_bin1482.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/420197/ft1_filtered_4FGL_J0227.2+3928_daily_bin1482.fits
Spacecraft file(s): /scratch/kocevski/420197/ft2_4FGL_J0227.2+3928_daily_bin1482.fits
Exposure map: /scratch/kocevski/420197/expmap_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits
Exposure cube: /scratch/kocevski/420197/ltcube_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/420197/Model_4FGL_J0227.2+3928_daily_bin1482.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) = 4379.49908608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.560       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23591E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.278       1.0000         .10000E-03   10000.    
     6 'norm      '    .30606E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.074       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .90682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.4427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.071       1.0000         .10000E-03   10000.    
    15 'norm      '    .11697E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8721       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .54889       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0451       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=   4379.428     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2581 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.561        9.4571       -.19393E-05   -.58346E-04
   2  Prefactor     35.243        74.244        .56451E-04   -.17182E-05
   3  Prefactor     .10000E-03    5.7843       -.90808E-06** at limit **
   4  Prefactor     .10001E-03    177.96        .39468E-05** at limit **
   5  Prefactor     74.262        101.94       -.15783E-04   -.18927E-06
   6  norm          .10000E-03    26.555        .78542E-05** at limit **
   7  Prefactor     28.096        34.235        .12525E-05   -.14678E-03
   8  norm          4.4111        6.6398       -.12321E-05   -.29401E-03
   9  Prefactor     .10000E-03    9.8380        .72115E-07** at limit **
  10  norm          .10000E-03    .64083        .44680E-07** at limit **
  11  norm          .90679        .57158        .67400E-07    .84426E-04
  12  Prefactor     .10000E-03    16.676       -.59966E-06** at limit **
  13  norm          7.4453        8.5673        .55688E-06    .11721E-04
  14  Prefactor     35.062        73.614       -.97832E-05   -.43986E-05
  15  norm          .10000E-03    2.5784        .10617E-06** at limit **
  16  Prefactor     .10000E-03    36.843       -.25458E-06** at limit **
  17  norm          3.8706        3.8936        .26700E-07   -.28022E-04
  18  norm          .10000E-03    12.966        .58015E-06** at limit **
  19  Prefactor     21.306        18.860        .13844E-05    .11922E-04
  20  Prefactor     .10000E-03    52.623       -.15330E-06** at limit **
  21  norm          .54921        .70102       -.90311E-07   -.74018E-03
  22  Normalizat    1.0492        .44180       -.10552E-04    .21710E-04
  23  Prefactor     1.0456        .13571        .17889E-05   -.23826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.561
  Prefactor  = 35.2435
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 74.2622
  norm       = 0.000100001
  Prefactor  = 28.0956
  norm       = 4.41106
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.906793
  Prefactor  = 0.000100001
  norm       = 7.44527
  Prefactor  = 35.0616
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.87061
  norm       = 0.0001
  Prefactor  = 21.306
  Prefactor  = 0.0001
  norm       = 0.549212
  Normalizat = 1.04915
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.428     FROM HESSE     STATUS=OK           370 CALLS     2951 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.561        9.4572        .12329E-03   -1.5058    
   2  Prefactor     35.243        74.464        .67549E-04   -1.4520    
   3  Prefactor     .10000E-03    5.8201        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    178.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.262        101.92        .46586E-04   -1.3982    
   6  norm          .10000E-03    26.702        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.096        34.167        .75612E-04   -1.4647    
   8  norm          4.4111        6.5894        .19175E-03   -1.5288    
   9  Prefactor     .10000E-03    9.8415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .65481        .10254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .90679        .57500        .38076E-04   -1.5518    
  12  Prefactor     .10000E-03    16.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.4453        8.5596        .14701E-03   -1.5162    
  14  Prefactor     35.062        73.856        .67670E-04   -1.4523    
  15  norm          .10000E-03    11.067        .20569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8706        3.8966        .12650E-03   -1.5314    
  18  norm          .10000E-03    12.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.306        18.394        .86777E-04   -1.4784    
  20  Prefactor     .10000E-03    52.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .54921        .64680        .54572E-03   -1.5560    
  22  Normalizat    1.0492        .49298        .50296E-03   -.91402    
  23  Prefactor     1.0456        .15333        .16700E-03   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73576e-10
Minuit parameter uncertainties:
  1  9.45853
  2  74.6613
  3  0.000219558
  4  0.00210246
  5  102.163
  6  0.000298251
  7  34.1905
  8  6.59048
  9  1.22975e-05
  10  3.42939e-06
  11  0.575001
  12  0.000185428
  13  8.561
  14  74.0492
  15  0.000161492
  16  2.33357e-05
  17  3.89685
  18  9.48614e-06
  19  18.3988
  20  6.43866e-06
  21  0.646808
  22  0.495148
  23  0.153397
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.854e-04  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:  1.046e+00  1.534e-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:  1.049e+00  4.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/420197/likelihoodResults_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.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) = 4379.4287687
delta logL = -0.000283091980236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4379.4284856
delta logL = 1.48083927343e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8062       1.0000          .0000       10.000    
     3 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   4379.428     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    .77309        .65937E-01** at limit **
   2  Index         2.8906        5.2147        .50000       -.68516E-05
   3  Normalizat    1.0491        .31197E-02    .50297E-03    .25474E-04
   4  Prefactor     1.0456        .10430E-02    .16700E-03    .37170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101915
  Index      = 2.89062
  Normalizat = 1.04915
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.428     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10191E-03    114.85        .38495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8906        5.1210        .50000       -.43551    
   3  Normalizat    1.0491        .27062E-01    .20119E-04   -.91402    
   4  Prefactor     1.0456        .90470E-02    .66800E-05   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.23042e-09
Minuit parameter uncertainties:
  1  0.0297158
  2  494.75
  3  0.0270623
  4  0.00904705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420197': 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) = 4379.42848549
delta logL = 1.16840965347e-07

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.019e-04  2.972e-02  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.891e+00  4.947e+02  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:  1.046e+00  9.047e-03  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:  1.049e+00  2.706e-02  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/420197/cmap_HighResolution_623462401_623721601_4FGL_J0227.2+3928_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-02', job_status='DONE', photon_flux_upper_limit='2.80e-07', time_completed='2021-08-15 23:40:25.777213', job_id='420197', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629096025.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1482' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 420197: <4FGL_J0227.2+3928_daily_bin1482> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1482> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 23:25:35 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:26:48 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:26:48 2021
Terminated at Sun Aug 15 23:40:27 2021
Results reported at Sun Aug 15 23:40:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1482 36.8053 39.4704 623462401 623721601 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 :                                   761.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            892 sec.

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

