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


Performing analysis on: 4FGL_J0733.8+0455_daily_bin433
RA = 113.472, Dec = 4.9282
tmin = 351561601, tmax = 351820801
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='489948', job_status='RUN', time_executed='2021-08-27 14:58:30.962390', time_epoch_executed='1630101510.96' WHERE source_name='4FGL J0733.8+0455' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489948

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489948/ft1_4FGL_J0733.8+0455_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489948/ft1_4FGL_J0733.8+0455_daily_bin433.fits outfile=/scratch/kocevski/489948/ft1_filteredMKT_4FGL_J0733.8+0455_daily_bin433.fits ra=113.472 dec=4.9282 rad=12.0 tmin=351561601.0 tmax=351820801.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 8.27
user 6.63
sys 1.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489948/ft1_filtered_4FGL_J0733.8+0455_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/489948/ltcube_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.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/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits
.....................!
real 12.85
user 11.06
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489948/ft1_filtered_4FGL_J0733.8+0455_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/489948/ltcube_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.fits outfile=/scratch/kocevski/489948/expmap_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.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/489948/ltcube_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.fits
.....................!
real 193.30
user 185.56
sys 7.33

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/489948/ft1_filtered_4FGL_J0733.8+0455_daily_bin433.fits scfile=/scratch/kocevski/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits outfile=/scratch/kocevski/489948/cmap_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.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.80
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489948/ft1_filtered_4FGL_J0733.8+0455_daily_bin433.fits scfile=/scratch/kocevski/489948/ft2_4FGL_J0733.8+0455_daily_bin433.fits outfile=/scratch/kocevski/489948/cmap_HighResolution_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.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.80
user 0.36
sys 1.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.024       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2274       1.0000         .10000E-03   10000.    
     4 'norm      '    .18807E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .76562E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35274E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11188E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.904       1.0000         .10000E-03   10000.    
    18 'norm      '    .98703E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .36375E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2717       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1544       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94320       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=   7176.384     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2998 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5600        42.451        .30957E-05    .20963E-04
   2  Prefactor     23.015        51.839        .10365E-05   -.90364E-05
   3  norm          6.2284        4.8066        .21926E-06    .84690E-04
   4  norm          .10000E-03    1.1507        .22067E-06** at limit **
   5  norm          .79300E-01    .61528        .85560E-07   -.10155E-03
   6  Prefactor     .10000E-03    13.897        .73771E-07** at limit **
   7  Prefactor     11.577        9.8205        .33322E-07   -.43036E-05
   8  Prefactor     .10000E-03    4.7933        .53566E-07** at limit **
   9  Prefactor     .13739E-03    49.935       -.57186E-05** at limit **
  10  norm          1.1994        1.6019        .25053E-06    .40285E-03
  11  Prefactor     .10000E-03    7.9553        .40322E-07** at limit **
  12  Prefactor     .10000E-03    1.2404        .37274E-06** at limit **
  13  norm          10.676        19.641       -.46027E-06   -.54262E-04
  14  Prefactor     .10000E-03    5.3188        .32427E-06** at limit **
  15  Prefactor     .10000E-03    99.128        .82199E-06** at limit **
  16  Prefactor     .10000E-03    10.935        .35437E-06** at limit **
  17  Prefactor     15.889        20.905       -.96223E-06   -.11896E-03
  18  norm          .10000E-03    6.5662       -.32697E-06** at limit **
  19  norm          .10009E-03    105.19       -.48332E-06** at limit **
  20  norm          .10000E-03    2.2567        .22791E-06** at limit **
  21  Prefactor     5.2234        62.943       -.15206E-05   -.61732E-04
  22  Normalizat    1.1542        .21522        .17531E-05   -.23557E-03
  23  Prefactor     .94317        .80936E-01   -.17832E-05   -.13083E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55998
  Prefactor  = 23.0152
  norm       = 6.22844
  norm       = 0.0001
  norm       = 0.0793002
  Prefactor  = 0.0001
  Prefactor  = 11.5772
  Prefactor  = 0.0001
  Prefactor  = 0.000137393
  norm       = 1.19942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8891
  norm       = 0.000100003
  norm       = 0.000100086
  norm       = 0.0001
  Prefactor  = 5.22336
  Normalizat = 1.1542
  Prefactor  = 0.943167
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.384     FROM HESSE     STATUS=OK           386 CALLS     3384 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5600        42.554        .17050E-03   -1.5236    
   2  Prefactor     23.015        51.781        .83478E-04   -1.4748    
   3  norm          6.2284        4.8038        .15733E-03   -1.5209    
   4  norm          .10000E-03    3.2819        .17550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .79300E-01    3.0541        .12655E-02   -1.5652    
   6  Prefactor     .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.577        9.8174        .11775E-03   -1.5027    
   8  Prefactor     .10000E-03    4.7980        .18115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13739E-03    16.471        .11751       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1994        1.5776        .11972E-03   -1.5489    
  11  Prefactor     .10000E-03    7.9562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2544        .92225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.676        19.651        .12258E-03   -1.5054    
  14  Prefactor     .10000E-03    5.3290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    99.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.889        20.759        .10043E-03   -1.4911    
  18  norm          .10000E-03    38.712        .41425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10009E-03    102.47        .55975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3073        .12437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2234        62.537        .17506E-03   -1.5251    
  22  Normalizat    1.1542        .21676        .36644E-03   -.88030    
  23  Prefactor     .94317        .81787E-01    .15206E-03   -.94649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78403e-08
Minuit parameter uncertainties:
  1  30.7937
  2  51.8823
  3  4.80409
  4  2.5826e-05
  5  0.983696
  6  1.84033e-05
  7  9.8188
  8  7.75763e-06
  9  0.0496484
  10  1.57768
  11  5.82104e-06
  12  1.8584e-05
  13  19.6633
  14  3.52717e-05
  15  2.00849e-05
  16  5.93717e-05
  17  20.7685
  18  0.000660404
  19  0.00593129
  20  1.55515e-05
  21  36.1939
  22  0.216929
  23  0.0817978
Done.

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

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  1.374e-04  4.965e-02  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.432e-01  8.180e-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.154e+00  2.169e-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: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489948/likelihoodResults_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.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) = 7176.38439737
delta logL = -7.17389775673e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7176.38439737
delta logL = -7.17309012543e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.1542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94317       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7176.363     FROM MIGRAD    STATUS=CONVERGED    182 CALLS      367 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0176        26.921        .18142E-02   -.16962E-03
   2  Index         1.8456        1.7334        .19934E-01   -.93230E-05
   3  Normalizat    1.1531        .19918        .36657E-03   -.17668E-03
   4  Prefactor     .94275        .76098E-01    .15208E-03   -.23323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01759
  Index      = 1.84558
  Normalizat = 1.15315
  Prefactor  = 0.942752
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.363     FROM HESSE     STATUS=OK            25 CALLS      392 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0176        26.533        .72569E-04   -1.5307    
   2  Index         1.8456        1.7238        .79735E-03   -.68269    
   3  Normalizat    1.1531        .19922        .14663E-04   -.88063    
   4  Prefactor     .94275        .76115E-01    .30416E-04   -.94663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83053e-10
Minuit parameter uncertainties:
  1  20.6623
  2  1.78623
  3  0.199354
  4  0.0761235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489948': 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) = 7176.36265831
delta logL = 0.0217318799505

Extracting fit parameters...

4FGL J0733.8+0455
   Spectrum: PowerLaw
215    Prefactor:  4.018e+00  2.066e+01  1.000e-04  1.000e+04 ( 1.000e-13)
216        Index:  1.846e+00  1.786e+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.428e-01  7.612e-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.153e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/489948/cmap_HighResolution_351561601_351820801_4FGL_J0733.8+0455_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.02e-08', time_completed='2021-08-27 15:12:14.905790', job_id='489948', GAL2='0.94', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630102334.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.17e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='433' AND source_name='4FGL J0733.8+0455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 15:12:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 489948: <4FGL_J0733.8+0455_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.8+0455_daily_bin433 113.472 4.9282 351561601 351820801 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 :                                   838.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            982 sec.

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

