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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin741
RA = 28.0727, Dec = 22.1133
tmin = 431395201, tmax = 431654401
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='875191', job_status='RUN', time_executed='2021-08-14 18:21:50.563401', time_epoch_executed='1628990510.56' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875191/ft1_4FGL_J0152.2+2206_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875191/ft1_4FGL_J0152.2+2206_daily_bin741.fits outfile=/scratch/kocevski/875191/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin741.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=431395201.0 tmax=431654401.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 9.82
user 5.32
sys 4.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875191/ft1_filtered_4FGL_J0152.2+2206_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/875191/ltcube_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.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/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits
.....................!
real 16.90
user 12.09
sys 4.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875191/ft1_filtered_4FGL_J0152.2+2206_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/875191/ltcube_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.fits outfile=/scratch/kocevski/875191/expmap_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.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/875191/ltcube_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.fits
.....................!
real 195.78
user 184.70
sys 10.54

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/875191/ft1_filtered_4FGL_J0152.2+2206_daily_bin741.fits scfile=/scratch/kocevski/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits outfile=/scratch/kocevski/875191/cmap_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.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 4.40
user 0.37
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875191/ft1_filtered_4FGL_J0152.2+2206_daily_bin741.fits scfile=/scratch/kocevski/875191/ft2_4FGL_J0152.2+2206_daily_bin741.fits outfile=/scratch/kocevski/875191/cmap_HighResolution_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.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 4.39
user 0.36
sys 3.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.904       1.0000         .10000E-03   10000.    
     2 'norm      '    .41343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .77219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3045       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31700       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16995E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1935       1.0000         .10000E-03   10000.    
    13 'norm      '    .16513E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .35487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.408       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75283       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1053       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=   5625.508     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     1871 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.723        20.837       -.26222E-06   -.13897E-05
   2  norm          .41384        .48203        .76578E-07    .13986E-02
   3  Prefactor     .10001E-03    83.930       -.28191E-05** at limit **
   4  Prefactor     .10000E-03    1.5494       -.23376E-07** at limit **
   5  Prefactor     .10000E-03    6.5519        .19278E-05** at limit **
   6  Prefactor     5.3936        13.973        .30660E-05    .56831E-03
   7  Prefactor     5.1642        131.16       -.28181E-05    .27399E-04
   8  Prefactor     .10000E-03    78.033        .19352E-05** at limit **
   9  norm          1.9475        .77838        .62521E-07    .18957E-02
  10  Prefactor     .10001E-03    12.526        .29974E-05** at limit **
  11  Prefactor     .10000E-03    13.610        .22772E-06** at limit **
  12  Prefactor     8.3728        7.9944        .53712E-07    .10545E-03
  13  norm          .10007E-03    6.2749       -.33569E-05** at limit **
  14  Prefactor     .10000E-03    140.81       -.27349E-06** at limit **
  15  Prefactor     .10000E-03    .94873       -.16235E-06** at limit **
  16  Prefactor     17.007        9.2469       -.43357E-06    .34850E-03
  17  Prefactor     .10000E-03    3.8365       -.54311E-06** at limit **
  18  norm          .10000E-03    69.116       -.13741E-06** at limit **
  19  Prefactor     10.178        28.665       -.13733E-06    .28810E-05
  20  Prefactor     .10000E-03    5.2769       -.21506E-06** at limit **
  21  Prefactor     12.436        27.432       -.56076E-07   -.42395E-06
  22  Normalizat    .75234        .22472        .21371E-05    .48608E-03
  23  Prefactor     1.1053        .12941       -.48800E-06    .77419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7228
  norm       = 0.413836
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3936
  Prefactor  = 5.16423
  Prefactor  = 0.000100003
  norm       = 1.94747
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 8.37285
  norm       = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0067
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1785
  Prefactor  = 0.0001
  Prefactor  = 12.4362
  Normalizat = 0.752339
  Prefactor  = 1.10532
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.508     FROM HESSE     STATUS=OK           368 CALLS     2239 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.723        20.829        .94655E-04   -1.4866    
   2  norm          .41384        .45057        .54311E-03   -1.5579    
   3  Prefactor     .10001E-03    86.426        .20130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5508        .91176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.531        .34002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3936        14.350        .17451E-03   -1.5243    
   7  Prefactor     5.1642        130.23        .17891E-03   -1.5253    
   8  Prefactor     .10000E-03    78.191        .20999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9475        .77820        .40345E-04   -1.5429    
  10  Prefactor     .10001E-03    13.095        .20370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3728        7.9928        .14006E-03   -1.5129    
  13  norm          .10007E-03    12.406        .21218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    140.92        .22655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .95775        .71424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.007        8.7753        .97348E-04   -1.4883    
  17  Prefactor     .10000E-03    3.9030        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    69.217        .21326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.178        28.670        .12419E-03   -1.5070    
  20  Prefactor     .10000E-03    5.2915        .16833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.436        27.436        .11775E-03   -1.5003    
  22  Normalizat    .75234        .24713        .35588E-03   -1.0186    
  23  Prefactor     1.1053        .14448        .17608E-03   -.89297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08123e-09
Minuit parameter uncertainties:
  1  20.838
  2  0.450576
  3  0.00171705
  4  2.87537e-06
  5  8.34122e-05
  6  14.3596
  7  51.9926
  8  0.00093942
  9  0.778201
  10  0.000603619
  11  7.15157e-05
  12  7.99381
  13  0.00192416
  14  0.000139926
  15  9.4901e-06
  16  8.776
  17  6.24599e-05
  18  4.50926e-05
  19  28.7084
  20  2.87181e-05
  21  27.4634
  22  0.247497
  23  0.144529
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.000e-04  6.036e-04  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.105e+00  1.445e-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.523e-01  2.475e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875191/likelihoodResults_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.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): 102
logL (Free Index) = 5625.50815945
delta logL = -0.000363913990441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5625.50779561
delta logL = -7.3274350143e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6447       1.0000          .0000       10.000    
     3 'Normalizat'    .75239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1053       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=   5625.508     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    26.946        .18142E-02** at limit **
   2  Index         2.6023        6.2088        .50000        .34674E-04
   3  Normalizat    .75233        .23990        .35588E-03   -.42797E-03
   4  Prefactor     1.1053        .14265        .17608E-03   -.33067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.60232
  Normalizat = 0.752329
  Prefactor  = 1.10533
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.508     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    15.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6023        6.2964        .50000       -.50013    
   3  Normalizat    .75233        .24001        .14235E-04   -1.0186    
   4  Prefactor     1.1053        .14272        .35216E-04   -.89296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93429e-09
Minuit parameter uncertainties:
  1  0.00107978
  2  4.42807
  3  0.240351
  4  0.142771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875191': 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) = 5625.50779505
delta logL = 4.89882040711e-07

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.000e-04  1.080e-03  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.602e+00  4.428e+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.105e+00  1.428e-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.523e-01  2.404e-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/875191/cmap_HighResolution_431395201_431654401_4FGL_J0152.2+2206_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-08-14 18:32:51.153208', job_id='875191', GAL2='1.11', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1628991171.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='741' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:32:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 875191: <4FGL_J0152.2+2206_daily_bin741> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin741> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 18:20:24 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:20:37 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:20:37 2021
Terminated at Sat Aug 14 18:32:52 2021
Results reported at Sat Aug 14 18:32:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin741 28.0727 22.1133 431395201 431654401 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 :                                   719.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            748 sec.

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

