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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1713
RA = 28.0631, Dec = 37.2341
tmin = 683337601, tmax = 683596801
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='2467', job_status='RUN', time_executed='2022-09-16 10:22:45.826582', time_epoch_executed='1663348965.83' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2467/ft1_4FGL_J0152.2+3714_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2467/ft1_4FGL_J0152.2+3714_daily_bin1713.fits outfile=/scratch/kocevski/2467/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1713.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=683337601.0 tmax=683596801.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.55
user 3.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.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/2467/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.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.52
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 965

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/2467/ltcube_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.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/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits
.....................!
real 16.71
user 16.28
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/2467/ltcube_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits outfile=/scratch/kocevski/2467/expmap_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.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/2467/ltcube_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits
.....................!
real 192.46
user 186.28
sys 5.81

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.2+3714 @ 28.0631 37.2341

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits outfile=/scratch/kocevski/2467/cmap_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.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=28.0631 yref=37.2341 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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits outfile=/scratch/kocevski/2467/cmap_HighResolution_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.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=28.0631 yref=37.2341 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.57
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2467/Model_4FGL_J0152.2+3714_daily_bin1713.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/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits.....................!
real 106.89
user 105.03
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits', '/scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits', expMap='/scratch/kocevski/2467/expmap_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits', expCube='/scratch/kocevski/2467/ltcube_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2467/Model_4FGL_J0152.2+3714_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+3714'

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.750e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2467/ft1_filtered_4FGL_J0152.2+3714_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/2467/ft2_4FGL_J0152.2+3714_daily_bin1713.fits
Exposure map: /scratch/kocevski/2467/expmap_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits
Exposure cube: /scratch/kocevski/2467/ltcube_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2467/Model_4FGL_J0152.2+3714_daily_bin1713.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) = 10277.4114853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36528E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .71215E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    18.831       1.0000          .0000       .10000E+07
     4 'norm      '    9.4317       1.0000          .0000       .10000E+07
     5 'Prefactor '    .68997E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.5344       1.0000          .0000       .10000E+07
     7 'norm      '    .45370       1.0000          .0000       .10000E+07
     8 'norm      '    2.4055       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20292E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17902E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .60404E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10509E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3243       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.9173       1.0000          .0000       .10000E+07
    15 'norm      '    2.6998       1.0000          .0000       .10000E+07
    16 'norm      '    .99075E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .68045       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.1487       1.0000          .0000       .10000E+07
    19 'norm      '    8.1629       1.0000          .0000       .10000E+07
    20 'Normalizat'    .66970       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10277.36     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1376 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43965E-07    6.1028       -.19594E-07** at limit **
   2  Prefactor     .41800E-07    6.2286       -.64323E-07** at limit **
   3  Prefactor     18.708        1.4457        .10367E-08   -.38443E-01
   4  norm          9.4325        1.9374       -.41740E-08   -.54264E-02
   5  Prefactor     .69600E-06    21.846       -.69380E-07** at limit **
   6  norm          1.5345        .86814       -.18078E-07   -.82621E-02
   7  norm          .45341        .72764       -.82658E-08   -.70462E-03
   8  norm          2.4056        .82254       -.41249E-08   -.22822E-02
   9  Prefactor     .11102E-09    4.2694       -.10692E-06** at limit **
  10  Prefactor     .11657E-07    1.4163       -.16646E-07** at limit **
  11  Prefactor     .48850E-08    2.6352       -.38628E-07** at limit **
  12  Prefactor     .54656E-06    26.852       -.14286E-06** at limit **
  13  norm          2.2862        4.2117       -.10474E-07   -.99816E-06
  14  Prefactor     7.0049        8.0897       -.29879E-07   -.23647E-02
  15  norm          2.6836        2.5528       -.14206E-06   -.79204E-02
  16  norm          .18836E-04    3.1084       -.39166E-08** at limit **
  17  norm          .68039        .26761        .95066E-08    .27949E-01
  18  Prefactor     9.1882        5.2609        .24614E-07    .26562E-02
  19  norm          8.1306        5.3907       -.83072E-08    .27910E-02
  20  Normalizat    .66928        .21353        .86896E-06   -.12077E-03
  21  Prefactor     1.1898        .11892        .18797E-07   -.16893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39648e-08
  Prefactor  = 4.17999e-08
  Prefactor  = 18.7084
  norm       = 9.43255
  Prefactor  = 6.95999e-07
  norm       = 1.53447
  norm       = 0.453411
  norm       = 2.40559
  Prefactor  = 1.11022e-10
  Prefactor  = 1.16573e-08
  Prefactor  = 4.88498e-09
  Prefactor  = 5.46563e-07
  norm       = 2.28618
  Prefactor  = 7.00494
  norm       = 2.68358
  norm       = 1.88356e-05
  norm       = 0.680391
  Prefactor  = 9.18818
  norm       = 8.13056
  Normalizat = 0.669278
  Prefactor  = 1.18978
 **********
 **   18 **HESSE 
 **********

 FCN=   10277.36     FROM HESSE     STATUS=OK           369 CALLS     1745 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43965E-07    7.5824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41800E-07    7.5080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.708        14.857        .23053E-03   -1.5621    
   4  norm          9.4325        1.9451        .32608E-03   -1.5647    
   5  Prefactor     .69600E-06    22.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5345        .85884        .86096E-03   -1.5683    
   7  norm          .45341        .73338        .83511E-03   -1.5694    
   8  norm          2.4056        .82570        .65986E-03   -1.5677    
   9  Prefactor     .11102E-09    4.2810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11657E-07    1.4232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .48850E-08    7.3319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54656E-06    27.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2862        4.2821        .67248E-03   -1.5678    
  14  Prefactor     7.0049        8.1938        .38122E-03   -1.5655    
  15  norm          2.6836        2.8963        .61973E-03   -1.5675    
  16  norm          .18836E-04    .23899        .28865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68039        .26801        .62310E-03   -1.5691    
  18  Prefactor     9.1882        5.2961        .33111E-03   -1.5647    
  19  norm          8.1306        5.3952        .35067E-03   -1.5651    
  20  Normalizat    .66928        .19902        .94014E-01   -1.0512    
  21  Prefactor     1.1898        .10826        .34881E-01   -.86646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94818e-07
Minuit parameter uncertainties:
  1  0.00115509
  2  0.00112022
  3  14.8568
  4  1.94514
  5  0.00798039
  6  0.858842
  7  0.733379
  8  0.825701
  9  4.60836e-05
  10  0.000257772
  11  0.000377897
  12  0.00777559
  13  4.28211
  14  8.1938
  15  2.89632
  16  0.00424332
  17  0.268009
  18  5.29609
  19  5.3952
  20  0.199236
  21  0.108285
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.110e-10  4.608e-05  0.000e+00  1.000e+06 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.190e+00  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  6.693e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2467/likelihoodResults_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.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): 0
logL (Free Index) = 10277.3623627
delta logL = -0.00682277353008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10277.3555399
delta logL = -2.64481059276e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18818E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.5650       1.0000          .0000       10.000    
     3 'Normalizat'    .66927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1898       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10275.93     FROM MIGRAD    STATUS=CONVERGED    281 CALLS      467 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39740E-06    .11546E-07    .20457E-10** at limit **
   2  Index        10.0000        .41634        .47455E-05** at limit **
   3  Normalizat    .59375        .19451        .65081E-06    .90766E-04
   4  Prefactor     1.2190        .10997       -.16770E-06    .32873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97404e-07
  Index      = 10
  Normalizat = 0.593747
  Prefactor  = 1.21898
 **********
 **   18 **HESSE 
 **********

 FCN=   10275.93     FROM HESSE     STATUS=OK            35 CALLS      502 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39740E-06    .34772E-06    .10877E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .49032        .39845        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .59375        .21395        .44097E-03   -1.0825    
   4  Prefactor     1.2190        .11979        .18035E-03   -.85749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00111836
Minuit parameter uncertainties:
  1  3.47729e-07
  2  2.83559e-05
  3  0.21425
  4  0.119816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2467': 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) = 10275.9321075
delta logL = 1.4234324667

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  3.974e-07  3.477e-07  0.000e+00  1.000e+06 ( 1.000e-13)
265        Index:  1.000e+01  2.836e-05  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.219e+00  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  5.937e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 28.063 37.234
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.29e-08 +/- 3.64e-08
Energy Flux (Free Index): 4.79e-06 +/- 4.09e-06

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/2467/cmap_HighResolution_683337601_683596801_4FGL_J0152.2+3714_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', comment='SUCCESS', energy_flux2='4.79e-06', dlogl='1.42e+00', photon_flux2='4.29e-08', job_status='DONE', time_completed='2022-09-16 10:35:15.238392', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='5.03e-08', energy_flux_error2='4.09e-06', EG='0.67', time_epoch_completed='1663349715.24', return_code='0', job_id='2467', GAL2='1.22', EG2='0.59', return_code2='0', photon_flux_error2='3.64e-08', ts2='2.97', photon_index='2.34' WHERE bin_id='1713' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:35:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 2467: <4FGL_J0152.2+3714_daily_bin1713> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1713> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:20:49 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:21:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:21:45 2022
Terminated at Fri Sep 16 10:35:16 2022
Results reported at Fri Sep 16 10:35:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1713 28.0631 37.2341 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+3714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            867 sec.

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

