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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin759
RA = 28.1614, Dec = 1.7894
tmin = 436060801, tmax = 436320001
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='899772', job_status='RUN', time_executed='2021-08-14 19:44:57.620374', time_epoch_executed='1628995497.62' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899772/ft1_4FGL_J0152.6+0147_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899772/ft1_4FGL_J0152.6+0147_daily_bin759.fits outfile=/scratch/kocevski/899772/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin759.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=436060801.0 tmax=436320001.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 10.65
user 5.46
sys 5.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899772/ft1_filtered_4FGL_J0152.6+0147_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/899772/ltcube_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.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/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits
.....................!
real 18.69
user 12.88
sys 5.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899772/ft1_filtered_4FGL_J0152.6+0147_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/899772/ltcube_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.fits outfile=/scratch/kocevski/899772/expmap_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.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/899772/ltcube_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.fits
.....................!
real 197.50
user 185.54
sys 11.36

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/899772/ft1_filtered_4FGL_J0152.6+0147_daily_bin759.fits scfile=/scratch/kocevski/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits outfile=/scratch/kocevski/899772/cmap_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.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 5.40
user 0.39
sys 4.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899772/ft1_filtered_4FGL_J0152.6+0147_daily_bin759.fits scfile=/scratch/kocevski/899772/ft2_4FGL_J0152.6+0147_daily_bin759.fits outfile=/scratch/kocevski/899772/cmap_HighResolution_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.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 5.38
user 0.38
sys 4.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11261E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10845E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84447       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9928       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7115       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85005       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95077       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=   3608.820     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2377 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.255        .30730E-07** at limit **
   2  norm          10.221        3.0455        .22203E-07   -.79410E-05
   3  Prefactor     .10000E-03    43.314       -.95043E-07** at limit **
   4  Prefactor     9.2261        8.2992        .40877E-07   -.17401E-05
   5  Prefactor     15.244        15.156        .11404E-06    .15394E-05
   6  Prefactor     .10000E-03    16.830       -.96927E-08** at limit **
   7  norm          .10000E-03    9.9644       -.46372E-06** at limit **
   8  Prefactor     22.172        332.61        .14583E-05   -.23632E-05
   9  Prefactor     .10000E-03    8.7235       -.84240E-07** at limit **
  10  norm          17.247        18.002        .85563E-07   -.21895E-04
  11  Prefactor     .10000E-03    4.8676       -.78580E-07** at limit **
  12  norm          2.3436        4.7694        .49601E-07   -.50235E-04
  13  Prefactor     .84667        2.4038        .14211E-05    .16710E-03
  14  norm          .10000E-03    .39233        .13398E-06** at limit **
  15  Prefactor     21.853        30.126       -.18838E-05    .52364E-04
  16  Prefactor     .43534E-01    105.36       -.18505E-05    .52108E-04
  17  Prefactor     6.9905        9.4067        .61183E-07   -.64506E-05
  18  Prefactor     8.7424        25.158        .13315E-06    .17288E-04
  19  Normalizat    .85012        .22561        .57542E-06   -.59953E-04
  20  Prefactor     .95071        .18582       -.15449E-05    .37997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.2209
  Prefactor  = 0.0001
  Prefactor  = 9.22611
  Prefactor  = 15.2436
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.1718
  Prefactor  = 0.0001
  norm       = 17.2466
  Prefactor  = 0.0001
  norm       = 2.34359
  Prefactor  = 0.846668
  norm       = 0.0001
  Prefactor  = 21.8532
  Prefactor  = 0.0435342
  Prefactor  = 6.99048
  Prefactor  = 8.74244
  Normalizat = 0.850125
  Prefactor  = 0.950707
 **********
 **   18 **HESSE 
 **********

 FCN=   3608.820     FROM HESSE     STATUS=OK           301 CALLS     2678 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.221        3.0480        .55095E-04   -1.5068    
   3  Prefactor     .10000E-03    43.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2261        8.3004        .13194E-03   -1.5100    
   5  Prefactor     15.244        15.149        .10256E-03   -1.4927    
   6  Prefactor     .10000E-03    16.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.172        339.58        .84914E-04   -1.4766    
   9  Prefactor     .10000E-03    8.8808        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.247        17.999        .96533E-04   -1.4877    
  11  Prefactor     .10000E-03    4.9323        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3436        4.7501        .17768E-03   -1.5402    
  13  Prefactor     .84667        2.3917        .14892E-03   -1.5524    
  14  norm          .10000E-03    .40346        .73483E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.853        30.054        .85699E-04   -1.4773    
  16  Prefactor     .43534E-01    99.001        .16923       -1.5666    
  17  Prefactor     6.9905        9.4038        .15171E-03   -1.5179    
  18  Prefactor     8.7424        25.105        .13581E-03   -1.5117    
  19  Normalizat    .85012        .25905        .26764E-03   -.98236    
  20  Prefactor     .95071        .20976        .20790E-03   -.94391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31435e-10
Minuit parameter uncertainties:
  1  2.66048e-05
  2  3.04808
  3  1.83476e-05
  4  8.30142
  5  15.1532
  6  1.72675e-06
  7  1.27808e-05
  8  174.737
  9  1.87685e-05
  10  18.0049
  11  6.25359e-06
  12  4.75088
  13  2.39193
  14  3.96321e-07
  15  30.0744
  16  4.15418
  17  9.40575
  18  25.135
  19  0.259433
  20  0.20994
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.877e-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:  9.507e-01  2.099e-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.501e-01  2.594e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899772/likelihoodResults_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.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) = 3608.82017719
delta logL = -0.00053670716261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3608.81964054
delta logL = -5.27793417859e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0472       1.0000          .0000       10.000    
     3 'Normalizat'    .85026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95062       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=   3608.820     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      215 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    .58794        .67371E-01** at limit **
   2  Index         2.1413        1.5263        .50000       -.92404E-04
   3  Normalizat    .85013        .21528E-02    .44263E-01    .97248E-04
   4  Prefactor     .95070        .17699E-02    .45647E-01    .26784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100127
  Index      = 2.14129
  Normalizat = 0.850128
  Prefactor  = 0.950705
 **********
 **   18 **HESSE 
 **********

 FCN=   3608.820     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      250 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    191.80        .23621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1413        8.1397        .50000       -.60863    
   3  Normalizat    .85013        .18748E-01    .26764E-03   -.98235    
   4  Prefactor     .95070        .15416E-01    .20791E-03   -.94391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32367e-07
Minuit parameter uncertainties:
  1  0.00988343
  2  13.4813
  3  0.0187483
  4  0.0154156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899772': 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) = 3608.81963763
delta logL = 2.86049271381e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.001e-04  9.883e-03  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.141e+00  1.348e+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:  9.507e-01  1.542e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.501e-01  1.875e-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/899772/cmap_HighResolution_436060801_436320001_4FGL_J0152.6+0147_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-14 19:54:44.311137', job_id='899772', GAL2='0.95', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1628996084.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='759' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:54:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 899772: <4FGL_J0152.6+0147_daily_bin759> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin759 28.1614 1.7894 436060801 436320001 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 :                                   660.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            856 sec.

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

