/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 151 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0733.8+0455_daily_bin346
RA = 113.472, Dec = 4.9282
tmin = 329011201, tmax = 329270401
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='489819', job_status='RUN', time_executed='2021-08-27 14:58:54.500606', time_epoch_executed='1630101534.5' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489819/ft1_4FGL_J0733.8+0455_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489819/ft1_4FGL_J0733.8+0455_daily_bin346.fits outfile=/scratch/kocevski/489819/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin346.fits ra=113.472 dec=4.9282 rad=12.0 tmin=329011201.0 tmax=329270401.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.09
user 3.28
sys 1.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.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/489819/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.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 2.00
user 0.32
sys 1.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/489819/ltcube_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.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/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits
.....................!
real 13.39
user 11.43
sys 1.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/489819/ltcube_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits outfile=/scratch/kocevski/489819/expmap_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.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/489819/ltcube_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits
.....................!
real 193.41
user 185.93
sys 6.72

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 159 point sources and 2 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 J0733.8+0455 @ 113.472 4.9282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits outfile=/scratch/kocevski/489819/cmap_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.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=113.472 yref=4.9282 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 1.90
user 0.37
sys 1.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits outfile=/scratch/kocevski/489819/cmap_HighResolution_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.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=113.472 yref=4.9282 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 1.92
user 0.35
sys 1.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489819/Model_4FGL_J0733.8+0455_daily_bin346.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 GAL_V02
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits.....................!
real 119.65
user 115.99
sys 3.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits', '/scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits', expMap='/scratch/kocevski/489819/expmap_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits', expCube='/scratch/kocevski/489819/ltcube_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489819/Model_4FGL_J0733.8+0455_daily_bin346.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0733.8+0455'

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  9.575e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
217        Scale:  8.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/489819/ft1_filtered_4FGL_J0733.8+0455_daily_bin346.fits
Spacecraft file(s): /scratch/kocevski/489819/ft2_4FGL_J0733.8+0455_daily_bin346.fits
Exposure map: /scratch/kocevski/489819/expmap_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits
Exposure cube: /scratch/kocevski/489819/ltcube_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489819/Model_4FGL_J0733.8+0455_daily_bin346.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) = 7767.30538812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7835       1.0000         .10000E-03   10000.    
     4 'norm      '    .52385       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7651       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.173       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.123       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.668       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9832       1.0000         .10000E-03   10000.    
    19 'norm      '    14.767       1.0000         .10000E-03   10000.    
    20 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6197       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75010       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7767.275     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2569 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5535       -.34229E-07** at limit **
   2  Prefactor     .10000E-03    93.717        .10933E-04** at limit **
   3  norm          6.7830        4.9692       -.25924E-06   -.21760E-03
   4  norm          .52404        1.4746       -.10829E-05   -.20881E-02
   5  norm          4.3587        1.6662       -.22586E-06   -.12822E-03
   6  Prefactor     .10000E-03    57.020       -.15842E-04** at limit **
   7  Prefactor     .10000E-03    3.3063       -.12942E-07** at limit **
   8  Prefactor     10.901        18.791       -.13369E-05   -.35336E-04
   9  Prefactor     .10000E-03    42.726        .33223E-05** at limit **
  10  norm          1.3761        1.6980       -.14264E-06   -.47820E-03
  11  Prefactor     15.220        32.283       -.30063E-05   -.44998E-05
  12  Prefactor     5.7656        3.4314       -.56651E-06   -.16465E-03
  13  norm          .10000E-03    12.858       -.29400E-06** at limit **
  14  Prefactor     15.169        11.193        .37501E-05    .49530E-04
  15  Prefactor     .10000E-03    89.715        .19451E-04** at limit **
  16  Prefactor     14.123        12.976       -.12711E-05   -.20433E-04
  17  Prefactor     26.598        37.640       -.50486E-04    .14511E-04
  18  norm          4.9833        8.5008        .25205E-06   -.54422E-04
  19  norm          14.763        24.920        .28197E-04    .12636E-03
  20  norm          .10000E-03    3.3847        .35652E-06** at limit **
  21  Prefactor     1.5817        111.26       -.27948E-04   -.70297E-04
  22  Normalizat    .74992        .21355        .83012E-05   -.31725E-04
  23  Prefactor     1.0126        .73188E-01   -.61069E-06    .37583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78297
  norm       = 0.524037
  norm       = 4.35873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9009
  Prefactor  = 0.0001
  norm       = 1.37606
  Prefactor  = 15.2195
  Prefactor  = 5.76558
  norm       = 0.0001
  Prefactor  = 15.1685
  Prefactor  = 0.0001
  Prefactor  = 14.1229
  Prefactor  = 26.5976
  norm       = 4.9833
  norm       = 14.7633
  norm       = 0.0001
  Prefactor  = 1.58169
  Normalizat = 0.749917
  Prefactor  = 1.01265
 **********
 **   18 **HESSE 
 **********

 FCN=   7767.275     FROM HESSE     STATUS=OK           374 CALLS     2943 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    94.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7830        4.9784        .15405E-03   -1.5187    
   4  norm          .52404        1.4400        .17170E-03   -1.5563    
   5  norm          4.3587        1.6658        .66541E-04   -1.5290    
   6  Prefactor     .10000E-03    57.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3163        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.901        18.794        .12134E-03   -1.5048    
   9  Prefactor     .10000E-03    42.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3761        1.6733        .12139E-03   -1.5473    
  11  Prefactor     15.220        32.275        .10266E-03   -1.4928    
  12  Prefactor     5.7656        3.4383        .11843E-03   -1.5228    
  13  norm          .10000E-03    12.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.169        11.199        .10282E-03   -1.4929    
  15  Prefactor     .10000E-03    89.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.123        12.967        .10658E-03   -1.4956    
  17  Prefactor     26.598        37.550        .77574E-04   -1.4676    
  18  norm          4.9833        8.4860        .18015E-03   -1.5261    
  19  norm          14.763        24.875        .10423E-03   -1.4939    
  20  norm          .10000E-03    3.4684        .31644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5817        112.59        .33257E-03   -1.5456    
  22  Normalizat    .74992        .22257        .44650E-03   -1.0195    
  23  Prefactor     1.0126        .77490E-01    .14846E-03   -.92309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42241e-09
Minuit parameter uncertainties:
  1  1.76475e-06
  2  0.000228857
  3  4.97874
  4  1.44011
  5  1.66584
  6  3.08099e-05
  7  3.87284e-06
  8  18.8038
  9  6.21417e-05
  10  1.67338
  11  32.3117
  12  3.43843
  13  0.000104063
  14  11.2007
  15  9.86293e-05
  16  12.9701
  17  37.5836
  18  8.48803
  19  24.8921
  20  6.61048e-05
  21  26.741
  22  0.222836
  23  0.0774987
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.000e-04  6.214e-05  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
217        Scale:  8.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.013e+00  7.750e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.499e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 113.472 4.928
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489819/likelihoodResults_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.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) = 7767.27515224
delta logL = -0.00011096194612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7767.2720934
delta logL = 0.00294787620624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18542       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2573       1.0000          .0000       10.000    
     3 'Normalizat'    .74442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7767.272     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18620        2.2375        .57557E-01   -.52077E-03
   2  Index         4.2584        .88278        .50000        .95378E-04
   3  Normalizat    .74432        .95425E-02    .10109        .46569E-04
   4  Prefactor     1.0134        .36582E-02    .42867E-01    .11233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.186205
  Index      = 4.2584
  Normalizat = 0.744319
  Prefactor  = 1.01345
 **********
 **   18 **HESSE 
 **********

 FCN=   7767.272     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      323 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18620        1176.8        .16409E-02   -1.5622    
   2  Index         4.2584        5.3356        .98449E-02   -.14887    
   3  Normalizat    .74432        .14928        .44814E-03   -1.0217    
   4  Prefactor     1.0134        .47953E-01    .14841E-03   -.92283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.55295e-06
Minuit parameter uncertainties:
  1  30.2111
  2  76.8653
  3  0.149358
  4  0.0479552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489819': 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) = 7767.27209323
delta logL = 0.00294804424357

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.862e-01  3.021e+01  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  4.258e+00  7.687e+01  0.000e+00  1.000e+01 (-1.000e+00)
217        Scale:  8.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.013e+00  4.796e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.443e-01  1.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 113.472 4.928

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/489819/cmap_HighResolution_329011201_329270401_4FGL_J0733.8+0455_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-27 15:12:14.121280', job_id='489819', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1630102334.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.95e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='346' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:12:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 489819: <4FGL_J0733.8+0455_daily_bin346> in cluster <slac> Done

Job <4FGL_J0733.8+0455_daily_bin346> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 14:55:43 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 14:55:53 2021
Terminated at Fri Aug 27 15:12:15 2021
Results reported at Fri Aug 27 15:12:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin346 113.472 4.9282 329011201 329270401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0733.8+0455 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            992 sec.

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

