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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin726
RA = 28.1614, Dec = 1.7894
tmin = 427507201, tmax = 427766401
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='898627', job_status='RUN', time_executed='2021-08-14 19:42:52.247248', time_epoch_executed='1628995372.25' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898627/ft1_4FGL_J0152.6+0147_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898627/ft1_4FGL_J0152.6+0147_daily_bin726.fits outfile=/scratch/kocevski/898627/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin726.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=427507201.0 tmax=427766401.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 6.26
user 5.15
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898627/ft1_filtered_4FGL_J0152.6+0147_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/898627/ltcube_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.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/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits
.....................!
real 17.45
user 16.12
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898627/ft1_filtered_4FGL_J0152.6+0147_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/898627/ltcube_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.fits outfile=/scratch/kocevski/898627/expmap_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.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/898627/ltcube_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.fits
.....................!
real 191.96
user 185.54
sys 5.91

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/898627/ft1_filtered_4FGL_J0152.6+0147_daily_bin726.fits scfile=/scratch/kocevski/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits outfile=/scratch/kocevski/898627/cmap_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.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.34
user 0.38
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898627/ft1_filtered_4FGL_J0152.6+0147_daily_bin726.fits scfile=/scratch/kocevski/898627/ft2_4FGL_J0152.6+0147_daily_bin726.fits outfile=/scratch/kocevski/898627/cmap_HighResolution_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.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.35
user 0.39
sys 0.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36201E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13952E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33980E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12612E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11625E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3327       1.0000         .10000E-03   10000.    
    10 'norm      '    .11030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4855       1.0000         .10000E-03   10000.    
    12 'norm      '    7.1086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33082       1.0000         .10000E-03   10000.    
    14 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23070E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87815       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2988       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=   4320.893     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2057 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    156.36        .15403E-05** at limit **
   2  norm          .10000E-03    1.5651        .17368E-06** at limit **
   3  Prefactor     .10000E-03    81.951       -.90160E-07** at limit **
   4  Prefactor     16.337        12.069        .54621E-07   -.23168E-04
   5  Prefactor     .10000E-03    13.353        .49585E-07** at limit **
   6  Prefactor     .10000E-03    30.401       -.10440E-05** at limit **
   7  norm          .10000E-03    3.9725        .34949E-07** at limit **
   8  Prefactor     .10000E-03    72.187       -.16116E-05** at limit **
   9  Prefactor     6.3330        5.4345       -.66034E-07    .39817E-04
  10  norm          .10000E-03    16.676        .39087E-06** at limit **
  11  Prefactor     2.4849        7.2900        .41989E-05    .87973E-04
  12  norm          7.1038        5.7045        .79738E-07    .15805E-03
  13  Prefactor     .32115        2.5772        .23317E-06   -.66595E-03
  14  norm          .10000E-03    .86788       -.20929E-06** at limit **
  15  Prefactor     26.735        38.966        .73184E-05   -.13116E-05
  16  Prefactor     .10000E-03    75.094       -.19082E-05** at limit **
  17  Prefactor     7.2598        8.7820        .19038E-07    .22657E-05
  18  Prefactor     .10000E-03    41.833       -.36897E-08** at limit **
  19  Normalizat    .87804        .23557        .67504E-06    .11242E-03
  20  Prefactor     1.2986        .19754       -.11059E-05    .22902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33297
  norm       = 0.0001
  Prefactor  = 2.48489
  norm       = 7.10384
  Prefactor  = 0.321154
  norm       = 0.0001
  Prefactor  = 26.7349
  Prefactor  = 0.0001
  Prefactor  = 7.25984
  Prefactor  = 0.000100004
  Normalizat = 0.878041
  Prefactor  = 1.29862
 **********
 **   18 **HESSE 
 **********

 FCN=   4320.893     FROM HESSE     STATUS=OK           293 CALLS     2350 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    156.71        .21309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.3644        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.078        .21336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.337        12.021        .99073E-04   -1.4899    
   5  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9820        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3330        5.4374        .13756E-03   -1.5205    
  10  norm          .10000E-03    16.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4849        7.3243        .12965E-02   -1.5393    
  12  norm          7.1038        5.6913        .13428E-03   -1.5175    
  13  Prefactor     .32115        8.8443        .18032E-02   -1.5595    
  14  norm          .10000E-03    2.0984        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.735        39.792        .77367E-04   -1.4673    
  16  Prefactor     .10000E-03    75.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2598        8.7806        .14888E-03   -1.5169    
  18  Prefactor     .10000E-03    41.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87804        .27398        .30879E-03   -.97236    
  20  Prefactor     1.2986        .23135        .21474E-03   -.83348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58773e-09
Minuit parameter uncertainties:
  1  0.000145824
  2  2.73353e-05
  3  2.09646e-05
  4  12.0225
  5  1.34964e-05
  6  6.66151e-05
  7  1.75405e-06
  8  0.000164679
  9  5.43782
  10  2.45465e-06
  11  7.32695
  12  5.69172
  13  3.37071
  14  1.07764e-07
  15  39.8315
  16  2.72486e-05
  17  8.7822
  18  0.000808146
  19  0.274419
  20  0.231529
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.333e+00  5.438e+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.299e+00  2.315e-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:  8.780e-01  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.74
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 2.19e-05

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) = 4320.3714024
delta logL = 0.521366504245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4320.37067634
delta logL = 0.522092563533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3329       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2960       1.0000          .0000       10.000    
     3 'Normalizat'    .89644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2966       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=   4320.371     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3176        7.2254        .39875E-02   -.11388E-03
   2  Index         1.2962        .60687        .25889       -.17383E-04
   3  Normalizat    .89632        .23050        .69156E-01    .63684E-04
   4  Prefactor     1.2968        .19067        .48622E-01    .29478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.31759
  Index      = 1.29617
  Normalizat = 0.896315
  Prefactor  = 1.29677
 **********
 **   18 **HESSE 
 **********

 FCN=   4320.371     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3176        7.3478        .15750E-03   -1.5205    
   2  Index         1.2962        .70929        .98517E-02   -.83421    
   3  Normalizat    .89632        .26819        .30597E-03   -.96590    
   4  Prefactor     1.2968        .22330        .21494E-03   -.83403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75248e-10
Minuit parameter uncertainties:
  1  7.34883
  2  0.714675
  3  0.26859
  4  0.223465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898627': 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) = 4320.37067279
delta logL = 0.522096117856

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.318e+00  7.349e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.296e+00  7.147e-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.297e+00  2.235e-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:  8.963e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.78
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.30 +/- 0.71
Photon Flux (Free Index): 1.15e-08 +/- 1.80e-08
Energy Flux (Free Index): 7.11e-05 +/- 1.02e-04

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/898627/cmap_HighResolution_427507201_427766401_4FGL_J0152.6+0147_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='7.11e-05', photon_flux_error='3.04e-08', dlogl='5.22e-01', energy_flux='2.55e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-08-14 19:51:25.663256', photon_index_error2='0.71', photon_index2='1.30', ts='10.74', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.88', time_epoch_completed='1628995885.66', return_code='0', job_id='898627', GAL2='1.30', EG2='0.90', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='1.80e-08', ts2='11.78', photon_index='1.98' WHERE bin_id='726' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 898627: <4FGL_J0152.6+0147_daily_bin726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin726 28.1614 1.7894 427507201 427766401 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 :                                   524.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            929 sec.

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

