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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin970
RA = 28.1614, Dec = 1.7894
tmin = 490752001, tmax = 491011201
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='900093', job_status='RUN', time_executed='2021-08-14 19:46:14.999416', time_epoch_executed='1628995575.0' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900093/ft1_4FGL_J0152.6+0147_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900093/ft1_4FGL_J0152.6+0147_daily_bin970.fits outfile=/scratch/kocevski/900093/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin970.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=490752001.0 tmax=491011201.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 6.69
user 5.50
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900093/ft1_filtered_4FGL_J0152.6+0147_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/900093/ltcube_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.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/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits
.....................!
real 15.18
user 13.72
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900093/ft1_filtered_4FGL_J0152.6+0147_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/900093/ltcube_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.fits outfile=/scratch/kocevski/900093/expmap_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.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/900093/ltcube_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.fits
.....................!
real 198.03
user 187.51
sys 6.35

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/900093/ft1_filtered_4FGL_J0152.6+0147_daily_bin970.fits scfile=/scratch/kocevski/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits outfile=/scratch/kocevski/900093/cmap_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.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.38
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900093/ft1_filtered_4FGL_J0152.6+0147_daily_bin970.fits scfile=/scratch/kocevski/900093/ft2_4FGL_J0152.6+0147_daily_bin970.fits outfile=/scratch/kocevski/900093/cmap_HighResolution_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.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.43
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10268       1.0000         .10000E-03   10000.    
     2 'norm      '    31.761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18728E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12886E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4545       1.0000         .10000E-03   10000.    
    12 'norm      '    15.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2575       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27704E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7204       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62382       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3333.268     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1741 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71326E-03    1853.1       -.48649E-05** at limit **
   2  norm          31.763        5.3824       -.95133E-06   -.12851E-02
   3  Prefactor     12.277        15.216       -.19026E-06    .41915E-02
   4  Prefactor     12.433        1.4078       -.22862E-06    .34523E-02
   5  Prefactor     .10000E-03    26.891       -.11355E-04** at limit **
   6  Prefactor     .10000E-03    32.679       -.36862E-06** at limit **
   7  norm          .10000E-03    6.2841        .28411E-05** at limit **
   8  Prefactor     .10001E-03    94.165       -.34934E-05** at limit **
   9  Prefactor     .10000E-03    3.1828        .10083E-05** at limit **
  10  norm          .10000E-03    10.219       -.46346E-06** at limit **
  11  Prefactor     6.4562        6.9083        .27370E-06   -.17293E-03
  12  norm          15.176        7.6601        .11574E-05    .31108E-03
  13  Prefactor     9.2504        4.5629       -.27097E-06    .17238E-04
  14  norm          .10000E-03    1.0208        .11029E-05** at limit **
  15  Prefactor     44.351        32.013       -.70655E-06    .68156E-02
  16  Prefactor     .10970E-03    6.6241        .13524E-06** at limit **
  17  Prefactor     5.5825        7.5556        .45125E-06    .80379E-02
  18  Prefactor     5.6962        6.9804       -.21369E-06   -.72029E-02
  19  Normalizat    .62391        .26053       -.57386E-05   -.56721E-04
  20  Prefactor     1.0332        .22701        .32173E-05   -.17839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000713261
  norm       = 31.7635
  Prefactor  = 12.2771
  Prefactor  = 12.4325
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.45615
  norm       = 15.1764
  Prefactor  = 9.25042
  norm       = 0.0001
  Prefactor  = 44.3512
  Prefactor  = 0.000109703
  Prefactor  = 5.58245
  Prefactor  = 5.69618
  Normalizat = 0.623911
  Prefactor  = 1.03324
 **********
 **   18 **HESSE 
 **********

 FCN=   3333.268     FROM HESSE     STATUS=OK           337 CALLS     2078 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71326E-03    2048.5        .95240E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          31.763        5.5189        .17775E-02   -1.4580    
   3  Prefactor     12.277        71.771        .28693E-02   -1.5007    
   4  Prefactor     12.433        11.644        .28396E-02   -1.5003    
   5  Prefactor     .10000E-03    26.315        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.2648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    95.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4562        6.9092        .39494E-02   -1.5200    
  12  norm          15.176        7.6535        .25699E-02   -1.4929    
  13  Prefactor     9.2504        4.5941        .32930E-02   -1.5100    
  14  norm          .10000E-03    .60586        .24201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.351        39.054        .15063E-02   -1.4375    
  16  Prefactor     .10970E-03    137.81        .10712E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5825        19.569        .42596E-02   -1.5235    
  18  Prefactor     5.6962        32.043        .41985E-02   -1.5231    
  19  Normalizat    .62391        .23615        .72479E-01   -1.0698    
  20  Prefactor     1.0332        .20007        .41008E-01   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28833e-06
Minuit parameter uncertainties:
  1  2.32623
  2  5.51901
  3  59.4758
  4  11.6457
  5  0.000600304
  6  0.000132759
  7  5.33126e-05
  8  0.00208976
  9  1.31954e-05
  10  1.04981e-05
  11  6.91006
  12  7.65404
  13  4.59424
  14  6.47675e-06
  15  39.0765
  16  0.0733007
  17  19.5919
  18  27.042
  19  0.236536
  20  0.200218
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.320e-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.033e+00  2.002e-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:  6.239e-01  2.365e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900093/likelihoodResults_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.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) = 3333.26909872
delta logL = -0.0014789256511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3333.26761985
delta logL = -5.77665559831e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9651       1.0000          .0000       10.000    
     3 'Normalizat'    .62383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   3333.268     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    53.137        .10185E-02** at limit **
   2  Index         1.9105        5.6700        .50000        .38858E-04
   3  Normalizat    .62391        .24641E-01    .32087E-03    .24040E-04
   4  Prefactor     1.0332        .21026E-01    .21538E-03   -.74955E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3333.268     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      363 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    53.137        .25635E-03** at limit **
   2  Index         1.9093        5.6700        .42179E-03    .38858E-04
   3  Normalizat    .62390        .24641E-01    .78153E-05    .24040E-04
   4  Prefactor     1.0332        .21026E-01    .42942E-05   -.74955E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3333.268     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      417 TOTAL
                     EDM=   .85E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.242        .20371E-02** at limit **
   2  Index         1.5688        7.7334        .50000        .32651E-07
   3  Normalizat    .62391        .23469E-01    .12835E-04   -.62890E-05
   4  Prefactor     1.0332        .20029E-01    .86150E-05   -.26920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.5688
  Normalizat = 0.623913
  Prefactor  = 1.03324
 **********
 **   18 **HESSE 
 **********

 FCN=   3333.268     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    254.61        .40742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5688        9.0869        .50000       -.75631    
   3  Normalizat    .62391        .54602E-01    .25669E-05   -1.0698    
   4  Prefactor     1.0332        .46578E-01    .17230E-05   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34752e-13
Minuit parameter uncertainties:
  1  4.89959e-05
  2  767.304
  3  0.0546062
  4  0.0465801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900093': 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) = 3333.26761737
delta logL = 2.41648513111e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.900e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.569e+00  7.673e+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:  1.033e+00  4.658e-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:  6.239e-01  5.461e-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/900093/cmap_HighResolution_490752001_491011201_4FGL_J0152.6+0147_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-08-14 19:54:43.334843', job_id='900093', GAL2='1.03', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1628996083.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='970' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 900093: <4FGL_J0152.6+0147_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin970 28.1614 1.7894 490752001 491011201 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 :                                   511.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            829 sec.

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

