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 233 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7394
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1725
RA = 28.0727, Dec = 22.1133
tmin = 686448001, tmax = 686707201
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='875452', job_status='RUN', time_executed='2022-10-06 00:13:10.512448', time_epoch_executed='1665040390.51' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875452/ft1_4FGL_J0152.2+2206_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875452/ft1_4FGL_J0152.2+2206_daily_bin1725.fits outfile=/scratch/kocevski/875452/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1725.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=686448001.0 tmax=686707201.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 3.83
user 3.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.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/875452/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.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 0.45
user 0.28
sys 0.16

Number of photons that the gtmktime cut: 433

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/875452/ltcube_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.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/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits
.....................!
real 9.99
user 9.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875452/ltcube_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits outfile=/scratch/kocevski/875452/expmap_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.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/875452/ltcube_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits
.....................!
real 153.88
user 149.38
sys 4.02

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/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits scfile=/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits outfile=/scratch/kocevski/875452/cmap_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.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 0.51
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits scfile=/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits outfile=/scratch/kocevski/875452/cmap_HighResolution_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.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 0.50
user 0.30
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits', '/scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits', expMap='/scratch/kocevski/875452/expmap_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits', expCube='/scratch/kocevski/875452/ltcube_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875452/Model_4FGL_J0152.2+2206_daily_bin1725.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  0.000e+00  1.000e+06 ( 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/875452/ft1_filtered_4FGL_J0152.2+2206_daily_bin1725.fits
Spacecraft file(s): /scratch/kocevski/875452/ft2_4FGL_J0152.2+2206_daily_bin1725.fits
Exposure map: /scratch/kocevski/875452/expmap_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits
Exposure cube: /scratch/kocevski/875452/ltcube_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875452/Model_4FGL_J0152.2+2206_daily_bin1725.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) = 4664.70628134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3374       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.111       1.0000          .0000       .10000E+07
     3 'Prefactor '    .78530E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.4919       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49260E-01   1.0000          .0000       .10000E+07
     6 'norm      '    1.4553       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.3068       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20692       1.0000          .0000       .10000E+07
     9 'Prefactor '    .85913E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .68348E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17566       1.0000          .0000       .10000E+07
    12 'Prefactor '    24.868       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16092E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .15860E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .55360E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20975       1.0000          .0000       .10000E+07
    17 'Normalizat'    .93333       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4664.656     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1109 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3375        .70944       -.76815E-07   -.21799E-02
   2  Prefactor     11.726        24.869       -.83130E-07   -.19070E-01
   3  Prefactor      .0000        4.4116        .23760E-08** at limit **
   4  Prefactor     3.4764        11.651        .31886E-06    .22742E-01
   5  Prefactor      .0000        22.422       -.13216E-06** at limit **
   6  norm          1.4554        .82100       -.11809E-07   -.18010E-03
   7  Prefactor     9.6631        13.205       -.61094E-08   -.14471E-02
   8  Prefactor     .10584E-03    53.556        .27222E-06** at limit **
   9  Prefactor     .49405E-08    11.355       -.18849E-06** at limit **
  10  norm           .0000        1.9250       -.70010E-08** at limit **
  11  Prefactor     .17919        3.7102        .24854E-06** at limit **
  12  Prefactor     24.911        10.387        .76737E-08    .55556E-02
  13  Prefactor      .0000        2.0275        .12984E-07** at limit **
  14  norm          .23409E-06    59.571       -.92738E-06** at limit **
  15  Prefactor      .0000        16.422       -.20506E-06** at limit **
  16  Prefactor     .50893E-06    22.661        .31377E-06** at limit **
  17  Normalizat    .93169        .25563       -.30807E-05    .22610E-04
  18  Prefactor     .86379        .14037        .36516E-05    .51004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3375
  Prefactor  = 11.7259
  Prefactor  = 0
  Prefactor  = 3.47644
  Prefactor  = 0
  norm       = 1.45536
  Prefactor  = 9.6631
  Prefactor  = 0.000105842
  Prefactor  = 4.94049e-09
  norm       = 0
  Prefactor  = 0.179192
  Prefactor  = 24.9109
  Prefactor  = 0
  norm       = 2.34091e-07
  Prefactor  = 0
  Prefactor  = 5.08926e-07
  Normalizat = 0.931689
  Prefactor  = 0.863787
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.656     FROM HESSE     STATUS=OK           286 CALLS     1395 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3375        .70978        .91411E-03   -1.5685    
   2  Prefactor     11.726        26.283        .30031E-03   -1.5639    
   3  Prefactor      .0000        4.4096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4764        13.461        .54084E-03   -1.5671    
   5  Prefactor      .0000        22.383        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4554        .82514        .89220E-03   -1.5684    
   7  Prefactor     9.6631        13.174        .32827E-03   -1.5646    
   8  Prefactor     .10584E-03    27.378        .11654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .49405E-08    11.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.9293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17919        1.6838        .31196E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.911        10.814        .20057E-03   -1.5608    
  13  Prefactor      .0000        2.0310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23409E-06    60.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        16.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50893E-06    89.319        .11605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .93169        .22431        .67688E-01   -.95355    
  18  Prefactor     .86379        .12209        .44540E-01   -.97418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73122e-08
Minuit parameter uncertainties:
  1  0.709781
  2  26.2833
  3  1.91726e-05
  4  13.4609
  5  3.02033e-06
  6  0.825137
  7  13.1742
  8  0.107662
  9  0.000476581
  10  5.13707e-07
  11  1.09858
  12  10.8139
  13  2.72819e-08
  14  0.00751613
  15  3.77645e-05
  16  0.0134846
  17  0.224536
  18  0.122131
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  9.663e+00  1.317e+01  0.000e+00  1.000e+06 ( 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:  8.638e-01  1.221e-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:  9.317e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/875452/likelihoodResults_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.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) = 4664.11592562
delta logL = 0.540492731852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4664.0773405
delta logL = 0.579077857873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8962       1.0000          .0000       .10000E+07
     2 'Index     '    4.4437       1.0000          .0000       10.000    
     3 'Normalizat'    .88810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88216       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=   4664.077     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8845        36.496        .75515E-03   -.22591E-02
   2  Index         4.4484        6.9867        .18309        .17884E-04
   3  Normalizat    .88856        .67928E-01    .69091E-01   -.65934E-05
   4  Prefactor     .88195        .39338E-01    .44777E-01    .86818E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88455
  Index      = 4.44843
  Normalizat = 0.888562
  Prefactor  = 0.881954
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.077     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8845        75.541        .79610E-05   -1.5681    
   2  Index         4.4484        7.1045        .67259E-02   -.11054    
   3  Normalizat    .88856        .23076        .30568E-03   -.96863    
   4  Prefactor     .88195        .13105        .17662E-03   -.96775    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14687e-10
Minuit parameter uncertainties:
  1  23.8633
  2  8.80069
  3  0.231019
  4  0.131097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875452': 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) = 4664.07733676
delta logL = 0.579081593225

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.885e+00  2.386e+01  0.000e+00  1.000e+06 ( 1.000e-12)
219        Index:  4.448e+00  8.801e+00  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:  8.820e-01  1.311e-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:  8.886e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 28.073 22.113
Photon Index (Free Index): 4.45 +/- 8.80
Photon Flux (Free Index): 7.07e-08 +/- 9.49e-08
Energy Flux (Free Index): 9.94e-06 +/- 2.22e-05

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/875452/cmap_HighResolution_686448001_686707201_4FGL_J0152.2+2206_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', energy_flux2='9.94e-06', dlogl='5.79e-01', photon_flux2='7.07e-08', job_status='DONE', time_completed='2022-10-06 00:19:31.369354', photon_index_error2='8.80', photon_index2='4.45', ts='0.71', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='2.22e-05', EG='0.93', time_epoch_completed='1665040771.37', return_code='0', job_id='875452', GAL2='0.88', EG2='0.89', return_code2='102', photon_flux_error2='9.49e-08', ts2='1.95', photon_index='2.68' WHERE bin_id='1725' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:19:31 PDT 2022


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

Job <4FGL_J0152.2+2206_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:53 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:09:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:09:10 2022
Terminated at Thu Oct  6 00:17:28 2022
Results reported at Thu Oct  6 00:17:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1725 28.0727 22.1133 686448001 686707201 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 :                                   390.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             272.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            695 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 875452: <4FGL_J0152.2+2206_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:53 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:09:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:09:10 2022
Terminated at Thu Oct  6 00:19:32 2022
Results reported at Thu Oct  6 00:19:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1725 28.0727 22.1133 686448001 686707201 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 :                                   382.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            819 sec.

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

