aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 36 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 = 7476
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1664
RA = 28.0727, Dec = 22.1133
tmin = 670636801, tmax = 670896001
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='307354', job_status='RUN', time_executed='2022-04-06 00:07:15.254253', time_epoch_executed='1649228835.25' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307354/ft1_4FGL_J0152.2+2206_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307354/ft1_4FGL_J0152.2+2206_daily_bin1664.fits outfile=/scratch/kocevski/307354/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1664.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=670636801.0 tmax=670896001.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 8.57
user 5.16
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.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/307354/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1664.fits evtable="EVENTS" outfile="/scratch/kocevski/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.97
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 634

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/307354/ltcube_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.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/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits
.....................!
real 13.10
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/307354/ltcube_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits outfile=/scratch/kocevski/307354/expmap_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.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/307354/ltcube_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits
.....................!
real 195.69
user 185.90
sys 4.50

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/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits scfile=/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits outfile=/scratch/kocevski/307354/cmap_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.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.93
user 0.37
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits scfile=/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits outfile=/scratch/kocevski/307354/cmap_HighResolution_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.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 3.19
user 0.39
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits', '/scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits', expMap='/scratch/kocevski/307354/expmap_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits', expCube='/scratch/kocevski/307354/ltcube_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307354/Model_4FGL_J0152.2+2206_daily_bin1664.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/307354/ft1_filtered_4FGL_J0152.2+2206_daily_bin1664.fits
Spacecraft file(s): /scratch/kocevski/307354/ft2_4FGL_J0152.2+2206_daily_bin1664.fits
Exposure map: /scratch/kocevski/307354/expmap_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits
Exposure cube: /scratch/kocevski/307354/ltcube_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307354/Model_4FGL_J0152.2+2206_daily_bin1664.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) = 7286.66771119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .23029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30055E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .84892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9551       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12563E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6640       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.905       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3889       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98019       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=   7286.657     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2568 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.975       -.23296E-06** at limit **
   2  norm          .22967        .61510        .27138E-06   -.43385E-04
   3  Prefactor     .10000E-03    17.269        .35104E-07** at limit **
   4  Prefactor     .10000E-03    1.4895        .26214E-08** at limit **
   5  Prefactor     .10000E-03    9.5514        .11715E-06** at limit **
   6  Prefactor     20.358        18.323       -.13744E-05   -.60052E-04
   7  Prefactor     56.968        51.683       -.49082E-06    .50189E-05
   8  Prefactor     .10000E-03    503.12       -.26523E-05** at limit **
   9  norm          .84972        .71834       -.32336E-06   -.27492E-03
  10  Prefactor     .10000E-03    5.9335        .18693E-06** at limit **
  11  Prefactor     .10000E-03    12.878        .39253E-07** at limit **
  12  Prefactor     4.9547        5.9360        .15987E-06   -.10047E-04
  13  norm          .10000E-03    2.3532        .67433E-07** at limit **
  14  Prefactor     .10000E-03    56.306        .10521E-06** at limit **
  15  Prefactor     .10000E-03    1.3295        .16839E-06** at limit **
  16  Prefactor     .10000E-03    3.0433        .41834E-07** at limit **
  17  Prefactor     .10000E-03    1.8925       -.87603E-08** at limit **
  18  norm          2.6029        1133.7       -.49063E-05   -.86345E-06
  19  Prefactor     11.851        46.891        .12625E-05   -.59986E-05
  20  Prefactor     25.905        17.174        .11422E-06   -.18481E-04
  21  Prefactor     .10000E-03    53.204        .18664E-07** at limit **
  22  Normalizat    1.3888        .23633       -.17466E-05   -.76790E-04
  23  Prefactor     .98025        .12292        .58294E-07   -.19950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.229674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3582
  Prefactor  = 56.9684
  Prefactor  = 0.0001
  norm       = 0.849719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60295
  Prefactor  = 11.8508
  Prefactor  = 25.9045
  Prefactor  = 0.0001
  Normalizat = 1.38884
  Prefactor  = 0.980246
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.657     FROM HESSE     STATUS=OK           368 CALLS     2936 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .22967        .79948        .10122E-02   -1.5612    
   3  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4904        .10173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.358        18.310        .88789E-04   -1.4805    
   7  Prefactor     56.968        51.664        .53162E-04   -1.4197    
   8  Prefactor     .10000E-03    504.11        .19826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .84972        .69024        .63919E-03   -1.5524    
  10  Prefactor     .10000E-03    5.9674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9547        5.9285        .18067E-03   -1.5263    
  13  norm          .10000E-03    2.4017        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4807        .18949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0528        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8950        .11468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6029        1175.8        .24971E-03   -1.5385    
  19  Prefactor     11.851        46.907        .11634E-03   -1.5019    
  20  Prefactor     25.905        17.165        .78707E-04   -1.4690    
  21  Prefactor     .10000E-03    53.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3888        .26997        .33300E-03   -.80952    
  23  Prefactor     .98025        .14297        .20780E-03   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31562e-08
Minuit parameter uncertainties:
  1  4.29498e-05
  2  0.799514
  3  1.93601e-05
  4  1.84646e-06
  5  2.9837e-05
  6  18.3147
  7  51.7042
  8  0.000567568
  9  0.690244
  10  1.31185e-05
  11  5.40705e-06
  12  5.92917
  13  5.54942e-06
  14  7.44784e-05
  15  2.62949e-06
  16  4.4095e-06
  17  1.81397e-06
  18  112.952
  19  47.0536
  20  17.1687
  21  8.07673e-05
  22  0.270252
  23  0.143028
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.000e-04  1.312e-05  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:  9.802e-01  1.430e-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.389e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307354/likelihoodResults_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.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) = 7286.65738182
delta logL = -0.000798269889856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7286.65658362
delta logL = -7.31251930119e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6713       1.0000          .0000       10.000    
     3 'Normalizat'    1.3888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98028       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7286.657     FROM MIGRAD    STATUS=FAILED        96 CALLS      249 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    414.80        .18142E-02** at limit **
   2  Index         2.4643        5.7989        .50000       -.23244E-06
   3  Normalizat    1.3888        .55231E-01    .33300E-03   -.18395E-03
   4  Prefactor     .98025        .29770E-01    .20780E-03   -.28898E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7286.657     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      426 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    414.80        .38991E-03** at limit **
   2  Index         2.4643        5.7989        .59955E-05   -.23244E-06
   3  Normalizat    1.3888        .55231E-01    .17529E-06   -.18395E-03
   4  Prefactor     .98025        .29770E-01    .85792E-07   -.28898E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7286.657     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      460 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1299.1        .36285E-03** at limit **
   2  Index         2.4671        8.3106        .50000       -.97930E-07
   3  Normalizat    1.3888        .16549        .13320E-04   -.18316E-03
   4  Prefactor     .98025        .89212E-01    .41559E-04   -.28789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46711
  Normalizat = 1.38884
  Prefactor  = 0.980247
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.657     FROM HESSE     STATUS=OK            29 CALLS      489 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5488        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4671        6.9726        .50000       -.53121    
   3  Normalizat    1.3888        .26018        .26640E-05   -.80952    
   4  Prefactor     .98025        .14032        .83119E-05   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08242e-11
Minuit parameter uncertainties:
  1  2.78208e-05
  2  158.995
  3  0.260432
  4  0.140371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307354': 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) = 7286.65658332
delta logL = 2.28380486078e-07

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.000e-04  2.782e-05  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.467e+00  1.590e+02  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:  9.802e-01  1.404e-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.389e+00  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.073 22.113

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/307354/cmap_HighResolution_670636801_670896001_4FGL_J0152.2+2206_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2022-04-06 00:20:49.542692', job_id='307354', GAL2='0.98', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1649229649.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1664' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:20:49 PDT 2022

--------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 307353: <4FGL_J0152.2+2206_daily_bin1664> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1664> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Apr  6 00:05:25 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:05:28 2022
Terminated at Wed Apr  6 00:16:55 2022
Results reported at Wed Apr  6 00:16:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1664 28.0727 22.1133 670636801 670896001 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 :                                   567.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             283.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            690 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 307354: <4FGL_J0152.2+2206_daily_bin1664> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1664> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Apr  6 00:05:25 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:05:28 2022
Terminated at Wed Apr  6 00:20:50 2022
Results reported at Wed Apr  6 00:20:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1664 28.0727 22.1133 670636801 670896001 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            925 sec.

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

