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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1603
RA = 8.483, Dec = 38.9716
tmin = 654825601, tmax = 655084801
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='912583', job_status='RUN', time_executed='2021-10-05 00:02:49.908185', time_epoch_executed='1633417369.91' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912583/ft1_4FGL_J0033.9+3858_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912583/ft1_4FGL_J0033.9+3858_daily_bin1603.fits outfile=/scratch/kocevski/912583/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1603.fits ra=8.483 dec=38.9716 rad=12.0 tmin=654825601.0 tmax=655084801.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.24
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/912583/ltcube_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.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/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits
.....................!
real 12.30
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/912583/ltcube_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits outfile=/scratch/kocevski/912583/expmap_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.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/912583/ltcube_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits
.....................!
real 190.02
user 184.69
sys 5.02

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/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits scfile=/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits outfile=/scratch/kocevski/912583/cmap_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits scfile=/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits outfile=/scratch/kocevski/912583/cmap_HighResolution_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits', '/scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits', expMap='/scratch/kocevski/912583/expmap_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits', expCube='/scratch/kocevski/912583/ltcube_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912583/Model_4FGL_J0033.9+3858_daily_bin1603.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/912583/ft1_filtered_4FGL_J0033.9+3858_daily_bin1603.fits
Spacecraft file(s): /scratch/kocevski/912583/ft2_4FGL_J0033.9+3858_daily_bin1603.fits
Exposure map: /scratch/kocevski/912583/expmap_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits
Exposure cube: /scratch/kocevski/912583/ltcube_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912583/Model_4FGL_J0033.9+3858_daily_bin1603.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 191.167486518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 189.342491791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    413.08       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.317       1.0000         .10000E-03   10000.    
     3 'norm      '    .28307E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18333E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25247E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1997       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1479       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6651       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    67.160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15239E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .13598E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .41659       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=   187.5563     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     1174 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     327.28        289.94        .13993E-05   -.30576E-03
   2  Prefactor     .10000E-03    324.58       -.11857E-04** at limit **
   3  norm          .10000E-03    113.97        .22737E-05** at limit **
   4  Prefactor     .10000E-03    36.726        .10373E-05** at limit **
   5  Prefactor     .10000E-03    504.51       -.15755E-04** at limit **
   6  Prefactor     .10000E-03    30.429        .44170E-07** at limit **
   7  Prefactor     .10000E-03    163.61       -.54373E-05** at limit **
   8  Prefactor     .61175E-03    9421.8       -.28378E-04** at limit **
   9  Prefactor     .10009E-03    6193.3        .20891E-04** at limit **
  10  norm          1.7859        1.0458         .0000         .0000    
  11  Prefactor    10000.0        7789.2        .46499E-04** at limit **
  12  Prefactor     1.5960        1.0602         .0000         .0000    
  13  Prefactor    10000.0        7984.2       -.46288E-04** at limit **
  14  Prefactor     9970.5        8953.9       -.26919E-03   -.30817E-02
  15  Prefactor     9960.5        8777.1       -.29066E-03    .40741E-02
  16  norm          1.9424        1.0377         .0000         .0000    
  17  Prefactor     1438.7        2852.9       -.64621E-04   -.55228E-02
  18  Prefactor     9.8133        343.76       -.25465E-04   -.69496E-05
  19  Prefactor     99.407        216.62       -.63375E-05    .90763E-04
  20  Prefactor     .10000E-03    280.75       -.19504E-05** at limit **
  21  Prefactor     .10000E-03    304.46       -.30150E-05** at limit **
  22  Prefactor     .10000E-03    77.418       -.20196E-05** at limit **
  23  Normalizat    .10000E-01    6.8391        .47538E-04** at limit **
  24  Prefactor     .39502        .25841       -.11628E-04    .11754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 327.282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000611752
  Prefactor  = 0.000100095
  norm       = 1.78589
  Prefactor  = 10000
  Prefactor  = 1.59596
  Prefactor  = 10000
  Prefactor  = 9970.5
  Prefactor  = 9960.49
  norm       = 1.94242
  Prefactor  = 1438.65
  Prefactor  = 9.8133
  Prefactor  = 99.4067
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.395024
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   187.5563     FROM HESSE     STATUS=FAILED        45 CALLS     1219 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     327.28        235.93        .50251E-03   -1.2070    
   2  Prefactor     .10000E-03    320.82        .25585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    116.17        .91637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    506.31        .91144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.114        .10731E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    156.79        .10931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61175E-03    9462.5        .48529E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    6176.1        .69356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          572.61        570.67         .0000       -1.5441    
  11  Prefactor    10000.0        .87301E-01    .46499E-04    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5960        1.0602         .0000       -1.5455    
  13  Prefactor    10000.0        .52731E-01   -.46288E-04    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9970.5        2.4022       -.26919E-03    1.4621    
  15  Prefactor     9960.5        2.6469       -.29066E-03    1.6966    
  16  norm          1.9424        1.0377         .0000       -1.5429    
  17  Prefactor     1438.7        20.719       -.64621E-04   -.79273    
  18  Prefactor     9.8133        1.2228       -.25465E-04   -1.5081    
  19  Prefactor     99.407        1.2147       -.63375E-05   -1.3711    
  20  Prefactor     .10000E-03    .33869       -.19504E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .42190       -.30150E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .26159       -.20196E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .25600        .47538E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .39502        .73137       -.11628E-04   -1.1706    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.46166e-10
Minuit parameter uncertainties:
  1  236.627
  2  0.00010901
  3  5.75077e-05
  4  2.3792e-05
  5  0.000315341
  6  6.13687e-05
  7  0.000451567
  8  5.5965
  9  0.0311929
  10  1.04584
  11  0.00176745
  12  1.06019
  13  0.00283354
  14  2.40223
  15  2.64696
  16  1.03771
  17  20.7192
  18  1.22276
  19  1.21467
  20  2.17998e-06
  21  5.457e-05
  22  5.72056e-05
  23  1.85499e-05
  24  0.749746
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 187.556263862

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  6.118e-04  5.597e+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

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  3.950e-01  7.497e-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.000e-02  1.855e-05  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.668357823265

TS (Fixed Index): -0.00
Ra Dec: 8.483 38.972
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.76e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912583/likelihoodResults_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.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) = 187.556742136
delta logL = -0.00047827450328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 187.556742136
delta logL = -0.000478274503052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.4576       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=   187.5567     FROM MIGRAD    STATUS=CONVERGED     22 CALLS       84 TOTAL
                     EDM=   .33E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 25.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.4588        5.9618        .25899E-03   -.25797E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 2.45876
 **********
 **   18 **HESSE 
 **********

 FCN=   187.5567     FROM HESSE     STATUS=OK            11 CALLS       95 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.4588        3.6234        .50000       -.53315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73443e-14
Minuit parameter uncertainties:
  1  4.30605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912583': 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) = 187.556742136
delta logL = -0.000478274436318

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  6.117e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
96         Index:  2.459e+00  4.306e+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:  3.948e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.001e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/912583/cmap_HighResolution_654825601_655084801_4FGL_J0033.9+3858_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.76e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-10-05 00:08:07.158127', job_id='912583', GAL2='0.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633417687.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.40', dlogl='-4.78e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1603' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:08:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 912583: <4FGL_J0033.9+3858_daily_bin1603> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:00:19 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:00:21 2021
Terminated at Tue Oct  5 00:08:07 2021
Results reported at Tue Oct  5 00:08:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1603 8.483 38.9716 654825601 655084801 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 :                                   319.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             420.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            468 sec.

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

