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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin702
RA = 28.1614, Dec = 1.7894
tmin = 421286401, tmax = 421545601
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='898603', job_status='RUN', time_executed='2021-08-14 19:41:59.396494', time_epoch_executed='1628995319.4' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898603

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898603/ft1_4FGL_J0152.6+0147_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898603/ft1_4FGL_J0152.6+0147_daily_bin702.fits outfile=/scratch/kocevski/898603/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin702.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=421286401.0 tmax=421545601.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 4.90
user 3.46
sys 1.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.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/898603/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.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.76
user 0.34
sys 1.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/898603/ltcube_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.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/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits
.....................!
real 15.74
user 14.00
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/898603/ltcube_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits outfile=/scratch/kocevski/898603/expmap_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.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/898603/ltcube_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits
.....................!
real 194.51
user 187.89
sys 5.99

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/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits scfile=/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits outfile=/scratch/kocevski/898603/cmap_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.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 1.71
user 0.38
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits scfile=/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits outfile=/scratch/kocevski/898603/cmap_HighResolution_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.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 1.77
user 0.40
sys 1.36

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits', '/scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits', expMap='/scratch/kocevski/898603/expmap_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits', expCube='/scratch/kocevski/898603/ltcube_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898603/Model_4FGL_J0152.6+0147_daily_bin702.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/898603/ft1_filtered_4FGL_J0152.6+0147_daily_bin702.fits
Spacecraft file(s): /scratch/kocevski/898603/ft2_4FGL_J0152.6+0147_daily_bin702.fits
Exposure map: /scratch/kocevski/898603/expmap_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits
Exposure cube: /scratch/kocevski/898603/ltcube_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898603/Model_4FGL_J0152.6+0147_daily_bin702.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) = 4803.2606317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11964E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12636E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25990E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5975       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.464       1.0000         .10000E-03   10000.    
    12 'norm      '    9.9071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61217       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2785       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=   4803.202     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1754 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.953       -.11533E-04** at limit **
   2  norm          6.4917        2.2094        .44728E-07    .15591E-02
   3  Prefactor     .10000E-03    30.372       -.48968E-06** at limit **
   4  Prefactor     .48183        5.5849       -.27131E-05    .84656E-03
   5  Prefactor     .10000E-03    4.0903        .16565E-06** at limit **
   6  Prefactor     .10000E-03    75.745        .24207E-04** at limit **
   7  norm          .10000E-03    1.9267       -.34267E-07** at limit **
   8  Prefactor     .10007E-03    500.82       -.55840E-03** at limit **
   9  Prefactor     4.6005        5.8206        .18647E-05   -.14744E-03
  10  norm          .10000E-03    16.637        .76059E-09** at limit **
  11  Prefactor     13.468        7.5832       -.20902E-05   -.13683E-04
  12  norm          9.9087        6.1522       -.29140E-05   -.16677E-03
  13  Prefactor     .10000E-03    1.5768        .23493E-06** at limit **
  14  norm          .10000E-03    .30717       -.97830E-07** at limit **
  15  Prefactor     .10000E-03    76.541        .18324E-04** at limit **
  16  Prefactor     .10000E-03    47.797       -.11972E-04** at limit **
  17  Prefactor     .10000E-03    6.9261        .21847E-06** at limit **
  18  Prefactor     .10000E-03    5.9444       -.20336E-06** at limit **
  19  Normalizat    .61163        .20173        .19902E-05    .93312E-03
  20  Prefactor     1.2784        .17258        .88822E-06    .10761E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.49166
  Prefactor  = 0.0001
  Prefactor  = 0.48183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 4.60052
  norm       = 0.0001
  Prefactor  = 13.4684
  norm       = 9.90871
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.611628
  Prefactor  = 1.27844
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.202     FROM HESSE     STATUS=OK           285 CALLS     2039 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4917        2.2136        .55985E-04   -1.5198    
   3  Prefactor     .10000E-03    30.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48183        39.433        .29796E-02   -1.5569    
   5  Prefactor     .10000E-03    4.1033        .13689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9275        .93952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    501.39        .19979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6005        5.8080        .18009E-03   -1.5279    
  10  norm          .10000E-03    16.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.468        7.5882        .10916E-03   -1.4974    
  12  norm          9.9087        6.1397        .12731E-03   -1.5078    
  13  Prefactor     .10000E-03    2.4884        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .40090        .74691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    79.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9447        .17814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9465        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61163        .22425        .31780E-03   -1.0749    
  20  Prefactor     1.2784        .19371        .19572E-03   -.83950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17803e-08
Minuit parameter uncertainties:
  1  1.2391e-05
  2  2.2136
  3  4.7168e-05
  4  8.72283
  5  5.87715e-06
  6  0.000151583
  7  3.09287e-06
  8  0.0115864
  9  5.80875
  10  1.12761e-05
  11  7.58873
  12  6.14007
  13  2.70715e-05
  14  3.75124e-06
  15  0.000737015
  16  7.32178e-06
  17  7.92544e-06
  18  4.60092e-06
  19  0.224584
  20  0.193817
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.601e+00  5.809e+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.278e+00  1.938e-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.116e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898603/likelihoodResults_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.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) = 4803.1367697
delta logL = 0.065195022642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.13424486
delta logL = 0.0677198632902

Fit tolerance = 1e-08

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

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

 FCN=   4803.134     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      234 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5002        142.85        .53960E-02    .33036E-03
   2  Index         2.2267        6.1029        .11561        .10410E-03
   3  Normalizat    .60339        .78674E-01    .72251E-01    .24000E-04
   4  Prefactor     1.2815        .59759E-01    .32938E-01   -.25494E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50024
  Index      = 2.22671
  Normalizat = 0.603389
  Prefactor  = 1.28146
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.134     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5002        6.1115        .14448E-03   -1.5334    
   2  Index         2.2267        .73940        .64571E-02   -.58795    
   3  Normalizat    .60339        .22198        .31984E-03   -1.0784    
   4  Prefactor     1.2815        .19121        .19550E-03   -.83860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87152e-12
Minuit parameter uncertainties:
  1  6.11254
  2  0.743354
  3  0.222312
  4  0.191319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898603': 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) = 4803.13424279
delta logL = 0.0677219366298

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.500e+00  6.113e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.227e+00  7.434e-01  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.281e+00  1.913e-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.034e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.86
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/898603/cmap_HighResolution_421286401_421545601_4FGL_J0152.6+0147_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-14 19:51:08.946944', job_id='898603', GAL2='1.28', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1628995868.95', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.77e-02', ts2='0.99', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='702' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 898603: <4FGL_J0152.6+0147_daily_bin702> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin702> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:55 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:38:57 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:38:57 2021
Terminated at Sat Aug 14 19:51:09 2021
Results reported at Sat Aug 14 19:51:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin702 28.1614 1.7894 421286401 421545601 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 :                                   568.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            914 sec.

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

