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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1715
RA = 28.0631, Dec = 37.2341
tmin = 683856001, tmax = 684115201
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='2470', job_status='RUN', time_executed='2022-09-16 10:23:28.327601', time_epoch_executed='1663349008.33' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2470/ft1_4FGL_J0152.2+3714_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2470/ft1_4FGL_J0152.2+3714_daily_bin1715.fits outfile=/scratch/kocevski/2470/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1715.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=683856001.0 tmax=684115201.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.48
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.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/2470/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.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.32
sys 0.17

Number of photons that the gtmktime cut: 865

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/2470/ltcube_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.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/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits
.....................!
real 14.08
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/2470/ltcube_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits outfile=/scratch/kocevski/2470/expmap_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.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/2470/ltcube_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits
.....................!
real 191.28
user 185.50
sys 5.35

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/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits scfile=/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits outfile=/scratch/kocevski/2470/cmap_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits scfile=/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits outfile=/scratch/kocevski/2470/cmap_HighResolution_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.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.56
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits', '/scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits', expMap='/scratch/kocevski/2470/expmap_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits', expCube='/scratch/kocevski/2470/ltcube_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2470/Model_4FGL_J0152.2+3714_daily_bin1715.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/2470/ft1_filtered_4FGL_J0152.2+3714_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/2470/ft2_4FGL_J0152.2+3714_daily_bin1715.fits
Exposure map: /scratch/kocevski/2470/expmap_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits
Exposure cube: /scratch/kocevski/2470/ltcube_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2470/Model_4FGL_J0152.2+3714_daily_bin1715.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) = 9364.26034405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8973       1.0000          .0000       .10000E+07
     2 'Prefactor '    .83567E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    79.845       1.0000          .0000       .10000E+07
     4 'norm      '    2.9293       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24234E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.7338       1.0000          .0000       .10000E+07
     7 'norm      '    1.4068       1.0000          .0000       .10000E+07
     8 'norm      '    .71338       1.0000          .0000       .10000E+07
     9 'Prefactor '    13.097       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8215       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0717       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11147E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .15243E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24714E-05   1.0000          .0000       .10000E+07
    15 'norm      '    3.8394       1.0000          .0000       .10000E+07
    16 'norm      '    .92205       1.0000          .0000       .10000E+07
    17 'norm      '    .55258       1.0000          .0000       .10000E+07
    18 'Prefactor '    .42977E-06   1.0000          .0000       .10000E+07
    19 'norm      '    1.5782       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99265       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=   9362.627     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      992 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6509        10.890        .15038E-06    .14008E-01
   2  Prefactor      .0000        17.919       -.25493E-07** at limit **
   3  Prefactor     79.984        2.9732        .36615E-08   -.66740E-01
   4  norm          2.9326        1.4031       -.10489E-07    .13227E-03
   5  Prefactor     .88818E-09    9.5378        .70967E-07** at limit **
   6  norm          1.7334        1.1230       -.33240E-07    .11384E-02
   7  norm          1.4067        .77184        .70840E-08   -.32828E-03
   8  norm          .71311        .61533       -.29201E-07    .68701E-03
   9  Prefactor     13.348        4.9383       -.45913E-07    .46586E-01
  10  Prefactor     3.7996        3.4865       -.10660E-06   -.86723E-03
  11  Prefactor     1.2015        36.476       -.22704E-06    .16612E-02
  12  Prefactor     .51070E-08    25.709       -.81692E-08** at limit **
  13  norm           .0000        1.7989        .53384E-07** at limit **
  14  Prefactor      .0000        1.7781        .14080E-07** at limit **
  15  norm          3.8393        3.0530       -.60493E-07    .21032E-03
  16  norm          .92242        .54691        .35742E-07   -.14070E-02
  17  norm          .55245        .28278       -.81635E-09    .11403E-02
  18  Prefactor      .0000        4.7233        .12309E-06** at limit **
  19  norm          1.5677        4.7765       -.21455E-06    .57263E-03
  20  Normalizat    1.0275        .22676       -.20175E-05    .21779E-04
  21  Prefactor     .99275        .12186        .76838E-06    .21846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65093
  Prefactor  = 0
  Prefactor  = 79.9842
  norm       = 2.93263
  Prefactor  = 8.88178e-10
  norm       = 1.73341
  norm       = 1.40674
  norm       = 0.713107
  Prefactor  = 13.3476
  Prefactor  = 3.79959
  Prefactor  = 1.20145
  Prefactor  = 5.10703e-09
  norm       = 0
  Prefactor  = 0
  norm       = 3.83933
  norm       = 0.922415
  norm       = 0.552446
  Prefactor  = 0
  norm       = 1.56768
  Normalizat = 1.02755
  Prefactor  = 0.992746
 **********
 **   18 **HESSE 
 **********

 FCN=   9362.627     FROM HESSE     STATUS=OK           363 CALLS     1355 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6509        11.612        .41329E-03   -1.5660    
   2  Prefactor      .0000        17.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.984        24.448        .11192E-03   -1.5529    
   4  norm          2.9326        1.4023        .59325E-03   -1.5674    
   5  Prefactor     .88818E-09    9.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7334        1.1213        .79681E-03   -1.5682    
   7  norm          1.4067        .77621        .91356E-03   -1.5684    
   8  norm          .71311        .62191        .59629E-03   -1.5691    
   9  Prefactor     13.348        14.299        .27653E-03   -1.5635    
  10  Prefactor     3.7996        3.6353        .51606E-03   -1.5669    
  11  Prefactor     1.2015        35.819        .11715E-02   -1.5686    
  12  Prefactor     .51070E-08    25.956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.7895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.7841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8393        3.0390        .51481E-03   -1.5669    
  16  norm          .92242        .54373        .44247E-03   -1.5689    
  17  norm          .55245        .28228        .73587E-03   -1.5693    
  18  Prefactor      .0000        4.7077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5677        4.8290        .84529E-03   -1.5683    
  20  Normalizat    1.0275        .19900        .78986E-01   -.92113    
  21  Prefactor     .99275        .10431        .46175E-01   -.92972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54153e-08
Minuit parameter uncertainties:
  1  11.6118
  2  2.08035e-06
  3  24.4485
  4  1.40232
  5  0.000184428
  6  1.12135
  7  0.776211
  8  0.621909
  9  14.2991
  10  3.63527
  11  13.1202
  12  0.000728672
  13  6.3854e-07
  14  7.30474e-09
  15  3.03901
  16  0.543731
  17  0.282284
  18  1.74842e-05
  19  4.82904
  20  0.199144
  21  0.104335
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.335e+01  1.430e+01  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:  9.927e-01  1.043e-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:  1.028e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 28.063 37.234
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.41e-05

TS (Fixed Index): 1.30
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2470/likelihoodResults_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.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) = 9361.27405118
delta logL = 1.35327764949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9361.02508727
delta logL = 1.6022415559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27677E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.6180       1.0000          .0000       10.000    
     3 'Normalizat'    .92287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0400       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.

 FCN=   9361.025     FROM MIGRAD    STATUS=CONVERGED    265 CALLS      646 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27042E-03    .17690E-03    .23524E-04** at limit **
   2  Index         7.6277        .22400        .11954       -.16751E-03
   3  Normalizat    .92278        .31387        .82791E-01   -.14832E-03
   4  Prefactor     1.0400        .16600        .40534E-01   -.13974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000270423
  Index      = 7.62768
  Normalizat = 0.922781
  Prefactor  = 1.04001
 **********
 **   18 **HESSE 
 **********

 FCN=   9361.025     FROM HESSE     STATUS=OK            33 CALLS      679 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27042E-03    .37836E-03    .93860E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6277        .57568        .47371E-02   -418.39    
   3  Normalizat    .92278        .23269        .36653E-03   -2.1850    
   4  Prefactor     1.0400        .12448        .18809E-03   -2.2275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87403e-09
Minuit parameter uncertainties:
  1  0.000378359
  2  0.577455
  3  0.232944
  4  0.124514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2470': 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) = 9361.02508433
delta logL = 1.60224449917

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  2.704e-04  3.784e-04  0.000e+00  1.000e+06 ( 1.000e-13)
265        Index:  7.628e+00  5.775e-01  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.040e+00  1.245e-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:  9.228e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 28.063 37.234
Photon Index (Free Index): 7.63 +/- 0.58
Photon Flux (Free Index): 9.74e-08 +/- 5.86e-08
Energy Flux (Free Index): 1.14e-05 +/- 6.87e-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/2470/cmap_HighResolution_683856001_684115201_4FGL_J0152.2+3714_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='1.14e-05', photon_flux_error='3.96e-08', dlogl='1.60e+00', energy_flux='1.31e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2022-09-16 10:34:42.000312', photon_index_error2='0.58', photon_index2='7.63', ts='1.30', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='6.87e-06', EG='1.03', time_epoch_completed='1663349682.0', return_code='0', job_id='2470', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.86e-08', ts2='4.83', photon_index='2.34' WHERE bin_id='1715' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:34:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 2470: <4FGL_J0152.2+3714_daily_bin1715> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1715> 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) <bullet0226>, 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:34:42 2022
Results reported at Fri Sep 16 10:34:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1715 28.0631 37.2341 683856001 684115201 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 :                                   674.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            833 sec.

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

