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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1370
RA = 36.8053, Dec = 39.4704
tmin = 594432001, tmax = 594691201
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='420024', job_status='RUN', time_executed='2021-08-15 23:26:53.233693', time_epoch_executed='1629095213.23' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420024/ft1_4FGL_J0227.2+3928_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420024/ft1_4FGL_J0227.2+3928_daily_bin1370.fits outfile=/scratch/kocevski/420024/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1370.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=594432001.0 tmax=594691201.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 7.03
user 4.11
sys 2.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420024/ft1_filtered_4FGL_J0227.2+3928_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/420024/ltcube_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.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/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits
.....................!
real 16.57
user 13.30
sys 3.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420024/ft1_filtered_4FGL_J0227.2+3928_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/420024/ltcube_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.fits outfile=/scratch/kocevski/420024/expmap_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.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/420024/ltcube_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.fits
.....................!
real 195.52
user 186.63
sys 8.19

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/420024/ft1_filtered_4FGL_J0227.2+3928_daily_bin1370.fits scfile=/scratch/kocevski/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits outfile=/scratch/kocevski/420024/cmap_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.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 3.09
user 0.37
sys 2.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420024/ft1_filtered_4FGL_J0227.2+3928_daily_bin1370.fits scfile=/scratch/kocevski/420024/ft2_4FGL_J0227.2+3928_daily_bin1370.fits outfile=/scratch/kocevski/420024/cmap_HighResolution_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.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 3.09
user 0.39
sys 2.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.987       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5663       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69441       1.0000         .10000E-03   10000.    
    11 'norm      '    .69167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9249       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2255       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87659       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0343       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=   7196.104     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2496 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7008        1.2158        .23332E-07    .68969E-04
   2  Prefactor     2.3235        17.492       -.15326E-05   -.15250E-03
   3  Prefactor     .10000E-03    2.8983       -.15864E-06** at limit **
   4  Prefactor     .10000E-03    14.064        .11481E-05** at limit **
   5  Prefactor     52.997        71.513        .12366E-04    .17883E-06
   6  norm          6.5206        5.1072        .33916E-05   -.75797E-04
   7  Prefactor     5.5624        8.5555        .61991E-06   -.20010E-03
   8  norm          .10000E-03    1.2963       -.44734E-07** at limit **
   9  Prefactor     .10000E-03    5.0680        .66166E-07** at limit **
  10  norm          .69433        .52850       -.23594E-07   -.46958E-03
  11  norm          .69167        .32138       -.19580E-07   -.19703E-03
  12  Prefactor     11.594        7.0491        .99444E-06   -.96360E-04
  13  norm          .10000E-03    2.7758       -.35333E-07** at limit **
  14  Prefactor     .10000E-03    18.184       -.41751E-05** at limit **
  15  norm          4.0260        2.3522        .52570E-07   -.11547E-03
  16  Prefactor     .10000E-03    24.302        .37920E-05** at limit **
  17  norm          2.9251        3.3269        .17214E-07   -.23489E-03
  18  norm          9.2695        35.749        .25418E-05   -.87186E-05
  19  Prefactor     2.1679        34.844       -.74607E-06   -.11661E-03
  20  Prefactor     .10000E-03    53.275       -.33206E-05** at limit **
  21  norm          4.2254        1.0688        .47957E-07    .15147E-03
  22  Normalizat    .87666        .25796       -.41747E-05    .12135E-04
  23  Prefactor     1.0342        .10039        .35327E-06   -.80765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70078
  Prefactor  = 2.32348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.9971
  norm       = 6.52059
  Prefactor  = 5.56244
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.694332
  norm       = 0.691674
  Prefactor  = 11.5943
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02604
  Prefactor  = 0.0001
  norm       = 2.92513
  norm       = 9.26953
  Prefactor  = 2.16793
  Prefactor  = 0.0001
  norm       = 4.22539
  Normalizat = 0.87666
  Prefactor  = 1.03421
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.104     FROM HESSE     STATUS=OK           372 CALLS     2868 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7008        1.2178        .77097E-04   -1.5447    
   2  Prefactor     2.3235        17.666        .26917E-03   -1.5403    
   3  Prefactor     .10000E-03    2.9643        .28132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.997        71.235        .55100E-04   -1.4251    
   6  norm          6.5206        5.0828        .15716E-03   -1.5197    
   7  Prefactor     5.5624        8.5171        .17028E-03   -1.5236    
   8  norm          .10000E-03    1.3055        .94185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69433        .52218        .51455E-04   -1.5541    
  11  norm          .69167        .32274        .31689E-04   -1.5542    
  12  Prefactor     11.594        7.0446        .11766E-03   -1.5027    
  13  norm          .10000E-03    2.7834        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0260        2.3509        .96108E-04   -1.5307    
  16  Prefactor     .10000E-03    24.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9251        3.3245        .15985E-03   -1.5366    
  18  norm          9.2695        35.697        .13164E-03   -1.5099    
  19  Prefactor     2.1679        33.657        .27964E-03   -1.5413    
  20  Prefactor     .10000E-03    53.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2254        1.0539        .36532E-04   -1.5297    
  22  Normalizat    .87666        .27977        .42271E-03   -.97285    
  23  Prefactor     1.0342        .11143        .16710E-03   -.91598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.304e-10
Minuit parameter uncertainties:
  1  1.21777
  2  12.8184
  3  1.44289e-05
  4  2.35874e-05
  5  71.3502
  6  5.08318
  7  8.519
  8  8.46965e-07
  9  3.57202e-06
  10  0.522182
  11  0.322737
  12  7.04515
  13  8.6512e-06
  14  2.30713e-06
  15  2.351
  16  5.82451e-06
  17  3.32475
  18  35.7797
  19  17.0951
  20  2.06032e-05
  21  1.05388
  22  0.280233
  23  0.11145
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.159e+01  7.045e+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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.034e+00  1.115e-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.767e-01  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 36.805 39.470
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 6.74e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.52e-05

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) = 7196.01358358
delta logL = 0.0902290568401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7195.89605944
delta logL = 0.207753200527

Fit tolerance = 1e-08

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

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

 FCN=   7195.896     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      280 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79800        5.4233        .85300E-02    .21849E-02
   2  Index         4.8680        2.7078        .12030        .22683E-03
   3  Normalizat    .78745        .75376E-01    .10017        .52873E-04
   4  Prefactor     1.0647        .31921E-01    .39124E-01    .20077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.798004
  Index      = 4.86801
  Normalizat = 0.787452
  Prefactor  = 1.06465
 **********
 **   18 **HESSE 
 **********

 FCN=   7195.896     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79800        10.623        .38425E-04   -1.5529    
   2  Index         4.8680        3.9894        .47195E-02   -.26402E-01
   3  Normalizat    .78745        .24308        .44392E-03   -1.0054    
   4  Prefactor     1.0647        .10107        .16512E-03   -.90604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33374e-11
Minuit parameter uncertainties:
  1  5.82389
  2  4.61959
  3  0.24342
  4  0.10109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420024': 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) = 7195.89605124
delta logL = 0.207761401302

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  7.980e-01  5.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  4.868e+00  4.620e+00  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.065e+00  1.011e-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:  7.875e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 36.805 39.470
Photon Index (Free Index): 4.87 +/- 4.62
Photon Flux (Free Index): 1.63e-07 +/- 8.67e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/420024/cmap_HighResolution_594432001_594691201_4FGL_J0227.2+3928_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.20e-05', photon_flux_error='6.74e-08', dlogl='2.08e-01', energy_flux='2.50e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-08-15 23:39:58.761760', photon_index_error2='4.62', photon_index2='4.87', ts='4.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='0.88', time_epoch_completed='1629095998.76', return_code='0', job_id='420024', GAL2='1.06', EG2='0.79', return_code2='102', energy_flux_error='1.52e-05', photon_flux_error2='8.67e-08', ts2='5.37', photon_index='2.79' WHERE bin_id='1370' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:39:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 420024: <4FGL_J0227.2+3928_daily_bin1370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1370 36.8053 39.4704 594432001 594691201 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            876 sec.

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

