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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1776
RA = 28.0631, Dec = 37.2341
tmin = 699667201, tmax = 699926401
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='823904', job_status='RUN', time_executed='2023-03-08 00:05:45.584295', time_epoch_executed='1678262745.58' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823904/ft1_4FGL_J0152.2+3714_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823904/ft1_4FGL_J0152.2+3714_daily_bin1776.fits outfile=/scratch/kocevski/823904/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1776.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=699667201.0 tmax=699926401.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.91
user 3.67
sys 0.22

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

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

Number of photons that the gtmktime cut: 850

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823904/ft1_filtered_4FGL_J0152.2+3714_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/823904/ltcube_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.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/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823904/ft1_filtered_4FGL_J0152.2+3714_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/823904/ltcube_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.fits outfile=/scratch/kocevski/823904/expmap_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.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/823904/ltcube_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.fits
.....................!
real 190.61
user 185.71
sys 4.47

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/823904/ft1_filtered_4FGL_J0152.2+3714_daily_bin1776.fits scfile=/scratch/kocevski/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits outfile=/scratch/kocevski/823904/cmap_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.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 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823904/ft1_filtered_4FGL_J0152.2+3714_daily_bin1776.fits scfile=/scratch/kocevski/823904/ft2_4FGL_J0152.2+3714_daily_bin1776.fits outfile=/scratch/kocevski/823904/cmap_HighResolution_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.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 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4758       1.0000          .0000       .10000E+07
     2 'Prefactor '    22.207       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5972       1.0000          .0000       .10000E+07
     4 'norm      '    2.1340       1.0000          .0000       .10000E+07
     5 'Prefactor '    .39601E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .75051E-07   1.0000          .0000       .10000E+07
     7 'norm      '    2.9958       1.0000          .0000       .10000E+07
     8 'norm      '    2.6438       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.0236       1.0000          .0000       .10000E+07
    10 'Prefactor '    .45665E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    40.667       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11313E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3569       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8812       1.0000          .0000       .10000E+07
    15 'norm      '    .40106E-04   1.0000          .0000       .10000E+07
    16 'norm      '    1.3862       1.0000          .0000       .10000E+07
    17 'norm      '    .18322       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.6825       1.0000          .0000       .10000E+07
    19 'norm      '    .23738E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90693       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8878.812     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1622 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3984        4.1654       -.77533E-06   -.11493E-01
   2  Prefactor     22.191        8.1136        .92590E-06    .26362E-01
   3  Prefactor     7.5448        3.8827        .26134E-06   -.73966E-02
   4  norm          2.1334        1.3220        .12230E-07   -.10406E-01
   5  Prefactor     .55511E-10    24.098        .25274E-05** at limit **
   6  norm          .55511E-10    .40702        .59171E-06** at limit **
   7  norm          2.9949        .99506       -.36846E-07   -.33181E-02
   8  norm          2.6432        .87043        .14740E-06    .20689E-02
   9  Prefactor     3.9124        8.1411        .18586E-05    .66389E-02
  10  Prefactor      .0000        2.0810       -.78507E-06** at limit **
  11  Prefactor     40.695        1.1619       -.67338E-07    .96636E-02
  12  Prefactor     .17764E-08    25.317       -.90411E-05** at limit **
  13  norm          2.3668        4.3840       -.63453E-06   -.73200E-02
  14  Prefactor     5.8068        5.0864       -.16272E-05    .24533E-01
  15  norm           .0000        1.6343       -.22599E-05** at limit **
  16  norm          1.3862        .53675       -.48587E-07   -.17984E-01
  17  norm          .18318        .16509        .46541E-07** at limit **
  18  Prefactor     4.6681        4.0501       -.27836E-06   -.10454E-02
  19  norm          .55511E-10    2.2192       -.73351E-06** at limit **
  20  Normalizat    1.0893        .22548       -.13268E-04   -.55111E-04
  21  Prefactor     .90671        .12226       -.71653E-05    .19618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39844
  Prefactor  = 22.1907
  Prefactor  = 7.54479
  norm       = 2.13337
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 2.99494
  norm       = 2.64317
  Prefactor  = 3.91238
  Prefactor  = 0
  Prefactor  = 40.6954
  Prefactor  = 1.77636e-09
  norm       = 2.36684
  Prefactor  = 5.80677
  norm       = 0
  norm       = 1.38623
  norm       = 0.183182
  Prefactor  = 4.66809
  norm       = 5.55112e-11
  Normalizat = 1.08926
  Prefactor  = 0.906709
 **********
 **   18 **HESSE 
 **********

 FCN=   8878.812     FROM HESSE     STATUS=OK           365 CALLS     1987 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3984        10.180        .34409E-03   -1.5650    
   2  Prefactor     22.191        9.4170        .21226E-03   -1.5614    
   3  Prefactor     7.5448        10.013        .36360E-03   -1.5653    
   4  norm          2.1334        1.3340        .70541E-03   -1.5679    
   5  Prefactor     .55511E-10    24.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    .40514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9949        .99474        .58623E-03   -1.5673    
   8  norm          2.6432        .87595        .62677E-03   -1.5675    
   9  Prefactor     3.9124        10.204        .50249E-03   -1.5668    
  10  Prefactor      .0000        2.0727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.695        29.832        .15683E-03   -1.5580    
  12  Prefactor     .17764E-08    25.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3668        5.4599        .66732E-03   -1.5677    
  14  Prefactor     5.8068        10.603        .41386E-03   -1.5660    
  15  norm           .0000        1.6249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3862        .54142        .92327E-03   -1.5684    
  17  norm          .18318        .14431        .80287E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6681        4.0452        .46482E-03   -1.5665    
  19  norm          .55511E-10    2.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0893        .19883        .73239E-01   -.90097    
  21  Prefactor     .90671        .10472        .45093E-01   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37386e-07
Minuit parameter uncertainties:
  1  10.1799
  2  9.417
  3  10.0129
  4  1.33396
  5  6.09425e-05
  6  9.0111e-06
  7  0.994738
  8  0.875947
  9  10.2037
  10  5.38608e-07
  11  29.8318
  12  0.000421255
  13  5.45987
  14  10.6034
  15  1.02569e-05
  16  0.541425
  17  0.144311
  18  4.0452
  19  2.08452e-05
  20  0.198971
  21  0.10474
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  3.912e+00  1.020e+01  0.000e+00  1.000e+06 ( 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:  9.067e-01  1.047e-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.089e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823904/likelihoodResults_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.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) = 8878.79683926
delta logL = 0.0150765575054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8878.79327199
delta logL = 0.0186438242035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1077       1.0000          .0000       .10000E+07
     2 'Index     '    2.6104       1.0000          .0000       10.000    
     3 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90837       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=   8878.793     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1098        11.445        .22998E-04    .36838E-02
   2  Index         2.6105        1.6838        .11809E-01    .12535E-03
   3  Normalizat    1.0842        .21967        .32480E-03   -.17291E-04
   4  Prefactor     .90839        .12126        .19522E-03   -.38136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10984
  Index      = 2.61051
  Normalizat = 1.08421
  Prefactor  = 0.908391
 **********
 **   18 **HESSE 
 **********

 FCN=   8878.793     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1098        9.5608        .91992E-06   -1.5673    
   2  Index         2.6105        1.4173        .47236E-03   -.49826    
   3  Normalizat    1.0842        .21977        .12992E-04   -.90260    
   4  Prefactor     .90839        .12123        .39043E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8738e-10
Minuit parameter uncertainties:
  1  9.56087
  2  1.44315
  3  0.219952
  4  0.121267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823904': 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) = 8878.7932719
delta logL = 0.018643918118

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  3.110e+00  9.561e+00  0.000e+00  1.000e+06 ( 1.000e-13)
265        Index:  2.611e+00  1.443e+00  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:  9.084e-01  1.213e-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.084e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 28.063 37.234

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/823904/cmap_HighResolution_699667201_699926401_4FGL_J0152.2+3714_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2023-03-08 00:16:57.490052', job_id='823904', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1678263417.49', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.86e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1776' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:16:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 823904: <4FGL_J0152.2+3714_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:04:51 2023
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:04:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:04:56 2023
Terminated at Wed Mar  8 00:16:58 2023
Results reported at Wed Mar  8 00:16:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1776 28.0631 37.2341 699667201 699926401 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 :                                   673.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            727 sec.

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

