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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin639
RA = 28.0727, Dec = 22.1133
tmin = 404956801, tmax = 405216001
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='873832', job_status='RUN', time_executed='2021-08-14 18:16:31.867995', time_epoch_executed='1628990191.87' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873832/ft1_4FGL_J0152.2+2206_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873832/ft1_4FGL_J0152.2+2206_daily_bin639.fits outfile=/scratch/kocevski/873832/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin639.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=404956801.0 tmax=405216001.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.53
user 3.25
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.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/873832/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin639.fits evtable="EVENTS" outfile="/scratch/kocevski/873832/ft1_filtered_4FGL_J0152.2+2206_daily_bin639.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.57
user 0.33
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873832/ft1_filtered_4FGL_J0152.2+2206_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/873832/ltcube_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.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/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits
.....................!
real 13.47
user 13.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873832/ft1_filtered_4FGL_J0152.2+2206_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/873832/ltcube_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.fits outfile=/scratch/kocevski/873832/expmap_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.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/873832/ltcube_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.fits
.....................!
real 190.54
user 185.62
sys 4.50

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/873832/ft1_filtered_4FGL_J0152.2+2206_daily_bin639.fits scfile=/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits outfile=/scratch/kocevski/873832/cmap_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.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 0.61
user 0.39
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873832/ft1_filtered_4FGL_J0152.2+2206_daily_bin639.fits scfile=/scratch/kocevski/873832/ft2_4FGL_J0152.2+2206_daily_bin639.fits outfile=/scratch/kocevski/873832/cmap_HighResolution_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.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 0.62
user 0.39
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85475       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4013       1.0000         .10000E-03   10000.    
     9 'norm      '    .95626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8956       1.0000         .10000E-03   10000.    
    13 'norm      '    13.560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    203.74       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60184       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0836       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=   7645.697     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2565 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.429        .10345E-07** at limit **
   2  norm          1.3118        .65197       -.12751E-06   -.22356E-04
   3  Prefactor     .10000E-03    12.714       -.12271E-06** at limit **
   4  Prefactor     .10000E-03    1.4584       -.44935E-07** at limit **
   5  Prefactor     .85237        5.8183       -.26499E-05   -.14856E-03
   6  Prefactor     .10000E-03    2.9315       -.58600E-07** at limit **
   7  Prefactor     .10000E-03    63.719       -.36748E-05** at limit **
   8  Prefactor     3.1744        258.70       -.17706E-04    .53745E-06
   9  norm          .95624        .63929        .10711E-06    .87659E-03
  10  Prefactor     12.275        12.191        .22827E-05    .58059E-04
  11  Prefactor     10.422        20.284        .13551E-04    .40289E-04
  12  Prefactor     3.8959        6.3313       -.14714E-05   -.32300E-03
  13  norm          13.555        7.7324        .13417E-05    .20362E-03
  14  Prefactor     203.55        241.28       -.12663E-03    .86638E-05
  15  Prefactor     2.6382        2.4465       -.55019E-06   -.52219E-03
  16  Prefactor     4.7679        13.802       -.89303E-05   -.18560E-03
  17  Prefactor     .10000E-03    1.7188        .35148E-06** at limit **
  18  norm          .10000E-03    48.355        .10884E-05** at limit **
  19  Prefactor     45.204        41.583        .99769E-05    .17170E-04
  20  Prefactor     21.751        12.737       -.19626E-05    .71441E-05
  21  Prefactor     .10000E-03    26.847       -.13661E-06** at limit **
  22  Normalizat    .60196        .21397        .32667E-05    .24114E-03
  23  Prefactor     1.0836        .11171        .22126E-05    .45991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.3118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.852373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17437
  norm       = 0.956239
  Prefactor  = 12.2748
  Prefactor  = 10.4218
  Prefactor  = 3.89591
  norm       = 13.5552
  Prefactor  = 203.553
  Prefactor  = 2.63816
  Prefactor  = 4.76788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.2043
  Prefactor  = 21.7513
  Prefactor  = 0.0001
  Normalizat = 0.601958
  Prefactor  = 1.08355
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.697     FROM HESSE     STATUS=OK           378 CALLS     2943 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3118        .64766        .47605E-04   -1.5479    
   3  Prefactor     .10000E-03    12.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4623        .10311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .85237        14.294        .39514E-02   -1.5523    
   6  Prefactor     .10000E-03    2.9349        .14619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1744        257.01        .21937E-03   -1.5352    
   9  norm          .95624        .62106        .53358E-04   -1.5512    
  10  Prefactor     12.275        12.185        .11435E-03   -1.5007    
  11  Prefactor     10.422        20.237        .12401E-03   -1.5062    
  12  Prefactor     3.8959        6.3270        .20442E-03   -1.5313    
  13  norm          13.555        7.6136        .10877E-03   -1.4971    
  14  Prefactor     203.55        241.18        .14157E-03   -1.2845    
  15  Prefactor     2.6382        2.4350        .12581E-03   -1.5383    
  16  Prefactor     4.7679        13.578        .18439E-03   -1.5271    
  17  Prefactor     .10000E-03    1.7252        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    48.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.204        41.478        .59615E-04   -1.4362    
  20  Prefactor     21.751        12.736        .85889E-04   -1.4775    
  21  Prefactor     .10000E-03    26.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .60196        .22952        .40691E-03   -1.0790    
  23  Prefactor     1.0836        .12221        .17607E-03   -.89994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30698e-08
Minuit parameter uncertainties:
  1  2.06473e-05
  2  0.647659
  3  1.75091e-05
  4  3.82308e-06
  5  6.98258
  6  4.0212e-06
  7  0.000197701
  8  57.3819
  9  0.621063
  10  12.1872
  11  20.2501
  12  6.32807
  13  7.61417
  14  242.368
  15  2.43505
  16  13.5871
  17  4.15563e-05
  18  3.8265e-06
  19  41.5048
  20  12.7374
  21  5.46525e-05
  22  0.229881
  23  0.122243
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.227e+01  1.219e+01  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.084e+00  1.222e-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.020e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.33e-05

TS (Fixed Index): 1.44
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873832/likelihoodResults_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.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) = 7645.20436007
delta logL = 0.49232236337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7645.20244442
delta logL = 0.494238014409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6911       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5647       1.0000          .0000       10.000    
     3 'Normalizat'    .55901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0980       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=   7645.202     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      286 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6907        11.692        .14460E-03   -.14427E-03
   2  Index         3.5648        1.1744        .76167E-02   -.18899E-04
   3  Normalizat    .55908        .21642        .42133E-03   -.10275E-03
   4  Prefactor     1.0980        .12045        .17501E-03   -.19112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69074
  Index      = 3.56477
  Normalizat = 0.559079
  Prefactor  = 1.098
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.202     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6907        9.8554        .57839E-05   -1.5153    
   2  Index         3.5648        .99142        .30467E-03   -.29114    
   3  Normalizat    .55908        .21650        .16853E-04   -1.0975    
   4  Prefactor     1.0980        .12034        .35003E-04   -.89530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57553e-11
Minuit parameter uncertainties:
  1  9.85748
  2  0.998642
  3  0.216831
  4  0.120372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873832': 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) = 7645.20244419
delta logL = 0.494238243336

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  7.691e+00  9.857e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  3.565e+00  9.986e-01  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.098e+00  1.204e-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:  5.591e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 28.073 22.113
Photon Index (Free Index): 3.56 +/- 1.00
Photon Flux (Free Index): 9.34e-08 +/- 7.13e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.14e-05

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/873832/cmap_HighResolution_404956801_405216001_4FGL_J0152.2+2206_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.53e-05', photon_flux_error='5.41e-08', dlogl='4.94e-01', energy_flux='1.34e-05', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-08-14 18:28:46.866435', photon_index_error2='1.00', photon_index2='3.56', ts='1.44', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.14e-05', EG='0.60', time_epoch_completed='1628990926.87', return_code='0', job_id='873832', GAL2='1.10', EG2='0.56', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='7.13e-08', ts2='2.53', photon_index='2.68' WHERE bin_id='639' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 873832: <4FGL_J0152.2+2206_daily_bin639> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin639> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 18:15:33 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:16:12 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:16:12 2021
Terminated at Sat Aug 14 18:28:47 2021
Results reported at Sat Aug 14 18:28:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin639 28.0727 22.1133 404956801 405216001 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 :                                   735.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            794 sec.

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

