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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin587
RA = 28.0727, Dec = 22.1133
tmin = 391478401, tmax = 391737601
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='873759', job_status='RUN', time_executed='2021-08-14 18:17:23.952481', time_epoch_executed='1628990243.95' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873759

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873759/ft1_4FGL_J0152.2+2206_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873759/ft1_4FGL_J0152.2+2206_daily_bin587.fits outfile=/scratch/kocevski/873759/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin587.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=391478401.0 tmax=391737601.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 9.82
user 4.10
sys 5.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.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/873759/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.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 6.00
user 0.34
sys 5.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/873759/ltcube_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.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/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits
.....................!
real 18.85
user 12.29
sys 6.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/873759/ltcube_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits outfile=/scratch/kocevski/873759/expmap_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.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/873759/ltcube_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits
.....................!
real 197.49
user 185.58
sys 11.36

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

Setting source of interest to:
4FGL J0152.2+2206 @ 28.0727 22.1133

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits outfile=/scratch/kocevski/873759/cmap_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.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.0727 yref=22.1133 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.90
user 0.37
sys 5.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits outfile=/scratch/kocevski/873759/cmap_HighResolution_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.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.0727 yref=22.1133 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.88
user 0.39
sys 5.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873759/Model_4FGL_J0152.2+2206_daily_bin587.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/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits.....................!
real 99.49
user 90.79
sys 8.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits', '/scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits', expMap='/scratch/kocevski/873759/expmap_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits', expCube='/scratch/kocevski/873759/ltcube_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873759/Model_4FGL_J0152.2+2206_daily_bin587.xml', optimizer='MINUIT')

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

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/873759/ft1_filtered_4FGL_J0152.2+2206_daily_bin587.fits
Spacecraft file(s): /scratch/kocevski/873759/ft2_4FGL_J0152.2+2206_daily_bin587.fits
Exposure map: /scratch/kocevski/873759/expmap_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits
Exposure cube: /scratch/kocevski/873759/ltcube_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873759/Model_4FGL_J0152.2+2206_daily_bin587.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) = 7994.43054318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.120       1.0000         .10000E-03   10000.    
     9 'norm      '    .25237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6019       1.0000         .10000E-03   10000.    
    13 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0553       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7994.429     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2514 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5344        .59767E-08** at limit **
   2  norm          .10000E-03    .14566        .12554E-07** at limit **
   3  Prefactor     .10000E-03    40.288        .47888E-06** at limit **
   4  Prefactor     .10000E-03    1.7740        .16856E-07** at limit **
   5  Prefactor     8.5812        11.306       -.79377E-07   -.53075E-04
   6  Prefactor     .10000E-03    7.1435        .62284E-07** at limit **
   7  Prefactor     .10000E-03    16.878        .19064E-06** at limit **
   8  Prefactor     39.146        75.016        .69210E-05    .92164E-04
   9  norm          .25201        .49579        .44826E-06   -.19154E-03
  10  Prefactor     19.682        13.592        .24624E-06   -.19473E-03
  11  Prefactor     .10000E-03    7.1576       -.58177E-07** at limit **
  12  Prefactor     7.6020        6.4132        .45835E-07   -.11076E-04
  13  norm          .10000E-03    3.3569       -.28224E-06** at limit **
  14  Prefactor     .10000E-03    143.89       -.12817E-07** at limit **
  15  Prefactor     .10000E-03    1.1985        .19058E-07** at limit **
  16  Prefactor     9.2019        9.0943        .12693E-05   -.54304E-03
  17  Prefactor     .10000E-03    2.0771        .45969E-08** at limit **
  18  norm          .10000E-03    26.998       -.45386E-07** at limit **
  19  Prefactor     .10000E-03    19.638       -.60101E-06** at limit **
  20  Prefactor     .10000E-03    27.796       -.15614E-05** at limit **
  21  Prefactor     .10000E-03    24.711        .17787E-05** at limit **
  22  Normalizat    1.0553        .21351       -.97348E-06   -.49385E-04
  23  Prefactor     1.1005        .11416       -.25226E-06   -.79180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.58119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1458
  norm       = 0.252008
  Prefactor  = 19.6816
  Prefactor  = 0.0001
  Prefactor  = 7.60196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20186
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05526
  Prefactor  = 1.10048
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.429     FROM HESSE     STATUS=OK           362 CALLS     2876 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .16465        .66563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7794        .11629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5812        11.358        .13685E-03   -1.5122    
   6  Prefactor     .10000E-03    7.2009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.146        77.044        .64083E-04   -1.4456    
   9  norm          .25201        .45345        .91373E-03   -1.5608    
  10  Prefactor     19.682        13.677        .45142E-03   -1.4820    
  11  Prefactor     .10000E-03    7.1594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6020        6.4141        .14545E-03   -1.5156    
  13  norm          .10000E-03    3.4707        .31953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    143.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2487        .19110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2019        9.4423        .66063E-03   -1.5101    
  17  Prefactor     .10000E-03    2.0866        .12584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0553        .24463        .34963E-03   -.91201    
  23  Prefactor     1.1005        .13081        .18974E-03   -.89451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40261e-09
Minuit parameter uncertainties:
  1  1.08883e-06
  2  2.68173e-07
  3  6.01422e-05
  4  4.09497e-07
  5  11.3609
  6  9.95766e-06
  7  2.89938e-06
  8  77.2408
  9  0.453453
  10  13.6787
  11  5.05708e-06
  12  6.41464
  13  1.68151e-05
  14  1.06767e-05
  15  2.6501e-06
  16  9.44385
  17  1.30709e-06
  18  3.48118e-06
  19  3.91652e-05
  20  7.60591e-05
  21  0.000181538
  22  0.244895
  23  0.130844
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.968e+01  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.100e+00  1.308e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.055e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 6.07e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.49e-05

TS (Fixed Index): 2.97
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 2.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873759/likelihoodResults_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.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) = 7994.40401602
delta logL = 0.0252554227545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7994.39846685
delta logL = 0.0308045965248

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7994.398     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      209 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.134        387.70        .21782E-02    .11135E-03
   2  Index         2.5189        6.1780        .23469        .50769E-04
   3  Normalizat    1.0654        .10414        .78659E-01    .35682E-04
   4  Prefactor     1.0963        .66413E-01    .37730E-01   -.26584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1341
  Index      = 2.51889
  Normalizat = 1.06535
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.398     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.134        15.472        .87126E-04   -1.4788    
   2  Index         2.5189        .62289        .89627E-02   -.51924    
   3  Normalizat    1.0654        .23828        .34818E-03   -.90872    
   4  Prefactor     1.0963        .13059        .19005E-03   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7578e-11
Minuit parameter uncertainties:
  1  15.4745
  2  0.62505
  3  0.238518
  4  0.130633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873759': 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) = 7994.39846685
delta logL = 0.0308045966794

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  2.113e+01  1.547e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.519e+00  6.251e-01  0.000e+00  1.000e+01 (-1.000e+00)
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.096e+00  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.065e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 28.073 22.113
Photon Index (Free Index): 2.52 +/- 0.63
Photon Flux (Free Index): 8.03e-08 +/- 6.38e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/873759/cmap_HighResolution_391478401_391737601_4FGL_J0152.2+2206_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='2.28e-05', photon_flux_error='6.07e-08', dlogl='3.08e-02', energy_flux='2.14e-05', photon_flux2='8.03e-08', job_status='DONE', time_completed='2021-08-14 18:31:07.638417', photon_index_error2='0.63', photon_index2='2.52', ts='2.97', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.73e-05', EG='1.06', time_epoch_completed='1628991067.64', return_code='0', job_id='873759', GAL2='1.10', EG2='1.07', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.38e-08', ts2='3.02', photon_index='2.68' WHERE bin_id='587' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 873759: <4FGL_J0152.2+2206_daily_bin587> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin587> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 18:15:28 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:15:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 18:15:37 2021
Terminated at Sat Aug 14 18:31:09 2021
Results reported at Sat Aug 14 18:31:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin587 28.0727 22.1133 391478401 391737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+2206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   906.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            941 sec.

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

