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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin921
RA = 28.1614, Dec = 1.7894
tmin = 478051201, tmax = 478310401
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='900025', job_status='RUN', time_executed='2021-08-14 19:45:46.050668', time_epoch_executed='1628995546.05' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900025/ft1_4FGL_J0152.6+0147_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900025/ft1_4FGL_J0152.6+0147_daily_bin921.fits outfile=/scratch/kocevski/900025/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin921.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=478051201.0 tmax=478310401.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 7.70
user 3.35
sys 4.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.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/900025/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/900025/ft1_filtered_4FGL_J0152.6+0147_daily_bin921.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 4.56
user 0.32
sys 4.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900025/ft1_filtered_4FGL_J0152.6+0147_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/900025/ltcube_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.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/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits
.....................!
real 16.80
user 11.56
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900025/ft1_filtered_4FGL_J0152.6+0147_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/900025/ltcube_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.fits outfile=/scratch/kocevski/900025/expmap_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.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/900025/ltcube_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.fits
.....................!
real 196.60
user 185.96
sys 9.34

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/900025/ft1_filtered_4FGL_J0152.6+0147_daily_bin921.fits scfile=/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits outfile=/scratch/kocevski/900025/cmap_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.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 4.51
user 0.37
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900025/ft1_filtered_4FGL_J0152.6+0147_daily_bin921.fits scfile=/scratch/kocevski/900025/ft2_4FGL_J0152.6+0147_daily_bin921.fits outfile=/scratch/kocevski/900025/cmap_HighResolution_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.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 4.43
user 0.37
sys 4.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.267       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7941       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9114       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12441E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20644E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3888       1.0000         .10000E-03   10000.    
    10 'norm      '    14.604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1832       1.0000         .10000E-03   10000.    
    12 'norm      '    9.7474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0361       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0548       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20222E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97275       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97979       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=   6084.340     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1790 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.076        91.835       -.26761E-03    .34798E-04
   2  norm          5.7965        2.0953        .29662E-05    .12478E-03
   3  Prefactor     48.592        37.512       -.13404E-04    .26150E-04
   4  Prefactor     .10000E-03    3.3388        .11448E-06** at limit **
   5  Prefactor     1.9315        8.7339       -.68654E-05   -.36874E-03
   6  Prefactor     .10000E-03    13.523       -.59099E-06** at limit **
   7  norm          .10000E-03    3.7465       -.58124E-07** at limit **
   8  Prefactor     .10000E-03    82.856       -.66368E-04** at limit **
   9  Prefactor     1.3884        3.6732       -.14731E-05   -.83582E-03
  10  norm          14.623        18.714        .27399E-05    .10545E-04
  11  Prefactor     7.2062        7.2631       -.72873E-06   -.54872E-04
  12  norm          9.7331        5.8895       -.24485E-06   -.22552E-04
  13  Prefactor     6.0332        3.7139       -.64631E-06   -.29097E-03
  14  norm          1.4197        .82574       -.19632E-06   -.18938E-03
  15  Prefactor     4.1804        41.780       -.91444E-06   -.35795E-04
  16  Prefactor     .10000E-03    62.301        .20006E-04** at limit **
  17  Prefactor     .10000E-03    5.3877       -.82922E-07** at limit **
  18  Prefactor     .10000E-03    6.7268       -.36529E-07** at limit **
  19  Normalizat    .97256        .18815        .24252E-05    .34651E-03
  20  Prefactor     .97969        .15754        .37466E-05    .19362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0759
  norm       = 5.79651
  Prefactor  = 48.5916
  Prefactor  = 0.0001
  Prefactor  = 1.93152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.38842
  norm       = 14.6235
  Prefactor  = 7.20622
  norm       = 9.73314
  Prefactor  = 6.03323
  norm       = 1.41972
  Prefactor  = 4.18042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972564
  Prefactor  = 0.979693
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.340     FROM HESSE     STATUS=OK           293 CALLS     2083 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.076        92.199        .10997E-03   -1.4985    
   2  norm          5.7965        2.0949        .63526E-04   -1.5226    
   3  Prefactor     48.592        37.503        .28856E-03   -1.4313    
   4  Prefactor     .10000E-03    3.3572        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9315        8.7448        .30068E-03   -1.5430    
   6  Prefactor     .10000E-03    13.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7775        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    82.990        .20200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3884        3.6311        .23448E-03   -1.5472    
  10  norm          14.623        18.737        .10481E-03   -1.4943    
  11  Prefactor     7.2062        7.2712        .14966E-03   -1.5171    
  12  norm          9.7331        5.8867        .12835E-03   -1.5084    
  13  Prefactor     6.0332        3.6877        .10475E-03   -1.5217    
  14  norm          1.4197        .81994        .51809E-04   -1.5470    
  15  Prefactor     4.1804        41.241        .20024E-03   -1.5299    
  16  Prefactor     .10000E-03    62.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4086        .17682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97256        .21676        .27551E-03   -.93955    
  20  Prefactor     .97969        .18265        .22574E-03   -.93410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72109e-09
Minuit parameter uncertainties:
  1  69.5959
  2  2.09488
  3  37.5213
  4  2.29181e-05
  5  8.22147
  6  1.70999e-05
  7  1.18789e-05
  8  0.000109486
  9  3.63167
  10  18.7444
  11  7.27208
  12  5.88703
  13  3.68783
  14  0.819948
  15  26.2838
  16  5.17235e-05
  17  1.83283e-05
  18  8.33137e-06
  19  0.216953
  20  0.18277
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.388e+00  3.632e+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:  9.797e-01  1.828e-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.726e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900025/likelihoodResults_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.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) = 6084.34031545
delta logL = 9.63264028542e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6084.34031536
delta logL = 1.88906597032e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3884       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9838       1.0000          .0000       10.000    
     3 'Normalizat'    .97256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97970       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=   6084.340     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      199 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3954        19.891        .92232E-02    .77272E-03
   2  Index         1.9750        .41311        .50000       -.11729E-05
   3  Normalizat    .97271        .13906E-01    .45822E-01    .14404E-04
   4  Prefactor     .97963        .11472E-01    .46013E-01    .63072E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39537
  Index      = 1.97504
  Normalizat = 0.972713
  Prefactor  = 0.979626
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.340     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3954        4.2673        .23532E-03   -1.5472    
   2  Index         1.9750        2.5376        .27411E-02   -.64976    
   3  Normalizat    .97271        .21905        .27549E-03   -.93950    
   4  Prefactor     .97963        .17790        .22574E-03   -.93412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00967e-13
Minuit parameter uncertainties:
  1  4.26822
  2  2.75146
  3  0.21925
  4  0.178005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900025': 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) = 6084.34031023
delta logL = 5.31582281837e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.395e+00  4.268e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.975e+00  2.751e+00  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.796e-01  1.780e-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.727e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/900025/cmap_HighResolution_478051201_478310401_4FGL_J0152.6+0147_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-08-14 19:56:22.060148', job_id='900025', GAL2='0.98', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628996182.06', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.32e-06', ts2='0.18', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='921' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 900025: <4FGL_J0152.6+0147_daily_bin921> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin921> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:50 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:42:25 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:42:25 2021
Terminated at Sat Aug 14 19:56:23 2021
Results reported at Sat Aug 14 19:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin921 28.1614 1.7894 478051201 478310401 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 :                                   693.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            933 sec.

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

