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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1604
RA = 28.0631, Dec = 37.2341
tmin = 655084801, tmax = 655344001
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='4211', job_status='RUN', time_executed='2021-10-08 00:04:31.617517', time_epoch_executed='1633676671.62' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4211/ft1_4FGL_J0152.2+3714_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4211/ft1_4FGL_J0152.2+3714_daily_bin1604.fits outfile=/scratch/kocevski/4211/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1604.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=655084801.0 tmax=655344001.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.89
user 2.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.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/4211/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4211/ltcube_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.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/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits
.....................!
real 14.96
user 14.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4211/ltcube_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits outfile=/scratch/kocevski/4211/expmap_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.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/4211/ltcube_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits
.....................!
real 191.18
user 185.47
sys 5.13

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.2+3714 @ 28.0631 37.2341

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits outfile=/scratch/kocevski/4211/cmap_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.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.0631 yref=37.2341 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits outfile=/scratch/kocevski/4211/cmap_HighResolution_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.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.0631 yref=37.2341 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4211/Model_4FGL_J0152.2+3714_daily_bin1604.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/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits...........................!
real 23.77
user 22.46
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits', '/scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits', expMap='/scratch/kocevski/4211/expmap_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits', expCube='/scratch/kocevski/4211/ltcube_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4211/Model_4FGL_J0152.2+3714_daily_bin1604.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+3714'

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4211/ft1_filtered_4FGL_J0152.2+3714_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/4211/ft2_4FGL_J0152.2+3714_daily_bin1604.fits
Exposure map: /scratch/kocevski/4211/expmap_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits
Exposure cube: /scratch/kocevski/4211/ltcube_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4211/Model_4FGL_J0152.2+3714_daily_bin1604.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) = 954.396566349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31237E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14791E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13803E-02   1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39126E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10817E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23682E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15289E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24722E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19568E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13825E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .63142       1.0000         .10000E-03   10000.    
    21 'norm      '    .60553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13605E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4269       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   953.2189     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3231 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        8016.1        .19049E-03** at limit **
   2  Prefactor     .10041E-03    7384.8       -.34544E-04** at limit **
   3  Prefactor     .10025E-03    7977.9       -.16312E-04** at limit **
   4  Prefactor     .10000E-03    1383.3       -.18580E-05** at limit **
   5  norm         10000.0        7875.4       -.38003E-04** at limit **
   6  Prefactor     .10000E-03    487.92        .13031E-04** at limit **
   7  Prefactor     .10000E-03    519.73        .18931E-07** at limit **
   8  norm          .10000E-03    24.514        .69547E-07** at limit **
   9  norm          .10000E-03    2.0111        .24382E-09** at limit **
  10  Prefactor     .10010E-03    1624.4       -.83326E-05** at limit **
  11  norm          .10000E-03    6.8287        .10046E-07** at limit **
  12  Prefactor     .10018E-03    1276.8        .11283E-04** at limit **
  13  Prefactor     .10000E-03    48.742        .33433E-07** at limit **
  14  Prefactor     .10000E-03    225.34       -.40113E-05** at limit **
  15  Prefactor     .10000E-03    197.50        .52668E-05** at limit **
  16  norm          .10000E-03    20.535        .78488E-07** at limit **
  17  Prefactor     .10000E-03    106.56        .37834E-05** at limit **
  18  norm          .10000E-03    31.341       -.28320E-05** at limit **
  19  Prefactor     .10000E-03    113.92       -.40027E-05** at limit **
  20  norm          .62378        1.9850       -.32379E-06   -.75577E-04
  21  norm          .60573        .76403       -.70738E-07   -.33205E-04
  22  Prefactor     .10000E-03    4.6140        .36598E-07** at limit **
  23  norm          .10000E-03    4.1277        .14225E-07** at limit **
  24  Prefactor     .10000E-03    47.253        .72425E-07** at limit **
  25  Normalizat    .10000E-01    .46193        .57909E-05** at limit **
  26  Prefactor     1.4273        .20240       -.23430E-06   -.28336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100408
  Prefactor  = 0.000100246
  Prefactor  = 0.000100003
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001001
  norm       = 0.0001
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.623784
  norm       = 0.605728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.42726
 **********
 **   18 **HESSE 
 **********

 FCN=   953.2189     FROM HESSE     STATUS=OK           442 CALLS     3673 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        8034.8        .48316E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10041E-03    8331.2        .19784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10025E-03    8347.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6430.3        .20535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        8636.3        .21312E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    515.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    657.59        .21274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.919        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0134        .42788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10010E-03    6584.9        .20071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.8488        .78928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    2273.1        .20082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    236.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    205.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.756        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    111.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    32.230        .23570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    118.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .62378        1.9974        .71833E-04   -1.5550    
  21  norm          .60573        .75347        .28583E-04   -1.5552    
  22  Prefactor     .10000E-03    4.6204        .64837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1356        .61324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .46806        .10550E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4273        .20265        .15964E-03   -.79598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48011e-10
Minuit parameter uncertainties:
  1  0.611185
  2  0.121996
  3  0.0949717
  4  0.00650512
  5  0.155391
  6  0.00119165
  7  3.23696e-05
  8  1.80793e-06
  9  1.35875e-07
  10  0.0378005
  11  7.96263e-08
  12  0.0426735
  13  5.28869e-06
  14  0.000545722
  15  0.000121899
  16  7.04822e-07
  17  2.58561e-06
  18  0.000167902
  19  5.48001e-05
  20  1.99758
  21  0.753481
  22  6.2211e-07
  23  4.68934e-07
  24  1.55004e-06
  25  1.7524e-06
  26  0.202759
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.002e-04  4.267e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.427e+00  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.000e-02  1.752e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 1.35e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4211/likelihoodResults_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.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) = 953.218910695
delta logL = -3.94436631268e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 953.21890873
delta logL = -1.97988686068e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96326E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3423       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   953.0350     FROM MIGRAD    STATUS=CONVERGED    263 CALLS      413 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     164.32        477.67        .90716E-02    .52098E-04
   2  Index         1.6608        1.0643        .12473       -.87059E-05
   3  Normalizat    .10000E-01    .42327        .31223    ** at limit **
   4  Prefactor     1.3934        .22858        .30696E-01    .70650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 164.32
  Index      = 1.66083
  Normalizat = 0.01
  Prefactor  = 1.39336
 **********
 **   18 **HESSE 
 **********

 FCN=   953.0350     FROM HESSE     STATUS=OK            31 CALLS      444 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     164.32        295.80        .36286E-03   -1.3137    
   2  Index         1.6608        .68228        .52814E-02   -.73130    
   3  Normalizat    .10000E-01    .51777        .10645E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3934        .19114        .16106E-03   -.80572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58431e-10
Minuit parameter uncertainties:
  1  298.534
  2  0.686158
  3  5.41399e-06
  4  0.19124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4211': 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) = 953.034984675
delta logL = 0.18392207539

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.643e+02  2.985e+02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  1.661e+00  6.862e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.393e+00  1.912e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.000e-02  5.414e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.063 37.234

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/4211/cmap_HighResolution_655084801_655344001_4FGL_J0152.2+3714_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-01', job_status='DONE', photon_flux_upper_limit='1.35e-06', time_completed='2021-10-08 00:10:52.646295', job_id='4211', GAL2='1.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633677052.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.84e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1604' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:10:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 4211: <4FGL_J0152.2+3714_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:37 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:02:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:02:03 2021
Terminated at Fri Oct  8 00:10:53 2021
Results reported at Fri Oct  8 00:10:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1604 28.0631 37.2341 655084801 655344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+3714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   382.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            616 sec.

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

