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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin676
RA = 113.42, Dec = 36.8225
tmin = 414547201, tmax = 414806401
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='478413', job_status='RUN', time_executed='2021-08-27 14:17:58.393427', time_epoch_executed='1630099078.39' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478413/ft1_4FGL_J0733.6+3649_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478413/ft1_4FGL_J0733.6+3649_daily_bin676.fits outfile=/scratch/kocevski/478413/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin676.fits ra=113.42 dec=36.8225 rad=12.0 tmin=414547201.0 tmax=414806401.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.41
user 4.11
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.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/478413/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/478413/ft1_filtered_4FGL_J0733.6+3649_daily_bin676.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.44
user 0.26
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478413/ft1_filtered_4FGL_J0733.6+3649_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/478413/ltcube_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.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/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits
.....................!
real 8.80
user 8.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478413/ft1_filtered_4FGL_J0733.6+3649_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/478413/ltcube_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.fits outfile=/scratch/kocevski/478413/expmap_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.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/478413/ltcube_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.fits
.....................!
real 139.91
user 135.78
sys 3.86

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/478413/ft1_filtered_4FGL_J0733.6+3649_daily_bin676.fits scfile=/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits outfile=/scratch/kocevski/478413/cmap_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.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.47
user 0.28
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478413/ft1_filtered_4FGL_J0733.6+3649_daily_bin676.fits scfile=/scratch/kocevski/478413/ft2_4FGL_J0733.6+3649_daily_bin676.fits outfile=/scratch/kocevski/478413/cmap_HighResolution_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.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.47
user 0.30
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5754       1.0000         .10000E-03   10000.    
     4 'norm      '    .14874E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .56992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.681       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9980       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.439       1.0000         .10000E-03   10000.    
    17 'norm      '    .21734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11314E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5220       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1658       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89604       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=   7454.745     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2457 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    1.8140        .55687E-06** at limit **
   2  Prefactor     22.431        20.894        .42277E-07   -.50972E-04
   3  Prefactor     2.5728        5.8084        .86781E-06    .29761E-03
   4  norm          .10002E-03    4.8546       -.19272E-05** at limit **
   5  norm          .56992        .65001        .11138E-06    .20354E-03
   6  Prefactor     2.6209        7.2165        .12522E-05    .26350E-04
   7  Prefactor     10.611        13.653        .31384E-06   -.13515E-04
   8  norm          .10000E-03    2.6856       -.54262E-06** at limit **
   9  Prefactor     .10000E-03    12.421        .15100E-06** at limit **
  10  Prefactor     .10000E-03    16.537        .92830E-07** at limit **
  11  Prefactor     37.660        36.673       -.22610E-06   -.17018E-03
  12  norm          6.9991        11.149        .37279E-06   -.27554E-05
  13  Prefactor     .10000E-03    5.5150        .61434E-06** at limit **
  14  Prefactor     46.814        41.719        .94790E-07    .95160E-04
  15  Prefactor     .10000E-03    4.5280        .98425E-07** at limit **
  16  Prefactor     22.436        31.756        .11034E-06   -.32590E-04
  17  norm          .21720        .39657        .49408E-06    .23215E-02
  18  Prefactor     .10000E-03    8.4067        .25218E-07** at limit **
  19  Prefactor     .10001E-03    9.9869       -.20496E-05** at limit **
  20  Prefactor     1.5215        3.2084        .97750E-06    .56555E-03
  21  Normalizat    1.1657        .19216       -.15429E-05    .15180E-03
  22  Prefactor     .89606        .10257        .84786E-07    .70252E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100134
  Prefactor  = 22.4309
  Prefactor  = 2.57276
  norm       = 0.000100022
  norm       = 0.569918
  Prefactor  = 2.62093
  Prefactor  = 10.6112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6599
  norm       = 6.99909
  Prefactor  = 0.0001
  Prefactor  = 46.8144
  Prefactor  = 0.0001
  Prefactor  = 22.4358
  norm       = 0.217202
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 1.52148
  Normalizat = 1.16571
  Prefactor  = 0.896064
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.745     FROM HESSE     STATUS=OK           354 CALLS     2811 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10013E-03    30.379        .21793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.431        20.875        .84562E-04   -1.4760    
   3  Prefactor     2.5728        5.7359        .25433E-03   -1.5387    
   4  norm          .10002E-03    10.851        .32011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .56992        .61579        .71077E-03   -1.5557    
   6  Prefactor     2.6209        7.1653        .25189E-03   -1.5384    
   7  Prefactor     10.611        13.692        .12301E-03   -1.5056    
   8  norm          .10000E-03    2.7073        .13757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.660        36.948        .65292E-04   -1.4480    
  12  norm          6.9991        11.154        .15165E-03   -1.5179    
  13  Prefactor     .10000E-03    5.5672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.814        41.773        .58612E-04   -1.4338    
  15  Prefactor     .10000E-03    4.6175        .35766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.436        31.784        .84557E-04   -1.4760    
  17  norm          .21720        .38845        .75501E-03   -1.5615    
  18  Prefactor     .10000E-03    8.4137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    51.074        .47356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5215        3.0586        .20135E-03   -1.5461    
  21  Normalizat    1.1657        .21832        .28538E-03   -.87669    
  22  Prefactor     .89606        .11774        .18801E-03   -.96279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2676e-09
Minuit parameter uncertainties:
  1  0.00403527
  2  20.8818
  3  5.73714
  4  0.000975974
  5  0.615793
  6  7.16761
  7  13.6957
  8  3.68078e-06
  9  0.000145671
  10  8.67112e-05
  11  36.9705
  12  11.1572
  13  1.40878e-05
  14  41.7988
  15  6.10858e-06
  16  31.8076
  17  0.388458
  18  9.57232e-06
  19  0.00168408
  20  3.05893
  21  0.218495
  22  0.117774
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.061e+01  1.370e+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:  8.961e-01  1.178e-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.166e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/478413/likelihoodResults_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.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) = 7453.78751144
delta logL = 0.957750058887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7453.78629274
delta logL = 0.958968756518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7068       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8029       1.0000          .0000       10.000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92149       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=   7453.786     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      323 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6927        17.491        .80460E-02    .12621E-03
   2  Index         3.8077        2.2693        .12217        .99184E-04
   3  Normalizat    1.0938        .53657E-01    .66295E-01   -.24367E-04
   4  Prefactor     .92154        .30934E-01    .45278E-01   -.11510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69268
  Index      = 3.80775
  Normalizat = 1.09379
  Prefactor  = 0.921535
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.786     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      356 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6927        38.746        .73702E-04   -1.5448    
   2  Index         3.8077        3.8916        .42792E-02   -.24077    
   3  Normalizat    1.0938        .19787        .29328E-03   -.89952    
   4  Prefactor     .92154        .11401        .18566E-03   -.95393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.92783e-10
Minuit parameter uncertainties:
  1  16.2082
  2  4.51433
  3  0.198002
  4  0.114037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478413': 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): 102
logL (Free Index) = 7453.78628165
delta logL = 0.958979853882

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.693e+00  1.621e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  3.808e+00  4.514e+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:  9.215e-01  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:  1.094e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 113.420 36.822
Photon Index (Free Index): 3.81 +/- 4.51
Photon Flux (Free Index): 8.64e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.33e-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/478413/cmap_HighResolution_414547201_414806401_4FGL_J0733.6+3649_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='9.59e-01', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-08-27 14:27:28.134749', photon_index_error2='4.51', photon_index2='3.81', ts='0.80', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.33e-05', EG='1.17', time_epoch_completed='1630099648.13', return_code='0', job_id='478413', GAL2='0.92', EG2='1.09', return_code2='102', photon_flux_error2='6.20e-08', ts2='2.90', photon_index='2.37' WHERE bin_id='676' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:27:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 478413: <4FGL_J0733.6+3649_daily_bin676> in cluster <slac> Done

Job <4FGL_J0733.6+3649_daily_bin676> 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) <bullet0135>, 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:27:28 2021
Results reported at Fri Aug 27 14:27:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin676 113.42 36.8225 414547201 414806401 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 :                                   565.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

