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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin967
RA = 118.055, Dec = 33.232
tmin = 489974401, tmax = 490233601
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='985061', job_status='RUN', time_executed='2021-08-28 18:22:41.794319', time_epoch_executed='1630200161.79' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985061

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985061/ft1_4FGL_J0752.2+3313_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985061/ft1_4FGL_J0752.2+3313_daily_bin967.fits outfile=/scratch/kocevski/985061/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin967.fits ra=118.055 dec=33.232 rad=12.0 tmin=489974401.0 tmax=490233601.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 9.82
user 3.52
sys 5.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.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/985061/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.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 6.08
user 0.34
sys 5.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/985061/ltcube_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.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/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits
.....................!
real 18.49
user 11.92
sys 6.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/985061/ltcube_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits outfile=/scratch/kocevski/985061/expmap_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.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/985061/ltcube_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits
.....................!
real 199.72
user 187.19
sys 12.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
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0752.2+3313 @ 118.055 33.232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits outfile=/scratch/kocevski/985061/cmap_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.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=118.055 yref=33.232 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 6.09
user 0.37
sys 5.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits outfile=/scratch/kocevski/985061/cmap_HighResolution_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.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=118.055 yref=33.232 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 6.01
user 0.38
sys 5.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985061/Model_4FGL_J0752.2+3313_daily_bin967.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
Working on...
/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits.....................!
real 77.45
user 68.89
sys 8.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits', '/scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits', expMap='/scratch/kocevski/985061/expmap_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits', expCube='/scratch/kocevski/985061/ltcube_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985061/Model_4FGL_J0752.2+3313_daily_bin967.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0752.2+3313'

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  9.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/985061/ft1_filtered_4FGL_J0752.2+3313_daily_bin967.fits
Spacecraft file(s): /scratch/kocevski/985061/ft2_4FGL_J0752.2+3313_daily_bin967.fits
Exposure map: /scratch/kocevski/985061/expmap_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits
Exposure cube: /scratch/kocevski/985061/ltcube_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985061/Model_4FGL_J0752.2+3313_daily_bin967.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) = 7117.64783115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5433       1.0000         .10000E-03   10000.    
     4 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82714       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7117.626     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     1751 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .18504        .47835E-08** at limit **
   2  Prefactor     .10000E-03    5.0597       -.37714E-07** at limit **
   3  Prefactor     7.5419        10.985        .23613E-05   -.54959E-04
   4  norm          .10000E-03    2.2648       -.49411E-06** at limit **
   5  Prefactor     11.342        26.699       -.28607E-05   -.12495E-03
   6  Prefactor     .10000E-03    6.6291       -.15488E-06** at limit **
   7  Prefactor     .10000E-03    12.471       -.16265E-06** at limit **
   8  Prefactor     .10000E-03    20.856       -.59404E-06** at limit **
   9  norm          14.569        15.095       -.12453E-07    .16148E-04
  10  Prefactor     19.676        10.815       -.43537E-07   -.10818E-04
  11  Prefactor     .10000E-03    1.7530        .49594E-07** at limit **
  12  Prefactor     .10000E-03    65.073        .63615E-06** at limit **
  13  norm          1.1047        .52041        .33918E-09   -.68920E-04
  14  Prefactor     .10000E-03    14.514        .45723E-06** at limit **
  15  Prefactor     .10000E-03    17.098       -.18154E-06** at limit **
  16  Prefactor     .10000E-03    4.3802        .25583E-07** at limit **
  17  Prefactor     .10000E-03    6.7152        .10522E-06** at limit **
  18  Prefactor     .10000E-03    .84549        .28621E-07** at limit **
  19  Normalizat    .82740        .18757        .54131E-06   -.20255E-04
  20  Prefactor     1.2352        .13283       -.45509E-06    .41297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.54186
  norm       = 0.0001
  Prefactor  = 11.3415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.569
  Prefactor  = 19.6759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.827404
  Prefactor  = 1.23517
 **********
 **   18 **HESSE 
 **********

 FCN=   7117.626     FROM HESSE     STATUS=OK           287 CALLS     2038 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .19106        .70813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5419        11.269        .73009E-03   -1.5159    
   4  norm          .10000E-03    2.2788        .12303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.342        28.071        .11881E-03   -1.5034    
   6  Prefactor     .10000E-03    6.6404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.569        15.141        .10491E-03   -1.4944    
  10  Prefactor     19.676        10.786        .90293E-04   -1.4821    
  11  Prefactor     .10000E-03    7.1803        .21489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    66.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1047        .51569        .40453E-04   -1.5498    
  14  Prefactor     .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3997        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .85864        .75727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .82740        .21274        .31042E-03   -.99060    
  20  Prefactor     1.2352        .15111        .18994E-03   -.85256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4857e-10
Minuit parameter uncertainties:
  1  2.22686e-07
  2  4.42797e-06
  3  11.2723
  4  1.24843e-05
  5  28.1038
  6  2.60859e-06
  7  2.07571e-05
  8  2.85093e-05
  9  15.1453
  10  10.7868
  11  5.41355e-05
  12  0.000118633
  13  0.515689
  14  4.94231e-05
  15  2.70126e-05
  16  3.4273e-07
  17  6.87279e-06
  18  1.1868e-07
  19  0.212959
  20  0.151164
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.457e+01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.235e+00  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  8.274e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 118.055 33.232
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.43e-05

TS (Fixed Index): 1.15
Ra Dec: 118.055 33.232
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985061/likelihoodResults_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.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) = 7115.14365843
delta logL = 2.48223370935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7115.13435573
delta logL = 2.49153641065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7859       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3865       1.0000          .0000       5.0000    
     3 'Normalizat'    .70735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7115.134     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      260 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7732        33.543        .51867E-02   -.49422E-03
   2  alpha         4.3888        4.5378        .38298       -.20292E-04
   3  Normalizat    .70745        .85657E-01    .75192E-01   -.95623E-05
   4  Prefactor     1.2931        .63003E-01    .32730E-01   -.27789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7732
  alpha      = 4.38881
  Normalizat = 0.707448
  Prefactor  = 1.29306
 **********
 **   18 **HESSE 
 **********

 FCN=   7115.134     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7732        74.587        .74121E-04   -1.5319    
   2  alpha         4.3888        3.5271        .18798E-01    .85645    
   3  Normalizat    .70745        .21328        .33285E-03   -1.0360    
   4  Prefactor     1.2931        .15917        .18606E-03   -.83514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85478e-10
Minuit parameter uncertainties:
  1  33.5995
  2  6.43954
  3  0.213532
  4  0.159226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985061': 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) = 7115.13435344
delta logL = 2.49153870723

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  3.773e+00  3.360e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  4.389e+00  6.440e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.293e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  7.074e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 118.055 33.232
Photon Index (Free Index): 4.39 +/- 6.44
Photon Flux (Free Index): 1.19e-07 +/- 7.36e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.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/985061/cmap_HighResolution_489974401_490233601_4FGL_J0752.2+3313_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-05', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.73e-05', photon_flux_error='4.37e-08', dlogl='2.49e+00', energy_flux='1.37e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-08-28 18:35:02.688153', photon_index_error2='6.44', photon_index2='4.39', ts='1.15', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.33e-05', EG='0.83', time_epoch_completed='1630200902.69', return_code='0', job_id='985061', GAL2='1.29', EG2='0.71', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.36e-08', ts2='6.62', photon_index='2.31' WHERE bin_id='967' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:35:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 985061: <4FGL_J0752.2+3313_daily_bin967> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin967> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 18:21:03 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:21:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 18:21:04 2021
Terminated at Sat Aug 28 18:35:04 2021
Results reported at Sat Aug 28 18:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin967 118.055 33.232 489974401 490233601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0752.2+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.42 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

