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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin679
RA = 113.42, Dec = 36.8225
tmin = 415324801, tmax = 415584001
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='478417', job_status='RUN', time_executed='2021-08-27 14:18:16.963205', time_epoch_executed='1630099096.96' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478417/ft1_4FGL_J0733.6+3649_daily_bin679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478417/ft1_4FGL_J0733.6+3649_daily_bin679.fits outfile=/scratch/kocevski/478417/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin679.fits ra=113.42 dec=36.8225 rad=12.0 tmin=415324801.0 tmax=415584001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.58
user 5.75
sys 1.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits" evtable="EVENTS" scfile=/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits sctable="SC_DATA" outfile=/scratch/kocevski/478417/ltcube_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.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/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits
.....................!
real 13.39
user 11.51
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits sctable="SC_DATA" expcube=/scratch/kocevski/478417/ltcube_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits outfile=/scratch/kocevski/478417/expmap_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.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/478417/ltcube_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits
.....................!
real 193.17
user 184.86
sys 6.09

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/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits scfile=/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits outfile=/scratch/kocevski/478417/cmap_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.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 1.69
user 0.38
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits scfile=/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits outfile=/scratch/kocevski/478417/cmap_HighResolution_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.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 1.81
user 0.38
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478417/Model_4FGL_J0733.6+3649_daily_bin679.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/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits.....................!
real 74.56
user 71.09
sys 2.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits', '/scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits', expMap='/scratch/kocevski/478417/expmap_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits', expCube='/scratch/kocevski/478417/ltcube_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478417/Model_4FGL_J0733.6+3649_daily_bin679.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/478417/ft1_filtered_4FGL_J0733.6+3649_daily_bin679.fits
Spacecraft file(s): /scratch/kocevski/478417/ft2_4FGL_J0733.6+3649_daily_bin679.fits
Exposure map: /scratch/kocevski/478417/expmap_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits
Exposure cube: /scratch/kocevski/478417/ltcube_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478417/Model_4FGL_J0733.6+3649_daily_bin679.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) = 7250.98572615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .59267E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7558       1.0000         .10000E-03   10000.    
     4 'norm      '    .13479E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.563       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1051       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21208E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.117       1.0000         .10000E-03   10000.    
    17 'norm      '    .97605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33222       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64515       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0274       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=   7250.964     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2505 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81218        .35415E-07** at limit **
   2  Prefactor     .10003E-03    84.939        .96064E-05** at limit **
   3  Prefactor     4.7566        5.5935        .43751E-06    .11950E-03
   4  norm          .10000E-03    3.7403       -.20799E-06** at limit **
   5  norm          .57047        .44917        .26828E-07   -.51298E-04
   6  Prefactor     .10000E-03    3.8462        .10620E-06** at limit **
   7  Prefactor     14.555        14.586        .35947E-06   -.12356E-04
   8  norm          .10000E-03    2.7330        .76259E-07** at limit **
   9  Prefactor     .10000E-03    25.661        .26690E-05** at limit **
  10  Prefactor     3.1079        13.491        .13570E-04   -.38132E-03
  11  Prefactor     .10001E-03    30.304       -.34481E-05** at limit **
  12  norm          .10000E-03    6.2219        .51797E-07** at limit **
  13  Prefactor     11.051        9.4535       -.24982E-05    .54477E-03
  14  Prefactor     .10034E-03    200.04       -.29900E-04** at limit **
  15  Prefactor     4.5007        4.2417       -.18883E-07    .67187E-04
  16  Prefactor     26.103        33.478       -.10776E-05   -.16117E-03
  17  norm          .97613        .58895       -.26523E-07    .49802E-03
  18  Prefactor     .10000E-03    40.970        .13585E-06** at limit **
  19  Prefactor     .10000E-03    9.0392       -.39356E-07** at limit **
  20  Prefactor     .33198        1.6346        .45752E-06   -.32395E-03
  21  Normalizat    .64507        .16929       -.16151E-05    .36503E-04
  22  Prefactor     1.0275        .98911E-01    .46155E-08   -.68996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 4.75661
  norm       = 0.0001
  norm       = 0.570466
  Prefactor  = 0.0001
  Prefactor  = 14.555
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 3.1079
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 11.0511
  Prefactor  = 0.000100343
  Prefactor  = 4.50072
  Prefactor  = 26.1034
  norm       = 0.976126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.331985
  Normalizat = 0.645074
  Prefactor  = 1.02748
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.964     FROM HESSE     STATUS=OK           344 CALLS     2849 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81458        .74935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    90.080        .37917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7566        5.5032        .18450E-03   -1.5272    
   4  norm          .10000E-03    15.272        .31402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57047        .46339        .48906E-03   -1.5557    
   6  Prefactor     .10000E-03    3.9926        .32601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.555        14.601        .10496E-03   -1.4945    
   8  norm          .10000E-03    2.8073        .27470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1079        14.637        .11506E-02   -1.5355    
  11  Prefactor     .10001E-03    30.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.2776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.051        9.3430        .12052E-03   -1.5043    
  14  Prefactor     .10034E-03    219.91        .40351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5007        4.2183        .15844E-03   -1.5284    
  16  Prefactor     26.103        33.621        .78387E-04   -1.4686    
  17  norm          .97613        .57310        .47971E-04   -1.5510    
  18  Prefactor     .10000E-03    42.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33198        3.2356        .20483E-02   -1.5593    
  21  Normalizat    .64507        .18937        .32447E-03   -1.0610    
  22  Prefactor     1.0275        .11158        .16312E-03   -.91819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53678e-08
Minuit parameter uncertainties:
  1  2.60254e-07
  2  0.00321327
  3  5.50382
  4  0.000127002
  5  0.463395
  6  8.36424e-06
  7  14.6047
  8  5.79939e-06
  9  0.0006733
  10  13.4943
  11  0.00093432
  12  6.7597e-06
  13  9.34425
  14  0.0174315
  15  4.21861
  16  33.6458
  17  0.573099
  18  8.74578e-05
  19  1.22964e-05
  20  2.07268
  21  0.189558
  22  0.111603
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.455e+01  1.460e+01  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:  1.027e+00  1.116e-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:  6.451e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 113.420 36.822
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.41e-05

TS (Fixed Index): 1.22
Ra Dec: 113.420 36.822
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478417/likelihoodResults_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.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) = 7250.85063645
delta logL = 0.11337528133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7250.83940062
delta logL = 0.124611111319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7981       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7396       1.0000          .0000       10.000    
     3 'Normalizat'    .63142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0336       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=   7250.839     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      256 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7915        203.33        .33783E-02    .14997E-03
   2  Index         2.7413        3.3482        .11902        .16761E-03
   3  Normalizat    .63128        .60187E-01    .74044E-01    .35371E-04
   4  Prefactor     1.0335        .36192E-01    .40987E-01   -.47432E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.79146
  Index      = 2.74127
  Normalizat = 0.631276
  Prefactor  = 1.03348
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.839     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7915        21.559        .13513E-03   -1.5115    
   2  Index         2.7413        1.1605        .63831E-02   -.46872    
   3  Normalizat    .63128        .18254        .32779E-03   -1.0667    
   4  Prefactor     1.0335        .11242        .16270E-03   -.91622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9746e-11
Minuit parameter uncertainties:
  1  21.5777
  2  1.17396
  3  0.18271
  4  0.112447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478417': 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) = 7250.83939398
delta logL = 0.124617752847

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  8.791e+00  2.158e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.741e+00  1.174e+00  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:  1.033e+00  1.124e-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:  6.313e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 113.420 36.822
Photon Index (Free Index): 2.74 +/- 1.17
Photon Flux (Free Index): 4.95e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.46e-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/478417/cmap_HighResolution_415324801_415584001_4FGL_J0733.6+3649_daily_bin679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.16e-05', photon_flux_error='4.14e-08', dlogl='1.25e-01', energy_flux='1.40e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-08-27 14:31:17.804588', photon_index_error2='1.17', photon_index2='2.74', ts='1.22', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.46e-05', EG='0.65', time_epoch_completed='1630099877.8', return_code='0', job_id='478417', GAL2='1.03', EG2='0.63', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.55e-08', ts2='1.49', photon_index='2.37' WHERE bin_id='679' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:31:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 478417: <4FGL_J0733.6+3649_daily_bin679> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin679 113.42 36.8225 415324801 415584001 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 :                                   792.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

