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


Performing analysis on: 4FGL_J0733.8+0455_daily_bin312
RA = 113.472, Dec = 4.9282
tmin = 320198401, tmax = 320457601
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='489767', job_status='RUN', time_executed='2021-08-27 14:58:02.268966', time_epoch_executed='1630101482.27' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489767

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489767/ft1_4FGL_J0733.8+0455_daily_bin312.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489767/ft1_4FGL_J0733.8+0455_daily_bin312.fits outfile=/scratch/kocevski/489767/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin312.fits ra=113.472 dec=4.9282 rad=12.0 tmin=320198401.0 tmax=320457601.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.95
user 3.10
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.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/489767/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin312.fits evtable="EVENTS" outfile="/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.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 1.11
user 0.31
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits" evtable="EVENTS" scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits sctable="SC_DATA" outfile=/scratch/kocevski/489767/ltcube_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.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/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits
.....................!
real 11.97
user 10.92
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits sctable="SC_DATA" expcube=/scratch/kocevski/489767/ltcube_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits outfile=/scratch/kocevski/489767/expmap_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.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/489767/ltcube_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits
.....................!
real 191.86
user 185.77
sys 5.12

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/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits outfile=/scratch/kocevski/489767/cmap_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.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.16
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits outfile=/scratch/kocevski/489767/cmap_HighResolution_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.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.14
user 0.38
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489767/Model_4FGL_J0733.8+0455_daily_bin312.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/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits.....................!
real 134.70
user 132.25
sys 2.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits', '/scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits', expMap='/scratch/kocevski/489767/expmap_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits', expCube='/scratch/kocevski/489767/ltcube_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489767/Model_4FGL_J0733.8+0455_daily_bin312.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/489767/ft1_filtered_4FGL_J0733.8+0455_daily_bin312.fits
Spacecraft file(s): /scratch/kocevski/489767/ft2_4FGL_J0733.8+0455_daily_bin312.fits
Exposure map: /scratch/kocevski/489767/expmap_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits
Exposure cube: /scratch/kocevski/489767/ltcube_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489767/Model_4FGL_J0733.8+0455_daily_bin312.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) = 8815.02915271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8957       1.0000         .10000E-03   10000.    
     4 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12262E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.826       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1816       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.783       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .94012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.625       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87389       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98565       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=   8815.028     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2523 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.109        .52965E-05** at limit **
   2  Prefactor     .10000E-03    14.558       -.24721E-05** at limit **
   3  norm          8.8951        5.2823        .54640E-06   -.12567E-02
   4  norm          .10000E-03    .88922        .59068E-07** at limit **
   5  norm          3.9131        1.4739        .16589E-07   -.27952E-04
   6  Prefactor     .10000E-03    33.767       -.19699E-05** at limit **
   7  Prefactor     .10004E-03    3.6450       -.97255E-06** at limit **
   8  Prefactor     .10000E-03    4.2499       -.14201E-07** at limit **
   9  Prefactor     15.825        30.951       -.36271E-06   -.19657E-04
  10  norm          3.2863        2.1889        .30830E-07   -.25608E-04
  11  Prefactor     17.273        31.006        .95916E-06    .40836E-04
  12  Prefactor     7.1813        3.6520       -.15087E-06   -.34441E-03
  13  norm          .10000E-03    6.0160        .89970E-06** at limit **
  14  Prefactor     .10000E-03    12.917        .25723E-05** at limit **
  15  Prefactor     .10000E-03    33.384       -.31030E-06** at limit **
  16  Prefactor     .10000E-03    7.1400       -.67910E-07** at limit **
  17  Prefactor     21.786        22.960        .91606E-06    .93344E-04
  18  norm          .10000E-03    5.4947       -.32310E-06** at limit **
  19  norm          .10000E-03    6.4477       -.66515E-06** at limit **
  20  norm          .94101        3.7330        .65828E-06   -.54132E-03
  21  Prefactor     15.626        34.510        .69572E-06    .14123E-04
  22  Normalizat    .87388        .20823       -.45505E-06    .17675E-05
  23  Prefactor     .98565        .69490E-01   -.76886E-07    .34597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 8.89509
  norm       = 0.0001
  norm       = 3.91308
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 15.8249
  norm       = 3.28627
  Prefactor  = 17.2726
  Prefactor  = 7.18128
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7856
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.941012
  Prefactor  = 15.6257
  Normalizat = 0.873882
  Prefactor  = 0.985652
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.028     FROM HESSE     STATUS=OK           372 CALLS     2895 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8951        6.4466        .67193E-03   -1.5111    
   4  norm          .10000E-03    1.4362        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9131        1.4745        .67313E-04   -1.5312    
   6  Prefactor     .10000E-03    33.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    18.166        .33313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.825        30.830        .10068E-03   -1.4912    
  10  norm          3.2863        2.1844        .10623E-03   -1.5345    
  11  Prefactor     17.273        31.031        .96373E-04   -1.4877    
  12  Prefactor     7.1813        3.6812        .12160E-03   -1.5172    
  13  norm          .10000E-03    6.0414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.786        23.076        .85820E-04   -1.4774    
  18  norm          .10000E-03    5.5158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.4679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .94101        4.9380        .39022E-03   -1.5514    
  21  Prefactor     15.626        34.737        .10132E-03   -1.4917    
  22  Normalizat    .87388        .21947        .43160E-03   -.97384    
  23  Prefactor     .98565        .74038E-01    .14968E-03   -.93209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86132e-09
Minuit parameter uncertainties:
  1  0.000570838
  2  0.000215878
  3  6.44709
  4  5.47371e-06
  5  1.47454
  6  0.000253344
  7  0.00172552
  8  3.85184e-07
  9  30.8613
  10  2.18441
  11  31.0598
  12  3.68136
  13  4.98378e-05
  14  0.000194008
  15  3.89106e-05
  16  4.14438e-06
  17  23.0851
  18  1.69308e-05
  19  4.12552e-05
  20  4.31159
  21  34.7822
  22  0.219693
  23  0.074046
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.582e+01  3.086e+01  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:  9.857e-01  7.405e-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:  8.739e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/489767/likelihoodResults_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.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) = 8815.01002488
delta logL = 0.0181272540322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8815.00652301
delta logL = 0.0216291200413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.485       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7181       1.0000          .0000       10.000    
     3 'Normalizat'    .86779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98660       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8815.007     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.496        33.546        .10908E-03   -.92136E-04
   2  Index         2.7173        1.5414        .14048E-01   -.38391E-04
   3  Normalizat    .86780        .19677        .43301E-03    .13519E-02
   4  Prefactor     .98658        .70933E-01    .14962E-03    .28078E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.496
  Index      = 2.71733
  Normalizat = 0.8678
  Prefactor  = 0.98658
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.007     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.496        29.907        .43631E-05   -1.4973    
   2  Index         2.7173        1.3785        .56191E-03   -.47409    
   3  Normalizat    .86780        .19674        .86602E-04   -.97601    
   4  Prefactor     .98658        .70905E-01    .29924E-04   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90189e-09
Minuit parameter uncertainties:
  1  29.9405
  2  1.40156
  3  0.196904
  4  0.0709113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489767': 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) = 8815.00652275
delta logL = 0.0216293787998

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.350e+01  2.994e+01  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  2.717e+00  1.402e+00  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:  9.866e-01  7.091e-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:  8.678e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/489767/cmap_HighResolution_320198401_320457601_4FGL_J0733.8+0455_daily_bin312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.63e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-08-27 15:12:09.964076', job_id='489767', GAL2='0.99', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630102329.96', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.16e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='312' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 489767: <4FGL_J0733.8+0455_daily_bin312> in cluster <slac> Done

Job <4FGL_J0733.8+0455_daily_bin312> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 14:55:39 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:55:41 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:41 2021
Terminated at Fri Aug 27 15:12:10 2021
Results reported at Fri Aug 27 15:12:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin312 113.472 4.9282 320198401 320457601 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 :                                   851.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

