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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin498
RA = 28.1614, Dec = 1.7894
tmin = 368409601, tmax = 368668801
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='898312', job_status='RUN', time_executed='2021-08-14 19:38:17.396790', time_epoch_executed='1628995097.4' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898312/ft1_4FGL_J0152.6+0147_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898312/ft1_4FGL_J0152.6+0147_daily_bin498.fits outfile=/scratch/kocevski/898312/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin498.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=368409601.0 tmax=368668801.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.09
user 3.08
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898312/ft1_filtered_4FGL_J0152.6+0147_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/898312/ltcube_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.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/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits
.....................!
real 13.29
user 12.05
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898312/ft1_filtered_4FGL_J0152.6+0147_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/898312/ltcube_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.fits outfile=/scratch/kocevski/898312/expmap_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.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/898312/ltcube_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.fits
.....................!
real 192.17
user 185.90
sys 5.77

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/898312/ft1_filtered_4FGL_J0152.6+0147_daily_bin498.fits scfile=/scratch/kocevski/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits outfile=/scratch/kocevski/898312/cmap_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.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.38
user 0.37
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898312/ft1_filtered_4FGL_J0152.6+0147_daily_bin498.fits scfile=/scratch/kocevski/898312/ft2_4FGL_J0152.6+0147_daily_bin498.fits outfile=/scratch/kocevski/898312/cmap_HighResolution_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.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.41
user 0.37
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12108E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17774E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30158E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15821E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13313E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0534       1.0000         .10000E-03   10000.    
    14 'norm      '    .85934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.989       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .49740       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0422       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=   6075.680     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2074 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.311        .75451E-05** at limit **
   2  norm          2.9903        1.3042       -.17115E-07    .70278E-03
   3  Prefactor     .10261E-03    31.134        .34383E-05** at limit **
   4  Prefactor     .10056E-03    3.5713       -.25222E-05** at limit **
   5  Prefactor     .10000E-03    10.647        .25672E-05** at limit **
   6  Prefactor     .10000E-03    26.070        .21063E-05** at limit **
   7  norm          19.263        6.8266        .17698E-07    .40411E-04
   8  Prefactor     19.261        63.596        .26990E-05    .10484E-04
   9  Prefactor     .10000E-03    2.2426       -.34420E-09** at limit **
  10  norm          9.1732        8.7429       -.22053E-06    .18665E-04
  11  Prefactor     .10000E-03    2.4472        .15769E-06** at limit **
  12  norm          4.9061        3.7761       -.83620E-07   -.13274E-03
  13  Prefactor     3.0507        2.2446       -.51046E-06   -.51051E-03
  14  norm          .85940        .77027       -.67390E-07   -.10125E-02
  15  Prefactor     .10000E-03    9.7329       -.62447E-06** at limit **
  16  Prefactor     61.102        57.291        .12932E-04    .13034E-03
  17  Prefactor     21.994        13.480       -.43216E-05   -.27933E-03
  18  Prefactor     .10000E-03    11.175       -.30938E-05** at limit **
  19  Normalizat    .49733        .15424        .18671E-05    .12956E-03
  20  Prefactor     1.0422        .13022       -.67831E-06    .31960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.99029
  Prefactor  = 0.000102613
  Prefactor  = 0.000100559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.2635
  Prefactor  = 19.2614
  Prefactor  = 0.0001
  norm       = 9.17321
  Prefactor  = 0.0001
  norm       = 4.90615
  Prefactor  = 3.0507
  norm       = 0.859402
  Prefactor  = 0.0001
  Prefactor  = 61.102
  Prefactor  = 21.9945
  Prefactor  = 0.0001
  Normalizat = 0.497326
  Prefactor  = 1.0422
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.680     FROM HESSE     STATUS=OK           303 CALLS     2377 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9903        1.2972        .56707E-04   -1.5362    
   3  Prefactor     .10261E-03    29.713        .12793       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10056E-03    25.470        .25536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.263        6.8260        .91258E-04   -1.4830    
   8  Prefactor     19.261        63.620        .91265E-04   -1.4830    
   9  Prefactor     .10000E-03    6.2785        .22624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1732        8.7478        .13233E-03   -1.5102    
  11  Prefactor     .10000E-03    2.4707        .11905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9061        3.7808        .12769E-03   -1.5265    
  13  Prefactor     3.0507        2.2477        .94818E-04   -1.5359    
  14  norm          .85940        .73985        .61027E-03   -1.5523    
  15  Prefactor     .10000E-03    9.7601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.102        57.438        .51393E-04   -1.4143    
  17  Prefactor     21.994        13.498        .85417E-04   -1.4770    
  18  Prefactor     .10000E-03    11.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .49733        .17225        .29887E-03   -1.1254    
  20  Prefactor     1.0422        .14861        .18292E-03   -.91336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22324e-08
Minuit parameter uncertainties:
  1  0.000176698
  2  1.29722
  3  0.0176328
  4  0.00755001
  5  2.32166e-06
  6  4.99453e-05
  7  6.82628
  8  63.8456
  9  3.96487e-05
  10  8.74902
  11  4.75332e-07
  12  3.78095
  13  2.24775
  14  0.739856
  15  3.48669e-05
  16  57.4905
  17  13.4996
  18  7.43076e-05
  19  0.172439
  20  0.148667
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.965e-05  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.042e+00  1.487e-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:  4.973e-01  1.724e-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: 4.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898312/likelihoodResults_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.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) = 6075.68066439
delta logL = -0.000757177340347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6075.67990684
delta logL = 3.75794115826e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11509E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0501       1.0000          .0000       10.000    
     3 'Normalizat'    .49743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0421       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=   6075.680     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      236 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    .23708        .50869E-01** at limit **
   2  Index         2.1453        1.6530        .50000       -.12504E-03
   3  Normalizat    .49733        .15638E-02    .67517E-01    .18434E-03
   4  Prefactor     1.0422        .13596E-02    .40394E-01    .77088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100125
  Index      = 2.1453
  Normalizat = 0.497328
  Prefactor  = 1.0422
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.680     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    412.24        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1453        6.4460        .50000       -.60765    
   3  Normalizat    .49733        .22111E-01    .29887E-03   -1.1254    
   4  Prefactor     1.0422        .19255E-01    .18292E-03   -.91336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55591e-06
Minuit parameter uncertainties:
  1  0.0144313
  2  23.2672
  3  0.0221113
  4  0.0192551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898312': 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) = 6075.67990307
delta logL = 4.15052727476e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.001e-04  1.443e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.145e+00  2.327e+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.042e+00  1.926e-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:  4.973e-01  2.211e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/898312/cmap_HighResolution_368409601_368668801_4FGL_J0152.6+0147_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-08-14 19:48:23.383380', job_id='898312', GAL2='1.04', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1628995703.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='498' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 898312: <4FGL_J0152.6+0147_daily_bin498> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin498> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:33 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:08 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:36:08 2021
Terminated at Sat Aug 14 19:48:24 2021
Results reported at Sat Aug 14 19:48:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin498 28.1614 1.7894 368409601 368668801 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 :                                   616.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            771 sec.

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

