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 189 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_bin1719
RA = 8.483, Dec = 38.9716
tmin = 684892801, tmax = 685152001
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='643991', job_status='RUN', time_executed='2022-09-18 00:08:11.470465', time_epoch_executed='1663484891.47' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643991/ft1_4FGL_J0033.9+3858_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643991/ft1_4FGL_J0033.9+3858_daily_bin1719.fits outfile=/scratch/kocevski/643991/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1719.fits ra=8.483 dec=38.9716 rad=12.0 tmin=684892801.0 tmax=685152001.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.66
user 2.39
sys 0.20

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

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

Number of photons that the gtmktime cut: 1226

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643991/ft1_filtered_4FGL_J0033.9+3858_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/643991/ltcube_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.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/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits
.....................!
real 16.20
user 15.66
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643991/ft1_filtered_4FGL_J0033.9+3858_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/643991/ltcube_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.fits outfile=/scratch/kocevski/643991/expmap_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.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/643991/ltcube_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.fits
.....................!
real 160.99
user 154.80
sys 4.40

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/643991/ft1_filtered_4FGL_J0033.9+3858_daily_bin1719.fits scfile=/scratch/kocevski/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits outfile=/scratch/kocevski/643991/cmap_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643991/ft1_filtered_4FGL_J0033.9+3858_daily_bin1719.fits scfile=/scratch/kocevski/643991/ft2_4FGL_J0033.9+3858_daily_bin1719.fits outfile=/scratch/kocevski/643991/cmap_HighResolution_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12301E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .19996E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.3845       1.0000          .0000       .10000E+07
     4 'Prefactor '    .16645E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28913E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35520E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.873       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21812E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .83389E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14127E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .55560E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1517       1.0000          .0000       .10000E+07
    13 'Prefactor '    31.835       1.0000          .0000       .10000E+07
    14 'norm      '    .71139       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.3950       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11642E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .68908E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10432E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .56466E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2197       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91478       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=   13262.38     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1365 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    4.4279        .80774E-06** at limit **
   2  norm          .25352E-05    1.2780       -.47022E-06** at limit **
   3  Prefactor     5.3882        4.4174        .10908E-05    .15041E-02
   4  Prefactor     .23981E-07    17.467       -.31046E-05** at limit **
   5  Prefactor      .0000        2.4640       -.21809E-05** at limit **
   6  Prefactor     .77716E-09    8.7143       -.50788E-06** at limit **
   7  Prefactor     13.774        1.5239       -.11256E-06   -.10820E-01
   8  Prefactor     .16653E-09    19.986        .53354E-06** at limit **
   9  norm          .82199E-01    3.7619        .23870E-05** at limit **
  10  Prefactor     .55511E-10    1.4055       -.11839E-05** at limit **
  11  Prefactor      .0000        2.6539        .14707E-05** at limit **
  12  Prefactor     1.1643        9.3987        .12190E-05    .80091E-03
  13  Prefactor     31.805        1.8057       -.77669E-07   -.28258E-01
  14  norm          .71128        .95426       -.29795E-06   -.57314E-03
  15  Prefactor     6.3067        3.6970       -.79214E-06    .47809E-01
  16  Prefactor     .48184E-07    5.7771        .18920E-05** at limit **
  17  Prefactor     .33307E-09    1.3052       -.14478E-06** at limit **
  18  Prefactor     .81046E-08    5.7906        .18305E-05** at limit **
  19  Prefactor     .16653E-09    2.0671        .10176E-05** at limit **
  20  Normalizat    1.2200        .18322       -.18571E-04    .20840E-04
  21  Prefactor     .91476        .90599E-01    .25354E-05    .26849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 2.53525e-06
  Prefactor  = 5.38817
  Prefactor  = 2.39808e-08
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 13.774
  Prefactor  = 1.66533e-10
  norm       = 0.0821991
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.16432
  Prefactor  = 31.805
  norm       = 0.711281
  Prefactor  = 6.30669
  Prefactor  = 4.81837e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.10463e-09
  Prefactor  = 1.66533e-10
  Normalizat = 1.22003
  Prefactor  = 0.914763
 **********
 **   18 **HESSE 
 **********

 FCN=   13262.38     FROM HESSE     STATUS=OK           365 CALLS     1730 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    4.4677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .25352E-05    7.6431        .96667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3882        4.5231        .43284E-03   -1.5662    
   4  Prefactor     .23981E-07    17.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.4252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77716E-09    8.8124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.774        17.468        .26866E-03   -1.5634    
   8  Prefactor     .16653E-09    19.708        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82199E-01    .79584        .33163E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.4097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.6704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1643        9.5396        .10773E-02   -1.5686    
  13  Prefactor     31.805        17.215        .17726E-03   -1.5595    
  14  norm          .71128        .95962        .59789E-03   -1.5691    
  15  Prefactor     6.3067        23.705        .39666E-03   -1.5658    
  16  Prefactor     .48184E-07    11.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    103.99        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .81046E-08    11.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16653E-09    2.0683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2200        .15859        .70297E-01   -.85986    
  21  Prefactor     .91476        .76202E-01    .45193E-01   -.95627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.316e-07
Minuit parameter uncertainties:
  1  4.94769e-05
  2  0.00880397
  3  4.52308
  4  0.00130358
  5  9.63796e-07
  6  0.000167148
  7  17.4683
  8  0.00010895
  9  0.511537
  10  1.39643e-05
  11  1.6539e-05
  12  6.6655
  13  17.2152
  14  0.959618
  15  23.7052
  16  0.00148921
  17  0.000373523
  18  0.000615914
  19  3.90797e-05
  20  0.158653
  21  0.076211
Done.

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

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.377e+01  1.747e+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:  9.148e-01  7.621e-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:  1.220e+00  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
Ra Dec: 8.483 38.972
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643991/likelihoodResults_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.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) = 13262.2995145
delta logL = 0.0829697270656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13262.2728508
delta logL = 0.109633365613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7411       1.0000          .0000       .10000E+07
     2 'Index     '    2.9163       1.0000          .0000       10.000    
     3 'Normalizat'    1.2047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91980       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=   13262.27     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      225 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7199        221.93        .32083E-03    .85796E-03
   2  Index         2.9173        3.1699        .22306        .13706E-03
   3  Normalizat    1.2044        .42710E-01    .70690E-01    .18013E-04
   4  Prefactor     .91987        .20125E-01    .45257E-01   -.26443E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.71989
  Index      = 2.91734
  Normalizat = 1.20443
  Prefactor  = 0.919871
 **********
 **   18 **HESSE 
 **********

 FCN=   13262.27     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7199        20.385        .12833E-04   -1.5646    
   2  Index         2.9173        1.2897        .96739E-02   -.42963    
   3  Normalizat    1.2044        .18784        .31279E-03   -.86466    
   4  Prefactor     .91987        .92179E-01    .17575E-03   -.95450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07032e-11
Minuit parameter uncertainties:
  1  20.3848
  2  1.3077
  3  0.187947
  4  0.0921945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643991': 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) = 13262.2728486
delta logL = 0.109635628791

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  9.720e+00  2.038e+01  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  2.917e+00  1.308e+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:  9.199e-01  9.219e-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:  1.204e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 8.483 38.972
Photon Index (Free Index): 2.92 +/- 1.31
Photon Flux (Free Index): 3.16e-08 +/- 3.74e-08
Energy Flux (Free Index): 6.59e-06 +/- 7.57e-06

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/643991/cmap_HighResolution_684892801_685152001_4FGL_J0033.9+3858_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', comment='SUCCESS', energy_flux2='6.59e-06', dlogl='1.10e-01', photon_flux2='3.16e-08', job_status='DONE', time_completed='2022-09-18 00:19:49.089483', photon_index_error2='1.31', photon_index2='2.92', ts='0.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='7.57e-06', EG='1.22', time_epoch_completed='1663485589.09', return_code='0', job_id='643991', GAL2='0.92', EG2='1.20', return_code2='0', photon_flux_error2='3.74e-08', ts2='1.06', photon_index='2.46' WHERE bin_id='1719' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:19:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 643991: <4FGL_J0033.9+3858_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:38 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:04:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:04:51 2022
Terminated at Sun Sep 18 00:19:49 2022
Results reported at Sun Sep 18 00:19:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1719 8.483 38.9716 684892801 685152001 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 :                                   692.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            911 sec.

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

