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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1674
RA = 8.483, Dec = 38.9716
tmin = 673228801, tmax = 673488001
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='668197', job_status='RUN', time_executed='2022-05-06 00:11:23.311563', time_epoch_executed='1651821083.31' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668197/ft1_4FGL_J0033.9+3858_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668197/ft1_4FGL_J0033.9+3858_daily_bin1674.fits outfile=/scratch/kocevski/668197/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1674.fits ra=8.483 dec=38.9716 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.89
user 2.59
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.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/668197/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.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.53
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 413

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/668197/ltcube_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.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/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits
.....................!
real 17.22
user 16.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/668197/ltcube_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits outfile=/scratch/kocevski/668197/expmap_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.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/668197/ltcube_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits
.....................!
real 193.30
user 187.12
sys 5.06

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 169 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0033.9+3858 @ 8.483 38.9716

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits outfile=/scratch/kocevski/668197/cmap_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.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=8.483 yref=38.9716 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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits outfile=/scratch/kocevski/668197/cmap_HighResolution_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.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=8.483 yref=38.9716 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668197/Model_4FGL_J0033.9+3858_daily_bin1674.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits.....................!
real 55.54
user 52.75
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits', '/scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits', expMap='/scratch/kocevski/668197/expmap_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits', expCube='/scratch/kocevski/668197/ltcube_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668197/Model_4FGL_J0033.9+3858_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0033.9+3858'

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  4.490e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
96         Index:  2.458e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668197/ft1_filtered_4FGL_J0033.9+3858_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/668197/ft2_4FGL_J0033.9+3858_daily_bin1674.fits
Exposure map: /scratch/kocevski/668197/expmap_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits
Exposure cube: /scratch/kocevski/668197/ltcube_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668197/Model_4FGL_J0033.9+3858_daily_bin1674.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) = 4467.40774466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4158       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83351E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4877       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.077       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27832       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    127.15       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.227       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96082       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4467.403     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2729 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.837        .31217E-06** at limit **
   2  Prefactor     .10000E-03    19.377        .85517E-07** at limit **
   3  norm          7.4017        15.770        .26924E-05   -.13661E-03
   4  Prefactor     .10000E-03    7.3593       -.97605E-07** at limit **
   5  Prefactor     4.4837        9.4162        .71985E-05   -.61558E-03
   6  Prefactor     .10000E-03    1.1672        .82452E-07** at limit **
   7  Prefactor     .10000E-03    20.775        .41974E-06** at limit **
   8  Prefactor     .10000E-03    31.127        .23796E-06** at limit **
   9  Prefactor     36.075        33.070        .26054E-07   -.30432E-04
  10  norm          2.9671        2.8531       -.23507E-07   -.57096E-04
  11  Prefactor     .10000E-03    4.3681        .46479E-07** at limit **
  12  Prefactor     .10022E-03    25.275        .55261E-06** at limit **
  13  Prefactor     .10000E-03    23.842       -.12764E-05** at limit **
  14  Prefactor     57.131        48.283        .10775E-05    .50681E-05
  15  Prefactor     127.01        145.32       -.14170E-04   -.31808E-03
  16  norm          3.2741        3.3375        .34784E-07   -.92868E-04
  17  Prefactor     .10000E-03    88.209       -.32539E-06** at limit **
  18  Prefactor     .10000E-03    21.056        .39953E-06** at limit **
  19  Prefactor     5.0804        93.103        .47874E-05    .31469E-04
  20  Prefactor     .10000E-03    13.935       -.61516E-07** at limit **
  21  Prefactor     .10000E-03    24.452       -.22786E-06** at limit **
  22  Prefactor     14.218        9.5099       -.27568E-06   -.12527E-03
  23  Normalizat    .96117        .25868       -.21254E-05   -.27962E-04
  24  Prefactor     .90870        .12255       -.24241E-06   -.94430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.40172
  Prefactor  = 0.0001
  Prefactor  = 4.48369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0747
  norm       = 2.96714
  Prefactor  = 0.0001
  Prefactor  = 0.000100219
  Prefactor  = 0.000100001
  Prefactor  = 57.1309
  Prefactor  = 127.008
  norm       = 3.27409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2179
  Normalizat = 0.96117
  Prefactor  = 0.908698
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.403     FROM HESSE     STATUS=OK           403 CALLS     3132 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4017        15.639        .73639E-03   -1.5164    
   4  Prefactor     .10000E-03    49.423        .33924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4837        9.8269        .95032E-03   -1.5284    
   6  Prefactor     .10000E-03    1.1735        .70501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.075        33.082        .66722E-04   -1.4506    
  10  norm          2.9671        2.8474        .10729E-03   -1.5363    
  11  Prefactor     .10000E-03    4.3906        .13642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10022E-03    30.598        .91268E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.131        48.338        .53074E-04   -1.4195    
  15  Prefactor     127.01        157.40        .17851E-03   -1.3449    
  16  norm          3.2741        3.3315        .11636E-03   -1.5346    
  17  Prefactor     .10000E-03    88.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0804        93.323        .17794E-03   -1.5257    
  20  Prefactor     .10000E-03    13.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.218        9.4112        .10619E-03   -1.4954    
  23  Normalizat    .96117        .30425        .32612E-03   -.94343    
  24  Prefactor     .90870        .14364        .16781E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10927e-09
Minuit parameter uncertainties:
  1  3.09818e-05
  2  3.60614e-05
  3  15.6471
  4  0.000116219
  5  9.83048
  6  2.45767e-06
  7  5.26424e-05
  8  1.5837e-05
  9  33.099
  10  2.84751
  11  4.41383e-06
  12  0.00518463
  13  0.000292153
  14  48.3711
  15  157.925
  16  3.33164
  17  0.000137071
  18  3.9459e-05
  19  43.6274
  20  2.23249e-05
  21  2.84771e-05
  22  9.41215
  23  0.304801
  24  0.143703
Done.

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

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.000e-04  1.584e-05  1.000e-04  1.000e+04 ( 1.000e-13)
96         Index:  2.458e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.087e-01  1.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  9.612e-01  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 8.483 38.972
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/668197/likelihoodResults_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.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) = 4467.40326007
delta logL = -0.000152470033754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4467.40310713
delta logL = 4.67839527118e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4467.403     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10150        .90712E-01** at limit **
   2  Index         3.2603        7.1975        .50000       -.24053E-05
   3  Normalizat    .96117        .81050E-03    .73700E-01    .57265E-04
   4  Prefactor     .90870        .40883E-03    .45116E-01    .51124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.26029
  Normalizat = 0.961169
  Prefactor  = 0.908698
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.403     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.803        .33594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2603        8.1014        .50000       -.35538    
   3  Normalizat    .96117        .92666E-02    .32612E-03   -.94343    
   4  Prefactor     .90870        .46812E-02    .16781E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48409e-08
Minuit parameter uncertainties:
  1  0.00088906
  2  287.692
  3  0.0092666
  4  0.00468117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668197': 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) = 4467.40310713
delta logL = 4.75477463624e-07

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.000e-04  8.891e-04  1.000e-04  1.000e+04 ( 1.000e-13)
96         Index:  3.260e+00  2.877e+02  0.000e+00  1.000e+01 (-1.000e+00)
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.087e-01  4.681e-03  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  9.612e-01  9.267e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 8.483 38.972

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/668197/cmap_HighResolution_673228801_673488001_4FGL_J0033.9+3858_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2022-05-06 00:21:19.756457', job_id='668197', GAL2='0.91', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1651821679.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1674' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 00:21:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 668198: <4FGL_J0033.9+3858_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:05:25 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:07:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:07:23 2022
Terminated at Fri May  6 00:20:08 2022
Results reported at Fri May  6 00:20:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1674 8.483 38.9716 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0033.9+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.59 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            883 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 668197: <4FGL_J0033.9+3858_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:05:25 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:07:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:07:20 2022
Terminated at Fri May  6 00:21:20 2022
Results reported at Fri May  6 00:21:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1674 8.483 38.9716 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0033.9+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            955 sec.

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

