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


Performing analysis on: 4FGL_J0227.2+3928_daily_bin1740
RA = 36.8053, Dec = 39.4704
tmin = 690336001, tmax = 690595201
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='822923', job_status='RUN', time_executed='2022-11-20 00:12:16.123432', time_epoch_executed='1668931936.12' WHERE source_name='4FGL J0227.2+3928' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822923/ft1_4FGL_J0227.2+3928_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822923/ft1_4FGL_J0227.2+3928_daily_bin1740.fits outfile=/scratch/kocevski/822923/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1740.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=690336001.0 tmax=690595201.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 3.04
user 2.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.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/822923/ft1_filteredMKT_4FGL_J0227.2+3928_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822923/ft1_filtered_4FGL_J0227.2+3928_daily_bin1740.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.54
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 196

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822923/ft1_filtered_4FGL_J0227.2+3928_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822923/ltcube_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.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/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits
.....................!
real 16.56
user 16.10
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822923/ft1_filtered_4FGL_J0227.2+3928_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822923/ltcube_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.fits outfile=/scratch/kocevski/822923/expmap_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.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/822923/ltcube_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.fits
.....................!
real 194.50
user 187.51
sys 6.40

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/822923/ft1_filtered_4FGL_J0227.2+3928_daily_bin1740.fits scfile=/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits outfile=/scratch/kocevski/822923/cmap_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.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.75
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822923/ft1_filtered_4FGL_J0227.2+3928_daily_bin1740.fits scfile=/scratch/kocevski/822923/ft2_4FGL_J0227.2+3928_daily_bin1740.fits outfile=/scratch/kocevski/822923/cmap_HighResolution_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32350E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .21449E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .43959E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23450E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    184.55       1.0000          .0000       .10000E+07
     6 'norm      '    .18516E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.252       1.0000          .0000       .10000E+07
     8 'norm      '    6.1973       1.0000          .0000       .10000E+07
     9 'norm      '    .87472E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .45054       1.0000          .0000       .10000E+07
    11 'Prefactor '    .57606       1.0000          .0000       .10000E+07
    12 'norm      '    27.683       1.0000          .0000       .10000E+07
    13 'norm      '    .15583E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .76586E-04   1.0000          .0000       .10000E+07
    15 'norm      '    23.658       1.0000          .0000       .10000E+07
    16 'norm      '    1.3890       1.0000          .0000       .10000E+07
    17 'Prefactor '    .67999E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .35919E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3457       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=   2297.764     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1608 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3639       -.33259E-07** at limit **
   2  Prefactor     .10547E-08    12.501       -.62326E-07** at limit **
   3  Prefactor     .55511E-10    2.0177       -.38984E-07** at limit **
   4  Prefactor     .11102E-09    31.727        .16068E-05** at limit **
   5  Prefactor     190.79        125.49        .58083E-05   -.20144E-01
   6  norm          .16653E-08    6.9687        .35363E-06** at limit **
   7  Prefactor     20.169        20.213        .58002E-06   -.60456E-03
   8  norm          6.2251        9.1415        .19986E-05    .94635E-03
   9  norm          .22204E-09    3.5398       -.40666E-06** at limit **
  10  norm          .44970        .45200        .17971E-07    .64024E-04
  11  Prefactor     .78837E-06    348.11       -.50866E-04** at limit **
  12  norm          28.187        20.179        .41747E-05    .47292E-02
  13  norm          .19429E-08    18.943        .12349E-05** at limit **
  14  Prefactor     .44020E-07    291.91       -.72624E-05** at limit **
  15  norm          23.852        17.609       -.10399E-06    .34040E-02
  16  norm          .12616E-02    437.28       -.28493E-04** at limit **
  17  Prefactor     .87708E-08    40.612       -.44345E-05** at limit **
  18  norm           .0000        1.6600       -.32627E-06** at limit **
  19  Normalizat    .10000E-01    .37082       -.10129E-04** at limit **
  20  Prefactor     1.3447        .12220       -.15004E-04    .23808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.05471e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 190.789
  norm       = 1.66533e-09
  Prefactor  = 20.1692
  norm       = 6.22511
  norm       = 2.22045e-10
  norm       = 0.449695
  Prefactor  = 7.88369e-07
  norm       = 28.187
  norm       = 1.94289e-09
  Prefactor  = 4.40203e-08
  norm       = 23.8523
  norm       = 0.00126164
  Prefactor  = 8.77076e-09
  norm       = 0
  Normalizat = 0.01
  Prefactor  = 1.34474
 **********
 **   18 **HESSE 
 **********

 FCN=   2297.764     FROM HESSE     STATUS=OK           333 CALLS     1941 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10547E-08    12.381        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    2.0222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    31.703        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     190.79        134.56        .73617E-04   -1.5432    
   6  norm          .16653E-08    6.9783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.169        20.336        .22228E-03   -1.5618    
   8  norm          6.2251        11.223        .40302E-03   -1.5658    
   9  norm          .22204E-09    2.3966        .19274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44970        .44196        .70535E-03   -1.5695    
  11  Prefactor     .78837E-06    29.377        .71400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.187        22.968        .19010E-03   -1.5602    
  13  norm          .19429E-08    18.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44020E-07    293.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.852        17.565        .20564E-03   -1.5610    
  16  norm          .12616E-02    3741.8        .92194E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .87708E-08    40.452        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.6562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25398        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3447        .14289        .31857E-01   -.81986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64014e-07
Minuit parameter uncertainties:
  1  7.51148e-06
  2  0.000227962
  3  2.4038e-05
  4  0.000130892
  5  134.562
  6  0.000215705
  7  20.3363
  8  11.2235
  9  4.81595e-05
  10  0.441956
  11  0.00962494
  12  22.9682
  13  0.00038398
  14  0.00718606
  15  17.5649
  16  4.3482
  17  0.00119008
  18  1.26679e-05
  19  2.59854e-06
  20  0.14293
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  7.884e-07  9.625e-03  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:  1.345e+00  1.429e-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.000e-02  2.599e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/822923/likelihoodResults_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.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) = 2297.76697472
delta logL = -0.00324369420332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2297.65371383
delta logL = 0.110017200786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1772       1.0000          .0000       .10000E+07
     2 'Index     '    1.7461       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3404       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=   2297.654     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1821        16.360        .53804E-06   -.11403E-02
   2  Index         1.7443        1.1688        .49764E-04    .56915E-05
   3  Normalizat    .10000E-01    .23905        .94134E-06** at limit **
   4  Prefactor     1.3405        .13829       -.80113E-06   -.37120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18214
  Index      = 1.74433
  Normalizat = 0.01
  Prefactor  = 1.3405
 **********
 **   18 **HESSE 
 **********

 FCN=   2297.654     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1821        16.014        .16147E-04   -1.5658    
   2  Index         1.7443        1.1456        .10103E-01   -.70908    
   3  Normalizat    .10000E-01    .36244        .11926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3405        .11433        .15647E-03   -.82111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60929e-10
Minuit parameter uncertainties:
  1  16.0137
  2  1.16373
  3  2.38462e-07
  4  0.114355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822923': 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): 0
logL (Free Index) = 2297.65371005
delta logL = 0.110020971757

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  6.182e+00  1.601e+01  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  1.744e+00  1.164e+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.340e+00  1.144e-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.000e-02  2.385e-07  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/822923/cmap_HighResolution_690336001_690595201_4FGL_J0227.2+3928_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-02', job_status='DONE', photon_flux_upper_limit='3.98e-07', time_completed='2022-11-20 00:19:25.238967', job_id='822923', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1668932365.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.10e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1740' AND source_name='4FGL J0227.2+3928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:19:25 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 822900: <4FGL_J0227.2+3928_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:19 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:48 2022
Terminated at Sun Nov 20 00:17:01 2022
Results reported at Sun Nov 20 00:17:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1740 36.8053 39.4704 690336001 690595201 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 :                                   422.27 sec.
    Max Memory :                                 617 MB
    Average Memory :                             295.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   432 sec.
    Turnaround time :                            702 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 822923: <4FGL_J0227.2+3928_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0227.2+3928_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:20 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:33 2022
Terminated at Sun Nov 20 00:19:25 2022
Results reported at Sun Nov 20 00:19:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_daily_bin1740 36.8053 39.4704 690336001 690595201 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 :                                   431.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            845 sec.

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

