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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1305
RA = 28.0631, Dec = 37.2341
tmin = 577584001, tmax = 577843201
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='892746', job_status='RUN', time_executed='2021-08-14 19:23:44.392355', time_epoch_executed='1628994224.39' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892746

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892746/ft1_4FGL_J0152.2+3714_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892746/ft1_4FGL_J0152.2+3714_daily_bin1305.fits outfile=/scratch/kocevski/892746/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1305.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=577584001.0 tmax=577843201.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.29
user 2.60
sys 2.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.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/892746/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.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 3.25
user 0.34
sys 2.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/892746/ltcube_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.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/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits
.....................!
real 16.89
user 13.51
sys 3.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/892746/ltcube_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits outfile=/scratch/kocevski/892746/expmap_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.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/892746/ltcube_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits
.....................!
real 196.62
user 187.53
sys 8.65

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/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits scfile=/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits outfile=/scratch/kocevski/892746/cmap_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.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 2.96
user 0.39
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits scfile=/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits outfile=/scratch/kocevski/892746/cmap_HighResolution_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.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 3.20
user 0.39
sys 2.79

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits', '/scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits', expMap='/scratch/kocevski/892746/expmap_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits', expCube='/scratch/kocevski/892746/ltcube_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892746/Model_4FGL_J0152.2+3714_daily_bin1305.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/892746/ft1_filtered_4FGL_J0152.2+3714_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/892746/ft2_4FGL_J0152.2+3714_daily_bin1305.fits
Exposure map: /scratch/kocevski/892746/expmap_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits
Exposure cube: /scratch/kocevski/892746/ltcube_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892746/Model_4FGL_J0152.2+3714_daily_bin1305.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) = 1558.71535799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31670E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .15260E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14924E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.585       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.250       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6120       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1964       1.0000         .10000E-03   10000.    
    23 'norm      '    15.004       1.0000         .10000E-03   10000.    
    24 'Prefactor '    174.25       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1558.413     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2775 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21658E-02    3.0684       -.10812E-05** at limit **
   2  Prefactor    10000.0        2.6268        .94101E-06** at limit **
   3  Prefactor    10000.0        1.0255        .60800E-06   -.38768E-03
   4  Prefactor     .27397E-03    164.14       -.50747E-05** at limit **
   5  norm         10000.0        246.70        .31887E-05** at limit **
   6  Prefactor    10000.0        27.759        .31845E-05   -.17991E-02
   7  Prefactor     .10028E-03    63.932        .91687E-06** at limit **
   8  norm          .10000E-03    4.3011        .11213E-05** at limit **
   9  norm          .10000E-03    4.3864        .39164E-05** at limit **
  10  Prefactor     .88843E-02    .66385       -.45646E-06    .29245E-03
  11  norm          .10000E-03    8.6423        .36978E-05** at limit **
  12  Prefactor     .10000E-03    17.995       -.48342E-05** at limit **
  13  Prefactor     .10000E-03    13.261       -.74624E-06** at limit **
  14  Prefactor     .10007E-03    36.578        .56672E-05** at limit **
  15  Prefactor     .10029E-03    42.276       -.63082E-05** at limit **
  16  norm          9.2343        1.0061       -.53468E-08   -.43937E-04
  17  Prefactor     46.585        1.0052       -.75342E-08    .15336E-03
  18  norm          1.2680        1.5736        .61548E-06    .42104E-03
  19  Prefactor     10.254        1.1324       -.53282E-07    .43882E-03
  20  norm          2.6119        1.5752        .67066E-06   -.27835E-03
  21  norm          1.8648        .70621        .38896E-06   -.37914E-03
  22  Prefactor     3.1960        7.1314       -.75908E-06   -.45433E-03
  23  norm          15.003        1.8760        .84518E-08    .38618E-03
  24  Prefactor     174.25        1.0235        .27860E-08   -.34306E-03
  25  Normalizat    .10000E-01    .11484        .93700E-05** at limit **
  26  Prefactor     .80102        .13809       -.16007E-05    .25711E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0021658
  Prefactor  = 10000
  Prefactor  = 9999.99
  Prefactor  = 0.000273973
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100282
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00888428
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.000100285
  norm       = 9.23432
  Prefactor  = 46.585
  norm       = 1.26805
  Prefactor  = 10.2537
  norm       = 2.61193
  norm       = 1.86483
  Prefactor  = 3.19601
  norm       = 15.0029
  Prefactor  = 174.255
  Normalizat = 0.01
  Prefactor  = 0.801023
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.413     FROM HESSE     STATUS=OK           510 CALLS     3285 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21658E-02    6786.7        .98844E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6193.6        .10368E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        8940.8        .90712E-02    1.5689    
   4  Prefactor     .27397E-03    543.03        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        355.91        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        1725.6        .90712E-02    1.5695    
   7  Prefactor     .10028E-03    64.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9395        .19344E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .88843E-02    9546.6        .90712E-02   -1.5689    
  11  norm          .10000E-03    8.6416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    36.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10029E-03    42.597        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2343        16.872        .32970E-02   -1.5100    
  17  Prefactor     46.585        39.600        .14686E-02   -1.4342    
  18  norm          1.2680        35.094        .98772E-02   -1.5483    
  19  Prefactor     10.254        26.527        .31289E-02   -1.5067    
  20  norm          2.6119        2.3198        .63097E-02   -1.5385    
  21  norm          1.8648        .70750        .44019E-02   -1.5435    
  22  Prefactor     3.1960        7.9091        .56658E-02   -1.5350    
  23  norm          15.003        11.881        .25850E-02   -1.4933    
  24  Prefactor     174.25        112.60        .76424E-03   -1.3060    
  25  Normalizat    .10000E-01    .11268        .18727       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .80102        .14887        .43730E-01   -.99691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05913e-06
Minuit parameter uncertainties:
  1  5.82842
  2  2.19141
  3  20.1699
  4  0.620429
  5  0.456001
  6  5.65725
  7  0.00850703
  8  6.30172e-06
  9  1.47577e-05
  10  23.7284
  11  2.99776e-05
  12  1.30806e-05
  13  1.93415e-05
  14  0.00320577
  15  0.00697675
  16  16.8809
  17  39.6223
  18  13.35
  19  26.5574
  20  2.31985
  21  0.707506
  22  7.9117
  23  11.8828
  24  112.741
  25  2.72118e-07
  26  0.148941
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  1.308e-05  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:  8.010e-01  1.489e-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  2.721e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 2.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892746/likelihoodResults_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.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) = 1558.41365101
delta logL = -0.000262710654169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1558.4133908
delta logL = -2.50052562478e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1558.413     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10542E-03    13.279        .13170E-01** at limit **
   2  Index         2.5662        6.8676        .50000        .27433E-04
   3  Normalizat    .10000E-01    .23610E-03    .79683E-02** at limit **
   4  Prefactor     .80102        .59251E-02    .18604E-03   -.26276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105416
  Index      = 2.56624
  Normalizat = 0.01
  Prefactor  = 0.801023
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.413     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10542E-03    120.49        .13894E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5662        8.6722        .50000       -.50837    
   3  Normalizat    .10000E-01    .21862E-02    .15937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80102        .18029E-01    .74418E-05   -.99691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01712e-08
Minuit parameter uncertainties:
  1  0.0511929
  2  321.063
  3  1.44298e-08
  4  0.0180291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892746': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1558.41338958
delta logL = -1.28228202811e-06

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.054e-04  5.119e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.566e+00  3.211e+02  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:  8.010e-01  1.803e-02  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.443e-08  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/892746/cmap_HighResolution_577584001_577843201_4FGL_J0152.2+3714_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-02', job_status='DONE', photon_flux_upper_limit='2.90e-07', time_completed='2021-08-14 19:31:28.698503', job_id='892746', GAL2='0.80', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1628994688.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1305' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:31:28 PDT 2021


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

Job <4FGL_J0152.2+3714_daily_bin1305> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:15:29 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:19:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:19:16 2021
Terminated at Sat Aug 14 19:31:29 2021
Results reported at Sat Aug 14 19:31:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1305 28.0631 37.2341 577584001 577843201 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 :                                   503.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            960 sec.

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

