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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1618
RA = 8.483, Dec = 38.9716
tmin = 658713601, tmax = 658972801
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='129777', job_status='RUN', time_executed='2021-12-07 11:34:40.429714', time_epoch_executed='1638905680.43' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129777/ft1_4FGL_J0033.9+3858_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129777/ft1_4FGL_J0033.9+3858_daily_bin1618.fits outfile=/scratch/kocevski/129777/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1618.fits ra=8.483 dec=38.9716 rad=12.0 tmin=658713601.0 tmax=658972801.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.09
user 2.85
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129777/ft1_filtered_4FGL_J0033.9+3858_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/129777/ltcube_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.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/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits
.....................!
real 18.59
user 18.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129777/ft1_filtered_4FGL_J0033.9+3858_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/129777/ltcube_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.fits outfile=/scratch/kocevski/129777/expmap_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.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/129777/ltcube_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.fits
.....................!
real 196.22
user 190.35
sys 5.19

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/129777/ft1_filtered_4FGL_J0033.9+3858_daily_bin1618.fits scfile=/scratch/kocevski/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits outfile=/scratch/kocevski/129777/cmap_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129777/ft1_filtered_4FGL_J0033.9+3858_daily_bin1618.fits scfile=/scratch/kocevski/129777/ft2_4FGL_J0033.9+3858_daily_bin1618.fits outfile=/scratch/kocevski/129777/cmap_HighResolution_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14670E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    118.37       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1117       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5748.446     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2696 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.22       -.88713E-05** at limit **
   2  Prefactor     .10000E-03    6.8384       -.46008E-06** at limit **
   3  norm          .10000E-03    10.878        .44408E-05** at limit **
   4  Prefactor     .10000E-03    4.0495        .92178E-08** at limit **
   5  Prefactor     .10006E-03    7.8844       -.91029E-06** at limit **
   6  Prefactor     .69553        2.1569       -.64184E-06   -.11448E-02
   7  Prefactor     .10000E-03    11.384       -.43252E-05** at limit **
   8  Prefactor     .10000E-03    30.130       -.78317E-05** at limit **
   9  Prefactor     11.397        44.785        .29373E-05    .85879E-05
  10  norm          8.0554        4.4314       -.50944E-07   -.40586E-05
  11  Prefactor     .10000E-03    5.7002       -.28033E-05** at limit **
  12  Prefactor     1.6868        88.547       -.30382E-05   -.60504E-04
  13  Prefactor     .10000E-03    7.4086       -.27394E-06** at limit **
  14  Prefactor     59.930        41.024        .23712E-05    .40642E-04
  15  Prefactor     .10000E-03    47.171        .16973E-04** at limit **
  16  norm          2.0275        2.9711        .34885E-08   -.51788E-03
  17  Prefactor     .10000E-03    32.399       -.15334E-04** at limit **
  18  Prefactor     .10000E-03    5.9919        .23388E-05** at limit **
  19  Prefactor     44.087        38.161       -.32985E-05    .10813E-04
  20  Prefactor     .10000E-03    27.014        .13773E-04** at limit **
  21  Prefactor     118.38        60.576        .17531E-05   -.42228E-04
  22  Prefactor     .10000E-03    5.4201        .57454E-06** at limit **
  23  Normalizat    1.1118        .24460       -.11781E-06    .15904E-03
  24  Prefactor     .86954        .11177       -.28857E-07    .20740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.695529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3973
  norm       = 8.05545
  Prefactor  = 0.0001
  Prefactor  = 1.68681
  Prefactor  = 0.0001
  Prefactor  = 59.9302
  Prefactor  = 0.0001
  norm       = 2.02751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.0868
  Prefactor  = 0.0001
  Prefactor  = 118.376
  Prefactor  = 0.0001
  Normalizat = 1.11176
  Prefactor  = 0.869545
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.446     FROM HESSE     STATUS=OK           387 CALLS     3083 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0814        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    47.987        .39821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69553        2.1271        .19013E-03   -1.5541    
   7  Prefactor     .10000E-03    11.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.397        44.708        .11868E-03   -1.5033    
  10  norm          8.0554        4.4232        .11321E-03   -1.5140    
  11  Prefactor     .10000E-03    5.7438        .17671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6868        86.326        .32307E-03   -1.5448    
  13  Prefactor     .10000E-03    7.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.930        41.226        .51829E-04   -1.4158    
  15  Prefactor     .10000E-03    46.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0275        2.9055        .14435E-03   -1.5423    
  17  Prefactor     .10000E-03    32.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9901        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.087        38.168        .60376E-04   -1.4379    
  20  Prefactor     .10000E-03    26.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     118.38        60.305        .36985E-04   -1.3528    
  22  Prefactor     .10000E-03    5.4905        .17179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1118        .27819        .32466E-03   -.89375    
  24  Prefactor     .86954        .13092        .17635E-03   -.97214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42102e-09
Minuit parameter uncertainties:
  1  0.000434048
  2  6.98815e-06
  3  2.18975e-05
  4  4.14612e-06
  5  0.0034101
  6  2.12729
  7  2.09829e-05
  8  1.88203e-05
  9  44.8403
  10  4.42339
  11  4.04603e-06
  12  24.1705
  13  1.59878e-05
  14  41.2453
  15  1.89404e-05
  16  2.90567
  17  1.13458e-06
  18  7.59288e-07
  19  38.1889
  20  5.70649e-06
  21  60.3367
  22  3.00957e-05
  23  0.278562
  24  0.130968
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.695e-01  1.310e-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.112e+00  2.786e-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: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/129777/likelihoodResults_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.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) = 5748.44601208
delta logL = -0.000157323484927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5748.44585496
delta logL = -1.98222551262e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3807       1.0000          .0000       10.000    
     3 'Normalizat'    1.1118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86955       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=   5748.446     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6252.1        .90712E-02** at limit **
   2  Index         2.4125        8.4514        .50000       -.10511E-04
   3  Normalizat    1.1118        .69317E-01    .73364E-01   -.14752E-04
   4  Prefactor     .86954        .33858E-01    .44616E-01   -.21833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41252
  Normalizat = 1.11176
  Prefactor  = 0.869545
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.446     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7695.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4125        7.2713        .50000       -.54392    
   3  Normalizat    1.1118        .21983        .32466E-03   -.89375    
   4  Prefactor     .86954        .10768        .17635E-03   -.97214    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64878e-08
Minuit parameter uncertainties:
  1  0.00295973
  2  66.5971
  3  0.220012
  4  0.107711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129777': 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) = 5748.44585487
delta logL = -1.12299858301e-07

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  1.000e-04  2.960e-03  1.000e-04  1.000e+04 ( 1.000e-13)
96         Index:  2.413e+00  6.660e+01  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.695e-01  1.077e-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.112e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/129777/cmap_HighResolution_658713601_658972801_4FGL_J0033.9+3858_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2021-12-07 11:45:51.845544', job_id='129777', GAL2='0.87', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1638906351.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1618' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 11:45:51 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 129777: <4FGL_J0033.9+3858_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 11:30:18 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:30:37 2021
Terminated at Tue Dec  7 11:45:52 2021
Results reported at Tue Dec  7 11:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1618 8.483 38.9716 658713601 658972801 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            934 sec.

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

