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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin531
RA = 28.1614, Dec = 1.7894
tmin = 376963201, tmax = 377222401
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='898361', job_status='RUN', time_executed='2021-08-14 19:39:35.226070', time_epoch_executed='1628995175.23' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898361/ft1_4FGL_J0152.6+0147_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898361/ft1_4FGL_J0152.6+0147_daily_bin531.fits outfile=/scratch/kocevski/898361/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin531.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=376963201.0 tmax=377222401.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 5.36
user 3.43
sys 1.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.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/898361/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/898361/ft1_filtered_4FGL_J0152.6+0147_daily_bin531.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.79
user 0.28
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898361/ft1_filtered_4FGL_J0152.6+0147_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/898361/ltcube_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.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/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits
.....................!
real 11.43
user 9.69
sys 1.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898361/ft1_filtered_4FGL_J0152.6+0147_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/898361/ltcube_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.fits outfile=/scratch/kocevski/898361/expmap_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.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/898361/ltcube_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.fits
.....................!
real 154.75
user 148.59
sys 5.57

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/898361/ft1_filtered_4FGL_J0152.6+0147_daily_bin531.fits scfile=/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits outfile=/scratch/kocevski/898361/cmap_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.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.77
user 0.34
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898361/ft1_filtered_4FGL_J0152.6+0147_daily_bin531.fits scfile=/scratch/kocevski/898361/ft2_4FGL_J0152.6+0147_daily_bin531.fits outfile=/scratch/kocevski/898361/cmap_HighResolution_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.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.86
user 0.33
sys 1.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.898       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3956       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .94701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.078       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0268       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91870       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=   5057.854     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2085 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.876        93.841       -.26832E-04   -.20622E-04
   2  norm          1.2639        1.8785        .13269E-05    .55652E-03
   3  Prefactor     .10000E-03    18.971        .24447E-05** at limit **
   4  Prefactor     2.1863        8.5288       -.48055E-06   -.64297E-04
   5  Prefactor     .10000E-03    9.8324       -.12916E-06** at limit **
   6  Prefactor     .10000E-03    29.526       -.31037E-05** at limit **
   7  norm          .10000E-03    3.3690        .14177E-06** at limit **
   8  Prefactor     .10000E-03    174.97       -.23763E-05** at limit **
   9  Prefactor     .10000E-03    6.3954        .82109E-09** at limit **
  10  norm          .10000E-03    5.2907        .44269E-07** at limit **
  11  Prefactor     1.3959        .75417        .90479E-08   -.10595E-02
  12  norm          7.3938        5.0146       -.21249E-06    .14186E-04
  13  Prefactor     .10000E-03    .72828       -.23609E-07** at limit **
  14  norm          .94718        .84916       -.10028E-07    .43995E-05
  15  Prefactor     .10000E-03    14.089       -.97527E-05** at limit **
  16  Prefactor     .10000E-03    43.835        .28103E-05** at limit **
  17  Prefactor     .10000E-03    13.570        .82061E-05** at limit **
  18  Prefactor     24.070        30.334       -.77376E-06    .45332E-04
  19  Normalizat    1.0270        .19377        .57607E-06   -.62372E-04
  20  Prefactor     .91858        .15549       -.26884E-07   -.53572E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8764
  norm       = 1.26391
  Prefactor  = 0.0001
  Prefactor  = 2.18632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.39593
  norm       = 7.39379
  Prefactor  = 0.0001
  norm       = 0.947179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0701
  Normalizat = 1.02697
  Prefactor  = 0.918577
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.854     FROM HESSE     STATUS=OK           289 CALLS     2374 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.876        93.784        .58550E-04   -1.4338    
   2  norm          1.2639        1.8336        .10358E-03   -1.5483    
   3  Prefactor     .10000E-03    18.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1863        8.4668        .27824E-03   -1.5412    
   5  Prefactor     .10000E-03    9.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3787        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    175.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6197        .35100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.2930        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3959        8.6327        .18378E-02   -1.5472    
  12  norm          7.3938        5.0401        .12620E-03   -1.5164    
  13  Prefactor     .10000E-03    .73240        .59248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .94718        .81867        .59216E-03   -1.5513    
  15  Prefactor     .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.070        30.397        .81633E-04   -1.4726    
  19  Normalizat    1.0270        .22271        .25369E-03   -.92132    
  20  Prefactor     .91858        .18212        .21583E-03   -.95495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81186e-09
Minuit parameter uncertainties:
  1  94.0816
  2  1.83367
  3  3.81536e-06
  4  8.47144
  5  3.99442e-06
  6  1.26616e-05
  7  1.31914e-06
  8  6.39958e-05
  9  5.77943e-06
  10  4.28056e-07
  11  6.94405
  12  5.04039
  13  5.03324e-07
  14  0.818675
  15  7.33716e-06
  16  7.35734e-06
  17  5.60524e-05
  18  30.4164
  19  0.222908
  20  0.182239
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  5.779e-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.186e-01  1.822e-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:  1.027e+00  2.229e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898361/likelihoodResults_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.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) = 5057.85442765
delta logL = -0.000721096538655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5057.85370838
delta logL = -1.82823714567e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11768E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9596       1.0000          .0000       10.000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91878       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=   5057.854     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4477        .90712E-02** at limit **
   2  Index         1.9389        7.3204        .50000        .21493E-04
   3  Normalizat    1.0270        .29932E-02    .42504E-01    .16293E-03
   4  Prefactor     .91858        .24348E-02    .45244E-01    .18805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.93887
  Normalizat = 1.02697
  Prefactor  = 0.918576
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.854     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.75        .35814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9389        5.8890        .50000       -.65887    
   3  Normalizat    1.0270        .21438E-01    .25369E-03   -.92132    
   4  Prefactor     .91858        .17437E-01    .21583E-03   -.95495    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.22696e-07
Minuit parameter uncertainties:
  1  0.0010836
  2  147.461
  3  0.0214387
  4  0.0174369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898361': 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) = 5057.85370627
delta logL = 2.79652340396e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.084e-03  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.939e+00  1.475e+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.186e-01  1.744e-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:  1.027e+00  2.144e-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/898361/cmap_HighResolution_376963201_377222401_4FGL_J0152.6+0147_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-08-14 19:47:26.615002', job_id='898361', GAL2='0.92', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1628995646.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='531' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 898361: <4FGL_J0152.6+0147_daily_bin531> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin531> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:38 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:38 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:36:38 2021
Terminated at Sat Aug 14 19:47:27 2021
Results reported at Sat Aug 14 19:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin531 28.1614 1.7894 376963201 377222401 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 :                                   486.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            709 sec.

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

