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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin930
RA = 28.1614, Dec = 1.7894
tmin = 480384001, tmax = 480643201
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='900039', job_status='RUN', time_executed='2021-08-14 19:46:07.055168', time_epoch_executed='1628995567.06' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900039/ft1_4FGL_J0152.6+0147_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900039/ft1_4FGL_J0152.6+0147_daily_bin930.fits outfile=/scratch/kocevski/900039/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin930.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=480384001.0 tmax=480643201.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.50
user 3.28
sys 1.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.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/900039/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin930.fits evtable="EVENTS" outfile="/scratch/kocevski/900039/ft1_filtered_4FGL_J0152.6+0147_daily_bin930.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.48
user 0.34
sys 1.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900039/ft1_filtered_4FGL_J0152.6+0147_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/900039/ltcube_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.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/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits
.....................!
real 14.30
user 12.82
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900039/ft1_filtered_4FGL_J0152.6+0147_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/900039/ltcube_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.fits outfile=/scratch/kocevski/900039/expmap_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.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/900039/ltcube_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.fits
.....................!
real 192.74
user 186.00
sys 6.25

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/900039/ft1_filtered_4FGL_J0152.6+0147_daily_bin930.fits scfile=/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits outfile=/scratch/kocevski/900039/cmap_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.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.50
user 0.39
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900039/ft1_filtered_4FGL_J0152.6+0147_daily_bin930.fits scfile=/scratch/kocevski/900039/ft2_4FGL_J0152.6+0147_daily_bin930.fits outfile=/scratch/kocevski/900039/cmap_HighResolution_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.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.49
user 0.38
sys 1.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.432       1.0000         .10000E-03   10000.    
     2 'norm      '    13.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17353E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6688       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23242       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.316       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11691E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73442       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2477       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=   5439.049     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2025 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.419        78.845       -.20286E-04    .33024E-04
   2  norm          13.077        3.1320        .27240E-06    .95248E-03
   3  Prefactor     37.213        79.541       -.25268E-04    .18707E-04
   4  Prefactor     36.191        15.646        .25624E-05    .29757E-03
   5  Prefactor     .10000E-03    6.4773        .20077E-06** at limit **
   6  Prefactor     .10004E-03    218.77       -.25806E-03** at limit **
   7  norm          .10000E-03    3.1287       -.44481E-07** at limit **
   8  Prefactor     .10000E-03    37.093       -.99533E-05** at limit **
   9  Prefactor     .10000E-03    2.7459       -.15031E-08** at limit **
  10  norm          .10000E-03    5.8157       -.48745E-07** at limit **
  11  Prefactor     .10000E-03    3.6717        .95161E-08** at limit **
  12  norm          3.6702        4.0045       -.22376E-05    .22650E-03
  13  Prefactor     .23043        1.6085       -.20572E-05    .88968E-03
  14  norm          1.1040        1.0160       -.21610E-06   -.59038E-03
  15  Prefactor     15.349        24.943        .14895E-04    .20582E-03
  16  Prefactor     .10000E-03    70.669        .41909E-04** at limit **
  17  Prefactor     .10000E-03    7.8807       -.28984E-06** at limit **
  18  Prefactor     .10000E-03    16.918        .39770E-06** at limit **
  19  Normalizat    .73421        .20906        .26917E-06    .73689E-03
  20  Prefactor     1.2476        .17202        .93164E-06    .10914E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4193
  norm       = 13.077
  Prefactor  = 37.2132
  Prefactor  = 36.1909
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67024
  Prefactor  = 0.230432
  norm       = 1.10402
  Prefactor  = 15.3486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.734212
  Prefactor  = 1.24758
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.049     FROM HESSE     STATUS=OK           281 CALLS     2306 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.419        78.930        .71468E-04   -1.4586    
   2  norm          13.077        3.1358        .58225E-04   -1.4985    
   3  Prefactor     37.213        79.613        .65684E-04   -1.4487    
   4  Prefactor     36.191        15.657        .66621E-04   -1.4504    
   5  Prefactor     .10000E-03    6.5763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    218.87        .20352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1578        .12740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7634        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.8185        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6917        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6702        4.0073        .14835E-03   -1.5325    
  13  Prefactor     .23043        9.1084        .17019E-02   -1.5612    
  14  norm          1.1040        .98913        .67519E-04   -1.5498    
  15  Prefactor     15.349        25.058        .10234E-03   -1.4924    
  16  Prefactor     .10000E-03    70.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73421        .24381        .32758E-03   -1.0256    
  20  Prefactor     1.2476        .20311        .21405E-03   -.84879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80694e-09
Minuit parameter uncertainties:
  1  79.1939
  2  3.13587
  3  79.8418
  4  15.6588
  5  1.04589e-05
  6  0.00607975
  7  1.20205e-06
  8  3.70471e-06
  9  1.77556e-06
  10  6.99697e-07
  11  4.84296e-06
  12  4.00762
  13  2.89734
  14  0.989148
  15  25.0747
  16  0.000198946
  17  4.83718e-06
  18  0.000148001
  19  0.24417
  20  0.203234
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.776e-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.248e+00  2.032e-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:  7.342e-01  2.442e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900039/likelihoodResults_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.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) = 5439.05095193
delta logL = -0.00171652216886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5439.04923542
delta logL = -1.00071702036e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9987       1.0000          .0000       10.000    
     3 'Normalizat'    .73423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2476       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=   5439.049     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.473        .90712E-02** at limit **
   2  Index         2.0145        6.4945        .50000       -.50194E-04
   3  Normalizat    .73421        .13245E-01    .74006E-01    .20359E-04
   4  Prefactor     1.2476        .11047E-01    .48421E-01   -.11152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01446
  Normalizat = 0.734209
  Prefactor  = 1.24758
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.049     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.669        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0145        5.9327        .50000       -.63989    
   3  Normalizat    .73421        .31980E-01    .32758E-03   -1.0256    
   4  Prefactor     1.2476        .26722E-01    .21405E-03   -.84879    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.3318e-08
Minuit parameter uncertainties:
  1  6.13865e-05
  2  23.5404
  3  0.0319807
  4  0.0267221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900039': 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) = 5439.04923505
delta logL = 3.53726136382e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.248e+00  2.672e-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:  7.342e-01  3.198e-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/900039/cmap_HighResolution_480384001_480643201_4FGL_J0152.6+0147_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-08-14 19:55:49.917921', job_id='900039', GAL2='1.25', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1628996149.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='3.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='930' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 900039: <4FGL_J0152.6+0147_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin930 28.1614 1.7894 480384001 480643201 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 :                                   598.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            899 sec.

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

