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 25 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7435
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1698
RA = 28.0727, Dec = 22.1133
tmin = 679449601, tmax = 679708801
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='916355', job_status='RUN', time_executed='2022-07-17 00:05:22.473954', time_epoch_executed='1658041522.47' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916355/ft1_4FGL_J0152.2+2206_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916355/ft1_4FGL_J0152.2+2206_daily_bin1698.fits outfile=/scratch/kocevski/916355/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1698.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=679449601.0 tmax=679708801.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.56
user 3.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.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/916355/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1698.fits evtable="EVENTS" outfile="/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.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.51
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 871

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/916355/ltcube_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.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/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits
.....................!
real 11.87
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/916355/ltcube_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits outfile=/scratch/kocevski/916355/expmap_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.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/916355/ltcube_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits
.....................!
real 190.32
user 185.66
sys 4.04

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.2+2206 @ 28.0727 22.1133

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits outfile=/scratch/kocevski/916355/cmap_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.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.0727 yref=22.1133 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.32
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits outfile=/scratch/kocevski/916355/cmap_HighResolution_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.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.0727 yref=22.1133 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.26
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916355/Model_4FGL_J0152.2+2206_daily_bin1698.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/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits.....................!
real 108.02
user 98.56
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits', '/scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits', expMap='/scratch/kocevski/916355/expmap_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits', expCube='/scratch/kocevski/916355/ltcube_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916355/Model_4FGL_J0152.2+2206_daily_bin1698.xml', optimizer='MINUIT')

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

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/916355/ft1_filtered_4FGL_J0152.2+2206_daily_bin1698.fits
Spacecraft file(s): /scratch/kocevski/916355/ft2_4FGL_J0152.2+2206_daily_bin1698.fits
Exposure map: /scratch/kocevski/916355/expmap_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits
Exposure cube: /scratch/kocevski/916355/ltcube_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916355/Model_4FGL_J0152.2+2206_daily_bin1698.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) = 9692.08601872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8517       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0746       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    45.532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61396       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9692.080     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2545 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0758       -.80670E-08** at limit **
   2  norm          1.0217        .46172       -.17545E-07    .14876E-03
   3  Prefactor     .10000E-03    9.9605       -.47047E-07** at limit **
   4  Prefactor     .10000E-03    1.2074       -.10847E-07** at limit **
   5  Prefactor     16.293        9.7091        .39994E-06   -.27290E-04
   6  Prefactor     .10000E-03    6.2995       -.38218E-07** at limit **
   7  Prefactor     .10000E-03    8.2251       -.97328E-08** at limit **
   8  Prefactor     .10000E-03    28.416        .34927E-08** at limit **
   9  norm          1.4406        .57606        .13139E-07    .37324E-03
  10  Prefactor     .92202        6.0517       -.11227E-05   -.37266E-03
  11  Prefactor     35.716        25.917       -.22024E-04   -.25080E-04
  12  Prefactor     5.8512        6.3630        .82145E-06   -.82432E-04
  13  norm          .10000E-03    1.2967        .78194E-07** at limit **
  14  Prefactor     36.824        126.79       -.41289E-04    .83670E-05
  15  Prefactor     5.0741        3.0902       -.30259E-06   -.14539E-03
  16  Prefactor     4.5980        7.1996        .45687E-05   -.13823E-03
  17  Prefactor     .10000E-03    2.1944        .19247E-07** at limit **
  18  norm          45.132        94.136       -.11264E-04    .17012E-05
  19  Prefactor     15.257        34.753        .10911E-04    .55425E-04
  20  Prefactor     1.0119        7.4136       -.29636E-05   -.57290E-06
  21  Prefactor     .10000E-03    18.421       -.82503E-07** at limit **
  22  Normalizat    .61430        .19908        .11485E-06    .19754E-03
  23  Prefactor     1.2578        .11039        .10233E-05    .37671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.02175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44059
  Prefactor  = 0.922016
  Prefactor  = 35.7159
  Prefactor  = 5.85118
  norm       = 0.0001
  Prefactor  = 36.8239
  Prefactor  = 5.07406
  Prefactor  = 4.59805
  Prefactor  = 0.0001
  norm       = 45.1323
  Prefactor  = 15.2572
  Prefactor  = 1.01193
  Prefactor  = 0.0001
  Normalizat = 0.6143
  Prefactor  = 1.25777
 **********
 **   18 **HESSE 
 **********

 FCN=   9692.080     FROM HESSE     STATUS=OK           370 CALLS     2915 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0217        .46200        .43576E-04   -1.5506    
   3  Prefactor     .10000E-03    9.9672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2110        .10564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.293        9.6990        .99219E-04   -1.4900    
   6  Prefactor     .10000E-03    6.3434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4406        .57706        .45554E-04   -1.5468    
  10  Prefactor     .92202        17.464        .44895E-02   -1.5516    
  11  Prefactor     35.716        25.840        .67052E-04   -1.4512    
  12  Prefactor     5.8512        6.3534        .16602E-03   -1.5224    
  13  norm          .10000E-03    1.3016        .10939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.824        126.69        .65995E-04   -1.4494    
  15  Prefactor     5.0741        3.0816        .12651E-03   -1.5257    
  16  Prefactor     4.5980        7.1406        .18772E-03   -1.5279    
  17  Prefactor     .10000E-03    2.2062        .14238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          45.132        94.331        .59418E-04   -1.4363    
  19  Prefactor     15.257        34.687        .10237E-03   -1.4927    
  20  Prefactor     1.0119        29.609        .51118E-02   -1.5507    
  21  Prefactor     .10000E-03    18.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61430        .20968        .42266E-03   -1.0738    
  23  Prefactor     1.2578        .11987        .17796E-03   -.84572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45204e-08
Minuit parameter uncertainties:
  1  2.2907e-06
  2  0.462004
  3  5.54005e-06
  4  1.22276e-06
  5  9.6999
  6  9.39571e-06
  7  1.01339e-06
  8  2.47036e-06
  9  0.577059
  10  8.02781
  11  25.8476
  12  6.35409
  13  8.98294e-06
  14  127.634
  15  3.0817
  16  7.14196
  17  2.7546e-06
  18  94.6449
  19  34.7326
  20  10.9529
  21  2.49198e-05
  22  0.20995
  23  0.119896
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  9.220e-01  8.028e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.258e+00  1.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.143e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916355/likelihoodResults_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.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) = 9692.07802524
delta logL = 0.0023733029102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9692.07738367
delta logL = 0.00301487207616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4940       1.0000          .0000       10.000    
     3 'Normalizat'    .61451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9692.077     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      269 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1748        16.992        .21046E-02    .25194E-04
   2  Index         2.4947        2.1589        .23495E-01   -.18774E-06
   3  Normalizat    .61456        .20001        .42258E-03   -.64568E-06
   4  Prefactor     1.2574        .11750        .17798E-03    .44713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17477
  Index      = 2.49468
  Normalizat = 0.614565
  Prefactor  = 1.25744
 **********
 **   18 **HESSE 
 **********

 FCN=   9692.077     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1748        15.627        .84184E-04   -1.5491    
   2  Index         2.4947        2.0829        .93981E-03   -.52483    
   3  Normalizat    .61456        .20010        .16903E-04   -1.0737    
   4  Prefactor     1.2574        .11749        .71193E-05   -.84582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51006e-14
Minuit parameter uncertainties:
  1  8.57172
  2  2.17311
  3  0.20034
  4  0.117517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916355': 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) = 9692.07738317
delta logL = 0.00301537920859

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.175e+00  8.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.495e+00  2.173e+00  0.000e+00  1.000e+01 (-1.000e+00)
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.257e+00  1.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.146e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 28.073 22.113

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/916355/cmap_HighResolution_679449601_679708801_4FGL_J0152.2+2206_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2022-07-17 00:19:24.869779', job_id='916355', GAL2='1.26', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1658042364.87', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.02e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1698' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:19:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 916355: <4FGL_J0152.2+2206_daily_bin1698> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:04:43 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:04:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:04:44 2022
Terminated at Sun Jul 17 00:19:25 2022
Results reported at Sun Jul 17 00:19:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1698 28.0727 22.1133 679449601 679708801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+2206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

