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


Performing analysis on: 4FGL_J0733.8+0455_daily_bin583
RA = 113.472, Dec = 4.9282
tmin = 390441601, tmax = 390700801
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='491194', job_status='RUN', time_executed='2021-08-27 15:06:56.369178', time_epoch_executed='1630102016.37' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491194

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491194/ft1_4FGL_J0733.8+0455_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491194/ft1_4FGL_J0733.8+0455_daily_bin583.fits outfile=/scratch/kocevski/491194/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin583.fits ra=113.472 dec=4.9282 rad=12.0 tmin=390441601.0 tmax=390700801.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 12.64
user 3.32
sys 9.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.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/491194/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin583.fits evtable="EVENTS" outfile="/scratch/kocevski/491194/ft1_filtered_4FGL_J0733.8+0455_daily_bin583.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 9.64
user 0.33
sys 9.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491194/ft1_filtered_4FGL_J0733.8+0455_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/491194/ltcube_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.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/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits
.....................!
real 22.13
user 11.57
sys 10.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491194/ft1_filtered_4FGL_J0733.8+0455_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/491194/ltcube_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.fits outfile=/scratch/kocevski/491194/expmap_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.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/491194/ltcube_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.fits
.....................!
real 204.32
user 186.85
sys 16.84

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/491194/ft1_filtered_4FGL_J0733.8+0455_daily_bin583.fits scfile=/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits outfile=/scratch/kocevski/491194/cmap_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.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 10.19
user 0.37
sys 9.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491194/ft1_filtered_4FGL_J0733.8+0455_daily_bin583.fits scfile=/scratch/kocevski/491194/ft2_4FGL_J0733.8+0455_daily_bin583.fits outfile=/scratch/kocevski/491194/cmap_HighResolution_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.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 9.63
user 0.40
sys 9.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    80.566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.998       1.0000         .10000E-03   10000.    
     3 'norm      '    13.212       1.0000         .10000E-03   10000.    
     4 'norm      '    15.503       1.0000         .10000E-03   10000.    
     5 'norm      '    .93633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61623       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9145       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76686       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=   2201.028     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2501 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          80.589        86.016        .71045E-06   -.46378E-06
   2  Prefactor     30.239        168.61        .12933E-05    .11636E-04
   3  norm          13.201        35.285        .73339E-06   -.71447E-05
   4  norm          15.500        9.3989        .21119E-07    .69870E-05
   5  norm          .93579        2.1868       -.59417E-06   -.10223E-03
   6  Prefactor     24.484        228.63        .33108E-06    .28414E-05
   7  Prefactor     .10000E-03    26.998        .70809E-07** at limit **
   8  Prefactor     .10000E-03    265.37       -.19363E-06** at limit **
   9  Prefactor     .10000E-03    34.623       -.56976E-07** at limit **
  10  norm          3.9230        6.2994       -.49114E-09    .11442E-05
  11  Prefactor     .10000E-03    211.62        .12404E-07** at limit **
  12  Prefactor     .59326        9.5844       -.12642E-05   -.15850E-03
  13  norm          5.9034        67.488        .73651E-06    .27782E-04
  14  Prefactor     .10000E-03    23.567       -.32814E-06** at limit **
  15  Prefactor     .10000E-03    94.704       -.10104E-06** at limit **
  16  Prefactor     .10000E-03    141.26        .17589E-06** at limit **
  17  Prefactor     .10000E-03    94.253       -.52436E-06** at limit **
  18  norm          .10000E-03    63.029       -.84817E-07** at limit **
  19  norm          .10000E-03    38.191       -.23652E-06** at limit **
  20  norm          .10000E-03    7.9630       -.45194E-07** at limit **
  21  Prefactor     .10000E-03    57.948       -.24628E-06** at limit **
  22  Normalizat    1.0023        .42336        .11389E-04    .43010E-04
  23  Prefactor     .76663        .14845       -.30117E-05    .27983E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 80.5892
  Prefactor  = 30.2394
  norm       = 13.2008
  norm       = 15.5002
  norm       = 0.935789
  Prefactor  = 24.4838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92303
  Prefactor  = 0.0001
  Prefactor  = 0.593258
  norm       = 5.90341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00229
  Prefactor  = 0.766633
 **********
 **   18 **HESSE 
 **********

 FCN=   2201.028     FROM HESSE     STATUS=OK           368 CALLS     2869 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          80.589        85.989        .22373E-03   -1.3910    
   2  Prefactor     30.239        167.43        .36576E-03   -1.4608    
   3  norm          13.201        35.269        .11020E-03   -1.4981    
   4  norm          15.500        9.3926        .99712E-04   -1.4920    
   5  norm          .93579        2.1708        .92041E-04   -1.5514    
   6  Prefactor     24.484        227.78        .81081E-04   -1.4718    
   7  Prefactor     .10000E-03    27.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    265.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9230        6.2845        .14375E-03   -1.5312    
  11  Prefactor     .10000E-03    211.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .59326        18.080        .23905E-02   -1.5554    
  13  norm          5.9034        66.864        .16512E-03   -1.5222    
  14  Prefactor     .10000E-03    23.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    94.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    141.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    63.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    38.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.9643        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0023        .43636        .38664E-03   -.92954    
  23  Prefactor     .76663        .14839        .16654E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80353e-10
Minuit parameter uncertainties:
  1  86.1223
  2  142.929
  3  35.3251
  4  9.39347
  5  2.171
  6  150.118
  7  3.85045e-06
  8  0.000323611
  9  4.16088e-05
  10  6.2856
  11  0.000145727
  12  6.55176
  13  39.7912
  14  7.72562e-05
  15  9.20689e-05
  16  0.000218709
  17  0.000173189
  18  2.64533e-05
  19  1.44677e-05
  20  2.96316e-06
  21  2.2398e-05
  22  0.43793
  23  0.148469
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.000e-04  4.161e-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:  7.666e-01  1.485e-01  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:  1.002e+00  4.379e-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: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491194/likelihoodResults_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.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) = 2201.02828555
delta logL = -0.000137382106914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2201.02814966
delta logL = -1.49397874338e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2154       1.0000          .0000       10.000    
     3 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76663       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=   2201.028     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      292 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    210.27        .18142E-01** at limit **
   2  Index         1.9606        9.0185        .50000        .23181E-07
   3  Normalizat    1.0023        .26166E-01    .38664E-03    .90270E-05
   4  Prefactor     .76663        .10058E-01    .16655E-03    .25809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.96057
  Normalizat = 1.00229
  Prefactor  = 0.766631
 **********
 **   18 **HESSE 
 **********

 FCN=   2201.028     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1253.0        .28790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9606        8.6026        .50000       -.65339    
   3  Normalizat    1.0023        .67040E-01    .15466E-04   -.92954    
   4  Prefactor     .76663        .25770E-01    .33310E-04   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63727e-09
Minuit parameter uncertainties:
  1  0.0052448
  2  2583.13
  3  0.0670456
  4  0.0257702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491194': 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) = 2201.02814799
delta logL = 1.7589673007e-07

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.000e-04  5.245e-03  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  1.961e+00  2.583e+03  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:  7.666e-01  2.577e-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:  1.002e+00  6.705e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/491194/cmap_HighResolution_390441601_390700801_4FGL_J0733.8+0455_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-08-27 15:16:33.874324', job_id='491194', GAL2='0.77', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630102593.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='583' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 491194: <4FGL_J0733.8+0455_daily_bin583> in cluster <slac> Done

Job <4FGL_J0733.8+0455_daily_bin583> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Aug 27 15:00:37 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 15:02:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 15:02:15 2021
Terminated at Fri Aug 27 15:16:35 2021
Results reported at Fri Aug 27 15:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin583 113.472 4.9282 390441601 390700801 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 :                                   712.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            958 sec.

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

