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


Performing analysis on: 4FGL_J0733.6+3649_daily_bin941
RA = 113.42, Dec = 36.8225
tmin = 483235201, tmax = 483494401
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='481198', job_status='RUN', time_executed='2021-08-27 14:28:15.499520', time_epoch_executed='1630099695.5' WHERE source_name='4FGL J0733.6+3649' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481198/ft1_4FGL_J0733.6+3649_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481198/ft2_4FGL_J0733.6+3649_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481198/ft1_4FGL_J0733.6+3649_daily_bin941.fits outfile=/scratch/kocevski/481198/ft1_filteredMKT_4FGL_J0733.6+3649_daily_bin941.fits ra=113.42 dec=36.8225 rad=12.0 tmin=483235201.0 tmax=483494401.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.12
user 3.25
sys 0.84

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481198/ft1_filtered_4FGL_J0733.6+3649_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/481198/ft2_4FGL_J0733.6+3649_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/481198/ltcube_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.fits outfile=/scratch/kocevski/481198/expmap_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.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/481198/ltcube_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.fits
.....................!
real 191.72
user 185.97
sys 5.37

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/481198/ft1_filtered_4FGL_J0733.6+3649_daily_bin941.fits scfile=/scratch/kocevski/481198/ft2_4FGL_J0733.6+3649_daily_bin941.fits outfile=/scratch/kocevski/481198/cmap_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.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.18
user 0.39
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481198/ft1_filtered_4FGL_J0733.6+3649_daily_bin941.fits scfile=/scratch/kocevski/481198/ft2_4FGL_J0733.6+3649_daily_bin941.fits outfile=/scratch/kocevski/481198/cmap_HighResolution_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.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.18
user 0.38
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0395       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8752       1.0000         .10000E-03   10000.    
     8 'norm      '    9.9631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20673E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .56212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .43347       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3850       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87025       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=   8052.151     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2400 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53887        2.4007        .31935E-06   -.21598E-03
   2  Prefactor     .10000E-03    18.659       -.63775E-06** at limit **
   3  Prefactor     .10000E-03    7.0252       -.35138E-07** at limit **
   4  norm          1.0390        3.4034        .14200E-05   -.52009E-04
   5  norm          1.1234        .61474        .11661E-07   -.29157E-05
   6  Prefactor     14.942        8.6650        .13020E-06   -.25755E-04
   7  Prefactor     3.8728        10.270        .54048E-06   -.17752E-04
   8  norm          9.9619        5.8154        .13882E-06   -.29356E-04
   9  Prefactor     .10000E-03    38.945        .80088E-06** at limit **
  10  Prefactor     .10000E-03    14.453        .77704E-06** at limit **
  11  Prefactor     .10000E-03    17.039       -.17062E-06** at limit **
  12  norm          .10000E-03    31.010        .11005E-05** at limit **
  13  Prefactor     .10000E-03    3.1241        .50394E-07** at limit **
  14  Prefactor     .10000E-03    10.319        .22507E-07** at limit **
  15  Prefactor     .10000E-03    2.8759       -.26400E-06** at limit **
  16  Prefactor     .10000E-03    52.075       -.10789E-05** at limit **
  17  norm          .56267        .46667       -.22880E-07   -.19508E-03
  18  Prefactor     27.445        26.020       -.13677E-06   -.73549E-04
  19  Prefactor     .10000E-03    9.9963       -.54410E-06** at limit **
  20  Prefactor     .43466        2.5283        .21423E-05   -.14883E-03
  21  Normalizat    1.3850        .18650       -.36477E-06   -.10383E-03
  22  Prefactor     .87024        .10365       -.24984E-06   -.11649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.538869
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.03897
  norm       = 1.12336
  Prefactor  = 14.9422
  Prefactor  = 3.87279
  norm       = 9.96191
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.562667
  Prefactor  = 27.4453
  Prefactor  = 0.0001
  Prefactor  = 0.434661
  Normalizat = 1.38496
  Prefactor  = 0.870235
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.151     FROM HESSE     STATUS=OK           346 CALLS     2746 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53887        4.6264        .26539E-02   -1.5561    
   2  Prefactor     .10000E-03    18.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0390        3.3580        .29379E-03   -1.5504    
   5  norm          1.1234        .61377        .50337E-04   -1.5496    
   6  Prefactor     14.942        8.6746        .10362E-03   -1.4935    
   7  Prefactor     3.8728        10.268        .20498E-03   -1.5314    
   8  norm          9.9619        5.8147        .12695E-03   -1.5077    
   9  Prefactor     .10000E-03    39.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    32.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1632        .15488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9134        .28697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56267        .44014        .53182E-03   -1.5558    
  18  Prefactor     27.445        26.058        .76459E-04   -1.4660    
  19  Prefactor     .10000E-03    10.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .43466        2.5467        .27227E-03   -1.5576    
  21  Normalizat    1.3850        .21141        .28225E-03   -.81065    
  22  Prefactor     .87024        .11876        .20031E-03   -.97189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71205e-08
Minuit parameter uncertainties:
  1  3.1579
  2  0.000235299
  3  1.70118e-06
  4  3.35863
  5  0.613771
  6  8.67529
  7  10.2731
  8  5.81507
  9  0.000392346
  10  0.000196088
  11  7.55283e-05
  12  0.000237657
  13  2.4023e-06
  14  1.17255e-06
  15  6.22753e-07
  16  0.000652729
  17  0.440142
  18  26.0685
  19  9.32201e-05
  20  2.10414
  21  0.211538
  22  0.118792
Done.

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

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  3.873e+00  1.027e+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.702e-01  1.188e-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.385e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/481198/likelihoodResults_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.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) = 8051.50594287
delta logL = 0.645019348953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8051.45138805
delta logL = 0.699574169654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97504E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0095       1.0000          .0000       10.000    
     3 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90218       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=   8051.451     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      312 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95224E-02    .11498        .16441E-02    .15264E-01
   2  Index         6.0196        2.2417        .10338        .24914E-03
   3  Normalizat    1.3032        .42738E-01    .65466E-01    .54678E-04
   4  Prefactor     .90198        .24846E-01    .45033E-01    .20081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00952239
  Index      = 6.01959
  Normalizat = 1.3032
  Prefactor  = 0.901979
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.451     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      347 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95224E-02    .34446        .74469E-04   -1.5689    
   2  Index         6.0196        7.3527        .52234E-02    .20536    
   3  Normalizat    1.3032        .15627        .28960E-03   -.83471    
   4  Prefactor     .90198        .88731E-01    .19723E-03   -.96072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43965e-11
Minuit parameter uncertainties:
  1  0.113942
  2  5.06242
  3  0.15633
  4  0.0887457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481198': 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) = 8051.45138161
delta logL = 0.699580607363

Extracting fit parameters...

4FGL J0733.6+3649
   Spectrum: PowerLaw
279    Prefactor:  9.522e-03  1.139e-01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  6.020e+00  5.062e+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.020e-01  8.875e-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:  1.303e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 113.420 36.822
Photon Index (Free Index): 6.02 +/- 5.06
Photon Flux (Free Index): 7.09e-08 +/- 5.89e-08
Energy Flux (Free Index): 8.82e-06 +/- 8.22e-06

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/481198/cmap_HighResolution_483235201_483494401_4FGL_J0733.6+3649_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', comment='SUCCESS', energy_flux2='8.82e-06', dlogl='7.00e-01', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-08-27 14:41:47.949721', photon_index_error2='5.06', photon_index2='6.02', ts='0.17', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.92e-08', energy_flux_error2='8.22e-06', EG='1.38', time_epoch_completed='1630100507.95', return_code='0', job_id='481198', GAL2='0.90', EG2='1.30', return_code2='102', photon_flux_error2='5.89e-08', ts2='1.72', photon_index='2.37' WHERE bin_id='941' AND source_name='4FGL J0733.6+3649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 14:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 481198: <4FGL_J0733.6+3649_daily_bin941> in cluster <slac> Done

Job <4FGL_J0733.6+3649_daily_bin941> 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) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 14:25:52 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:52 2021
Terminated at Fri Aug 27 14:41:48 2021
Results reported at Fri Aug 27 14:41:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.6+3649_daily_bin941 113.42 36.8225 483235201 483494401 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 :                                   821.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            980 sec.

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

