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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1622
RA = 28.0727, Dec = 22.1133
tmin = 659750401, tmax = 660009601
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='142429', job_status='RUN', time_executed='2021-12-07 12:21:31.719032', time_epoch_executed='1638908491.72' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142429/ft1_4FGL_J0152.2+2206_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142429/ft2_4FGL_J0152.2+2206_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142429/ft1_4FGL_J0152.2+2206_daily_bin1622.fits outfile=/scratch/kocevski/142429/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1622.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.39
user 2.19
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142429/ft1_filtered_4FGL_J0152.2+2206_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/142429/ft2_4FGL_J0152.2+2206_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/142429/ltcube_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.fits outfile=/scratch/kocevski/142429/expmap_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.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/142429/ltcube_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.fits
.....................!
real 193.72
user 186.77
sys 5.74

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/142429/ft1_filtered_4FGL_J0152.2+2206_daily_bin1622.fits scfile=/scratch/kocevski/142429/ft2_4FGL_J0152.2+2206_daily_bin1622.fits outfile=/scratch/kocevski/142429/cmap_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142429/ft1_filtered_4FGL_J0152.2+2206_daily_bin1622.fits scfile=/scratch/kocevski/142429/ft2_4FGL_J0152.2+2206_daily_bin1622.fits outfile=/scratch/kocevski/142429/cmap_HighResolution_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.242       1.0000         .10000E-03   10000.    
     2 'norm      '    .44094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.916       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35987E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    331.86       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9444       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.359       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10407E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11225E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0776       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=   1683.161     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     3015 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.287        140.90       -.16760E-04   -.36860E-05
   2  norm          .44022        1.5434        .20162E-05   -.22441E-04
   3  Prefactor     .10000E-03    45.589        .27938E-06** at limit **
   4  Prefactor     .10000E-03    5.1943        .34166E-06** at limit **
   5  Prefactor     37.925        33.290        .18820E-06   -.12556E-04
   6  Prefactor     .10000E-03    96.822       -.68349E-07** at limit **
   7  Prefactor     5.9444        555.21       -.46066E-05    .10894E-04
   8  Prefactor     331.69        382.28        .72775E-07   -.18232E-04
   9  norm          1.9441        2.3520        .81202E-07   -.52129E-04
  10  Prefactor     6.2747        50.542        .17390E-05   -.13842E-04
  11  Prefactor     .10000E-03    81.002       -.62293E-07** at limit **
  12  Prefactor     33.361        27.039        .20093E-06   -.45164E-05
  13  norm          .10000E-03    16.137       -.44300E-07** at limit **
  14  Prefactor     .10000E-03    282.76       -.60349E-06** at limit **
  15  Prefactor     6.8743        7.5064        .93243E-07   -.10481E-04
  16  Prefactor     .10000E-03    32.956       -.52035E-07** at limit **
  17  Prefactor     .10000E-03    10.338       -.48608E-07** at limit **
  18  norm          .10000E-03    219.02        .72999E-06** at limit **
  19  Prefactor     29.979        425.34        .12070E-05   -.32071E-05
  20  Prefactor     26.989        59.731        .43152E-06   -.27960E-05
  21  Prefactor     .10000E-03    269.85       -.52170E-06** at limit **
  22  Normalizat    1.0511        .50311       -.99470E-06   -.45986E-04
  23  Prefactor     1.0777        .29241       -.11484E-05   -.18133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2867
  norm       = 0.440217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9247
  Prefactor  = 0.0001
  Prefactor  = 5.9444
  Prefactor  = 331.694
  norm       = 1.94411
  Prefactor  = 6.27467
  Prefactor  = 0.0001
  Prefactor  = 33.3613
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.8743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 29.9795
  Prefactor  = 26.9892
  Prefactor  = 0.0001
  Normalizat = 1.0511
  Prefactor  = 1.07767
 **********
 **   18 **HESSE 
 **********

 FCN=   1683.161     FROM HESSE     STATUS=OK           366 CALLS     3381 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.287        141.47        .11449E-03   -1.5007    
   2  norm          .44022        1.5449        .68851E-04   -1.5575    
   3  Prefactor     .10000E-03    45.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1984        .91301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.925        33.299        .65090E-04   -1.4476    
   6  Prefactor     .10000E-03    98.405        .21311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9444        535.68        .16599E-03   -1.5220    
   8  Prefactor     331.69        379.59        .11166E-03   -1.2045    
   9  norm          1.9441        2.3299        .61214E-04   -1.5429    
  10  Prefactor     6.2747        50.900        .16011E-03   -1.5207    
  11  Prefactor     .10000E-03    81.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.361        27.046        .69379E-04   -1.4552    
  13  norm          .10000E-03    16.197        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    282.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8743        7.5026        .11245E-03   -1.5184    
  16  Prefactor     .10000E-03    32.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.340        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    217.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.979        425.60        .73131E-04   -1.4612    
  20  Prefactor     26.989        59.779        .77113E-04   -1.4668    
  21  Prefactor     .10000E-03    269.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0511        .57558        .36718E-03   -.91338    
  23  Prefactor     1.0777        .33422        .21495E-03   -.90183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67127e-11
Minuit parameter uncertainties:
  1  83.6341
  2  1.54503
  3  1.42324e-05
  4  5.51421e-06
  5  33.315
  6  0.00011739
  7  113.927
  8  382.489
  9  2.32999
  10  35.7837
  11  2.14442e-05
  12  27.0557
  13  1.42192e-05
  14  0.000914673
  15  7.50361
  16  1.59583e-05
  17  4.8714e-06
  18  0.00109005
  19  227.9
  20  59.9125
  21  0.00037749
  22  0.579051
  23  0.334867
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  6.275e+00  3.578e+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.078e+00  3.349e-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:  1.051e+00  5.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/142429/likelihoodResults_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.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) = 1682.30849464
delta logL = 0.852055708243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1682.26196532
delta logL = 0.898585036518

Fit tolerance = 1e-08

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

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

 FCN=   1682.262     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3894        36.490        .91918E-02    .19018E-03
   2  Index         5.7282        7.7133        .11674        .40002E-04
   3  Normalizat    .83586        .17270        .91289E-01   -.35570E-04
   4  Prefactor     1.1563        .10296        .35762E-01   -.63300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38941
  Index      = 5.72821
  Normalizat = 0.835864
  Prefactor  = 1.15626
 **********
 **   18 **HESSE 
 **********

 FCN=   1682.262     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3894        59.594        .42938E-04   -1.5472    
   2  Index         5.7282        7.8314        .48573E-02    .14616    
   3  Normalizat    .83586        .53214        .40439E-03   -.98752    
   4  Prefactor     1.1563        .31372        .20798E-03   -.87688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64786e-10
Minuit parameter uncertainties:
  1  18.2177
  2  9.29486
  3  0.535513
  4  0.314227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142429': 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): 102
logL (Free Index) = 1682.26196442
delta logL = 0.898585933091

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.389e+00  1.822e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  5.728e+00  9.295e+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.156e+00  3.142e-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:  8.359e-01  5.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 28.073 22.113
Photon Index (Free Index): 5.73 +/- 9.29
Photon Flux (Free Index): 3.00e-07 +/- 2.78e-07
Energy Flux (Free Index): 3.79e-05 +/- 4.20e-05

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/142429/cmap_HighResolution_659750401_660009601_4FGL_J0152.2+2206_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-02', comment='SUCCESS', energy_flux2='3.79e-05', dlogl='8.99e-01', photon_flux2='3.00e-07', job_status='DONE', time_completed='2021-12-07 12:28:25.457871', photon_index_error2='9.29', photon_index2='5.73', ts='0.04', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='4.48e-07', energy_flux_error2='4.20e-05', EG='1.05', time_epoch_completed='1638908905.46', return_code='0', job_id='142429', GAL2='1.16', EG2='0.84', return_code2='102', photon_flux_error2='2.78e-07', ts2='2.01', photon_index='2.68' WHERE bin_id='1622' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:28:25 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 142429: <4FGL_J0152.2+2206_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1622> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:15:30 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:18:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:18:42 2021
Terminated at Tue Dec  7 12:28:26 2021
Results reported at Tue Dec  7 12:28:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1622 28.0727 22.1133 659750401 660009601 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 :                                   412.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            776 sec.

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

