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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin728
RA = 113.42, Dec = 36.8225
tmin = 428025601, tmax = 428284801
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='478493', job_status='RUN', time_executed='2021-08-27 14:17:12.811992', time_epoch_executed='1630099032.81' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478493/ft1_4FGL_J0733.6+3649_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478493/ft1_4FGL_J0733.6+3649_daily_bin728.fits outfile=/scratch/kocevski/478493/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin728.fits ra=113.42 dec=36.8225 rad=12.0 tmin=428025601.0 tmax=428284801.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 6.18
user 5.28
sys 0.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478493/ft1_filtered_4FGL_J0733.6+3649_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/478493/ltcube_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.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/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits
.....................!
real 12.68
user 11.63
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478493/ft1_filtered_4FGL_J0733.6+3649_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/478493/ltcube_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.fits outfile=/scratch/kocevski/478493/expmap_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.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/478493/ltcube_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.fits
.....................!
real 194.00
user 187.33
sys 5.97

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/478493/ft1_filtered_4FGL_J0733.6+3649_daily_bin728.fits scfile=/scratch/kocevski/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits outfile=/scratch/kocevski/478493/cmap_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.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.13
user 0.35
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478493/ft1_filtered_4FGL_J0733.6+3649_daily_bin728.fits scfile=/scratch/kocevski/478493/ft2_4FGL_J0733.6+3649_daily_bin728.fits outfile=/scratch/kocevski/478493/cmap_HighResolution_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.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.05
user 0.37
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0416       1.0000         .10000E-03   10000.    
     5 'norm      '    .64815       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7241       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5380       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.982       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .92810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7434       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70525       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1367       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=   6892.220     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2378 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8656       -.17701E-06** at limit **
   2  Prefactor     .10000E-03    42.975       -.12555E-05** at limit **
   3  Prefactor     .10000E-03    5.4611       -.19413E-06** at limit **
   4  norm          6.0403        7.6046        .33939E-05   -.54934E-03
   5  norm          .64810        .61578        .48591E-07    .24902E-04
   6  Prefactor     .10000E-03    7.6185       -.40193E-06** at limit **
   7  Prefactor     .10000E-03    3.5064        .24287E-06** at limit **
   8  norm          5.7256        5.0078        .11229E-06   -.59631E-04
   9  Prefactor     .10000E-03    15.048       -.45498E-06** at limit **
  10  Prefactor     .10000E-03    8.2552        .38419E-06** at limit **
  11  Prefactor     .10001E-03    37.941        .46120E-05** at limit **
  12  norm          .10000E-03    14.320       -.50817E-06** at limit **
  13  Prefactor     8.5397        12.943        .12667E-05    .45310E-04
  14  Prefactor     15.955        65.683       -.78494E-05   -.12441E-03
  15  Prefactor     .10000E-03    3.4236       -.18763E-06** at limit **
  16  Prefactor     .10000E-03    16.283        .38964E-06** at limit **
  17  norm          .92778        .60638       -.12693E-07    .46233E-03
  18  Prefactor     .10000E-03    11.489        .51401E-06** at limit **
  19  Prefactor     .10000E-03    43.638       -.31019E-05** at limit **
  20  Prefactor     4.7342        3.9587        .22564E-08    .21064E-03
  21  Normalizat    .70506        .19706        .56793E-06    .85618E-05
  22  Prefactor     1.1368        .11188       -.69705E-06    .16098E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.04032
  norm       = 0.648097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 8.53972
  Prefactor  = 15.9547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.927781
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.73421
  Normalizat = 0.705058
  Prefactor  = 1.13678
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.220     FROM HESSE     STATUS=OK           336 CALLS     2714 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8199        .22028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0403        7.8383        .81675E-03   -1.5216    
   5  norm          .64810        .60044        .61151E-04   -1.5547    
   6  Prefactor     .10000E-03    7.7330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5122        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7256        5.0095        .16765E-03   -1.5229    
   9  Prefactor     .10000E-03    15.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    39.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5397        13.013        .13719E-03   -1.5123    
  14  Prefactor     15.955        70.698        .10019E-03   -1.4909    
  15  Prefactor     .10000E-03    3.4512        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .92778        .60238        .49868E-04   -1.5515    
  18  Prefactor     .10000E-03    11.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7342        3.9436        .14196E-03   -1.5273    
  21  Normalizat    .70506        .21806        .36020E-03   -1.0369    
  22  Prefactor     1.1368        .12404        .17035E-03   -.88300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21227e-09
Minuit parameter uncertainties:
  1  1.49512e-05
  2  0.000337924
  3  2.73046e-05
  4  7.83958
  5  0.600441
  6  5.74556e-05
  7  1.65592e-05
  8  5.00984
  9  7.92178e-05
  10  5.58915e-05
  11  0.0011378
  12  7.19553e-05
  13  13.0177
  14  67.3036
  15  3.18161e-06
  16  6.01559e-05
  17  0.60238
  18  6.6439e-05
  19  0.000710421
  20  3.94377
  21  0.21833
  22  0.124067
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.656e-05  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.137e+00  1.241e-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:  7.051e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/478493/likelihoodResults_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6892.22145929
delta logL = -0.001347883579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6892.22011123
delta logL = 1.77987203642e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3524       1.0000          .0000       10.000    
     3 'Normalizat'    .70514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1367       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=   6892.220     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.373        .15481E-01** at limit **
   2  Index         1.7236        7.3042        .50000        .68437E-06
   3  Normalizat    .70506        .89301E-02    .36019E-03   -.10697E-03
   4  Prefactor     1.1368        .52877E-02    .17035E-03   -.21318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.72359
  Normalizat = 0.705059
  Prefactor  = 1.13678
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.220     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.97        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7236        5.8387        .50000       -.71456    
   3  Normalizat    .70506        .29105E-01    .14408E-04   -1.0369    
   4  Prefactor     1.1368        .17234E-01    .34069E-04   -.88300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69924e-08
Minuit parameter uncertainties:
  1  3.39953e-05
  2  738.383
  3  0.029106
  4  0.0172342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478493': 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) = 6892.22010734
delta logL = 4.06648450735e-06

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.400e-05  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  1.724e+00  7.384e+02  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.137e+00  1.723e-02  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:  7.051e-01  2.911e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 113.420 36.822

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/478493/cmap_HighResolution_428025601_428284801_4FGL_J0733.6+3649_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-08-27 14:29:17.185021', job_id='478493', GAL2='1.14', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630099757.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='728' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 478493: <4FGL_J0733.6+3649_daily_bin728> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin728 113.42 36.8225 428025601 428284801 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 :                                   730.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             304.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            811 sec.

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

