aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 62 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1745
RA = 36.8053, Dec = 39.4704
tmin = 691632001, tmax = 691891201
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='637172', job_status='RUN', time_executed='2022-12-05 00:06:13.014335', time_epoch_executed='1670227573.01' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637172/ft1_4FGL_J0227.2+3928_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637172/ft1_4FGL_J0227.2+3928_daily_bin1745.fits outfile=/scratch/kocevski/637172/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1745.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.41
user 2.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.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/637172/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.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 0.98
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/637172/ltcube_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.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/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits
.....................!
real 12.36
user 11.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/637172/ltcube_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits outfile=/scratch/kocevski/637172/expmap_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.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/637172/ltcube_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits
.....................!
real 192.84
user 186.49
sys 5.84

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/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits scfile=/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits outfile=/scratch/kocevski/637172/cmap_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits scfile=/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits outfile=/scratch/kocevski/637172/cmap_HighResolution_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.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 0.52
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits', '/scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits', expMap='/scratch/kocevski/637172/expmap_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits', expCube='/scratch/kocevski/637172/ltcube_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637172/Model_4FGL_J0227.2+3928_daily_bin1745.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  0.000e+00  1.000e+06 ( 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/637172/ft1_filtered_4FGL_J0227.2+3928_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/637172/ft2_4FGL_J0227.2+3928_daily_bin1745.fits
Exposure map: /scratch/kocevski/637172/expmap_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits
Exposure cube: /scratch/kocevski/637172/ltcube_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637172/Model_4FGL_J0227.2+3928_daily_bin1745.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) = 523.55968666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4305       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27816E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4731       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14313E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    132.76       1.0000          .0000       .10000E+07
     6 'norm      '    .18357E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .58471E-03   1.0000          .0000       .10000E+07
     8 'norm      '    21.296       1.0000          .0000       .10000E+07
     9 'norm      '    .16764E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .27756E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84732E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .36162E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .28910E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    160.61       1.0000          .0000       .10000E+07
    15 'norm      '    .99983E+06   1.0000          .0000       .10000E+07
    16 'norm      '    137.31       1.0000          .0000       .10000E+07
    17 'Prefactor '    34.124       1.0000          .0000       .10000E+07
    18 'norm      '    .99942E+06   1.0000          .0000       .10000E+07
    19 'Normalizat'    .75986       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .47882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   523.5234     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     2439 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4092        2.7566       -.26606E-07    .51839E-03
   2  Prefactor      .0000        35.822       -.72486E-08** at limit **
   3  Prefactor     3.3802        13.757       -.49985E-07    .25547E-03
   4  Prefactor      .0000        29.073        .23205E-07** at limit **
   5  Prefactor     129.61        267.88       -.11850E-05   -.10101E-02
   6  norm          .27756E-09    10.652        .78736E-07** at limit **
   7  Prefactor     .36360E-07    227.03       -.82281E-06** at limit **
   8  norm          21.082        17.730        .21579E-07    .30170E-03
   9  norm           .0000        2.0425       -.70956E-08** at limit **
  10  norm           .0000        1.2307       -.11631E-07** at limit **
  11  Prefactor     .55511E-10    25.322       -.71392E-08** at limit **
  12  norm          .55511E-10    46.110       -.27143E-07** at limit **
  13  norm           .0000        5.4924        .94289E-08** at limit **
  14  Prefactor     .92613E-02    6445.2        .13246E-05** at limit **
  15  norm          .99985E+06    128.56       -.81831E-07   -.10129    
  16  norm          261.61        614.01       -.12548E-05    .18377E-05
  17  Prefactor     30.243        23.333        .32790E-07    .83646E-02
  18  norm          .99943E+06    33.555       -.10695E-07   -.48601E-01
  19  Normalizat    .74983        .64127        .72133E-05   -.26940E-04
  20  Prefactor     .48933        .36016        .17578E-05   -.29630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40923
  Prefactor  = 0
  Prefactor  = 3.3802
  Prefactor  = 0
  Prefactor  = 129.615
  norm       = 2.77556e-10
  Prefactor  = 3.63598e-08
  norm       = 21.0818
  norm       = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 0.00926134
  norm       = 999853
  norm       = 261.612
  Prefactor  = 30.2432
  norm       = 999425
  Normalizat = 0.749825
  Prefactor  = 0.489327
 **********
 **   18 **HESSE 
 **********

 FCN=   523.5234     FROM HESSE     STATUS=OK           323 CALLS     2762 TOTAL
                     EDM=   .49E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4092        2.8051        .90289E-03   -1.5684    
   2  Prefactor      .0000        35.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3802        14.198        .54237E-03   -1.5671    
   4  Prefactor      .0000        29.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     129.61        274.78        .86795E-04   -1.5480    
   6  norm          .27756E-09    10.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .36360E-07    239.67        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.082        17.742        .21676E-03   -1.5616    
   9  norm           .0000        2.0413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.2356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    25.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    45.396        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        5.5193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .92613E-02    6497.5        .78914E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99985E+06    58642.        .77063E-04    1.5466    
  16  norm          261.61        621.67        .85344E-04   -1.5384    
  17  Prefactor     30.243        .64456E+06    .17121E-03   -1.5598    
  18  norm          .99943E+06    .22681E+06    .41527E-04    1.5228    
  19  Normalizat    .74983        .57396        .69230E-01   -1.0196    
  20  Prefactor     .48933        .31593        .39375E-01   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0048798
Minuit parameter uncertainties:
  1  2.8051
  2  9.39352e-06
  3  13.8556
  4  4.61073e-05
  5  274.805
  6  0.000111734
  7  0.00590407
  8  17.7416
  9  4.60202e-06
  10  6.80029e-06
  11  7.43942e-05
  12  0.000122322
  13  1.11162e-05
  14  15.5314
  15  5930.73
  16  621.824
  17  6304.89
  18  23809.3
  19  0.578665
  20  0.317067
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  5.551e-11  7.439e-05  0.000e+00  1.000e+06 ( 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:  4.893e-01  3.171e-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.498e-01  5.787e-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.13e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637172/likelihoodResults_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.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) = 523.542388432
delta logL = -0.0189944126142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 523.52339411
delta logL = -9.05361048353e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83217E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.1384       1.0000          .0000       10.000    
     3 'Normalizat'    .74974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   523.5234     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      203 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        29.425        .21547E-06** at limit **
   2  Index         1.4989        5.7695        .16657E-04     .0000    
   3  Normalizat    .74982        .62992       -.18400E-04   -.31874E-04
   4  Prefactor     .48933        .33514       -.34334E-06   -.21490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.49894
  Normalizat = 0.749824
  Prefactor  = 0.489328
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   523.5234     FROM HESSE     STATUS=FAILED        11 CALLS      214 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        29.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20184        1.3800        .16657E-04   -.77569    
   3  Normalizat    .74982        1.0894       -.18400E-04   -1.0196    
   4  Prefactor     .48933        .83062       -.34334E-06   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.72595e-11
Minuit parameter uncertainties:
  1  4.29101e-05
  2  0.778451
  3  1.12359
  4  0.852643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637172': 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): 101
logL (Free Index) = 523.523394019
delta logL = -5.91171556152e-12

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  4.291e-05  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  1.499e+00  7.785e-01  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:  4.893e-01  8.526e-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.498e-01  1.124e+00  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/637172/cmap_HighResolution_691632001_691891201_4FGL_J0227.2+3928_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-02', job_status='DONE', photon_flux_upper_limit='1.13e-06', time_completed='2022-12-05 00:11:56.886824', job_id='637172', GAL2='0.49', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1670227916.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='-5.91e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1745' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:11:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 637172: <4FGL_J0227.2+3928_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:00 2022
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:05:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:05:01 2022
Terminated at Mon Dec  5 00:11:57 2022
Results reported at Mon Dec  5 00:11:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1745 36.8053 39.4704 691632001 691891201 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 :                                   345.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   416 sec.
    Turnaround time :                            417 sec.

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

