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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1372
RA = 28.0631, Dec = 37.2341
tmin = 594950401, tmax = 595209601
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='892847', job_status='RUN', time_executed='2021-08-14 19:22:37.209969', time_epoch_executed='1628994157.21' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892847/ft1_4FGL_J0152.2+3714_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892847/ft1_4FGL_J0152.2+3714_daily_bin1372.fits outfile=/scratch/kocevski/892847/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1372.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=594950401.0 tmax=595209601.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.56
user 2.75
sys 4.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.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/892847/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1372.fits evtable="EVENTS" outfile="/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.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 5.01
user 0.34
sys 4.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/892847/ltcube_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.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/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits
.....................!
real 17.95
user 12.49
sys 5.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/892847/ltcube_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits outfile=/scratch/kocevski/892847/expmap_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.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/892847/ltcube_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits
.....................!
real 197.26
user 184.99
sys 11.79

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.2+3714 @ 28.0631 37.2341

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits outfile=/scratch/kocevski/892847/cmap_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.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.0631 yref=37.2341 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.99
user 0.36
sys 4.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits outfile=/scratch/kocevski/892847/cmap_HighResolution_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.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.0631 yref=37.2341 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 5.01
user 0.40
sys 4.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892847/Model_4FGL_J0152.2+3714_daily_bin1372.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/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits......................!
real 27.99
user 20.35
sys 6.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits', '/scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits', expMap='/scratch/kocevski/892847/expmap_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits', expCube='/scratch/kocevski/892847/ltcube_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892847/Model_4FGL_J0152.2+3714_daily_bin1372.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+3714'

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892847/ft1_filtered_4FGL_J0152.2+3714_daily_bin1372.fits
Spacecraft file(s): /scratch/kocevski/892847/ft2_4FGL_J0152.2+3714_daily_bin1372.fits
Exposure map: /scratch/kocevski/892847/expmap_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits
Exposure cube: /scratch/kocevski/892847/ltcube_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892847/Model_4FGL_J0152.2+3714_daily_bin1372.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) = 783.770091514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    84.789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13607E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.282       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.862       1.0000         .10000E-03   10000.    
    18 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .49890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   783.6710     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3051 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.311        .97172E-05** at limit **
   2  Prefactor     .10000E-03    20.634       -.81262E-05** at limit **
   3  Prefactor     84.775        62.926       -.67694E-05    .10869E-04
   4  Prefactor     .10000E-03    83.701       -.75722E-04** at limit **
   5  norm          6.8776        5.9197       -.53865E-06   -.10539E-02
   6  Prefactor     .10001E-03    163.55        .89671E-04** at limit **
   7  Prefactor     .10000E-03    31.688       -.65726E-05** at limit **
   8  norm          .10000E-03    7.5748        .40749E-06** at limit **
   9  norm          2.4939        2.0972        .67855E-07    .28047E-04
  10  Prefactor     .10000E-03    481.71       -.47789E-03** at limit **
  11  norm          .10000E-03    3.7680        .35871E-06** at limit **
  12  Prefactor     .10000E-03    60.007        .56856E-04** at limit **
  13  Prefactor     27.282        26.232       -.66747E-06   -.15370E-03
  14  Prefactor     .10000E-03    285.06       -.61303E-04** at limit **
  15  Prefactor     .10000E-03    260.31       -.81997E-05** at limit **
  16  norm          .10001E-03    134.48        .43586E-04** at limit **
  17  Prefactor     35.883        97.835        .26749E-04   -.19546E-04
  18  norm          .10000E-03    87.338       -.75986E-04** at limit **
  19  Prefactor     .10000E-03    210.82        .73808E-04** at limit **
  20  norm          .10000E-03    13.642       -.14822E-06** at limit **
  21  norm          .10000E-03    2.9110       -.48755E-07** at limit **
  22  Prefactor     .10000E-03    126.91        .26088E-04** at limit **
  23  norm          .10000E-03    192.51        .90145E-04** at limit **
  24  Prefactor     .10000E-03    2175.5       -.15295E-02** at limit **
  25  Normalizat    1.1772        .65382        .43852E-05   -.18780E-03
  26  Prefactor     .49856        .29713       -.26878E-05   -.13466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.775
  Prefactor  = 0.0001
  norm       = 6.87764
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.49389
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2816
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 35.8828
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17719
  Prefactor  = 0.498556
 **********
 **   18 **HESSE 
 **********

 FCN=   783.6710     FROM HESSE     STATUS=OK           432 CALLS     3483 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.321        .12628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.711        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     84.775        63.641        .43626E-04   -1.3864    
   4  Prefactor     .10000E-03    83.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8776        5.9377        .57906E-04   -1.5183    
   6  Prefactor     .10001E-03    166.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.689        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7450        .15017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4939        2.1012        .35048E-04   -1.5392    
  10  Prefactor     .10000E-03    481.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7917        .53076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.282        26.248        .76699E-04   -1.4663    
  14  Prefactor     .10000E-03    285.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    260.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    134.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.883        97.938        .66921E-04   -1.4509    
  18  norm          .10000E-03    87.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    210.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.641        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9860        .93238E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    126.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    192.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2176.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1772        .76585        .30746E-03   -.87311    
  26  Prefactor     .49856        .34628        .21165E-03   -1.1204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23076e-09
Minuit parameter uncertainties:
  1  7.23007e-06
  2  0.000133996
  3  63.6926
  4  9.5474e-05
  5  5.93817
  6  0.00238594
  7  8.28711e-06
  8  1.57237e-06
  9  2.10122
  10  8.36168e-05
  11  6.12452e-06
  12  3.70897e-05
  13  26.2594
  14  0.00171513
  15  1.76765e-05
  16  0.00193528
  17  98.3809
  18  0.000309438
  19  4.60153e-07
  20  0.000142441
  21  4.25423e-07
  22  5.94234e-06
  23  5.88236e-06
  24  4.90752e-05
  25  0.773315
  26  0.34776
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  3.709e-05  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  4.986e-01  3.478e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.177e+00  7.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 5.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892847/likelihoodResults_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.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) = 783.671026357
delta logL = -7.54065886213e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 783.670951385
delta logL = -4.344806257e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   783.6710     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10271E-03    29.483        .18142E-01** at limit **
   2  Index         2.5639        6.2150        .50000        .60517E-05
   3  Normalizat    1.1772        .12728E-01    .30745E-03    .33309E-04
   4  Prefactor     .49855        .59459E-02    .21166E-03    .52363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102711
  Index      = 2.56392
  Normalizat = 1.17721
  Prefactor  = 0.498552
 **********
 **   18 **HESSE 
 **********

 FCN=   783.6710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10271E-03    291.71        .18802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5639        6.2820        .50000       -.50890    
   3  Normalizat    1.1772        .40324E-01    .61491E-04   -.87310    
   4  Prefactor     .49855        .18838E-01    .84663E-05   -1.1204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15505e-09
Minuit parameter uncertainties:
  1  0.0565224
  2  443.584
  3  0.0403254
  4  0.0188386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892847': 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) = 783.670951199
delta logL = -2.48758624366e-07

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.027e-04  5.652e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.564e+00  4.436e+02  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  4.986e-01  1.884e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.177e+00  4.033e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.063 37.234

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/892847/cmap_HighResolution_594950401_595209601_4FGL_J0152.2+3714_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-02', job_status='DONE', photon_flux_upper_limit='5.75e-07', time_completed='2021-08-14 19:29:53.435679', job_id='892847', GAL2='0.50', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1628994593.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='-2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1372' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:29:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 892847: <4FGL_J0152.2+3714_daily_bin1372> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1372> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:15:36 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:21:06 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:21:06 2021
Terminated at Sat Aug 14 19:29:54 2021
Results reported at Sat Aug 14 19:29:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1372 28.0631 37.2341 594950401 595209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+3714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   499.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            858 sec.

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

