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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin952
RA = 28.1614, Dec = 1.7894
tmin = 486086401, tmax = 486345601
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='900074', job_status='RUN', time_executed='2021-08-14 19:43:08.619247', time_epoch_executed='1628995388.62' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900074/ft1_4FGL_J0152.6+0147_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900074/ft1_4FGL_J0152.6+0147_daily_bin952.fits outfile=/scratch/kocevski/900074/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin952.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=486086401.0 tmax=486345601.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.51
user 3.57
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.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/900074/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin952.fits evtable="EVENTS" outfile="/scratch/kocevski/900074/ft1_filtered_4FGL_J0152.6+0147_daily_bin952.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.16
user 0.31
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900074/ft1_filtered_4FGL_J0152.6+0147_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/900074/ltcube_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.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/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits
.....................!
real 12.92
user 11.81
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900074/ft1_filtered_4FGL_J0152.6+0147_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/900074/ltcube_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.fits outfile=/scratch/kocevski/900074/expmap_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.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/900074/ltcube_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.fits
.....................!
real 192.66
user 186.36
sys 5.89

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/900074/ft1_filtered_4FGL_J0152.6+0147_daily_bin952.fits scfile=/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits outfile=/scratch/kocevski/900074/cmap_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.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.22
user 0.40
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900074/ft1_filtered_4FGL_J0152.6+0147_daily_bin952.fits scfile=/scratch/kocevski/900074/ft2_4FGL_J0152.6+0147_daily_bin952.fits outfile=/scratch/kocevski/900074/cmap_HighResolution_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.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.92
user 0.36
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.059       1.0000         .10000E-03   10000.    
     2 'norm      '    31.644       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73344       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6261       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87000       1.0000         .10000E-03   10000.    
    14 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6021       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9899       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83974       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1426       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=   5555.047     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2026 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.045        78.088        .13685E-06   -.55030E-05
   2  norm          31.644        4.1109        .35266E-07   -.24296E-04
   3  Prefactor     48.138        51.531        .27704E-07   -.34709E-05
   4  Prefactor     12.549        9.2137        .11719E-06   -.18943E-04
   5  Prefactor     .10000E-03    5.6709        .14644E-06** at limit **
   6  Prefactor     .10000E-03    46.379        .28824E-06** at limit **
   7  norm          .10000E-03    2.4162        .57228E-07** at limit **
   8  Prefactor     .10000E-03    72.726        .34414E-06** at limit **
   9  Prefactor     .73353        6.7897        .42999E-05    .77393E-04
  10  norm          .10000E-03    4.5612        .39434E-07** at limit **
  11  Prefactor     3.6259        6.5382        .38915E-06    .45286E-04
  12  norm          4.8700        3.8630       -.72084E-08    .13396E-04
  13  Prefactor     .87111        2.4960       -.73202E-06   -.85666E-04
  14  norm          .10000E-03    .57697        .26237E-06** at limit **
  15  Prefactor     4.6019        35.902       -.12342E-06   -.47448E-05
  16  Prefactor     9.8387        166.90       -.21192E-05   -.20481E-04
  17  Prefactor     5.7208        13.984        .46568E-06   -.96748E-05
  18  Prefactor     .10000E-03    9.7505       -.41519E-06** at limit **
  19  Normalizat    .83978        .21808       -.51213E-05   -.11582E-03
  20  Prefactor     1.1426        .18421        .27619E-05   -.35123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.0455
  norm       = 31.6441
  Prefactor  = 48.1383
  Prefactor  = 12.5493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.733532
  norm       = 0.0001
  Prefactor  = 3.62589
  norm       = 4.86999
  Prefactor  = 0.871111
  norm       = 0.0001
  Prefactor  = 4.60187
  Prefactor  = 9.83871
  Prefactor  = 5.72085
  Prefactor  = 0.0001
  Normalizat = 0.839782
  Prefactor  = 1.14259
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.047     FROM HESSE     STATUS=OK           293 CALLS     2319 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.045        78.109        .53577E-04   -1.4209    
   2  norm          31.644        4.1113        .51075E-04   -1.4582    
   3  Prefactor     48.138        51.506        .57793E-04   -1.4319    
   4  Prefactor     12.549        9.2065        .11307E-03   -1.4999    
   5  Prefactor     .10000E-03    5.6955        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4204        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73353        7.1137        .37370E-03   -1.5537    
  10  norm          .10000E-03    4.5625        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6259        6.5646        .21217E-03   -1.5327    
  12  norm          4.8700        3.8586        .12607E-03   -1.5267    
  13  Prefactor     .87111        2.4225        .18075E-03   -1.5521    
  14  norm          .10000E-03    2.8628        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6019        34.819        .18763E-03   -1.5279    
  16  Prefactor     9.8387        168.54        .12678E-03   -1.5081    
  17  Prefactor     5.7208        13.978        .16791E-03   -1.5230    
  18  Prefactor     .10000E-03    9.7625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83978        .23220        .30902E-03   -.98610    
  20  Prefactor     1.1426        .19782        .22455E-03   -.88117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41577e-10
Minuit parameter uncertainties:
  1  78.2517
  2  4.11132
  3  51.5533
  4  9.20753
  5  6.9896e-06
  6  1.84797e-05
  7  2.78451e-06
  8  9.99315e-05
  9  4.56906
  10  1.11121e-06
  11  6.56589
  12  3.85882
  13  2.42275
  14  5.61723e-05
  15  25.337
  16  81.7138
  17  13.9862
  18  3.41005e-06
  19  0.232479
  20  0.197952
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.335e-01  4.569e+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.143e+00  1.980e-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.398e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/900074/likelihoodResults_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.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) = 5555.02585461
delta logL = 0.0212124395739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5555.02519785
delta logL = 0.0218692035323

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5555.025     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      297 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1138        4.7584        .31718E-03   -.18997E-05
   2  Index         1.3918        1.6748        .13476E-01   -.44727E-04
   3  Normalizat    .84296        .22676        .30847E-03   -.13857E-04
   4  Prefactor     1.1407        .19048        .22469E-03    .83990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1138
  Index      = 1.39176
  Normalizat = 0.842965
  Prefactor  = 1.14075
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.025     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1138        4.8317        .12687E-04   -1.5497    
   2  Index         1.3918        1.6866        .26953E-02   -.80618    
   3  Normalizat    .84296        .22697        .12339E-04   -.98494    
   4  Prefactor     1.1407        .19065        .89878E-05   -.88175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7099e-12
Minuit parameter uncertainties:
  1  4.64006
  2  1.7617
  3  0.227223
  4  0.190769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900074': 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) = 5555.02519068
delta logL = 0.0218763720104

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.141e+00  1.908e-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.430e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/900074/cmap_HighResolution_486086401_486345601_4FGL_J0152.6+0147_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-08-14 19:53:09.022691', job_id='900074', GAL2='1.14', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1628995989.02', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.19e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='952' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 900074: <4FGL_J0152.6+0147_daily_bin952> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin952 28.1614 1.7894 486086401 486345601 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 :                                   606.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            736 sec.

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

