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


Performing analysis on: 4FGL_J0733.8+0455_daily_bin169
RA = 113.472, Dec = 4.9282
tmin = 283132801, tmax = 283392001
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='488204', job_status='RUN', time_executed='2021-08-27 14:51:31.328144', time_epoch_executed='1630101091.33' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488204/ft1_4FGL_J0733.8+0455_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488204/ft1_4FGL_J0733.8+0455_daily_bin169.fits outfile=/scratch/kocevski/488204/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin169.fits ra=113.472 dec=4.9282 rad=12.0 tmin=283132801.0 tmax=283392001.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 7.06
user 3.55
sys 3.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.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/488204/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/488204/ft1_filtered_4FGL_J0733.8+0455_daily_bin169.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 3.71
user 0.30
sys 3.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488204/ft1_filtered_4FGL_J0733.8+0455_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/488204/ltcube_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.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/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits
.....................!
real 15.55
user 11.37
sys 3.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488204/ft1_filtered_4FGL_J0733.8+0455_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/488204/ltcube_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.fits outfile=/scratch/kocevski/488204/expmap_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.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/488204/ltcube_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.fits
.....................!
real 195.25
user 184.99
sys 9.04

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/488204/ft1_filtered_4FGL_J0733.8+0455_daily_bin169.fits scfile=/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits outfile=/scratch/kocevski/488204/cmap_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.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 3.68
user 0.38
sys 3.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488204/ft1_filtered_4FGL_J0733.8+0455_daily_bin169.fits scfile=/scratch/kocevski/488204/ft2_4FGL_J0733.8+0455_daily_bin169.fits outfile=/scratch/kocevski/488204/cmap_HighResolution_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.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 3.69
user 0.38
sys 3.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10251E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.458       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .53767       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0450       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .41866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4164       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.365       1.0000         .10000E-03   10000.    
    19 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8091       1.0000         .10000E-03   10000.    
    21 'Prefactor '    121.93       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68069       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0285       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=   7897.738     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2551 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.378        .10763E-05** at limit **
   2  Prefactor     28.473        67.868       -.25556E-07    .13323E-04
   3  norm          .10000E-03    2.4436       -.10542E-08** at limit **
   4  norm          .53763        1.8233        .13086E-05   -.15675E-03
   5  norm          1.2805        1.1463        .37699E-06   -.22641E-03
   6  Prefactor     .10000E-03    68.369       -.12794E-05** at limit **
   7  Prefactor     3.0447        6.4258        .30147E-06   -.68313E-04
   8  Prefactor     .10000E-03    6.8360       -.56581E-08** at limit **
   9  Prefactor     .10000E-03    15.834        .40524E-07** at limit **
  10  norm          .41845        1.5751        .46324E-06   -.38596E-03
  11  Prefactor     .10000E-03    15.550       -.16257E-06** at limit **
  12  Prefactor     3.4164        3.3214        .22263E-06   -.45002E-04
  13  norm          .10000E-03    24.900       -.42011E-06** at limit **
  14  Prefactor     25.483        16.872        .17235E-06   -.20401E-04
  15  Prefactor     .10000E-03    34.081        .48464E-06** at limit **
  16  Prefactor     3.6812        6.6252        .23945E-06   -.15678E-04
  17  Prefactor     .10000E-03    24.212       -.23133E-06** at limit **
  18  norm          11.365        10.726        .12032E-06   -.26565E-04
  19  norm          .10000E-03    19.895        .49622E-06** at limit **
  20  norm          4.8092        3.6351        .47176E-07   -.32128E-04
  21  Prefactor     121.93        54.725        .52826E-06    .66063E-05
  22  Normalizat    .68073        .21769       -.22879E-05   -.12333E-03
  23  Prefactor     1.0285        .71156E-01   -.45522E-07   -.29218E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 28.4726
  norm       = 0.0001
  norm       = 0.537628
  norm       = 1.28053
  Prefactor  = 0.000100002
  Prefactor  = 3.04472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.418453
  Prefactor  = 0.0001
  Prefactor  = 3.41636
  norm       = 0.0001
  Prefactor  = 25.4831
  Prefactor  = 0.000100001
  Prefactor  = 3.68121
  Prefactor  = 0.0001
  norm       = 11.365
  norm       = 0.0001
  norm       = 4.80924
  Prefactor  = 121.934
  Normalizat = 0.680727
  Prefactor  = 1.0285
 **********
 **   18 **HESSE 
 **********

 FCN=   7897.738     FROM HESSE     STATUS=OK           368 CALLS     2919 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    60.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.473        67.773        .75101E-04   -1.4640    
   3  norm          .10000E-03    2.4579        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .53763        1.8300        .20722E-03   -1.5561    
   5  norm          1.2805        1.1464        .19611E-03   -1.5482    
   6  Prefactor     .10000E-03    69.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0447        6.3986        .23251E-03   -1.5359    
   8  Prefactor     .10000E-03    6.8549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .41845        2.3350        .19039E-02   -1.5579    
  11  Prefactor     .10000E-03    15.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4164        3.3153        .14895E-03   -1.5338    
  13  norm          .10000E-03    25.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.483        16.870        .39678E-03   -1.4698    
  15  Prefactor     .10000E-03    34.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6812        6.6087        .21051E-03   -1.5324    
  17  Prefactor     .10000E-03    24.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.365        10.726        .11884E-03   -1.5034    
  19  norm          .10000E-03    20.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8092        3.6349        .14253E-03   -1.5269    
  21  Prefactor     121.93        54.911        .36448E-04   -1.3495    
  22  Normalizat    .68073        .22387        .46398E-03   -1.0466    
  23  Prefactor     1.0285        .74724E-01    .14463E-03   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87723e-08
Minuit parameter uncertainties:
  1  0.000356284
  2  67.9568
  3  1.94383e-06
  4  1.83016
  5  1.14646
  6  0.000734996
  7  6.39999
  8  3.97568e-06
  9  3.4508e-05
  10  1.97682
  11  5.23378e-05
  12  3.31552
  13  0.000153635
  14  16.8734
  15  0.00028483
  16  6.61002
  17  0.000134331
  18  10.7282
  19  0.000155997
  20  3.63511
  21  54.9337
  22  0.22417
  23  0.0747314
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.000e-04  3.451e-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.028e+00  7.473e-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:  6.807e-01  2.242e-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: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488204/likelihoodResults_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.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) = 7897.73802032
delta logL = -0.000300241451441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7897.73772065
delta logL = -5.69271833228e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4103       1.0000          .0000       10.000    
     3 'Normalizat'    .68061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       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=   7897.738     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      262 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.218        .18142E-01** at limit **
   2  Index         1.9116        7.8640        .50000        .27521E-06
   3  Normalizat    .68073        .10641E-01    .46398E-03   -.36793E-03
   4  Prefactor     1.0285        .40460E-02    .14463E-03   -.11736E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91159
  Normalizat = 0.680727
  Prefactor  = 1.0285
 **********
 **   18 **HESSE 
 **********

 FCN=   7897.738     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    393.13        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9116        9.0082        .50000       -.66579    
   3  Normalizat    .68073        .25590E-01    .18559E-04   -1.0466    
   4  Prefactor     1.0285        .97305E-02    .28927E-04   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08725e-09
Minuit parameter uncertainties:
  1  0.000806523
  2  906.01
  3  0.0255905
  4  0.00973056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488204': 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) = 7897.73771917
delta logL = 9.10744347493e-07

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.000e-04  8.065e-04  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  1.912e+00  9.060e+02  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.028e+00  9.731e-03  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:  6.807e-01  2.559e-02  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/488204/cmap_HighResolution_283132801_283392001_4FGL_J0733.8+0455_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-08-27 15:05:07.458929', job_id='488204', GAL2='1.03', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630101907.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='169' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 488204: <4FGL_J0733.8+0455_daily_bin169> in cluster <slac> Done

Job <4FGL_J0733.8+0455_daily_bin169> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 27 14:50:28 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:50:29 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:50:29 2021
Terminated at Fri Aug 27 15:05:08 2021
Results reported at Fri Aug 27 15:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin169 113.472 4.9282 283132801 283392001 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 :                                   860.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

