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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin554
RA = 28.0727, Dec = 22.1133
tmin = 382924801, tmax = 383184001
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='872366', job_status='RUN', time_executed='2021-08-14 18:12:05.558171', time_epoch_executed='1628989925.56' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872366/ft1_4FGL_J0152.2+2206_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872366/ft1_4FGL_J0152.2+2206_daily_bin554.fits outfile=/scratch/kocevski/872366/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin554.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=382924801.0 tmax=383184001.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 5.12
user 4.23
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.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/872366/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/872366/ft1_filtered_4FGL_J0152.2+2206_daily_bin554.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.14
user 0.35
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872366/ft1_filtered_4FGL_J0152.2+2206_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/872366/ltcube_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.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/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits
.....................!
real 15.86
user 14.75
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872366/ft1_filtered_4FGL_J0152.2+2206_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/872366/ltcube_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.fits outfile=/scratch/kocevski/872366/expmap_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.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/872366/ltcube_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.fits
.....................!
real 194.67
user 186.57
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/872366/ft1_filtered_4FGL_J0152.2+2206_daily_bin554.fits scfile=/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits outfile=/scratch/kocevski/872366/cmap_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.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.18
user 0.39
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872366/ft1_filtered_4FGL_J0152.2+2206_daily_bin554.fits scfile=/scratch/kocevski/872366/ft2_4FGL_J0152.2+2206_daily_bin554.fits outfile=/scratch/kocevski/872366/cmap_HighResolution_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.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.18
user 0.39
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.045       1.0000         .10000E-03   10000.    
     2 'norm      '    .24270E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32794E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .94876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4371       1.0000         .10000E-03   10000.    
    13 'norm      '    .10699E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.039       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .57352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55125E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94379       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7668.244     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     2289 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.068        21.271       -.18455E-05    .29730E-03
   2  norm          .23598E-01    2.4396        .42268E-06    .72965E-04
   3  Prefactor     6.0241        8.0401        .10009E-05   -.14300E-02
   4  Prefactor     .10000E-03    13.688       -.39462E-06** at limit **
   5  Prefactor     12.253        11.825        .11359E-06    .26545E-02
   6  Prefactor     27.740        14.831       -.96528E-06    .38654E-02
   7  Prefactor     26.447        6.0761        .13983E-06    .31497E-02
   8  Prefactor     .10008E-03    218.24        .83164E-05** at limit **
   9  norm          .94765        .70090       -.78924E-07   -.81001E-04
  10  Prefactor     46.839        9.1511       -.31279E-06   -.12681E-01
  11  Prefactor     .10000E-03    10.198        .13314E-06** at limit **
  12  Prefactor     3.4387        5.0822        .34361E-06    .13739E-03
  13  norm          .10000E-03    4.2299        .21798E-06** at limit **
  14  Prefactor     97.786        10.489        .15597E-06    .36516E-02
  15  Prefactor     .10000E-03    2.2144       -.14444E-06** at limit **
  16  Prefactor     14.038        9.0644        .13276E-07    .48219E-02
  17  Prefactor     .10000E-03    2.8529        .14508E-06** at limit **
  18  norm          .64990        90.680       -.51164E-05    .50038E-03
  19  Prefactor     .13580E-03    1906.3        .19276E-04** at limit **
  20  Prefactor     7.9910        3.9719       -.13665E-06   -.57726E-04
  21  Prefactor     .10000E-03    24.602        .79168E-07** at limit **
  22  Normalizat    .94381        .25281        .13935E-05    .19953E-03
  23  Prefactor     .98800        .13045        .67883E-06    .38468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0677
  norm       = 0.0235978
  Prefactor  = 6.02415
  Prefactor  = 0.0001
  Prefactor  = 12.2529
  Prefactor  = 27.7399
  Prefactor  = 26.4474
  Prefactor  = 0.000100079
  norm       = 0.947654
  Prefactor  = 46.8389
  Prefactor  = 0.0001
  Prefactor  = 3.43873
  norm       = 0.0001
  Prefactor  = 97.7858
  Prefactor  = 0.0001
  Prefactor  = 14.0385
  Prefactor  = 0.0001
  norm       = 0.649898
  Prefactor  = 0.000135802
  Prefactor  = 7.99098
  Prefactor  = 0.0001
  Normalizat = 0.943809
  Prefactor  = 0.987998
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.244     FROM HESSE     STATUS=OK           448 CALLS     2737 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.068        36.303        .30138E-02   -1.5042    
   2  norm          .23598E-01    .33100        .25393E-01   -1.5677    
   3  Prefactor     6.0241        67.767        .40815E-02   -1.5217    
   4  Prefactor     .10000E-03    4.5219        .60570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.253        12.100        .28606E-02   -1.5008    
   6  Prefactor     27.740        16.269        .19021E-02   -1.4654    
   7  Prefactor     26.447        29.007        .19475E-02   -1.4679    
   8  Prefactor     .10008E-03    373.44        .10676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94765        .73040        .12983E-01   -1.5513    
  10  Prefactor     46.839        17.288        .14647E-02   -1.4338    
  11  Prefactor     .10000E-03    10.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4387        5.1062        .54542E-02   -1.5337    
  13  norm          .10000E-03    4.0837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     97.786        216.33        .10160E-02   -1.3727    
  15  Prefactor     .10000E-03    2.1269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.038        9.9480        .26725E-02   -1.4958    
  17  Prefactor     .10000E-03    2.8440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64990        61.435        .22721       -1.5547    
  19  Prefactor     .13580E-03    38.679        .13037       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9910        10.805        .35464E-02   -1.5143    
  21  Prefactor     .10000E-03    24.583        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94381        .21997        .80382E-01   -.94937    
  23  Prefactor     .98800        .11463        .46118E-01   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75082e-07
Minuit parameter uncertainties:
  1  36.3754
  2  0.176384
  3  40.4675
  4  2.12138e-05
  5  12.1025
  6  16.2716
  7  29.0223
  8  0.0109126
  9  0.730403
  10  17.2903
  11  3.58956e-06
  12  5.10682
  13  7.5291e-06
  14  218.116
  15  4.12252e-06
  16  9.94919
  17  4.13508e-06
  18  12.6499
  19  0.0744739
  20  10.8077
  21  3.19848e-05
  22  0.220179
  23  0.114661
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  4.684e+01  1.729e+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:  9.880e-01  1.147e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  9.438e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.54
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 7.67e-08
Energy Flux (Fixed Index): 5.10e-05 +/- 1.88e-05

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) = 7667.68690547
delta logL = 0.557472320305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7667.67826193
delta logL = 0.56611586134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.464       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96721       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=   7667.678     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 21.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.463        17.911       -.19999E-05    .12191E-02
   2  Index         2.2755        .27727        .38939E-05    .63450E-03
   3  Normalizat    1.0017        .20653       -.18982E-06   -.89622E-04
   4  Prefactor     .96724        .11171        .28109E-06   -.12657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.463
  Index      = 2.27553
  Normalizat = 1.00174
  Prefactor  = 0.967239
 **********
 **   18 **HESSE 
 **********

 FCN=   7667.678     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.463        20.072        .55905E-04   -1.4272    
   2  Index         2.2755        .36550        .62806E-02   -.57626    
   3  Normalizat    1.0017        .24186        .34682E-03   -.92972    
   4  Prefactor     .96724        .12945        .19281E-03   -.93830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88806e-09
Minuit parameter uncertainties:
  1  20.0745
  2  0.365967
  3  0.242121
  4  0.129487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872366': 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) = 7667.6782619
delta logL = 0.566115891008

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  5.146e+01  2.007e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.276e+00  3.660e-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:  9.672e-01  1.295e-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.002e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.54
Ra Dec: 28.073 22.113
Photon Index (Free Index): 2.28 +/- 0.37
Photon Flux (Free Index): 1.57e-07 +/- 8.21e-08
Energy Flux (Free Index): 6.20e-05 +/- 2.85e-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/872366/cmap_HighResolution_382924801_383184001_4FGL_J0152.2+2206_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='6.20e-05', photon_flux_error='7.67e-08', dlogl='5.66e-01', energy_flux='5.10e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-08-14 18:23:13.787966', photon_index_error2='0.37', photon_index2='2.28', ts='13.54', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='0.94', time_epoch_completed='1628990593.79', return_code='0', job_id='872366', GAL2='0.97', EG2='1.00', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.21e-08', ts2='14.54', photon_index='2.68' WHERE bin_id='554' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:23:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 872366: <4FGL_J0152.2+2206_daily_bin554> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin554> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 18:10:37 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:11:41 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:11:41 2021
Terminated at Sat Aug 14 18:23:15 2021
Results reported at Sat Aug 14 18:23:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin554 28.0727 22.1133 382924801 383184001 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 :                                   674.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            758 sec.

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

