/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 179 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 = 7438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1004
RA = 28.0727, Dec = 22.1133
tmin = 499564801, tmax = 499824001
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='876946', job_status='RUN', time_executed='2021-08-14 18:30:01.065587', time_epoch_executed='1628991001.07' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876946/ft1_4FGL_J0152.2+2206_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876946/ft1_4FGL_J0152.2+2206_daily_bin1004.fits outfile=/scratch/kocevski/876946/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1004.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=499564801.0 tmax=499824001.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 10.38
user 4.74
sys 5.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.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/876946/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.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 5.86
user 0.34
sys 5.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/876946/ltcube_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.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/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits
.....................!
real 18.40
user 12.16
sys 6.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/876946/ltcube_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits outfile=/scratch/kocevski/876946/expmap_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.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/876946/ltcube_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits
.....................!
real 197.74
user 184.72
sys 12.22

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/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits scfile=/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits outfile=/scratch/kocevski/876946/cmap_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.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 5.75
user 0.39
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits scfile=/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits outfile=/scratch/kocevski/876946/cmap_HighResolution_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.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 5.76
user 0.39
sys 5.31

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits', '/scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits', expMap='/scratch/kocevski/876946/expmap_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits', expCube='/scratch/kocevski/876946/ltcube_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/876946/Model_4FGL_J0152.2+2206_daily_bin1004.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/876946/ft1_filtered_4FGL_J0152.2+2206_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/876946/ft2_4FGL_J0152.2+2206_daily_bin1004.fits
Exposure map: /scratch/kocevski/876946/expmap_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits
Exposure cube: /scratch/kocevski/876946/ltcube_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/876946/Model_4FGL_J0152.2+2206_daily_bin1004.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) = 4442.26627669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.089       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7725       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0176       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    110.63       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.104       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81791       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=   4442.177     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2613 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.158       -.75498E-08** at limit **
   2  norm          1.8928        .96035       -.17115E-08   -.18612E-05
   3  Prefactor     .10000E-03    40.378        .19107E-06** at limit **
   4  Prefactor     .10000E-03    3.4372        .57056E-07** at limit **
   5  Prefactor     .10000E-03    7.7188       -.41908E-07** at limit **
   6  Prefactor     19.157        18.396        .36711E-06    .54815E-06
   7  Prefactor     40.224        53.528        .99409E-08   -.50367E-04
   8  Prefactor     65.933        126.58       -.58485E-05   -.14823E-03
   9  norm          1.9680        1.0246        .21431E-06   -.24774E-03
  10  Prefactor     .10000E-03    10.524       -.38411E-06** at limit **
  11  Prefactor     4.2681        29.823       -.46692E-06   -.33575E-05
  12  Prefactor     9.7730        10.173        .94434E-07    .14887E-04
  13  norm          2.0173        3.0213        .34291E-05   -.32416E-03
  14  Prefactor     .10000E-03    120.39        .16413E-06** at limit **
  15  Prefactor     4.0033        3.6530        .11327E-06   -.17865E-04
  16  Prefactor     .10000E-03    2.4495       -.11240E-06** at limit **
  17  Prefactor     .10000E-03    2.9603        .61814E-07** at limit **
  18  norm          .10000E-03    53.883        .33984E-07** at limit **
  19  Prefactor     110.63        46.023        .10928E-06    .48840E-05
  20  Prefactor     .10000E-03    24.764        .39547E-06** at limit **
  21  Prefactor     61.101        47.433        .51681E-07   -.89417E-05
  22  Normalizat    .96313        .24680       -.16312E-06   -.14859E-04
  23  Prefactor     .81816        .13317       -.47359E-06    .27344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.8928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1573
  Prefactor  = 40.2239
  Prefactor  = 65.9327
  norm       = 1.96805
  Prefactor  = 0.0001
  Prefactor  = 4.26808
  Prefactor  = 9.77305
  norm       = 2.01729
  Prefactor  = 0.0001
  Prefactor  = 4.00329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 110.634
  Prefactor  = 0.0001
  Prefactor  = 61.1013
  Normalizat = 0.963131
  Prefactor  = 0.818159
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.177     FROM HESSE     STATUS=OK           364 CALLS     2977 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8928        .95975        .44639E-04   -1.5433    
   3  Prefactor     .10000E-03    40.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4534        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7702        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.157        18.473        .91505E-04   -1.4832    
   7  Prefactor     40.224        53.555        .63191E-04   -1.4439    
   8  Prefactor     65.933        129.29        .24684E-03   -1.4082    
   9  norm          1.9680        1.0291        .43705E-04   -1.5427    
  10  Prefactor     .10000E-03    10.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2681        29.799        .19436E-03   -1.5295    
  12  Prefactor     9.7730        10.172        .12819E-03   -1.5083    
  13  norm          2.0173        3.0267        .69348E-03   -1.5424    
  14  Prefactor     .10000E-03    120.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0033        3.6553        .11510E-03   -1.5308    
  16  Prefactor     .10000E-03    2.4588        .10188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9850        .11198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    53.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     110.63        46.029        .38242E-04   -1.3600    
  20  Prefactor     .10000E-03    25.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     61.101        47.467        .25665E-03   -1.4143    
  22  Normalizat    .96313        .28412        .31157E-03   -.94276    
  23  Prefactor     .81816        .15343        .18835E-03   -.99062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00411e-10
Minuit parameter uncertainties:
  1  8.0683e-05
  2  0.959756
  3  8.56265e-05
  4  1.51766e-06
  5  5.32911e-06
  6  18.4781
  7  53.6188
  8  129.842
  9  1.02916
  10  1.39218e-05
  11  22.5712
  12  10.1742
  13  3.02695
  14  0.00013959
  15  3.65552
  16  1.23286e-05
  17  5.97804e-07
  18  3.75443e-06
  19  46.0436
  20  4.74387e-06
  21  47.4962
  22  0.284564
  23  0.153514
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.000e-04  1.392e-05  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:  8.182e-01  1.535e-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:  9.631e-01  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/876946/likelihoodResults_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.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) = 4442.17731135
delta logL = -0.000449840560577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4442.17686154
delta logL = -3.06863512378e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6792       1.0000          .0000       10.000    
     3 'Normalizat'    .96309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81819       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4441.932     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      315 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34660E-03    .33664E-01    .50666E-03** at limit **
   2  Index        10.0000        5.0082        .50000    ** at limit **
   3  Normalizat    .90677        .84657E-01    .31156E-02   -.12064E-03
   4  Prefactor     .83912        .45955E-01    .18835E-03   -.38750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000346597
  Index      = 10
  Normalizat = 0.906774
  Prefactor  = 0.839117
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.932     FROM HESSE     STATUS=OK            31 CALLS      346 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34660E-03    .60096E-03    .22079E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.8549        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90677        .28434        .12463E-03   -.96222    
   4  Prefactor     .83912        .15622        .75341E-05   -.98302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13534e-10
Minuit parameter uncertainties:
  1  0.000600961
  2  0.00013864
  3  0.284808
  4  0.156305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876946': 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) = 4441.9322092
delta logL = 0.244652315857

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.466e-04  6.010e-04  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  1.000e+01  1.386e-04  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:  8.391e-01  1.563e-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:  9.068e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.073 22.113

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/876946/cmap_HighResolution_499564801_499824001_4FGL_J0152.2+2206_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-08-14 18:41:03.526355', job_id='876946', GAL2='0.84', fit_tolerance='1e-08', EG2='0.91', EG='0.96', time_epoch_completed='1628991663.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.45e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1004' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 876946: <4FGL_J0152.2+2206_daily_bin1004> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1004> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 18:25:25 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:25:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 18:25:34 2021
Terminated at Sat Aug 14 18:41:04 2021
Results reported at Sat Aug 14 18:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1004 28.0727 22.1133 499564801 499824001 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 :                                   732.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            939 sec.

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

