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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1304
RA = 36.8053, Dec = 39.4704
tmin = 577324801, tmax = 577584001
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='418644', job_status='RUN', time_executed='2021-08-15 23:24:10.402439', time_epoch_executed='1629095050.4' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418644/ft1_4FGL_J0227.2+3928_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418644/ft1_4FGL_J0227.2+3928_daily_bin1304.fits outfile=/scratch/kocevski/418644/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1304.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=577324801.0 tmax=577584001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.22
user 2.85
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.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/418644/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/418644/ft1_filtered_4FGL_J0227.2+3928_daily_bin1304.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.23
user 0.34
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418644/ft1_filtered_4FGL_J0227.2+3928_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/418644/ltcube_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.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/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits
.....................!
real 15.55
user 14.12
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418644/ft1_filtered_4FGL_J0227.2+3928_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/418644/ltcube_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.fits outfile=/scratch/kocevski/418644/expmap_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.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/418644/ltcube_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.fits
.....................!
real 192.71
user 186.16
sys 5.89

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/418644/ft1_filtered_4FGL_J0227.2+3928_daily_bin1304.fits scfile=/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits outfile=/scratch/kocevski/418644/cmap_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.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 1.23
user 0.39
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418644/ft1_filtered_4FGL_J0227.2+3928_daily_bin1304.fits scfile=/scratch/kocevski/418644/ft2_4FGL_J0227.2+3928_daily_bin1304.fits outfile=/scratch/kocevski/418644/cmap_HighResolution_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.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 1.25
user 0.40
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    743.59       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2363       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69589       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17670E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4984       1.0000         .10000E-03   10000.    
    18 'norm      '    20.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78987       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9354       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91087       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86116       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=   3066.482     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2518 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    107.89        .27451E-05** at limit **
   2  Prefactor     743.57        517.85       -.25400E-05    .77737E-05
   3  Prefactor     .10000E-03    7.5525        .15105E-07** at limit **
   4  Prefactor     .10001E-03    177.86        .56529E-05** at limit **
   5  Prefactor     .10001E-03    89.405       -.58873E-05** at limit **
   6  norm          .10000E-03    19.150       -.49640E-08** at limit **
   7  Prefactor     .10000E-03    44.132        .30823E-06** at limit **
   8  norm          4.2314        9.3851        .73235E-05   -.60309E-03
   9  Prefactor     .10000E-03    28.423        .96660E-06** at limit **
  10  norm          .69843        2.0143       -.21582E-05   -.66216E-03
  11  norm          .10000E-03    .16611        .26216E-07** at limit **
  12  Prefactor     .10000E-03    3.2880        .25405E-07** at limit **
  13  norm          .10000E-03    3.5077        .63322E-07** at limit **
  14  Prefactor     .10000E-03    30.648       -.18698E-05** at limit **
  15  norm          30.841        9.1563       -.16482E-06   -.17159E-03
  16  Prefactor     .10000E-03    108.18        .22555E-05** at limit **
  17  norm          6.4971        4.1795        .45046E-07   -.75394E-04
  18  norm          20.874        44.968       -.10098E-04   -.24859E-03
  19  Prefactor     .79658        11.508       -.26926E-06    .13763E-03
  20  Prefactor     .10000E-03    35.170        .10594E-05** at limit **
  21  norm          1.9350        .80229       -.77690E-07    .77340E-03
  22  Normalizat    .90975        .43939       -.89661E-06    .77328E-04
  23  Prefactor     .86149        .13594        .83553E-06    .40126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 743.573
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.23137
  Prefactor  = 0.0001
  norm       = 0.698432
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 30.8414
  Prefactor  = 0.000100003
  norm       = 6.49714
  norm       = 20.8744
  Prefactor  = 0.796584
  Prefactor  = 0.0001
  norm       = 1.93497
  Normalizat = 0.90975
  Prefactor  = 0.86149
 **********
 **   18 **HESSE 
 **********

 FCN=   3066.482     FROM HESSE     STATUS=OK           360 CALLS     2878 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    108.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     743.57        515.56        .76233E-04   -1.0184    
   3  Prefactor     .10000E-03    7.5527        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    178.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    90.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2314        9.7153        .97887E-03   -1.5297    
   9  Prefactor     .10000E-03    28.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69843        1.9682        .10740E-03   -1.5541    
  11  norm          .10000E-03    .16795        .22028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2898        .98062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5106        .10129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.841        9.1640        .72147E-04   -1.4597    
  16  Prefactor     .10000E-03    108.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4971        4.1930        .43821E-03   -1.5198    
  18  norm          20.874        47.357        .87446E-04   -1.4794    
  19  Prefactor     .79658        68.127        .31049E-02   -1.5529    
  20  Prefactor     .10000E-03    35.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9350        .81153        .27901E-04   -1.5430    
  22  Normalizat    .90975        .49053        .47449E-03   -.96118    
  23  Prefactor     .86149        .15482        .15563E-03   -.97500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11217e-09
Minuit parameter uncertainties:
  1  0.000759949
  2  518.935
  3  5.23273e-07
  4  0.00205087
  5  0.0015258
  6  1.10655e-06
  7  6.14345e-05
  8  9.71894
  9  0.000137725
  10  1.96837
  11  3.9438e-07
  12  7.43064e-07
  13  8.08222e-08
  14  0.000283398
  15  9.16444
  16  0.00119749
  17  4.19323
  18  47.4427
  19  14.7499
  20  0.000179981
  21  0.811535
  22  0.492971
  23  0.154897
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.431e-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:  8.615e-01  1.549e-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:  9.097e-01  4.930e-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: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418644/likelihoodResults_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.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) = 3066.48307402
delta logL = -0.00140224603001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3066.48167154
delta logL = 2.34318122239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7714       1.0000          .0000       10.000    
     3 'Normalizat'    .90981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86147       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=   3066.482     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.879        .99690E-02** at limit **
   2  Index         1.9255        8.3424        .50000       -.65859E-07
   3  Normalizat    .90975        .36177E-01    .47448E-03    .16329E-04
   4  Prefactor     .86149        .11681E-01    .15563E-03    .62061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92549
  Normalizat = 0.909745
  Prefactor  = 0.861491
 **********
 **   18 **HESSE 
 **********

 FCN=   3066.482     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    372.59        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9255        6.9991        .50000       -.66226    
   3  Normalizat    .90975        .10568        .18979E-04   -.96119    
   4  Prefactor     .86149        .34127E-01    .31127E-04   -.97500    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.79067e-09
Minuit parameter uncertainties:
  1  0.000569926
  2  1185.84
  3  0.105699
  4  0.0341279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418644': 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) = 3066.48166645
delta logL = 5.31784235136e-06

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.699e-04  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  1.925e+00  1.186e+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:  8.615e-01  3.413e-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:  9.097e-01  1.057e-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/418644/cmap_HighResolution_577324801_577584001_4FGL_J0227.2+3928_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-08-15 23:33:02.515883', job_id='418644', GAL2='0.86', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629095582.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1304' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:33:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 418644: <4FGL_J0227.2+3928_daily_bin1304> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1304> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 23:20:32 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 23:21:22 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:21:22 2021
Terminated at Sun Aug 15 23:33:03 2021
Results reported at Sun Aug 15 23:33:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1304 36.8053 39.4704 577324801 577584001 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 :                                   534.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            751 sec.

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

