/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 203 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin37
RA = 28.1614, Dec = 1.7894
tmin = 248918401, tmax = 249177601
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='895563', job_status='RUN', time_executed='2021-08-14 19:30:15.325839', time_epoch_executed='1628994615.33' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895563/ft1_4FGL_J0152.6+0147_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895563/ft1_4FGL_J0152.6+0147_daily_bin37.fits outfile=/scratch/kocevski/895563/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin37.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.87
user 1.74
sys 1.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895563/ft1_filtered_4FGL_J0152.6+0147_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/895563/ltcube_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.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/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits
.....................!
real 14.17
user 12.77
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895563/ft1_filtered_4FGL_J0152.6+0147_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/895563/ltcube_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.fits outfile=/scratch/kocevski/895563/expmap_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.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/895563/ltcube_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.fits
.....................!
real 193.57
user 187.18
sys 5.81

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/895563/ft1_filtered_4FGL_J0152.6+0147_daily_bin37.fits scfile=/scratch/kocevski/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits outfile=/scratch/kocevski/895563/cmap_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.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.45
user 0.37
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895563/ft1_filtered_4FGL_J0152.6+0147_daily_bin37.fits scfile=/scratch/kocevski/895563/ft2_4FGL_J0152.6+0147_daily_bin37.fits outfile=/scratch/kocevski/895563/cmap_HighResolution_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.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.44
user 0.37
sys 1.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8787       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8849       1.0000         .10000E-03   10000.    
    12 'norm      '    .20926E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3885       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83542       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82264       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=   7964.096     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     1606 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.253       -.30308E-07** at limit **
   2  norm          4.4303        1.3023        .21020E-07   -.50719E-04
   3  Prefactor     18.925        23.911        .55813E-07   -.70685E-05
   4  Prefactor     .10000E-03    2.2898        .12749E-06** at limit **
   5  Prefactor     5.9593        6.0559        .69905E-07   -.40203E-04
   6  Prefactor     3.9495        30.699       -.97728E-05   -.35788E-03
   7  norm          .10000E-03    1.2072        .51206E-07** at limit **
   8  Prefactor     55.740        46.427        .38610E-05    .43400E-03
   9  Prefactor     .10000E-03    .74308        .13802E-07** at limit **
  10  norm          26.433        15.824       -.16339E-05   -.43985E-03
  11  Prefactor     3.8879        4.9565        .48060E-05   -.95071E-03
  12  norm          .10147E-03    1.8276       -.11401E-05** at limit **
  13  Prefactor     6.3883        2.3784        .21411E-07    .83906E-03
  14  norm          2.8971        .87366        .22874E-07   -.47375E-05
  15  Prefactor     16.508        14.912       -.54633E-06   -.16886E-03
  16  Prefactor     14.964        41.208       -.26033E-06    .26249E-05
  17  Prefactor     .10000E-03    3.1553        .23398E-07** at limit **
  18  Prefactor     .10000E-03    4.2168       -.25308E-07** at limit **
  19  Normalizat    .83535        .14128       -.10548E-05    .23356E-03
  20  Prefactor     .82268        .11760        .31456E-06    .28214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.43028
  Prefactor  = 18.9252
  Prefactor  = 0.0001
  Prefactor  = 5.95934
  Prefactor  = 3.94951
  norm       = 0.0001
  Prefactor  = 55.7399
  Prefactor  = 0.0001
  norm       = 26.4329
  Prefactor  = 3.88791
  norm       = 0.000101472
  Prefactor  = 6.38833
  norm       = 2.89714
  Prefactor  = 16.508
  Prefactor  = 14.9643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.835348
  Prefactor  = 0.822679
 **********
 **   18 **HESSE 
 **********

 FCN=   7964.096     FROM HESSE     STATUS=OK           303 CALLS     1909 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4303        1.3000        .53173E-04   -1.5287    
   3  Prefactor     18.925        23.695        .92064E-04   -1.4838    
   4  Prefactor     .10000E-03    4.9588        .25887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9593        6.0542        .16451E-03   -1.5220    
   6  Prefactor     3.9495        34.034        .20488E-03   -1.5310    
   7  norm          .10000E-03    1.2087        .95755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.740        47.254        .26894E-03   -1.4213    
   9  Prefactor     .10000E-03    .74393        .75122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.433        15.897        .77873E-04   -1.4679    
  11  Prefactor     3.8879        5.1342        .10236E-02   -1.5314    
  12  norm          .10147E-03    4.1555        .38416E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3883        2.3780        .78423E-04   -1.5202    
  14  norm          2.8971        .87322        .43671E-04   -1.5368    
  15  Prefactor     16.508        14.938        .98802E-04   -1.4895    
  16  Prefactor     14.964        41.260        .10263E-03   -1.4934    
  17  Prefactor     .10000E-03    3.1634        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2211        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83535        .16231        .25454E-03   -.98771    
  20  Prefactor     .82268        .13644        .21081E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39648e-09
Minuit parameter uncertainties:
  1  6.94905e-07
  2  1.30004
  3  23.7064
  4  6.16187e-06
  5  6.05486
  6  23.2052
  7  9.64064e-07
  8  47.2862
  9  4.07834e-07
  10  15.8991
  11  5.13474
  12  0.00494691
  13  2.37799
  14  0.873222
  15  14.9418
  16  41.3392
  17  9.23041e-08
  18  1.25543e-06
  19  0.1624
  20  0.1365
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.078e-07  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:  8.227e-01  1.365e-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.353e-01  1.624e-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: 2.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895563/likelihoodResults_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.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) = 7964.09595562
delta logL = -0.00022405531945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7964.09573475
delta logL = -3.1911122278e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9323       1.0000          .0000       10.000    
     3 'Normalizat'    .83537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82268       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=   7964.096     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      219 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3853        .90712E-02** at limit **
   2  Index         1.3943        6.0959        .50000        .97430E-07
   3  Normalizat    .83535        .64157E-02    .44070E-01    .89248E-04
   4  Prefactor     .82268        .53087E-02    .44012E-01    .57213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.39435
  Normalizat = 0.835348
  Prefactor  = 0.822679
 **********
 **   18 **HESSE 
 **********

 FCN=   7964.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.531        .90009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3943        5.6209        .50000       -.80543    
   3  Normalizat    .83535        .23382E-01    .25454E-03   -.98771    
   4  Prefactor     .82268        .19349E-01    .21081E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76469e-11
Minuit parameter uncertainties:
  1  1.09574e-05
  2  329.983
  3  0.0233826
  4  0.019349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895563': 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) = 7964.09571122
delta logL = 2.03388590307e-05

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.096e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.394e+00  3.300e+02  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:  8.227e-01  1.935e-02  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.353e-01  2.338e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/895563/cmap_HighResolution_248918401_249177601_4FGL_J0152.6+0147_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-03', job_status='DONE', photon_flux_upper_limit='2.39e-08', time_completed='2021-08-14 19:41:18.738356', job_id='895563', GAL2='0.82', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1628995278.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='37' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 895563: <4FGL_J0152.6+0147_daily_bin37> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin37> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:26 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:26:25 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:26:25 2021
Terminated at Sat Aug 14 19:41:19 2021
Results reported at Sat Aug 14 19:41:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin37 28.1614 1.7894 248918401 249177601 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 :                                   677.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            953 sec.

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

