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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin524
RA = 113.42, Dec = 36.8225
tmin = 375148801, tmax = 375408001
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='478378', job_status='RUN', time_executed='2021-08-27 14:18:25.126372', time_epoch_executed='1630099105.13' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478378/ft1_4FGL_J0733.6+3649_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478378/ft1_4FGL_J0733.6+3649_daily_bin524.fits outfile=/scratch/kocevski/478378/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin524.fits ra=113.42 dec=36.8225 rad=12.0 tmin=375148801.0 tmax=375408001.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 4.87
user 4.33
sys 0.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.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/478378/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin524.fits evtable="EVENTS" outfile="/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.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.82
user 0.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/478378/ltcube_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.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/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits
.....................!
real 12.11
user 11.33
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/478378/ltcube_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits outfile=/scratch/kocevski/478378/expmap_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.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/478378/ltcube_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits
.....................!
real 191.52
user 185.87
sys 4.56

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 IC 443 in ROI with RadialGaussian spatial model.
Added 188 point sources and 1 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.6+3649 @ 113.42 36.8225

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits outfile=/scratch/kocevski/478378/cmap_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.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.42 yref=36.8225 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.82
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits outfile=/scratch/kocevski/478378/cmap_HighResolution_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.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.42 yref=36.8225 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.83
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478378/Model_4FGL_J0733.6+3649_daily_bin524.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 IC 443
Working on...
/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits.....................!
real 84.59
user 82.80
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits', '/scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits', expMap='/scratch/kocevski/478378/expmap_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits', expCube='/scratch/kocevski/478378/ltcube_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478378/Model_4FGL_J0733.6+3649_daily_bin524.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0733.6+3649'

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.374e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.233e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478378/ft1_filtered_4FGL_J0733.6+3649_daily_bin524.fits
Spacecraft file(s): /scratch/kocevski/478378/ft2_4FGL_J0733.6+3649_daily_bin524.fits
Exposure map: /scratch/kocevski/478378/expmap_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits
Exposure cube: /scratch/kocevski/478378/ltcube_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478378/Model_4FGL_J0733.6+3649_daily_bin524.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) = 8115.3712386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15896E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8003       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1720       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4041       1.0000         .10000E-03   10000.    
     8 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11479E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2241       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4205       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .71712       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0122       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2502       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8115.332     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2487 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5334        2.6773        .96598E-07   -.12465E-04
   2  Prefactor     .10032E-03    11.692       -.13702E-05** at limit **
   3  Prefactor     2.7999        3.8462        .22965E-06   -.15291E-03
   4  norm          6.1711        6.3734        .13920E-06   -.45620E-04
   5  norm          .10000E-03    .23319        .13111E-07** at limit **
   6  Prefactor     .99953        5.0202        .21949E-05   -.41847E-03
   7  Prefactor     3.4012        6.4403        .70531E-06    .42861E-04
   8  norm          .10000E-03    2.9381        .14927E-06** at limit **
   9  Prefactor     .10001E-03    132.25       -.13393E-04** at limit **
  10  Prefactor     5.2029        14.171        .34691E-06    .18927E-04
  11  Prefactor     9.2136        28.395       -.56706E-06    .52455E-04
  12  norm          3.4151        7.5368        .77281E-06   -.16749E-04
  13  Prefactor     .10000E-03    3.9064       -.65042E-07** at limit **
  14  Prefactor     6.1740        22.030       -.29260E-07    .25841E-04
  15  Prefactor     .20216        2.1998       -.10332E-05    .12925E-02
  16  Prefactor     .10001E-03    81.812        .10826E-04** at limit **
  17  norm          .71739        .44818       -.13299E-07    .63142E-03
  18  Prefactor     .10000E-03    23.753        .58438E-06** at limit **
  19  Prefactor     3.3986        13.986       -.18961E-05    .21876E-03
  20  Prefactor     1.0104        1.8272        .26251E-05    .10408E-02
  21  Normalizat    1.2506        .17144       -.19637E-05    .34725E-03
  22  Prefactor     .82135        .97303E-01    .38903E-06    .16867E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53335
  Prefactor  = 0.000100318
  Prefactor  = 2.79989
  norm       = 6.17107
  norm       = 0.0001
  Prefactor  = 0.999532
  Prefactor  = 3.40121
  norm       = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 5.20293
  Prefactor  = 9.21363
  norm       = 3.41506
  Prefactor  = 0.0001
  Prefactor  = 6.17401
  Prefactor  = 0.202162
  Prefactor  = 0.000100007
  norm       = 0.717387
  Prefactor  = 0.0001
  Prefactor  = 3.39858
  Prefactor  = 1.01044
  Normalizat = 1.25057
  Prefactor  = 0.821354
 **********
 **   18 **HESSE 
 **********

 FCN=   8115.332     FROM HESSE     STATUS=OK           360 CALLS     2847 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5334        2.6636        .14692E-03   -1.5390    
   2  Prefactor     .10032E-03    70.935        .59264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7999        3.8309        .20039E-03   -1.5373    
   4  norm          6.1711        6.3685        .16159E-03   -1.5211    
   5  norm          .10000E-03    .42974        .83983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99953        5.0096        .37933E-03   -1.5508    
   7  Prefactor     3.4012        6.4196        .21927E-03   -1.5339    
   8  norm          .10000E-03    6.7393        .28831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    134.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2029        14.153        .17623E-03   -1.5252    
  11  Prefactor     9.2136        27.441        .13196E-03   -1.5101    
  12  norm          3.4151        7.5181        .21872E-03   -1.5338    
  13  Prefactor     .10000E-03    3.9296        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1740        21.996        .16157E-03   -1.5211    
  15  Prefactor     .20216        22.797        .23535E-02   -1.5618    
  16  Prefactor     .10001E-03    84.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .71739        .44790        .44312E-04   -1.5539    
  18  Prefactor     .10000E-03    23.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3986        13.937        .22043E-03   -1.5339    
  20  Prefactor     1.0104        1.8091        .17494E-02   -1.5507    
  21  Normalizat    1.2506        .19692        .26417E-03   -.85054    
  22  Prefactor     .82135        .11243        .19076E-03   -.98946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01689e-08
Minuit parameter uncertainties:
  1  2.66373
  2  0.00950849
  3  3.83123
  4  6.36922
  5  2.53949e-06
  6  4.47574
  7  6.42092
  8  0.000190842
  9  0.00254991
  10  14.1619
  11  27.479
  12  7.52019
  13  9.19791e-06
  14  22.0247
  15  4.29421
  16  0.00155388
  17  0.447902
  18  7.63641e-05
  19  13.7698
  20  1.80916
  21  0.197036
  22  0.11246
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  3.401e+00  6.421e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.374e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.233e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.214e-01  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.251e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 113.420 36.822
Photon Flux Upper Limit: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478378/likelihoodResults_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.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) = 8114.83371437
delta logL = 0.4983772859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8114.78926185
delta logL = 0.542829810194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3653       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3815       1.0000          .0000       10.000    
     3 'Normalizat'    1.2600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8114.789     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3874        7.2673        .43374E-02   -.36021E-04
   2  Index         1.3831        .59673        .31323       -.51303E-04
   3  Normalizat    1.2601        .15960        .59525E-01    .39869E-05
   4  Prefactor     .81722        .95913E-01    .43942E-01    .45378E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38738
  Index      = 1.3831
  Normalizat = 1.26012
  Prefactor  = 0.817221
 **********
 **   18 **HESSE 
 **********

 FCN=   8114.789     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3874        7.4258        .17350E-03   -1.5244    
   2  Index         1.3831        .72478        .14369E-01   -.80869    
   3  Normalizat    1.2601        .18326        .26325E-03   -.84765    
   4  Prefactor     .81722        .11031        .19111E-03   -.99097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37105e-09
Minuit parameter uncertainties:
  1  7.42702
  2  0.730213
  3  0.183359
  4  0.110343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478378': 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) = 8114.78925693
delta logL = 0.542834728266

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  5.387e+00  7.427e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  1.383e+00  7.302e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.233e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.172e-01  1.103e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.260e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 113.420 36.822
Photon Index (Free Index): 1.38 +/- 0.73
Photon Flux (Free Index): 4.22e-09 +/- 6.45e-09
Energy Flux (Free Index): 1.97e-05 +/- 3.97e-05

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/478378/cmap_HighResolution_375148801_375408001_4FGL_J0733.6+3649_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='5.43e-01', photon_flux2='4.22e-09', job_status='DONE', time_completed='2021-08-27 14:31:58.106694', photon_index_error2='0.73', photon_index2='1.38', ts='0.43', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='6.75e-08', energy_flux_error2='3.97e-05', EG='1.25', time_epoch_completed='1630099918.11', return_code='0', job_id='478378', GAL2='0.82', EG2='1.26', return_code2='0', photon_flux_error2='6.45e-09', ts2='1.51', photon_index='2.37' WHERE bin_id='524' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:31:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 478378: <4FGL_J0733.6+3649_daily_bin524> in cluster <slac> Done

Job <4FGL_J0733.6+3649_daily_bin524> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 14:15:38 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:15:40 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:15:40 2021
Terminated at Fri Aug 27 14:31:58 2021
Results reported at Fri Aug 27 14:31:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin524 113.42 36.8225 375148801 375408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0733.6+3649 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

