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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin626
RA = 28.1614, Dec = 1.7894
tmin = 401587201, tmax = 401846401
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='898498', job_status='RUN', time_executed='2021-08-14 19:40:42.379509', time_epoch_executed='1628995242.38' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898498

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898498/ft1_4FGL_J0152.6+0147_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898498/ft1_4FGL_J0152.6+0147_daily_bin626.fits outfile=/scratch/kocevski/898498/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin626.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=401587201.0 tmax=401846401.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.07
user 3.21
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.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/898498/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/898498/ft1_filtered_4FGL_J0152.6+0147_daily_bin626.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 0.91
user 0.29
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898498/ft1_filtered_4FGL_J0152.6+0147_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/898498/ltcube_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.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/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits
.....................!
real 11.58
user 10.70
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898498/ft1_filtered_4FGL_J0152.6+0147_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/898498/ltcube_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.fits outfile=/scratch/kocevski/898498/expmap_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.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/898498/ltcube_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.fits
.....................!
real 156.60
user 151.96
sys 4.13

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/898498/ft1_filtered_4FGL_J0152.6+0147_daily_bin626.fits scfile=/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits outfile=/scratch/kocevski/898498/cmap_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.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 0.94
user 0.34
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898498/ft1_filtered_4FGL_J0152.6+0147_daily_bin626.fits scfile=/scratch/kocevski/898498/ft2_4FGL_J0152.6+0147_daily_bin626.fits outfile=/scratch/kocevski/898498/cmap_HighResolution_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.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 0.96
user 0.33
sys 0.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68449       1.0000         .10000E-03   10000.    
     2 'norm      '    13.419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74713       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8991       1.0000         .10000E-03   10000.    
    12 'norm      '    11.280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.069       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93191       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91573       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=   7255.463     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2084 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68844        89.718        .10677E-04   -.33742E-04
   2  norm          13.419        2.5357        .22793E-06    .87993E-03
   3  Prefactor     .10000E-03    14.877        .30107E-06** at limit **
   4  Prefactor     6.1248        5.2483       -.32678E-06    .71796E-04
   5  Prefactor     .10000E-03    3.3706        .12795E-06** at limit **
   6  Prefactor     .72243        220.59       -.42296E-04    .15838E-05
   7  norm          2.9918        3.4906       -.11155E-06    .49179E-04
   8  Prefactor     7.1998        146.98       -.42286E-05   -.22909E-05
   9  Prefactor     .10000E-03    1.7468        .58353E-07** at limit **
  10  norm          21.321        16.534       -.49274E-06    .35032E-04
  11  Prefactor     8.8979        6.5682       -.14228E-06    .24148E-03
  12  norm          11.279        5.8138        .60107E-07    .86968E-03
  13  Prefactor     .10000E-03    1.6619       -.47594E-05** at limit **
  14  norm          2.3053        .88558       -.11733E-06    .33398E-03
  15  Prefactor     24.271        27.696       -.17831E-05    .18717E-03
  16  Prefactor     .10000E-03    38.480       -.30404E-05** at limit **
  17  Prefactor     .10000E-03    4.8416        .87402E-07** at limit **
  18  Prefactor     21.058        22.136        .14558E-05    .28490E-03
  19  Normalizat    .93197        .16745       -.15148E-06    .55379E-03
  20  Prefactor     .91570        .14006        .22302E-05    .59469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.688441
  norm       = 13.4193
  Prefactor  = 0.0001
  Prefactor  = 6.12483
  Prefactor  = 0.0001
  Prefactor  = 0.722432
  norm       = 2.99176
  Prefactor  = 7.19983
  Prefactor  = 0.0001
  norm       = 21.3212
  Prefactor  = 8.89793
  norm       = 11.2791
  Prefactor  = 0.0001
  norm       = 2.3053
  Prefactor  = 24.2711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0578
  Normalizat = 0.931966
  Prefactor  = 0.915698
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.463     FROM HESSE     STATUS=OK           299 CALLS     2383 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68844        68.583        .20240       -1.5542    
   2  norm          13.419        2.5494        .53587E-04   -1.4975    
   3  Prefactor     .10000E-03    14.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1248        5.2491        .16220E-03   -1.5213    
   5  Prefactor     .10000E-03    3.3888        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72243        219.23        .70021E-02   -1.5538    
   7  norm          2.9918        3.4861        .16715E-03   -1.5362    
   8  Prefactor     7.1998        147.88        .14950E-03   -1.5171    
   9  Prefactor     .10000E-03    1.7729        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.321        16.554        .86750E-04   -1.4784    
  11  Prefactor     8.8979        6.5674        .13436E-03   -1.5111    
  12  norm          11.279        5.8251        .11928E-03   -1.5036    
  13  Prefactor     .10000E-03    1.6626        .20961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3053        .88521        .47455E-04   -1.5404    
  15  Prefactor     24.271        27.731        .81339E-04   -1.4722    
  16  Prefactor     .10000E-03    38.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.058        22.254        .87261E-04   -1.4790    
  19  Normalizat    .93197        .19141        .27241E-03   -.95346    
  20  Prefactor     .91570        .16080        .22841E-03   -.95595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47646e-10
Minuit parameter uncertainties:
  1  13.758
  2  2.54946
  3  2.50857e-06
  4  5.24954
  5  4.83807e-06
  6  25.2619
  7  3.48629
  8  65.4456
  9  4.40634e-06
  10  16.5577
  11  6.56797
  12  5.82536
  13  1.97678e-05
  14  0.885217
  15  27.7458
  16  0.000104545
  17  6.99709e-06
  18  22.2624
  19  0.191551
  20  0.160882
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.406e-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:  9.157e-01  1.609e-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:  9.320e-01  1.916e-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: 3.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898498/likelihoodResults_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.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) = 7255.46535998
delta logL = -0.00268087403128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7255.4626785
delta logL = 6.09326889389e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9603       1.0000          .0000       10.000    
     3 'Normalizat'    .93197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7255.463     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    17.348        .11227E-02** at limit **
   2  Index         1.9200        9.0366        .50000        .85275E-04
   3  Normalizat    .93196        .12986E-01    .27241E-03    .22870E-04
   4  Prefactor     .91570        .10862E-01    .22841E-03    .48031E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7255.463     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      358 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    17.348        .23624E-03** at limit **
   2  Index         1.9200        9.0366        .48865E-03    .85275E-04
   3  Normalizat    .93196        .12986E-01    .26687E-05    .22870E-04
   4  Prefactor     .91570        .10862E-01    .23733E-05    .48031E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7255.463     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      405 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.927        .22454E-02** at limit **
   2  Index         1.6145        9.1648        .50000        .52705E-06
   3  Normalizat    .93196        .12039E-01    .10896E-04   -.84261E-03
   4  Prefactor     .91570        .10070E-01    .91364E-05   -.10330E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61453
  Normalizat = 0.931964
  Prefactor  = 0.915697
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      434 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.096        .44908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6145        8.8010        .50000       -.74381    
   3  Normalizat    .93196        .27658E-01    .21793E-05   -.95346    
   4  Prefactor     .91570        .23131E-01    .18273E-05   -.95595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.48135e-10
Minuit parameter uncertainties:
  1  0.000240086
  2  289.941
  3  0.0276588
  4  0.0231314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898498': 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) = 7255.46267446
delta logL = 4.65283574158e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.157e-01  2.313e-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:  9.320e-01  2.766e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/898498/cmap_HighResolution_401587201_401846401_4FGL_J0152.6+0147_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2021-08-14 19:50:10.639100', job_id='898498', GAL2='0.92', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1628995810.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='626' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 898498: <4FGL_J0152.6+0147_daily_bin626> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin626> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:47 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:37:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:37:55 2021
Terminated at Sat Aug 14 19:50:11 2021
Results reported at Sat Aug 14 19:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin626 28.1614 1.7894 401587201 401846401 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 :                                   573.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            864 sec.

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

