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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin763
RA = 28.1614, Dec = 1.7894
tmin = 437097601, tmax = 437356801
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='899778', job_status='RUN', time_executed='2021-08-14 19:45:24.346198', time_epoch_executed='1628995524.35' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899778/ft1_4FGL_J0152.6+0147_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899778/ft1_4FGL_J0152.6+0147_daily_bin763.fits outfile=/scratch/kocevski/899778/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin763.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=437097601.0 tmax=437356801.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 7.08
user 4.84
sys 2.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.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/899778/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.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 2.52
user 0.33
sys 2.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/899778/ltcube_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.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/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits
.....................!
real 15.19
user 12.57
sys 2.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/899778/ltcube_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits outfile=/scratch/kocevski/899778/expmap_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.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/899778/ltcube_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits
.....................!
real 194.42
user 185.92
sys 8.01

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

Setting source of interest to:
4FGL J0152.6+0147 @ 28.1614 1.7894

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits outfile=/scratch/kocevski/899778/cmap_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.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.1614 yref=1.7894 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.58
user 0.37
sys 2.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits outfile=/scratch/kocevski/899778/cmap_HighResolution_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.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.1614 yref=1.7894 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.54
user 0.37
sys 2.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899778/Model_4FGL_J0152.6+0147_daily_bin763.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/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits.....................!
real 52.45
user 48.40
sys 3.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits', '/scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits', expMap='/scratch/kocevski/899778/expmap_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits', expCube='/scratch/kocevski/899778/ltcube_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899778/Model_4FGL_J0152.6+0147_daily_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.6+0147'

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.406e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899778/ft1_filtered_4FGL_J0152.6+0147_daily_bin763.fits
Spacecraft file(s): /scratch/kocevski/899778/ft2_4FGL_J0152.6+0147_daily_bin763.fits
Exposure map: /scratch/kocevski/899778/expmap_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits
Exposure cube: /scratch/kocevski/899778/ltcube_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899778/Model_4FGL_J0152.6+0147_daily_bin763.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) = 4215.33230798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    115.18       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10871E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .98950       1.0000         .10000E-03   10000.    
    10 'norm      '    .32628E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6993       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13753E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .84949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    124.58       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25495E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67544       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4215.324     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2091 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     115.04        150.07       -.62282E-06   -.98336E-05
   2  norm          8.3055        3.1140        .63567E-07   -.65315E-04
   3  Prefactor     .10000E-03    25.941        .10380E-06** at limit **
   4  Prefactor     .10000E-03    7.3948        .19338E-06** at limit **
   5  Prefactor     .10000E-03    2.7861        .37441E-07** at limit **
   6  Prefactor     .10000E-03    115.10       -.27257E-06** at limit **
   7  norm          2.8567        5.2495        .20972E-06   -.21282E-04
   8  Prefactor     59.035        74.448       -.69226E-07   -.69990E-06
   9  Prefactor     .99042        3.1686        .11893E-05    .50042E-04
  10  norm          .10000E-03    21.992       -.43978E-07** at limit **
  11  Prefactor     6.6981        6.6863        .11434E-07    .74144E-05
  12  norm          6.9373        6.4407        .43028E-06    .41639E-04
  13  Prefactor     .96175E-02    1.5309       -.42471E-06    .25420E-03
  14  norm          .84976        .90945        .11593E-06   -.91040E-04
  15  Prefactor     8.3406        31.510        .28134E-05    .17406E-04
  16  Prefactor     124.44        111.26        .19191E-05   -.93096E-05
  17  Prefactor     .10000E-03    12.543        .31990E-06** at limit **
  18  Prefactor     .10000E-03    75.545       -.24344E-05** at limit **
  19  Normalizat    .67578        .20349       -.63094E-06   -.26734E-06
  20  Prefactor     1.0273        .17031        .15933E-06    .14249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 115.036
  norm       = 8.30551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85668
  Prefactor  = 59.0346
  Prefactor  = 0.99042
  norm       = 0.000100001
  Prefactor  = 6.69807
  norm       = 6.93731
  Prefactor  = 0.00961752
  norm       = 0.84976
  Prefactor  = 8.34057
  Prefactor  = 124.44
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.67578
  Prefactor  = 1.02725
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.324     FROM HESSE     STATUS=OK           311 CALLS     2402 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     115.04        150.07        .18744E-03   -1.3559    
   2  norm          8.3055        3.1163        .63231E-04   -1.5132    
   3  Prefactor     .10000E-03    25.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4744        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7875        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    115.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8567        5.2270        .19566E-03   -1.5370    
   8  Prefactor     59.035        74.450        .52217E-04   -1.4170    
   9  Prefactor     .99042        3.0382        .20550E-02   -1.5509    
  10  norm          .10000E-03    213.66        .57495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6981        6.6379        .15503E-03   -1.5190    
  12  norm          6.9373        6.4554        .14934E-03   -1.5181    
  13  Prefactor     .96175E-02    2.9633        .27404E-01   -1.5688    
  14  norm          .84976        .87364        .60283E-03   -1.5524    
  15  Prefactor     8.3406        31.601        .13836E-03   -1.5130    
  16  Prefactor     124.44        111.20        .18031E-03   -1.3472    
  17  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.884        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67578        .23215        .29032E-03   -1.0486    
  20  Prefactor     1.0273        .19463        .19988E-03   -.91827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12937e-10
Minuit parameter uncertainties:
  1  150.565
  2  3.11637
  3  6.21014e-06
  4  5.02312e-06
  5  2.79382e-07
  6  3.60845e-05
  7  5.22784
  8  74.5676
  9  3.03867
  10  0.000762799
  11  6.6386
  12  6.45605
  13  0.335891
  14  0.873652
  15  31.6648
  16  111.384
  17  1.22789e-05
  18  0.000151595
  19  0.232489
  20  0.194764
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.904e-01  3.039e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.027e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.758e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899778/likelihoodResults_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.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): 0
logL (Free Index) = 4215.29288632
delta logL = 0.0312746154186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4215.28449524
delta logL = 0.0396656916255

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4215.284     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      268 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65860        5.1535        .14106E-02   -.37163E-03
   2  Index         2.4040        2.2311        .47776E-02   -.44898E-04
   3  Normalizat    .67164        .22557        .29116E-03   -.13197E-04
   4  Prefactor     1.0286        .18896        .19975E-03   -.89824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.658604
  Index      = 2.40397
  Normalizat = 0.671635
  Prefactor  = 1.02858
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.284     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65860        2.3883        .56424E-04   -1.5546    
   2  Index         2.4040        1.4912        .19111E-03   -.54592    
   3  Normalizat    .67164        .22564        .11647E-04   -1.0502    
   4  Prefactor     1.0286        .18895        .39949E-04   -.91783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60583e-10
Minuit parameter uncertainties:
  1  2.3886
  2  1.52327
  3  0.225952
  4  0.189077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899778': 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) = 4215.28449293
delta logL = 0.0396680028762

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.586e-01  2.389e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.404e+00  1.523e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.029e+00  1.891e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.716e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 28.161 1.789

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/899778/cmap_HighResolution_437097601_437356801_4FGL_J0152.6+0147_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-08-14 19:54:39.514214', job_id='899778', GAL2='1.03', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1628996079.51', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.97e-02', ts2='0.22', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='763' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 899778: <4FGL_J0152.6+0147_daily_bin763> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin763> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:29 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:40:48 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:40:48 2021
Terminated at Sat Aug 14 19:54:40 2021
Results reported at Sat Aug 14 19:54:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin763 28.1614 1.7894 437097601 437356801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.6+0147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            851 sec.

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

