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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin276
RA = 28.1614, Dec = 1.7894
tmin = 310867201, tmax = 311126401
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='896826', job_status='RUN', time_executed='2021-08-14 19:36:38.441282', time_epoch_executed='1628994998.44' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896826/ft1_4FGL_J0152.6+0147_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896826/ft2_4FGL_J0152.6+0147_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896826/ft1_4FGL_J0152.6+0147_daily_bin276.fits outfile=/scratch/kocevski/896826/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin276.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=310867201.0 tmax=311126401.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 8.96
user 3.31
sys 5.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896826/ft2_4FGL_J0152.6+0147_daily_bin276.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/896826/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/896826/ft1_filtered_4FGL_J0152.6+0147_daily_bin276.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 5.92
user 0.35
sys 5.50

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896826/ft1_filtered_4FGL_J0152.6+0147_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/896826/ft2_4FGL_J0152.6+0147_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/896826/ltcube_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.fits outfile=/scratch/kocevski/896826/expmap_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.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/896826/ltcube_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.fits
.....................!
real 197.43
user 185.14
sys 11.84

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/896826/ft1_filtered_4FGL_J0152.6+0147_daily_bin276.fits scfile=/scratch/kocevski/896826/ft2_4FGL_J0152.6+0147_daily_bin276.fits outfile=/scratch/kocevski/896826/cmap_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.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 6.03
user 0.37
sys 5.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896826/ft1_filtered_4FGL_J0152.6+0147_daily_bin276.fits scfile=/scratch/kocevski/896826/ft2_4FGL_J0152.6+0147_daily_bin276.fits outfile=/scratch/kocevski/896826/cmap_HighResolution_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.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.83
user 0.40
sys 5.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.675       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3694       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21765E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    92.702       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76777E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.2127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9734       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70486       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0936       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=   4708.125     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2043 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.678        49.079        .31954E-05   -.37630E-05
   2  norm          2.3695        1.5458       -.10561E-06   -.31775E-03
   3  Prefactor     .10000E-03    146.80       -.79008E-04** at limit **
   4  Prefactor     .10000E-03    6.6200        .12181E-05** at limit **
   5  Prefactor     20.112        12.931       -.18134E-06    .36709E-04
   6  Prefactor     92.711        59.312        .65015E-05   -.56532E-05
   7  norm          .10000E-03    1.9056        .10848E-07** at limit **
   8  Prefactor     .10000E-03    121.15        .65585E-04** at limit **
   9  Prefactor     .10000E-03    3.4957        .28422E-07** at limit **
  10  norm          7.2144        15.055       -.91205E-07   -.36101E-04
  11  Prefactor     .10000E-03    2.7349       -.19077E-07** at limit **
  12  norm          23.038        7.3061        .18170E-05    .20236E-04
  13  Prefactor     1.9741        2.7941       -.58166E-06   -.58625E-03
  14  norm          1.3515        .90621        .19555E-07   -.23732E-03
  15  Prefactor     .10000E-03    7.3589       -.13387E-07** at limit **
  16  Prefactor     .10000E-03    38.306       -.34207E-05** at limit **
  17  Prefactor     14.047        15.478       -.17501E-06   -.10872E-04
  18  Prefactor     .10000E-03    8.9510        .26390E-07** at limit **
  19  Normalizat    .70470        .20157       -.65186E-06   -.47851E-04
  20  Prefactor     1.0936        .16935       -.47441E-06    .89927E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6781
  norm       = 2.36952
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.1118
  Prefactor  = 92.7107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.21443
  Prefactor  = 0.0001
  norm       = 23.0385
  Prefactor  = 1.97415
  norm       = 1.35148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0472
  Prefactor  = 0.0001
  Normalizat = 0.704697
  Prefactor  = 1.09358
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.125     FROM HESSE     STATUS=OK           293 CALLS     2336 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.678        49.091        .66178E-04   -1.4496    
   2  norm          2.3695        1.5340        .65397E-04   -1.5400    
   3  Prefactor     .10000E-03    146.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.372        .33649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.112        12.916        .89294E-04   -1.4811    
   6  Prefactor     92.711        59.299        .41739E-04   -1.3779    
   7  norm          .10000E-03    1.9063        .92506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    121.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.754        .24504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2144        15.064        .14936E-03   -1.5171    
  11  Prefactor     .10000E-03    2.7453        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.038        7.3032        .83453E-04   -1.4748    
  13  Prefactor     1.9741        2.7754        .12822E-03   -1.5427    
  14  norm          1.3515        .89623        .51266E-04   -1.5475    
  15  Prefactor     .10000E-03    7.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.047        15.489        .10688E-03   -1.4958    
  18  Prefactor     .10000E-03    8.9692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70470        .22893        .29455E-03   -1.0371    
  20  Prefactor     1.0936        .19517        .20393E-03   -.89672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24785e-10
Minuit parameter uncertainties:
  1  49.1447
  2  1.53402
  3  0.00062712
  4  0.000233903
  5  12.9174
  6  59.3369
  7  1.59993e-07
  8  3.86288e-05
  9  0.000290148
  10  15.0719
  11  4.39573e-06
  12  7.30345
  13  2.77561
  14  0.896242
  15  4.02287e-06
  16  4.46778e-06
  17  15.4938
  18  3.80265e-06
  19  0.229244
  20  0.195302
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.901e-04  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.094e+00  1.953e-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.047e-01  2.292e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896826/likelihoodResults_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.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) = 4708.12549869
delta logL = -0.000170958862327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4708.12525639
delta logL = 7.13378694854e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28277E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1417       1.0000          .0000       10.000    
     3 'Normalizat'    .70489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0934       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=   4708.020     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47184        31.074        .99458E-02    .16966E-02
   2  Index         2.8598        3.7327        .10226        .17035E-03
   3  Normalizat    .67953        .40266E-01    .67710E-01    .21474E-04
   4  Prefactor     1.1021        .34298E-01    .37842E-01   -.21485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.471842
  Index      = 2.85975
  Normalizat = 0.679533
  Prefactor  = 1.1021
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.020     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47184        113.02        .99338E-04   -1.5571    
   2  Index         2.8598        5.5103        .86568E-02   -.44233    
   3  Normalizat    .67953        .21254        .29963E-03   -1.0471    
   4  Prefactor     1.1021        .18676        .20323E-03   -.89400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.57239e-09
Minuit parameter uncertainties:
  1  14.6318
  2  11.1769
  3  0.212801
  4  0.186867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896826': 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) = 4708.02035725
delta logL = 0.104970475159

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.718e-01  1.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.860e+00  1.118e+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.102e+00  1.869e-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.795e-01  2.128e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/896826/cmap_HighResolution_310867201_311126401_4FGL_J0152.6+0147_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-08-14 19:47:01.116856', job_id='896826', GAL2='1.10', fit_tolerance='1e-08', EG2='0.68', EG='0.70', time_epoch_completed='1628995621.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.05e-01', ts2='0.22', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='276' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 896826: <4FGL_J0152.6+0147_daily_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin276 28.1614 1.7894 310867201 311126401 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 :                                 1256 MB
    Average Memory :                             226.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            997 sec.

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

