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


Performing analysis on: 4FGL_J0733.8+0455_daily_bin678
RA = 113.472, Dec = 4.9282
tmin = 415065601, tmax = 415324801
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='492573', job_status='RUN', time_executed='2021-08-27 15:08:37.489718', time_epoch_executed='1630102117.49' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492573/ft1_4FGL_J0733.8+0455_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492573/ft1_4FGL_J0733.8+0455_daily_bin678.fits outfile=/scratch/kocevski/492573/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin678.fits ra=113.472 dec=4.9282 rad=12.0 tmin=415065601.0 tmax=415324801.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.67
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.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/492573/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/492573/ft1_filtered_4FGL_J0733.8+0455_daily_bin678.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492573/ft1_filtered_4FGL_J0733.8+0455_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/492573/ltcube_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.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/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits
.....................!
real 12.51
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492573/ft1_filtered_4FGL_J0733.8+0455_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/492573/ltcube_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.fits outfile=/scratch/kocevski/492573/expmap_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.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/492573/ltcube_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.fits
.....................!
real 193.60
user 187.54
sys 4.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/492573/ft1_filtered_4FGL_J0733.8+0455_daily_bin678.fits scfile=/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits outfile=/scratch/kocevski/492573/cmap_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492573/ft1_filtered_4FGL_J0733.8+0455_daily_bin678.fits scfile=/scratch/kocevski/492573/ft2_4FGL_J0733.8+0455_daily_bin678.fits outfile=/scratch/kocevski/492573/cmap_HighResolution_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.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 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .28283       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1147       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.131       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8941       1.0000         .10000E-03   10000.    
    13 'norm      '    97.162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15214E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9773       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0539       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4856.817     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2133 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1893        .77864E-06** at limit **
   2  Prefactor     .10044E-03    22.541        .46361E-05** at limit **
   3  norm          .32550        22.349       -.75549E-06    .10454E-03
   4  norm          5.1156        3.6763       -.39583E-06    .79556E-04
   5  norm          .10000E-03    1.4439       -.76018E-07** at limit **
   6  Prefactor     .10065E-03    17.413        .28210E-04** at limit **
   7  Prefactor     .10000E-03    5.4343       -.45355E-06** at limit **
   8  Prefactor     .10000E-03    18.026        .75256E-05** at limit **
   9  Prefactor     58.134        1.3057        .61466E-06   -.44878E-03
  10  norm          6.9662        4.0093        .45296E-07    .61409E-04
  11  Prefactor     67.786        1.4432        .61845E-06   -.31920E-03
  12  Prefactor     4.9044        1.4268        .77036E-06    .64855E-03
  13  norm          97.207        12.277        .71062E-05   -.95462E-02
  14  Prefactor     .10016E-03    2.5900        .12852E-04** at limit **
  15  Prefactor     .10224E-03    275.07       -.11669E-03** at limit **
  16  Prefactor     24.740        1.1208        .43212E-06    .46113E-03
  17  Prefactor     .10004E-03    29.351       -.19126E-04** at limit **
  18  norm          .10000E-03    5.3962       -.15914E-05** at limit **
  19  norm          .10002E-03    106.14        .10058E-03** at limit **
  20  norm          5.9780        6.1408       -.95032E-05   -.16124E-03
  21  Prefactor     .10001E-03    67.974       -.57212E-04** at limit **
  22  Normalizat    .10000E-01    .29391        .14461E-05** at limit **
  23  Prefactor     1.0538        .63226E-01   -.11452E-05    .83495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.00010044
  norm       = 0.325504
  norm       = 5.11557
  norm       = 0.0001
  Prefactor  = 0.000100654
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 58.1339
  norm       = 6.9662
  Prefactor  = 67.7864
  Prefactor  = 4.90436
  norm       = 97.2075
  Prefactor  = 0.000100157
  Prefactor  = 0.000102239
  Prefactor  = 24.7402
  Prefactor  = 0.000100037
  norm       = 0.0001
  norm       = 0.000100018
  norm       = 5.97802
  Prefactor  = 0.000100008
  Normalizat = 0.01
  Prefactor  = 1.05377
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.817     FROM HESSE     STATUS=OK           418 CALLS     2551 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10044E-03    37.568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .32550        3.3755        .73975E-01   -1.5594    
   4  norm          5.1156        3.8355        .44444E-02   -1.5256    
   5  norm          .10000E-03    1.4425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10065E-03    35.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.134        80.204        .13155E-02   -1.4182    
  10  norm          6.9662        4.2875        .38003E-02   -1.5180    
  11  Prefactor     67.786        46.095        .12188E-02   -1.4059    
  12  Prefactor     4.9044        14.901        .45455E-02   -1.5265    
  13  norm          97.207        74.818        .10195E-02   -1.3733    
  14  Prefactor     .10016E-03    182.43        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10224E-03    285.90        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.740        15.079        .20135E-02   -1.4713    
  17  Prefactor     .10004E-03    29.972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.3936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    110.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9780        6.1746        .41060E-02   -1.5219    
  21  Prefactor     .10001E-03    70.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .17487        .32228       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0538        .71548E-01    .29151E-01   -.90958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83595e-07
Minuit parameter uncertainties:
  1  6.83271e-06
  2  0.00813868
  3  2.09623
  4  3.83565
  5  3.91426e-07
  6  0.00957588
  7  4.75071e-06
  8  0.000258241
  9  80.354
  10  4.28771
  11  46.1194
  12  14.9119
  13  74.8902
  14  0.0107258
  15  0.0508464
  16  15.0812
  17  0.00211154
  18  1.63149e-05
  19  0.0028044
  20  6.17527
  21  0.0015453
  22  6.4984e-08
  23  0.0715543
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  5.813e+01  8.035e+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:  1.054e+00  7.155e-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.000e-02  6.498e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 113.472 4.928
Photon Flux Upper Limit: 2.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492573/likelihoodResults_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.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) = 4856.05871534
delta logL = 0.757827034951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4856.01355182
delta logL = 0.802990559577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.965       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7724       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0463       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=   4856.014     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      318 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.979        131.44        .94495E-04    .28405E-03
   2  Index         3.7718        2.8925        .48808E-02    .12281E-03
   3  Normalizat    .10000E-01    .17799        .13124E-01** at limit **
   4  Prefactor     1.0464        .59063E-01    .12891E-03   -.81957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.979
  Index      = 3.77181
  Normalizat = 0.01
  Prefactor  = 1.04637
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.014     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.979        40.247        .37798E-05   -1.4860    
   2  Index         3.7718        1.2663        .19523E-03   -.24818    
   3  Normalizat    .10000E-01    .17811        .26248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0464        .58749E-01    .25782E-04   -.91200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10555e-10
Minuit parameter uncertainties:
  1  40.308
  2  1.28119
  3  4.08415e-06
  4  0.0587526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492573': 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) = 4856.01355043
delta logL = 0.802991952552

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.798e+01  4.031e+01  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  3.772e+00  1.281e+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:  1.046e+00  5.875e-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.000e-02  4.084e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 113.472 4.928
Photon Index (Free Index): 3.77 +/- 1.28
Photon Flux (Free Index): 2.21e-07 +/- 1.71e-07
Energy Flux (Free Index): 3.45e-05 +/- 2.61e-05

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/492573/cmap_HighResolution_415065601_415324801_4FGL_J0733.8+0455_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-02', comment='SUCCESS', energy_flux2='3.45e-05', dlogl='8.03e-01', photon_flux2='2.21e-07', job_status='DONE', time_completed='2021-08-27 15:18:19.712904', photon_index_error2='1.28', photon_index2='3.77', ts='0.79', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.99e-07', energy_flux_error2='2.61e-05', EG='0.01', time_epoch_completed='1630102699.71', return_code='0', job_id='492573', GAL2='1.05', EG2='0.01', return_code2='0', photon_flux_error2='1.71e-07', ts2='2.42', photon_index='2.44' WHERE bin_id='678' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 492573: <4FGL_J0733.8+0455_daily_bin678> in cluster <slac> Done

Job <4FGL_J0733.8+0455_daily_bin678> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 15:05:23 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 15:06:03 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:06:03 2021
Terminated at Fri Aug 27 15:18:20 2021
Results reported at Fri Aug 27 15:18:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin678 113.472 4.9282 415065601 415324801 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 :                                   577.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            777 sec.

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

