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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin666
RA = 28.1614, Dec = 1.7894
tmin = 411955201, tmax = 412214401
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='901166', job_status='RUN', time_executed='2021-08-14 19:49:42.734391', time_epoch_executed='1628995782.73' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901166/ft1_4FGL_J0152.6+0147_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901166/ft1_4FGL_J0152.6+0147_daily_bin666.fits outfile=/scratch/kocevski/901166/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin666.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=411955201.0 tmax=412214401.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 13.62
user 5.34
sys 8.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901166/ft1_filtered_4FGL_J0152.6+0147_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/901166/ltcube_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.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/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits
.....................!
real 22.16
user 12.78
sys 9.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901166/ft1_filtered_4FGL_J0152.6+0147_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/901166/ltcube_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.fits outfile=/scratch/kocevski/901166/expmap_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.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/901166/ltcube_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.fits
.....................!
real 202.49
user 185.60
sys 14.76

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/901166/ft1_filtered_4FGL_J0152.6+0147_daily_bin666.fits scfile=/scratch/kocevski/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits outfile=/scratch/kocevski/901166/cmap_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.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 8.34
user 0.37
sys 7.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901166/ft1_filtered_4FGL_J0152.6+0147_daily_bin666.fits scfile=/scratch/kocevski/901166/ft2_4FGL_J0152.6+0147_daily_bin666.fits outfile=/scratch/kocevski/901166/cmap_HighResolution_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.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 8.34
user 0.39
sys 7.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.395       1.0000         .10000E-03   10000.    
     7 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1752       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83843       1.0000         .10000E-03   10000.    
    14 'norm      '    .20271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.942       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .53516       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4185       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=   3145.934     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1687 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10478E-03    31.451        .29136E-04** at limit **
   2  norm          10.674        3.5235       -.97573E-07   -.38114E-03
   3  Prefactor     .10001E-03    14.277       -.31758E-04** at limit **
   4  Prefactor     .10000E-03    7.4133       -.56152E-06** at limit **
   5  Prefactor     10.136        1.0031       -.83631E-07    .19852E-04
   6  Prefactor     65.395        1.0044        .80225E-07   -.26136E-03
   7  norm          .10017E-03    11.113       -.27053E-04** at limit **
   8  Prefactor     .10382E-03    75.614       -.73631E-04** at limit **
   9  Prefactor     3.1760        5.3992        .11503E-04    .34220E-03
  10  norm          .10000E-03    9.0230       -.95716E-06** at limit **
  11  Prefactor     .10000E-03    2.9042        .18087E-06** at limit **
  12  norm          3.4729        3.7330       -.36950E-06   -.12846E-03
  13  Prefactor     .83666        2.4320        .18628E-06   -.18628E-03
  14  norm          .20055        1.8660       -.79965E-06   -.40661E-03
  15  Prefactor     24.829        1.1036        .46980E-06   -.26071E-03
  16  Prefactor     .10145E-03    29.864        .45441E-04** at limit **
  17  Prefactor     .10009E-03    20.512        .31571E-04** at limit **
  18  Prefactor     17.942        1.0019       -.10481E-06    .58828E-04
  19  Normalizat    .53507        .28439       -.44557E-05    .41395E-04
  20  Prefactor     1.4185        .24817       -.73020E-06    .37923E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104781
  norm       = 10.6739
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 10.1357
  Prefactor  = 65.3953
  norm       = 0.000100174
  Prefactor  = 0.000103817
  Prefactor  = 3.17604
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47292
  Prefactor  = 0.836659
  norm       = 0.200547
  Prefactor  = 24.8291
  Prefactor  = 0.000101453
  Prefactor  = 0.00010009
  Prefactor  = 17.9423
  Normalizat = 0.535069
  Prefactor  = 1.41854
 **********
 **   18 **HESSE 
 **********

 FCN=   3145.934     FROM HESSE     STATUS=OK           339 CALLS     2026 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10478E-03    62.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.674        3.5283        .30659E-02   -1.5054    
   3  Prefactor     .10001E-03    26.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.136        11.995        .31463E-02   -1.5071    
   6  Prefactor     65.395        74.659        .12407E-02   -1.4089    
   7  norm          .10017E-03    23.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10382E-03    97.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1760        5.4183        .56857E-02   -1.5352    
  10  norm          .10000E-03    9.0183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4729        3.7316        .54249E-02   -1.5335    
  13  Prefactor     .83666        2.5254        .12582E-01   -1.5525    
  14  norm          .20055        1.1804        .21514E-01   -1.5618    
  15  Prefactor     24.829        23.703        .20100E-02   -1.4711    
  16  Prefactor     .10145E-03    38.846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10009E-03    21.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.942        20.582        .23639E-02   -1.4861    
  19  Normalizat    .53507        .25944        .80087E-01   -1.1082    
  20  Prefactor     1.4185        .22105        .44734E-01   -.79847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65659e-07
Minuit parameter uncertainties:
  1  0.0345867
  2  3.5284
  3  0.000879455
  4  4.34109e-05
  5  11.9977
  6  74.7659
  7  0.00407284
  8  0.0385851
  9  5.41914
  10  0.000122009
  11  5.19316e-05
  12  3.73188
  13  2.52573
  14  0.972874
  15  23.7124
  16  0.0150363
  17  0.00274506
  18  20.5897
  19  0.260026
  20  0.221203
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.176e+00  5.419e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.419e+00  2.212e-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:  5.351e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901166/likelihoodResults_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.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) = 3145.93154631
delta logL = 0.00258564696878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3145.92938228
delta logL = 0.0047496753441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6770       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8946       1.0000          .0000       10.000    
     3 'Normalizat'    .53655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4174       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=   3145.929     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      212 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6710        349.57        .52659E-02    .11452E-03
   2  Index         1.8956        5.1303        .15179        .41373E-04
   3  Normalizat    .53646        .10387        .79985E-01    .32925E-04
   4  Prefactor     1.4175        .82524E-01    .44746E-01   -.19764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67099
  Index      = 1.89562
  Normalizat = 0.536457
  Prefactor  = 1.41753
 **********
 **   18 **HESSE 
 **********

 FCN=   3145.929     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6710        8.3300        .17581E-03   -1.5325    
   2  Index         1.8956        .92877        .80891E-02   -.66986    
   3  Normalizat    .53646        .28127        .35426E-03   -1.1075    
   4  Prefactor     1.4175        .24661        .19778E-03   -.79876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08836e-09
Minuit parameter uncertainties:
  1  8.33263
  2  0.937687
  3  0.282023
  4  0.246815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901166': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3145.92938143
delta logL = 0.00475052302772

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.671e+00  8.333e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.896e+00  9.377e-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.418e+00  2.468e-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:  5.365e-01  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/901166/cmap_HighResolution_411955201_412214401_4FGL_J0152.6+0147_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-14 19:59:24.472058', job_id='901166', GAL2='1.42', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1628996364.47', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='4.75e-03', ts2='0.54', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='666' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:59:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 901166: <4FGL_J0152.6+0147_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin666 28.1614 1.7894 411955201 412214401 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

