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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1721
RA = 8.483, Dec = 38.9716
tmin = 685411201, tmax = 685670401
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='48670', job_status='RUN', time_executed='2022-09-24 00:05:27.108988', time_epoch_executed='1664003127.11' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48670/ft1_4FGL_J0033.9+3858_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48670/ft1_4FGL_J0033.9+3858_daily_bin1721.fits outfile=/scratch/kocevski/48670/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1721.fits ra=8.483 dec=38.9716 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.29
user 4.97
sys 0.27

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

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

Number of photons that the gtmktime cut: 730

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48670/ft1_filtered_4FGL_J0033.9+3858_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48670/ltcube_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits outfile=/scratch/kocevski/48670/expmap_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.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/48670/ltcube_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits
.....................!
real 192.60
user 187.45
sys 4.66

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/48670/ft1_filtered_4FGL_J0033.9+3858_daily_bin1721.fits scfile=/scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits outfile=/scratch/kocevski/48670/cmap_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48670/ft1_filtered_4FGL_J0033.9+3858_daily_bin1721.fits scfile=/scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits outfile=/scratch/kocevski/48670/cmap_HighResolution_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.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.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48670/ft1_filtered_4FGL_J0033.9+3858_daily_bin1721.fits', '/scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits', expMap='/scratch/kocevski/48670/expmap_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits', expCube='/scratch/kocevski/48670/ltcube_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48670/Model_4FGL_J0033.9+3858_daily_bin1721.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/48670/ft1_filtered_4FGL_J0033.9+3858_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48670/ft2_4FGL_J0033.9+3858_daily_bin1721.fits
Exposure map: /scratch/kocevski/48670/expmap_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48670/ltcube_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48670/Model_4FGL_J0033.9+3858_daily_bin1721.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) = 7974.4118828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45355E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .34860E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10897E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14078E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5821       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.428       1.0000          .0000       .10000E+07
     7 'Prefactor '    29.605       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63533E-02   1.0000          .0000       .10000E+07
     9 'norm      '    3.0151       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23816       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11810E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13446E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.5420       1.0000          .0000       .10000E+07
    14 'norm      '    1.9875       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.2534       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49309E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    24.828       1.0000          .0000       .10000E+07
    18 'Prefactor '    .63210       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.0208       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.5817       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78186       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=   7974.411     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1805 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.1843        .67793E-06** at limit **
   2  norm          .55511E-09    12.135       -.14189E-05** at limit **
   3  Prefactor     .11102E-09    2.1178       -.57132E-06** at limit **
   4  Prefactor     .55511E-10    3.0988       -.59625E-06** at limit **
   5  Prefactor     1.5824        2.7051       -.37559E-06   -.10254E-02
   6  Prefactor     21.470        20.061        .25178E-05    .75529E-02
   7  Prefactor     29.580        27.061       -.11166E-05   -.14804E-01
   8  Prefactor     .66613E-09    12.700       -.17219E-05** at limit **
   9  norm          3.0163        2.3365       -.51974E-07    .22151E-02
  10  Prefactor     .21604        8.4867        .59118E-07** at limit **
  11  Prefactor     .10436E-07    29.528       -.61886E-05** at limit **
  12  Prefactor     .17475E-04    645.76        .19908E-04** at limit **
  13  Prefactor     8.5571        14.792       -.68213E-06    .37495E-03
  14  norm          1.9891        1.3645       -.29068E-07    .48234E-02
  15  Prefactor     6.3946        7.6144       -.81284E-06   -.22445E-01
  16  Prefactor     .43299E-08    42.079        .32980E-05** at limit **
  17  Prefactor     24.805        8.6530        .43835E-06    .63405E-01
  18  Prefactor     1.7198        521.06        .12909E-04   -.96005E-03
  19  Prefactor     5.9676        7.0604        .89503E-06    .94046E-03
  20  Normalizat    1.5819        .24343        .11874E-04    .47164E-03
  21  Prefactor     .78169        .11678       -.55028E-05    .47753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.55112e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.58241
  Prefactor  = 21.47
  Prefactor  = 29.58
  Prefactor  = 6.66134e-10
  norm       = 3.01629
  Prefactor  = 0.216038
  Prefactor  = 1.04361e-08
  Prefactor  = 1.74755e-05
  Prefactor  = 8.55707
  norm       = 1.98912
  Prefactor  = 6.39456
  Prefactor  = 4.32987e-09
  Prefactor  = 24.8045
  Prefactor  = 1.71984
  Prefactor  = 5.96756
  Normalizat = 1.58189
  Prefactor  = 0.781686
 **********
 **   18 **HESSE 
 **********

 FCN=   7974.411     FROM HESSE     STATUS=OK           373 CALLS     2178 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-09    12.089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    2.1225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.0992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5824        2.7650        .84392E-03   -1.5683    
   6  Prefactor     21.470        20.233        .21609E-03   -1.5615    
   7  Prefactor     29.580        27.125        .18382E-03   -1.5599    
   8  Prefactor     .66613E-09    12.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0163        2.3389        .58423E-03   -1.5673    
  10  Prefactor     .21604        2.6584        .49618E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10436E-07    29.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17475E-04    10.928        .63196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5571        14.803        .34274E-03   -1.5649    
  14  norm          1.9891        1.3674        .73471E-03   -1.5680    
  15  Prefactor     6.3946        113.54        .40118E-03   -1.5657    
  16  Prefactor     .43299E-08    41.977        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.805        46.160        .20074E-03   -1.5608    
  18  Prefactor     1.7198        551.84        .66401E-03   -1.5682    
  19  Prefactor     5.9676        7.3941        .40897E-03   -1.5659    
  20  Normalizat    1.5819        .21280        .67124E-01   -.75503    
  21  Prefactor     .78169        .10036        .43481E-01   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6753e-07
Minuit parameter uncertainties:
  1  6.43757e-06
  2  0.000166413
  3  3.22488e-05
  4  2.64302e-05
  5  2.76496
  6  20.2329
  7  27.1246
  8  0.000187957
  9  2.33895
  10  1.51567
  11  0.00111167
  12  0.0276379
  13  14.8034
  14  1.36741
  15  53.8914
  16  0.000853589
  17  46.1605
  18  61.6202
  19  7.3941
  20  0.212923
  21  0.100381
Done.

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

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  2.958e+01  2.712e+01  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:  7.817e-01  1.004e-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:  1.582e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 8.483 38.972
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.28e-05

TS (Fixed Index): 1.90
Ra Dec: 8.483 38.972
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48670/likelihoodResults_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.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) = 7974.21540401
delta logL = 0.195365861098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7974.18228145
delta logL = 0.228488421447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.534       1.0000          .0000       .10000E+07
     2 'Index     '    3.5022       1.0000          .0000       10.000    
     3 'Normalizat'    1.5093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80634       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7974.182     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      310 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.490        246.78        .12338E-04    .32157E-03
   2  Index         3.5051        6.7524        .63142E-02    .53252E-04
   3  Normalizat    1.5092        .27781        .30254E-03    .11484E-03
   4  Prefactor     .80645        .12363        .19436E-03    .14816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4901
  Index      = 3.50506
  Normalizat = 1.50921
  Prefactor  = 0.806449
 **********
 **   18 **HESSE 
 **********

 FCN=   7974.182     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.490        86.563        .49353E-06   -1.5643    
   2  Index         3.5051        3.2884        .25257E-03   -.30363    
   3  Normalizat    1.5092        .28775        .12102E-04   -.77520    
   4  Prefactor     .80645        .13352        .77744E-05   -.99491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16832e-11
Minuit parameter uncertainties:
  1  60.2689
  2  3.62807
  3  0.288065
  4  0.133577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48670': 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) = 7974.18228011
delta logL = 0.228489760452

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.049e+01  6.027e+01  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  3.505e+00  3.628e+00  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:  8.064e-01  1.336e-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:  1.509e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 8.483 38.972
Photon Index (Free Index): 3.51 +/- 3.63
Photon Flux (Free Index): 9.55e-08 +/- 1.07e-07
Energy Flux (Free Index): 1.59e-05 +/- 1.17e-05

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/48670/cmap_HighResolution_685411201_685670401_4FGL_J0033.9+3858_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='1.59e-05', photon_flux_error='4.20e-08', dlogl='2.28e-01', energy_flux='1.40e-05', photon_flux2='9.55e-08', job_status='DONE', time_completed='2022-09-24 00:17:08.462302', photon_index_error2='3.63', photon_index2='3.51', ts='1.90', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.17e-05', EG='1.58', time_epoch_completed='1664003828.46', return_code='0', job_id='48670', GAL2='0.81', EG2='1.51', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='1.07e-07', ts2='2.50', photon_index='2.46' WHERE bin_id='1721' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:17:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 48670: <4FGL_J0033.9+3858_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:04:55 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:04:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:04:55 2022
Terminated at Sat Sep 24 00:17:09 2022
Results reported at Sat Sep 24 00:17:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1721 8.483 38.9716 685411201 685670401 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 :                                   680.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

