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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin886
RA = 28.0727, Dec = 22.1133
tmin = 468979201, tmax = 469238401
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='875429', job_status='RUN', time_executed='2021-08-14 18:23:18.364359', time_epoch_executed='1628990598.36' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875429/ft1_4FGL_J0152.2+2206_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875429/ft1_4FGL_J0152.2+2206_daily_bin886.fits outfile=/scratch/kocevski/875429/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin886.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=468979201.0 tmax=469238401.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 4.41
user 3.21
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875429/ft1_filtered_4FGL_J0152.2+2206_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/875429/ltcube_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.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/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits
.....................!
real 13.90
user 12.46
sys 1.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875429/ft1_filtered_4FGL_J0152.2+2206_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/875429/ltcube_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.fits outfile=/scratch/kocevski/875429/expmap_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.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/875429/ltcube_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.fits
.....................!
real 191.79
user 185.21
sys 6.09

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/875429/ft1_filtered_4FGL_J0152.2+2206_daily_bin886.fits scfile=/scratch/kocevski/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits outfile=/scratch/kocevski/875429/cmap_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.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.49
user 0.39
sys 1.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875429/ft1_filtered_4FGL_J0152.2+2206_daily_bin886.fits scfile=/scratch/kocevski/875429/ft2_4FGL_J0152.2+2206_daily_bin886.fits outfile=/scratch/kocevski/875429/cmap_HighResolution_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.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.49
user 0.39
sys 1.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.138       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2409       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.917       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.151       1.0000         .10000E-03   10000.    
     9 'norm      '    .67828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5320       1.0000         .10000E-03   10000.    
    13 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15726E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0504       1.0000         .10000E-03   10000.    
    18 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77264       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1955       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=   8401.714     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2553 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.133        30.696        .35587E-06   -.11725E-04
   2  norm          1.2409        .58255        .22000E-08    .44822E-04
   3  Prefactor     .10000E-03    85.672       -.71560E-06** at limit **
   4  Prefactor     1.7246        3.9964        .25792E-06   -.10060E-04
   5  Prefactor     20.917        10.695        .77677E-07   -.44973E-04
   6  Prefactor     7.6820        9.5631        .53957E-06   -.26825E-04
   7  Prefactor     70.550        45.306       -.26888E-06    .55403E-05
   8  Prefactor     57.209        107.47       -.99012E-05    .11984E-04
   9  norm          .67645        .71760        .48795E-06    .17923E-02
  10  Prefactor     9.4025        13.672        .24564E-06   -.18368E-04
  11  Prefactor     .10000E-03    9.4871        .50504E-07** at limit **
  12  Prefactor     2.5320        4.5838        .24731E-05   -.25654E-03
  13  norm          .10000E-03    3.3919        .13227E-06** at limit **
  14  Prefactor     .10000E-03    48.551       -.11236E-06** at limit **
  15  Prefactor     .10005E-03    1.1644       -.19368E-06** at limit **
  16  Prefactor     4.3633        9.2277       -.99144E-07   -.20088E-04
  17  Prefactor     1.0509        3.5230        .31188E-06   -.62705E-04
  18  norm          .10000E-03    89.447        .75103E-06** at limit **
  19  Prefactor     13.009        44.367        .24303E-05   -.14753E-04
  20  Prefactor     .10000E-03    3.3959       -.35051E-07** at limit **
  21  Prefactor     .10000E-03    14.544       -.63872E-07** at limit **
  22  Normalizat    .77279        .22809       -.23254E-06   -.16329E-04
  23  Prefactor     1.1954        .11970       -.13515E-06    .17601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.133
  norm       = 1.24089
  Prefactor  = 0.0001
  Prefactor  = 1.72457
  Prefactor  = 20.9165
  Prefactor  = 7.68195
  Prefactor  = 70.5497
  Prefactor  = 57.2087
  norm       = 0.676448
  Prefactor  = 9.40253
  Prefactor  = 0.0001
  Prefactor  = 2.53197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 4.36333
  Prefactor  = 1.0509
  norm       = 0.0001
  Prefactor  = 13.0085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.772789
  Prefactor  = 1.19541
 **********
 **   18 **HESSE 
 **********

 FCN=   8401.714     FROM HESSE     STATUS=OK           384 CALLS     2937 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.133        30.695        .81533E-04   -1.4725    
   2  norm          1.2409        .58750        .45667E-04   -1.5485    
   3  Prefactor     .10000E-03    87.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7246        3.9573        .26734E-03   -1.5445    
   5  Prefactor     20.917        10.711        .87577E-04   -1.4793    
   6  Prefactor     7.6820        9.5409        .14466E-03   -1.5154    
   7  Prefactor     70.550        45.289        .47794E-04   -1.4026    
   8  Prefactor     57.209        107.75        .53065E-04   -1.4194    
   9  norm          .67645        .70768        .73942E-03   -1.5543    
  10  Prefactor     9.4025        13.691        .13070E-03   -1.5095    
  11  Prefactor     .10000E-03    9.4899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5320        4.5875        .12834E-02   -1.5390    
  13  norm          .10000E-03    3.4260        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    2.9112        .33305E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3633        9.2064        .19280E-03   -1.5290    
  17  Prefactor     1.0509        3.4768        .30496E-03   -1.5503    
  18  norm          .10000E-03    89.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.009        44.310        .11101E-03   -1.4986    
  20  Prefactor     .10000E-03    3.4000        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .77279        .25145        .40000E-03   -1.0109    
  23  Prefactor     1.1954        .13347        .18631E-03   -.86473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71997e-10
Minuit parameter uncertainties:
  1  30.7153
  2  0.587505
  3  0.000163432
  4  3.95794
  5  10.7121
  6  9.54281
  7  45.3112
  8  108.12
  9  0.707689
  10  13.6958
  11  5.54042e-06
  12  4.58815
  13  8.94155e-06
  14  9.79467e-06
  15  0.000749681
  16  9.20934
  17  3.4775
  18  0.00011677
  19  44.4225
  20  2.22078e-06
  21  7.64406e-06
  22  0.251833
  23  0.133503
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  9.403e+00  1.370e+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.195e+00  1.335e-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:  7.728e-01  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/875429/likelihoodResults_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.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) = 8400.81784252
delta logL = 0.896235311069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8400.79400293
delta logL = 0.92007490701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4489       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2455       1.0000          .0000       10.000    
     3 'Normalizat'    .70270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2211       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=   8400.794     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      280 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4486        88.565        .11676E-03   -.11107E-02
   2  Index         4.2457        7.1187        .71448E-02   -.18602E-03
   3  Normalizat    .70275        .22724        .41764E-03   -.23035E-03
   4  Prefactor     1.2211        .13052        .18452E-03   -.38210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44863
  Index      = 4.24569
  Normalizat = 0.702755
  Prefactor  = 1.22108
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.794     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4486        8.0741        .46705E-05   -1.5337    
   2  Index         4.2457        1.6503        .28579E-03   -.15144    
   3  Normalizat    .70275        .23833        .16705E-04   -1.0378    
   4  Prefactor     1.2211        .13277        .36904E-04   -.85685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70915e-10
Minuit parameter uncertainties:
  1  8.07665
  2  1.68259
  3  0.238686
  4  0.132803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875429': 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) = 8400.79400278
delta logL = 0.920075047741

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.449e+00  8.077e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  4.246e+00  1.683e+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.221e+00  1.328e-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:  7.028e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 28.073 22.113
Photon Index (Free Index): 4.25 +/- 1.68
Photon Flux (Free Index): 9.92e-08 +/- 7.34e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.12e-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/875429/cmap_HighResolution_468979201_469238401_4FGL_J0152.2+2206_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='9.20e-01', photon_flux2='9.92e-08', job_status='DONE', time_completed='2021-08-14 18:36:25.514785', photon_index_error2='1.68', photon_index2='4.25', ts='0.56', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.12e-05', EG='0.77', time_epoch_completed='1628991385.51', return_code='0', job_id='875429', GAL2='1.22', EG2='0.70', return_code2='0', photon_flux_error2='7.34e-08', ts2='2.58', photon_index='2.68' WHERE bin_id='886' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 875429: <4FGL_J0152.2+2206_daily_bin886> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin886> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 18:20:44 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:22:47 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:22:47 2021
Terminated at Sat Aug 14 18:36:26 2021
Results reported at Sat Aug 14 18:36:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin886 28.0727 22.1133 468979201 469238401 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 :                                   801.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            942 sec.

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

