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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin944
RA = 113.42, Dec = 36.8225
tmin = 484012801, tmax = 484272001
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='481203', job_status='RUN', time_executed='2021-08-27 14:29:15.032226', time_epoch_executed='1630099755.03' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481203/ft1_4FGL_J0733.6+3649_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481203/ft1_4FGL_J0733.6+3649_daily_bin944.fits outfile=/scratch/kocevski/481203/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin944.fits ra=113.42 dec=36.8225 rad=12.0 tmin=484012801.0 tmax=484272001.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.14
user 3.18
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.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/481203/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/481203/ft1_filtered_4FGL_J0733.6+3649_daily_bin944.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.22
user 0.33
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481203/ft1_filtered_4FGL_J0733.6+3649_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/481203/ltcube_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.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/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits
.....................!
real 12.81
user 11.75
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481203/ft1_filtered_4FGL_J0733.6+3649_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/481203/ltcube_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.fits outfile=/scratch/kocevski/481203/expmap_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.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/481203/ltcube_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.fits
.....................!
real 191.52
user 186.03
sys 5.12

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/481203/ft1_filtered_4FGL_J0733.6+3649_daily_bin944.fits scfile=/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits outfile=/scratch/kocevski/481203/cmap_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.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.24
user 0.38
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481203/ft1_filtered_4FGL_J0733.6+3649_daily_bin944.fits scfile=/scratch/kocevski/481203/ft2_4FGL_J0733.6+3649_daily_bin944.fits outfile=/scratch/kocevski/481203/cmap_HighResolution_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.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.24
user 0.39
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.987       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .33811       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.046       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5691       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9051       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.025       1.0000         .10000E-03   10000.    
    17 'norm      '    .43234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5907       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96594       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0541       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=   8704.192     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2413 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3500        .36423E-08** at limit **
   2  Prefactor     21.987        24.165       -.15412E-07   -.57754E-05
   3  Prefactor     .10000E-03    3.8373       -.83123E-08** at limit **
   4  norm          .33609        3.5277       -.20315E-07    .15017E-04
   5  norm          1.4608        .66698       -.67018E-09    .72253E-04
   6  Prefactor     .10000E-03    3.3099       -.31356E-08** at limit **
   7  Prefactor     24.048        12.868       -.10216E-07    .62822E-03
   8  norm          1.8457        2.9967       -.70917E-08   -.12019E-03
   9  Prefactor     .10000E-03    20.752       -.12640E-07** at limit **
  10  Prefactor     2.2665        1.7901       -.41774E-06   -.11368E-03
  11  Prefactor     .10000E-03    8.9352        .35948E-08** at limit **
  12  norm          3.5699        7.0696       -.10096E-07    .47549E-04
  13  Prefactor     4.9055        5.3832        .11847E-07   -.21014E-03
  14  Prefactor     6.2657        31.783        .99305E-07   -.26152E-03
  15  Prefactor     1.8999        3.3459       -.70631E-08   -.15079E-03
  16  Prefactor     36.025        32.904        .74049E-08   -.23309E-03
  17  norm          .43226        .39629        .40119E-09   -.87186E-03
  18  Prefactor     .10000E-03    9.2400        .70806E-08** at limit **
  19  Prefactor     .10014E-03    8.3997       -.10090E-07** at limit **
  20  Prefactor     5.5897        3.4768       -.53385E-08    .11145E-02
  21  Normalizat    .96567        .17243        .34620E-07    .27417E-03
  22  Prefactor     1.0543        .10164       -.21687E-10    .43718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 21.9866
  Prefactor  = 0.000100001
  norm       = 0.336088
  norm       = 1.46076
  Prefactor  = 0.0001
  Prefactor  = 24.0483
  norm       = 1.84572
  Prefactor  = 0.000100001
  Prefactor  = 2.26652
  Prefactor  = 0.0001
  norm       = 3.56991
  Prefactor  = 4.90554
  Prefactor  = 6.26567
  Prefactor  = 1.89992
  Prefactor  = 36.0253
  norm       = 0.432262
  Prefactor  = 0.0001
  Prefactor  = 0.00010014
  Prefactor  = 5.58965
  Normalizat = 0.965666
  Prefactor  = 1.05426
 **********
 **   18 **HESSE 
 **********

 FCN=   8704.192     FROM HESSE     STATUS=OK           352 CALLS     2765 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4631        .27914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.987        24.220        .42711E-03   -1.4770    
   3  Prefactor     .10000E-03    3.9753        .35666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .33609        13.046        .33892E-02   -1.5592    
   5  norm          1.4608        .66737        .49619E-04   -1.5466    
   6  Prefactor     .10000E-03    3.3511        .16568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.048        12.892        .81688E-04   -1.4727    
   8  norm          1.8457        2.9797        .19947E-03   -1.5436    
   9  Prefactor     .10000E-03    20.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2665        11.099        .13643E-02   -1.5407    
  11  Prefactor     .10000E-03    8.9367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5699        7.0634        .21392E-03   -1.5330    
  13  Prefactor     4.9055        5.3782        .18161E-03   -1.5265    
  14  Prefactor     6.2657        31.681        .16038E-03   -1.5207    
  15  Prefactor     1.8999        3.3052        .21425E-03   -1.5432    
  16  Prefactor     36.025        32.937        .66771E-04   -1.4507    
  17  norm          .43226        .37450        .53738E-03   -1.5576    
  18  Prefactor     .10000E-03    9.2478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10014E-03    63.465        .48717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5897        3.3051        .12286E-03   -1.5235    
  21  Normalizat    .96567        .19559        .31226E-03   -.94190    
  22  Prefactor     1.0543        .11542        .18396E-03   -.90942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11915e-09
Minuit parameter uncertainties:
  1  3.62265e-05
  2  24.2306
  3  0.000106837
  4  4.18822
  5  0.667374
  6  2.45933e-05
  7  12.8936
  8  2.97991
  9  0.000325764
  10  10.0342
  11  6.42585e-05
  12  7.06504
  13  5.37875
  14  28.2016
  15  3.30553
  16  32.9536
  17  0.374501
  18  0.000132816
  19  0.00595791
  20  3.30519
  21  0.195739
  22  0.115446
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  2.405e+01  1.289e+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.054e+00  1.154e-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:  9.657e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.66
Ra Dec: 113.420 36.822
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 6.82e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.24e-05

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) = 8704.13759691
delta logL = 0.0539169510503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8704.12595035
delta logL = 0.0655635089206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.103       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2084       1.0000          .0000       10.000    
     3 'Normalizat'    .97664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0504       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8704.126     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.106        18.908        .75573E-04    .15645E-04
   2  Index         2.2084        .46303        .67703E-02    .50560E-03
   3  Normalizat    .97658        .18783        .31071E-03   -.34102E-04
   4  Prefactor     1.0504        .11399        .18426E-03   -.11842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1057
  Index      = 2.20836
  Normalizat = 0.976584
  Prefactor  = 1.05042
 **********
 **   18 **HESSE 
 **********

 FCN=   8704.126     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.106        18.381        .30229E-05   -1.4647    
   2  Index         2.2084        .44973        .13541E-02   -.59237    
   3  Normalizat    .97658        .18778        .12428E-04   -.93819    
   4  Prefactor     1.0504        .11401        .36851E-04   -.91067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2154e-11
Minuit parameter uncertainties:
  1  18.3849
  2  0.450618
  3  0.187905
  4  0.114033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481203': 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) = 8704.12595015
delta logL = 0.0655637107702

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  2.811e+01  1.838e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.208e+00  4.506e-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:  1.050e+00  1.140e-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:  9.766e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.76
Ra Dec: 113.420 36.822
Photon Index (Free Index): 2.21 +/- 0.45
Photon Flux (Free Index): 5.97e-08 +/- 4.07e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.82e-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/481203/cmap_HighResolution_484012801_484272001_4FGL_J0733.6+3649_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.82e-08', energy_flux2='2.64e-05', photon_flux_error='3.65e-08', dlogl='6.56e-02', energy_flux='2.31e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-08-27 14:41:58.132780', photon_index_error2='0.45', photon_index2='2.21', ts='7.66', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.97', time_epoch_completed='1630100518.13', return_code='0', job_id='481203', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.07e-08', ts2='7.76', photon_index='2.37' WHERE bin_id='944' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:41:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 481203: <4FGL_J0733.6+3649_daily_bin944> in cluster <slac> Done

Job <4FGL_J0733.6+3649_daily_bin944> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 27 14:25:28 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:25: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:25:53 2021
Terminated at Fri Aug 27 14:41:59 2021
Results reported at Fri Aug 27 14:41:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin944 113.42 36.8225 484012801 484272001 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 :                                   772.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            991 sec.

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

