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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin729
RA = 28.0631, Dec = 37.2341
tmin = 428284801, tmax = 428544001
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='889706', job_status='RUN', time_executed='2021-08-14 19:07:37.529836', time_epoch_executed='1628993257.53' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889706/ft1_4FGL_J0152.2+3714_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889706/ft1_4FGL_J0152.2+3714_daily_bin729.fits outfile=/scratch/kocevski/889706/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin729.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.75
user 5.80
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889706/ft1_filtered_4FGL_J0152.2+3714_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/889706/ltcube_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.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/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits
.....................!
real 13.38
user 12.25
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889706/ft1_filtered_4FGL_J0152.2+3714_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/889706/ltcube_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.fits outfile=/scratch/kocevski/889706/expmap_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.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/889706/ltcube_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.fits
.....................!
real 192.16
user 186.23
sys 5.52

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/889706/ft1_filtered_4FGL_J0152.2+3714_daily_bin729.fits scfile=/scratch/kocevski/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits outfile=/scratch/kocevski/889706/cmap_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.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 1.26
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889706/ft1_filtered_4FGL_J0152.2+3714_daily_bin729.fits scfile=/scratch/kocevski/889706/ft2_4FGL_J0152.2+3714_daily_bin729.fits outfile=/scratch/kocevski/889706/cmap_HighResolution_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.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 1.24
user 0.39
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .52630E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .39764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    203.62       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11229E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16211E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.638       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7985       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6392       1.0000         .10000E-03   10000.    
    21 'norm      '    .55464       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.455       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.970       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .57391       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2405       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=   7145.009     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3860 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.431        11.425       -.33238E-06   -.84236E-04
   2  Prefactor     12.622        13.792        .15625E-05    .97216E-03
   3  Prefactor     .10000E-03    6.1948       -.13054E-06** at limit **
   4  Prefactor     .16067E-03    198.63       -.16931E-04** at limit **
   5  norm          .39675        1.4676        .16430E-05    .98997E-03
   6  Prefactor     .10000E-03    3.1794       -.11894E-06** at limit **
   7  Prefactor     .10000E-03    38.129       -.11633E-08** at limit **
   8  norm          .10000E-03    .46160       -.34898E-09** at limit **
   9  norm          3.2770        1.1945        .39795E-07    .61231E-03
  10  Prefactor     203.60        178.56       -.50695E-06   -.18151E-04
  11  norm          1.5007        1.0146        .46088E-07    .15146E-03
  12  Prefactor     .10000E-03    26.597        .35490E-07** at limit **
  13  Prefactor     6.2554        4.2812        .27253E-06    .33827E-03
  14  Prefactor     15.698        18.974       -.26595E-06   -.12006E-03
  15  Prefactor     .10003E-03    550.97        .68615E-05** at limit **
  16  norm          2.2105        4.8765        .15117E-05    .45637E-03
  17  Prefactor     23.641        12.956       -.54580E-06    .13197E-04
  18  norm          2.7779        4.4972        .71419E-06    .35249E-03
  19  Prefactor     4.7943        10.710        .56689E-06    .39323E-04
  20  norm          1.6391        .84703       -.68961E-07    .68591E-03
  21  norm          .55460        .27578        .83521E-08    .18238E-03
  22  Prefactor     12.453        7.3066        .30788E-07    .85279E-04
  23  norm          .10000E-03    2.9331        .83969E-08** at limit **
  24  Prefactor     25.979        36.271        .63248E-06    .14723E-03
  25  Normalizat    .57422        .30621       -.68811E-06    .26210E-03
  26  Prefactor     1.2405        .15152       -.17190E-07    .64538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.431
  Prefactor  = 12.6222
  Prefactor  = 0.0001
  Prefactor  = 0.000160669
  norm       = 0.396746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.27699
  Prefactor  = 203.601
  norm       = 1.50073
  Prefactor  = 0.0001
  Prefactor  = 6.25543
  Prefactor  = 15.6979
  Prefactor  = 0.000100027
  norm       = 2.21048
  Prefactor  = 23.6407
  norm       = 2.77794
  Prefactor  = 4.79426
  norm       = 1.63914
  norm       = 0.554603
  Prefactor  = 12.453
  norm       = 0.0001
  Prefactor  = 25.9791
  Normalizat = 0.574223
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.009     FROM HESSE     STATUS=OK           468 CALLS     4328 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.431        11.424        .11849E-03   -1.5032    
   2  Prefactor     12.622        14.208        .11276E-03   -1.4997    
   3  Prefactor     .10000E-03    6.1978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16067E-03    83.201        .20436       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .39675        1.4609        .18415E-03   -1.5582    
   6  Prefactor     .10000E-03    3.1917        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .46394        .56075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2770        1.1948        .53672E-04   -1.5346    
  10  Prefactor     203.60        177.85        .14161E-03   -1.2844    
  11  norm          1.5007        1.0003        .62240E-04   -1.5463    
  12  Prefactor     .10000E-03    27.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2554        4.2650        .13555E-03   -1.5208    
  14  Prefactor     15.698        18.958        .10109E-03   -1.4915    
  15  Prefactor     .10003E-03    570.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2105        4.8414        .24829E-03   -1.5411    
  17  Prefactor     23.641        12.832        .82388E-04   -1.4735    
  18  norm          2.7779        4.6813        .18056E-03   -1.5375    
  19  Prefactor     4.7943        10.650        .18366E-03   -1.5270    
  20  norm          1.6391        .88352        .44285E-04   -1.5452    
  21  norm          .55460        .27718        .30319E-04   -1.5559    
  22  Prefactor     12.453        7.2619        .11350E-03   -1.5002    
  23  norm          .10000E-03    2.9401        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.979        36.201        .78609E-04   -1.4688    
  25  Normalizat    .57422        .31421        .48892E-03   -1.0909    
  26  Prefactor     1.2405        .16034        .18731E-03   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25034e-09
Minuit parameter uncertainties:
  1  11.426
  2  14.2123
  3  1.17276e-05
  4  0.142292
  5  1.461
  6  1.39902e-05
  7  2.57524e-05
  8  2.14992e-08
  9  1.19478
  10  178.322
  11  1.0003
  12  5.85929e-06
  13  4.26517
  14  18.9652
  15  0.00791394
  16  4.84227
  17  12.8332
  18  4.68194
  19  10.6541
  20  0.883522
  21  0.27718
  22  7.26237
  23  2.48692e-07
  24  36.2315
  25  0.315187
  26  0.160402
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  5.859e-06  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.240e+00  1.604e-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:  5.742e-01  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889706/likelihoodResults_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.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) = 7145.00944827
delta logL = -0.000175536415554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7145.00927212
delta logL = 6.08663867752e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .57422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2405       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=   7144.879     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      292 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67395        94.527        .90712E-02   -.15987E-02
   2  Index         3.7262        6.8577        .15525        .13228E-03
   3  Normalizat    .52797        .11893        .11483        .53756E-04
   4  Prefactor     1.2560        .52764E-01    .33737E-01    .87744E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.673948
  Index      = 3.72621
  Normalizat = 0.527966
  Prefactor  = 1.25596
 **********
 **   18 **HESSE 
 **********

 FCN=   7144.879     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67395        136.88        .13417E-03   -1.5872    
   2  Index         3.7262        5.1584        .94502E-02   -.25760    
   3  Normalizat    .52797        .26962        .50909E-03   -1.1114    
   4  Prefactor     1.2560        .14488        .18632E-03   -.84626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8567e-09
Minuit parameter uncertainties:
  1  19.253
  2  12.3789
  3  0.27029
  4  0.144926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889706': 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) = 7144.87946016
delta logL = 0.129812574653

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  6.739e-01  1.925e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  3.726e+00  1.238e+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.256e+00  1.449e-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:  5.280e-01  2.703e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889706/cmap_HighResolution_428284801_428544001_4FGL_J0152.2+3714_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-08-14 19:22:04.384567', job_id='889706', GAL2='1.26', fit_tolerance='1e-08', EG2='0.53', EG='0.57', time_epoch_completed='1628994124.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.30e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='729' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:22:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 889706: <4FGL_J0152.2+3714_daily_bin729> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin729> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:05:35 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:07:11 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:07:11 2021
Terminated at Sat Aug 14 19:22:04 2021
Results reported at Sat Aug 14 19:22:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin729 28.0631 37.2341 428284801 428544001 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 :                                   874.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            989 sec.

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

