/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 123 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 = 7317
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin410
RA = 28.1614, Dec = 1.7894
tmin = 345600001, tmax = 345859201
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='897018', job_status='RUN', time_executed='2021-08-14 19:36:17.091286', time_epoch_executed='1628994977.09' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897018/ft1_4FGL_J0152.6+0147_daily_bin410.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897018/ft1_4FGL_J0152.6+0147_daily_bin410.fits outfile=/scratch/kocevski/897018/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin410.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=345600001.0 tmax=345859201.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.99
user 3.08
sys 2.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.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/897018/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin410.fits evtable="EVENTS" outfile="/scratch/kocevski/897018/ft1_filtered_4FGL_J0152.6+0147_daily_bin410.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.19
user 0.32
sys 2.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897018/ft1_filtered_4FGL_J0152.6+0147_daily_bin410.fits" evtable="EVENTS" scfile=/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits sctable="SC_DATA" outfile=/scratch/kocevski/897018/ltcube_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.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/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits
.....................!
real 14.80
user 11.50
sys 2.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897018/ft1_filtered_4FGL_J0152.6+0147_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/897018/ltcube_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.fits outfile=/scratch/kocevski/897018/expmap_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.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/897018/ltcube_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.fits
.....................!
real 195.20
user 185.82
sys 8.17

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/897018/ft1_filtered_4FGL_J0152.6+0147_daily_bin410.fits scfile=/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits outfile=/scratch/kocevski/897018/cmap_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.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.74
user 0.36
sys 2.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/897018/ft1_filtered_4FGL_J0152.6+0147_daily_bin410.fits scfile=/scratch/kocevski/897018/ft2_4FGL_J0152.6+0147_daily_bin410.fits outfile=/scratch/kocevski/897018/cmap_HighResolution_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.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.73
user 0.37
sys 2.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31163E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    25.825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9533       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85286       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96619       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=   6453.649     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2033 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    38.715       -.13071E-06** at limit **
   2  norm          1.4724        1.1341       -.81084E-08    .19814E-03
   3  Prefactor     .10000E-03    8.6463        .92917E-08** at limit **
   4  Prefactor     .10000E-03    2.2191        .13062E-08** at limit **
   5  Prefactor     .88130        5.5048       -.17006E-06    .21967E-03
   6  Prefactor     .10000E-03    19.703       -.50544E-08** at limit **
   7  norm          5.2358        4.8106       -.77056E-07    .21681E-02
   8  Prefactor     55.754        61.026        .93809E-07   -.20834E-03
   9  Prefactor     .10000E-03    2.4877       -.15930E-07** at limit **
  10  norm          25.825        17.367       -.88138E-08    .50811E-04
  11  Prefactor     9.9529        7.4888       -.64917E-07   -.22741E-03
  12  norm          5.9985        4.9598       -.17463E-07    .82701E-03
  13  Prefactor     .10000E-03    1.0364        .81593E-08** at limit **
  14  norm          1.2877        .78017        .10967E-08   -.97778E-03
  15  Prefactor     2.4209        6.3536       -.17673E-05   -.13597E-03
  16  Prefactor     .10000E-03    30.687        .70294E-08** at limit **
  17  Prefactor     6.9594        7.8437       -.17862E-07    .38328E-04
  18  Prefactor     10.291        13.447        .13192E-07   -.58162E-04
  19  Normalizat    .85281        .16309        .55466E-07    .42750E-05
  20  Prefactor     .96621        .13822        .87869E-07   -.57213E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 1.47237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.881302
  Prefactor  = 0.0001
  norm       = 5.2358
  Prefactor  = 55.7544
  Prefactor  = 0.000100003
  norm       = 25.8247
  Prefactor  = 9.9529
  norm       = 5.99846
  Prefactor  = 0.0001
  norm       = 1.28774
  Prefactor  = 2.42089
  Prefactor  = 0.0001
  Prefactor  = 6.95942
  Prefactor  = 10.2908
  Normalizat = 0.852812
  Prefactor  = 0.966209
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.649     FROM HESSE     STATUS=OK           297 CALLS     2330 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4724        1.1284        .72637E-04   -1.5465    
   3  Prefactor     .10000E-03    8.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2473        .11683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .88130        11.928        .36464E-02   -1.5520    
   6  Prefactor     .10000E-03    19.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2358        4.8032        .16333E-03   -1.5250    
   8  Prefactor     55.754        61.064        .53722E-04   -1.4213    
   9  Prefactor     .10000E-03    42.605        .24239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.825        17.385        .78828E-04   -1.4691    
  11  Prefactor     9.9529        7.6281        .63506E-03   -1.5077    
  12  norm          5.9985        4.9560        .15511E-03   -1.5218    
  13  Prefactor     .10000E-03    1.0520        .79776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2877        .77186        .52650E-04   -1.5481    
  15  Prefactor     2.4209        33.968        .13151E-02   -1.5397    
  16  Prefactor     .10000E-03    30.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9594        7.8444        .15208E-03   -1.5180    
  18  Prefactor     10.291        13.435        .62450E-03   -1.5066    
  19  Normalizat    .85281        .18670        .25939E-03   -.98139    
  20  Prefactor     .96621        .16143        .20946E-03   -.93865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90126e-09
Minuit parameter uncertainties:
  1  0.00113277
  2  1.12845
  3  3.91539e-05
  4  5.63624e-06
  5  6.48573
  6  1.65635e-05
  7  4.80357
  8  61.1322
  9  0.000688774
  10  17.3889
  11  7.62881
  12  4.95629
  13  1.082e-05
  14  0.77187
  15  18.1484
  16  2.49274e-05
  17  7.84554
  18  13.4388
  19  0.186843
  20  0.161515
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.888e-04  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:  9.662e-01  1.615e-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:  8.528e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/897018/likelihoodResults_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.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) = 6453.64926941
delta logL = -0.000110293006401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6453.2235745
delta logL = 0.425584609805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13574E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1723       1.0000          .0000       10.000    
     3 'Normalizat'    .78991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99986       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=   6453.224     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      289 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13061E-02    .23759E-01    .76047E-03** at limit **
   2  Index         5.1849        2.0556        .81384E-01    .18074E-03
   3  Normalizat    .78996        .31363E-01    .43478E-01   -.53118E-04
   4  Prefactor     .99984        .26953E-01    .46265E-01   -.61702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0013061
  Index      = 5.18487
  Normalizat = 0.789959
  Prefactor  = 0.999843
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.224     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      324 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13061E-02    .86158E-01    .33651E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1849        7.2014        .46287E-02    .36983E-01
   3  Normalizat    .78996        .12706        .26861E-03   -1.0044    
   4  Prefactor     .99984        .10665        .20633E-03   -.92735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.08939e-08
Minuit parameter uncertainties:
  1  0.0203878
  2  5.20108
  3  0.127109
  4  0.10667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897018': 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) = 6453.22356965
delta logL = 0.425589463248

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.306e-03  2.039e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  5.185e+00  5.201e+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:  9.998e-01  1.067e-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:  7.900e-01  1.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/897018/cmap_HighResolution_345600001_345859201_4FGL_J0152.6+0147_daily_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-08-14 19:47:09.563590', job_id='897018', GAL2='1.00', fit_tolerance='1e-08', EG2='0.79', EG='0.85', time_epoch_completed='1628995629.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.26e-01', ts2='0.94', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='410' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 897018: <4FGL_J0152.6+0147_daily_bin410> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin410> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:39 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:33:29 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:33:29 2021
Terminated at Sat Aug 14 19:47:10 2021
Results reported at Sat Aug 14 19:47:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin410 28.1614 1.7894 345600001 345859201 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 :                                   683.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            991 sec.

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

