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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1764
RA = 8.483, Dec = 38.9716
tmin = 696556801, tmax = 696816001
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='434174', job_status='RUN', time_executed='2023-01-31 00:07:51.903453', time_epoch_executed='1675152471.9' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434174/ft1_4FGL_J0033.9+3858_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434174/ft1_4FGL_J0033.9+3858_daily_bin1764.fits outfile=/scratch/kocevski/434174/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1764.fits ra=8.483 dec=38.9716 rad=12.0 tmin=696556801.0 tmax=696816001.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.75
user 3.47
sys 0.24

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

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

Number of photons that the gtmktime cut: 826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/434174/ltcube_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.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/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits
.....................!
real 14.76
user 14.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/434174/ltcube_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits outfile=/scratch/kocevski/434174/expmap_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.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/434174/ltcube_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits
.....................!
real 192.07
user 186.05
sys 5.42

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/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits scfile=/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits outfile=/scratch/kocevski/434174/cmap_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits scfile=/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits outfile=/scratch/kocevski/434174/cmap_HighResolution_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434174/Model_4FGL_J0033.9+3858_daily_bin1764.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/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits.....................!
real 89.76
user 87.65
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits', '/scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits', expMap='/scratch/kocevski/434174/expmap_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits', expCube='/scratch/kocevski/434174/ltcube_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434174/Model_4FGL_J0033.9+3858_daily_bin1764.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  0.000e+00  1.000e+06 ( 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/434174/ft1_filtered_4FGL_J0033.9+3858_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/434174/ft2_4FGL_J0033.9+3858_daily_bin1764.fits
Exposure map: /scratch/kocevski/434174/expmap_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits
Exposure cube: /scratch/kocevski/434174/ltcube_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434174/Model_4FGL_J0033.9+3858_daily_bin1764.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) = 8727.0305027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.881       1.0000          .0000       .10000E+07
     2 'norm      '    2.2911       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.440       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.9031       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81348       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18882       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10035E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40221E-05   1.0000          .0000       .10000E+07
     9 'norm      '    5.3695       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.457       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.894       1.0000          .0000       .10000E+07
    12 'Prefactor '    .25677E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.423       1.0000          .0000       .10000E+07
    14 'norm      '    .92093       1.0000          .0000       .10000E+07
    15 'Prefactor '    31.749       1.0000          .0000       .10000E+07
    16 'Prefactor '    31.272       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15726E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    21.820       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.4752       1.0000          .0000       .10000E+07
    20 'Normalizat'    .86437       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8727.030     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1695 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.867        2.2290       -.18723E-07   -.58612E-02
   2  norm          2.2716        14.019        .59403E-06    .78746E-02
   3  Prefactor     10.415        6.9980       -.16726E-06   -.23641E-02
   4  Prefactor     1.8820        7.2847        .15359E-06   -.29337E-03
   5  Prefactor     .82362        2.6055       -.53509E-06    .29580E-02
   6  Prefactor     .15687        55.249       -.53020E-05** at limit **
   7  Prefactor     .13767E-07    17.307        .10702E-05** at limit **
   8  Prefactor     .14932E-07    15.241        .53063E-06** at limit **
   9  norm          5.3677        2.3124       -.45235E-07    .70530E-03
  10  Prefactor     12.422        7.3174        .25376E-06   -.41380E-03
  11  Prefactor     16.024        11.071       -.60858E-06   -.99797E-03
  12  Prefactor     .36082E-08    9.4727        .33348E-05** at limit **
  13  Prefactor     24.424        2.4322        .67517E-07    .90846E-03
  14  norm          .92040        1.1495        .64585E-07   -.22489E-03
  15  Prefactor     31.711        5.3684       -.36257E-06   -.16374E-01
  16  Prefactor     31.368        13.463        .96538E-06   -.90475E-02
  17  Prefactor     .34417E-08    7.0962        .15974E-05** at limit **
  18  Prefactor     22.092        47.229        .40952E-05   -.19167E-01
  19  Prefactor     6.3948        6.2232       -.42023E-06   -.60253E-03
  20  Normalizat    .86441        .22478        .20338E-04    .40708E-04
  21  Prefactor     1.0242        .11513       -.82298E-06    .12797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8667
  norm       = 2.27156
  Prefactor  = 10.4148
  Prefactor  = 1.88197
  Prefactor  = 0.823622
  Prefactor  = 0.156875
  Prefactor  = 1.37668e-08
  Prefactor  = 1.49325e-08
  norm       = 5.36769
  Prefactor  = 12.4223
  Prefactor  = 16.0243
  Prefactor  = 3.60822e-09
  Prefactor  = 24.4236
  norm       = 0.920397
  Prefactor  = 31.7111
  Prefactor  = 31.3682
  Prefactor  = 3.44169e-09
  Prefactor  = 22.0917
  Prefactor  = 6.39482
  Normalizat = 0.86441
  Prefactor  = 1.02418
 **********
 **   18 **HESSE 
 **********

 FCN=   8727.030     FROM HESSE     STATUS=OK           371 CALLS     2066 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.867        20.876        .27885E-03   -1.5636    
   2  norm          2.2716        29.123        .67787E-03   -1.5678    
   3  Prefactor     10.415        7.2267        .30985E-03   -1.5643    
   4  Prefactor     1.8820        7.3201        .75353E-03   -1.5681    
   5  Prefactor     .82362        2.7760        .51935E-03   -1.5690    
   6  Prefactor     .15687        11.168        .11978E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13767E-07    17.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14932E-07    15.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3677        2.3123        .43345E-03   -1.5662    
  10  Prefactor     12.422        7.3448        .28356E-03   -1.5637    
  11  Prefactor     16.024        11.093        .25096E-03   -1.5628    
  12  Prefactor     .36082E-08    12.008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.424        17.528        .20239E-03   -1.5609    
  14  norm          .92040        1.1568        .44324E-03   -1.5689    
  15  Prefactor     31.711        42.776        .17750E-03   -1.5595    
  16  Prefactor     31.368        53.521        .17885E-03   -1.5596    
  17  Prefactor     .34417E-08    9.7432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.092        53.644        .21414E-03   -1.5614    
  19  Prefactor     6.3948        6.3813        .39417E-03   -1.5657    
  20  Normalizat    .86441        .19997        .78143E-01   -.97722    
  21  Prefactor     1.0242        .99317E-01    .41741E-01   -.91928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28501e-07
Minuit parameter uncertainties:
  1  20.8758
  2  16.2674
  3  7.22671
  4  7.32011
  5  2.77605
  6  2.6473
  7  0.000984507
  8  0.000962286
  9  2.31226
  10  7.34483
  11  11.0935
  12  0.000416257
  13  17.5278
  14  1.15685
  15  42.7768
  16  53.5214
  17  0.000364835
  18  53.6447
  19  6.38126
  20  0.20014
  21  0.0993346
Done.

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

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.377e-08  9.845e-04  0.000e+00  1.000e+06 ( 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:  1.024e+00  9.933e-02  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:  8.644e-01  2.001e-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: 6.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434174/likelihoodResults_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.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) = 8727.05792643
delta logL = -0.0280518407089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8727.02987463
delta logL = -4.07544575864e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27500E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7670       1.0000          .0000       10.000    
     3 'Normalizat'    .86440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0242       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=   8727.030     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      239 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17208E-08    .21705        .42118E-03** at limit **
   2  Index         2.5552        6.2166        .50000        .50022E-09
   3  Normalizat    .86441        .58099E-03    .78143E-01   -.25611E-03
   4  Prefactor     1.0242        .31493E-03    .41747E-01   -.60640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72085e-09
  Index      = 2.55523
  Normalizat = 0.86441
  Prefactor  = 1.02417
 **********
 **   18 **HESSE 
 **********

 FCN=   8727.030     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17208E-08    1.1415        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5552        8.6880        .50000       -.51089    
   3  Normalizat    .86441        .13283E-02    .34589E-03   -.97722    
   4  Prefactor     1.0242        .72140E-03    .17277E-03   -.91928    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48298e-12
Minuit parameter uncertainties:
  1  8.88909e-05
  2  8485.56
  3  0.00132826
  4  0.000721396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434174': 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) = 8727.02987459
delta logL = 2.65572452918e-10

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.721e-09  8.889e-05  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  2.555e+00  8.486e+03  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:  1.024e+00  7.214e-04  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:  8.644e-01  1.328e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/434174/cmap_HighResolution_696556801_696816001_4FGL_J0033.9+3858_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2023-01-31 00:20:37.894641', job_id='434174', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1675153237.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.66e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1764' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:20:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 434174: <4FGL_J0033.9+3858_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1764> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan 31 00:04:36 2023
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:05:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:05:26 2023
Terminated at Tue Jan 31 00:20:38 2023
Results reported at Tue Jan 31 00:20:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1764 8.483 38.9716 696556801 696816001 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            962 sec.

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

