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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin290
RA = 28.1614, Dec = 1.7894
tmin = 314496001, tmax = 314755201
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='896846', job_status='RUN', time_executed='2021-08-14 19:34:09.526662', time_epoch_executed='1628994849.53' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896846/ft1_4FGL_J0152.6+0147_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896846/ft1_4FGL_J0152.6+0147_daily_bin290.fits outfile=/scratch/kocevski/896846/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin290.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=314496001.0 tmax=314755201.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.00
user 3.16
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896846/ft1_filtered_4FGL_J0152.6+0147_daily_bin290.fits" evtable="EVENTS" scfile=/scratch/kocevski/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits sctable="SC_DATA" outfile=/scratch/kocevski/896846/ltcube_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.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/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits
.....................!
real 13.93
user 12.93
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896846/ft1_filtered_4FGL_J0152.6+0147_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/896846/ltcube_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.fits outfile=/scratch/kocevski/896846/expmap_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.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/896846/ltcube_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.fits
.....................!
real 192.79
user 186.44
sys 4.97

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/896846/ft1_filtered_4FGL_J0152.6+0147_daily_bin290.fits scfile=/scratch/kocevski/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits outfile=/scratch/kocevski/896846/cmap_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.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.13
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896846/ft1_filtered_4FGL_J0152.6+0147_daily_bin290.fits scfile=/scratch/kocevski/896846/ft2_4FGL_J0152.6+0147_daily_bin290.fits outfile=/scratch/kocevski/896846/cmap_HighResolution_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.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.13
user 0.37
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5611       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73586E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0494       1.0000         .10000E-03   10000.    
    12 'norm      '    27.374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .65532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90515       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1726       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=   7191.866     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2058 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5815        316.37        .75068E-04    .16680E-05
   2  norm          3.1310        1.6817       -.67307E-06   -.40124E-03
   3  Prefactor     .10000E-03    12.354       -.95584E-06** at limit **
   4  Prefactor     3.6299        5.6808       -.30739E-05   -.45220E-03
   5  Prefactor     .10003E-03    6.2942        .14235E-07** at limit **
   6  Prefactor     .10000E-03    25.767        .26238E-06** at limit **
   7  norm          .10000E-03    1.3905       -.32316E-06** at limit **
   8  Prefactor     40.986        41.133        .11868E-04    .10848E-05
   9  Prefactor     .10000E-03    3.2587       -.47735E-06** at limit **
  10  norm          14.680        15.864        .53160E-06    .20493E-05
  11  Prefactor     2.0499        4.4915       -.10127E-05   -.61977E-03
  12  norm          27.373        7.0549       -.24995E-06    .11665E-04
  13  Prefactor     .10000E-03    .83588       -.43675E-09** at limit **
  14  norm          .65576        .72159        .28356E-07   -.98770E-03
  15  Prefactor     36.226        26.562       -.18350E-05   -.74346E-05
  16  Prefactor     .10000E-03    28.009       -.25937E-06** at limit **
  17  Prefactor     .10000E-03    4.5533       -.54958E-06** at limit **
  18  Prefactor     .10000E-03    5.9960        .26447E-06** at limit **
  19  Normalizat    .90499        .18422       -.60232E-06   -.23213E-04
  20  Prefactor     1.1728        .15441       -.35014E-06   -.36280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58154
  norm       = 3.13102
  Prefactor  = 0.0001
  Prefactor  = 3.62987
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.9859
  Prefactor  = 0.0001
  norm       = 14.6803
  Prefactor  = 2.04986
  norm       = 27.3732
  Prefactor  = 0.0001
  norm       = 0.655757
  Prefactor  = 36.2255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.904987
  Prefactor  = 1.17276
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.866     FROM HESSE     STATUS=OK           303 CALLS     2361 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5815        310.08        .17036E-03   -1.5235    
   2  norm          3.1310        1.6717        .70914E-04   -1.5354    
   3  Prefactor     .10000E-03    12.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6299        5.7384        .21199E-03   -1.5327    
   5  Prefactor     .10003E-03    7.9125        .64877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3915        .97662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.986        40.908        .62624E-04   -1.4427    
   9  Prefactor     .10000E-03    3.3625        .29881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.680        15.866        .10453E-03   -1.4941    
  11  Prefactor     2.0499        4.4932        .25817E-03   -1.5422    
  12  norm          27.373        7.0537        .76570E-04   -1.4661    
  13  Prefactor     .10000E-03    .84471        .75640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65576        .68770        .72182E-03   -1.5546    
  15  Prefactor     36.226        26.549        .66577E-04   -1.4503    
  16  Prefactor     .10000E-03    28.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5630        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90499        .21380        .29328E-03   -.96285    
  20  Prefactor     1.1728        .18006        .21964E-03   -.87174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46226e-10
Minuit parameter uncertainties:
  1  83.6638
  2  1.67173
  3  2.98169e-05
  4  5.73927
  5  0.000924814
  6  1.57203e-06
  7  9.47634e-07
  8  40.9361
  9  8.60581e-06
  10  15.8702
  11  4.49394
  12  7.05391
  13  4.9265e-06
  14  0.68771
  15  26.5576
  16  2.21304e-05
  17  2.28112e-06
  18  7.96164e-06
  19  0.214
  20  0.180153
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  8.606e-06  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.173e+00  1.802e-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:  9.050e-01  2.140e-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: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896846/likelihoodResults_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.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) = 7191.8671634
delta logL = -0.00141884871755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7191.86574472
delta logL = -1.64328412211e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0105       1.0000          .0000       10.000    
     3 'Normalizat'    .90490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1729       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7191.851     FROM MIGRAD    STATUS=FAILED       212 CALLS      367 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57661E-01    33.006        .30652E-02   -.54853E-02
   2  Index         3.2203        6.6043        .20000        .25681E-04
   3  Normalizat    .89566        .49642E-01    .29328E-03   -.14339E-03
   4  Prefactor     1.1768        .37127E-01    .21964E-03   -.26733E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7191.851     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      464 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57661E-01    33.006        .10054E-03   -.54853E-02
   2  Index         3.2203        6.6043        .28957E-02    .25681E-04
   3  Normalizat    .89566        .49642E-01    .92484E-04   -.14339E-03
   4  Prefactor     1.1768        .37127E-01    .22396E-04   -.26733E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7191.851     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      499 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57668E-01    .72273        .11062E-02   -.13254E-02
   2  Index         3.2203        2.2272        .12248E-01    .20639E-03
   3  Normalizat    .89566        .21842        .11731E-04   -.10854E-04
   4  Prefactor     1.1768        .18008        .43929E-04   -.13716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0576678
  Index      = 3.22026
  Normalizat = 0.89566
  Prefactor  = 1.17681
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.851     FROM HESSE     STATUS=OK            27 CALLS      526 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57668E-01    1.5350        .44247E-04   -1.5756    
   2  Index         3.2203        3.0613        .24495E-02   -.36393    
   3  Normalizat    .89566        .21751        .23462E-05   -.96613    
   4  Prefactor     1.1768        .17972        .87858E-05   -.87048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7458e-10
Minuit parameter uncertainties:
  1  0.59455
  2  3.33803
  3  0.217728
  4  0.179814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896846': 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) = 7191.85117255
delta logL = 0.0145720006494

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.767e-02  5.945e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.220e+00  3.338e+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.177e+00  1.798e-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.957e-01  2.177e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/896846/cmap_HighResolution_314496001_314755201_4FGL_J0152.6+0147_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-08-14 19:45:36.758647', job_id='896846', GAL2='1.18', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1628995536.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.46e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='290' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 896846: <4FGL_J0152.6+0147_daily_bin290> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin290> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:26 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:31:48 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:31:48 2021
Terminated at Sat Aug 14 19:45:37 2021
Results reported at Sat Aug 14 19:45:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin290 28.1614 1.7894 314496001 314755201 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 :                                   694.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            911 sec.

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

