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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin736
RA = 28.1614, Dec = 1.7894
tmin = 430099201, tmax = 430358401
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='899736', job_status='RUN', time_executed='2021-08-14 19:45:37.171597', time_epoch_executed='1628995537.17' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899736/ft1_4FGL_J0152.6+0147_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899736/ft1_4FGL_J0152.6+0147_daily_bin736.fits outfile=/scratch/kocevski/899736/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin736.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=430099201.0 tmax=430358401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 13.08
user 8.65
sys 4.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.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/899736/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin736.fits evtable="EVENTS" outfile="/scratch/kocevski/899736/ft1_filtered_4FGL_J0152.6+0147_daily_bin736.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.25
user 0.27
sys 3.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899736/ft1_filtered_4FGL_J0152.6+0147_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/899736/ltcube_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.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/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits
.....................!
real 15.26
user 10.18
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899736/ft1_filtered_4FGL_J0152.6+0147_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/899736/ltcube_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.fits outfile=/scratch/kocevski/899736/expmap_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.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/899736/ltcube_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.fits
.....................!
real 165.03
user 152.01
sys 9.97

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/899736/ft1_filtered_4FGL_J0152.6+0147_daily_bin736.fits scfile=/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits outfile=/scratch/kocevski/899736/cmap_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.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.25
user 0.30
sys 3.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899736/ft1_filtered_4FGL_J0152.6+0147_daily_bin736.fits scfile=/scratch/kocevski/899736/ft2_4FGL_J0152.6+0147_daily_bin736.fits outfile=/scratch/kocevski/899736/cmap_HighResolution_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.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.26
user 0.32
sys 3.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.7859       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12665E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9062       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1593       1.0000         .10000E-03   10000.    
    14 'norm      '    .21312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.721       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88890       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=   6409.567     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2082 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.004        .34597E-04** at limit **
   2  norm          4.7858        2.2444       -.32441E-07   -.42811E-04
   3  Prefactor     .10000E-03    77.052       -.53389E-04** at limit **
   4  Prefactor     .10000E-03    2.6162       -.10372E-07** at limit **
   5  Prefactor     8.8906        9.2859        .87365E-07    .48864E-04
   6  Prefactor     .10000E-03    53.132        .34376E-04** at limit **
   7  norm          .10000E-03    4.1728       -.29056E-06** at limit **
   8  Prefactor     .10000E-03    68.430       -.81739E-05** at limit **
   9  Prefactor     .10000E-03    3.5238       -.98996E-08** at limit **
  10  norm          .10000E-03    4.4445       -.43140E-07** at limit **
  11  Prefactor     4.9064        5.3909       -.28924E-05   -.27975E-03
  12  norm          8.3677        4.7538        .31381E-06   -.40427E-04
  13  Prefactor     4.1597        2.6753       -.49592E-07   -.10912E-03
  14  norm          .21331        .65549       -.56017E-06   -.25870E-02
  15  Prefactor     31.061        24.586       -.64219E-06    .50020E-04
  16  Prefactor     .10000E-03    32.233       -.27892E-04** at limit **
  17  Prefactor     .10000E-03    22.406        .76769E-05** at limit **
  18  Prefactor     44.722        23.917        .32330E-06    .38948E-04
  19  Normalizat    1.2071        .19121        .95710E-07    .83654E-04
  20  Prefactor     .88887        .15358        .84440E-06    .60441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.78583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.89059
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.90637
  norm       = 8.36772
  Prefactor  = 4.15972
  norm       = 0.213309
  Prefactor  = 31.061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7216
  Normalizat = 1.20708
  Prefactor  = 0.888873
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.567     FROM HESSE     STATUS=OK           295 CALLS     2377 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7858        2.2448        .79810E-04   -1.5270    
   3  Prefactor     .10000E-03    76.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6193        .12646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8906        9.2857        .13442E-03   -1.5112    
   6  Prefactor     .10000E-03    53.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.767        .31836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.164        .29002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.4492        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9064        5.4039        .18159E-03   -1.5265    
  12  norm          8.3677        4.7544        .12428E-03   -1.5129    
  13  Prefactor     4.1597        2.6679        .96209E-04   -1.5300    
  14  norm          .21331        .65207        .10721E-03   -1.5616    
  15  Prefactor     31.061        24.541        .71891E-04   -1.4593    
  16  Prefactor     .10000E-03    32.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.722        23.913        .59952E-04   -1.4369    
  19  Normalizat    1.2071        .22219        .26597E-03   -.86384    
  20  Prefactor     .88887        .18017        .23934E-03   -.96531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51223e-09
Minuit parameter uncertainties:
  1  1.33537e-05
  2  2.24488
  3  0.000121744
  4  1.04994e-06
  5  9.28719
  6  0.000116285
  7  0.000148678
  8  1.02483e-05
  9  7.12823e-05
  10  3.64249e-06
  11  5.40442
  12  4.75461
  13  2.66795
  14  0.652089
  15  24.5488
  16  3.28719e-05
  17  7.74994e-05
  18  23.9186
  19  0.222361
  20  0.180289
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  7.128e-05  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:  8.889e-01  1.803e-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.207e+00  2.224e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899736/likelihoodResults_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.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) = 6409.56727809
delta logL = -0.000466559481538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.56681268
delta logL = -1.15503371489e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13134E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0222       1.0000          .0000       10.000    
     3 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88890       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=   6409.567     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      230 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24491E-01    .64213E-01** at limit **
   2  Index         2.0671        5.2362        .50000       -.36039E-04
   3  Normalizat    1.2071        .51565E-03    .60138E-01    .18963E-04
   4  Prefactor     .88887        .40701E-03    .44863E-01    .40463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.06708
  Normalizat = 1.20708
  Prefactor  = 0.888874
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.567     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.992        .23406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0671        6.0198        .20000       -.62683    
   3  Normalizat    1.2071        .21970        .26597E-03   -.86384    
   4  Prefactor     .88887        .17351        .23934E-03   -.96531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98668e-09
Minuit parameter uncertainties:
  1  0.000362446
  2  4.2476
  3  0.21987
  4  0.173615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899736': 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) = 6409.56681083
delta logL = 6.9922862167e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.624e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.067e+00  4.248e+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:  8.889e-01  1.736e-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.207e+00  2.199e-01  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/899736/cmap_HighResolution_430099201_430358401_4FGL_J0152.6+0147_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-08-14 19:55:44.905442', job_id='899736', GAL2='0.89', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1628996144.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='736' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 899736: <4FGL_J0152.6+0147_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin736 28.1614 1.7894 430099201 430358401 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 :                                   651.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             186.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            920 sec.

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

