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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin813
RA = 118.055, Dec = 33.232
tmin = 450057601, tmax = 450316801
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='984869', job_status='RUN', time_executed='2021-08-28 18:23:20.548085', time_epoch_executed='1630200200.55' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984869/ft1_4FGL_J0752.2+3313_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984869/ft1_4FGL_J0752.2+3313_daily_bin813.fits outfile=/scratch/kocevski/984869/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin813.fits ra=118.055 dec=33.232 rad=12.0 tmin=450057601.0 tmax=450316801.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 3.70
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.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/984869/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin813.fits evtable="EVENTS" outfile="/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.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.69
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/984869/ltcube_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.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/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits
.....................!
real 12.13
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/984869/ltcube_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits outfile=/scratch/kocevski/984869/expmap_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.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/984869/ltcube_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits
.....................!
real 191.28
user 185.46
sys 5.47

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/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits outfile=/scratch/kocevski/984869/cmap_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.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 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits outfile=/scratch/kocevski/984869/cmap_HighResolution_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.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 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984869/Model_4FGL_J0752.2+3313_daily_bin813.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/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits.....................!
real 78.86
user 77.49
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits', '/scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits', expMap='/scratch/kocevski/984869/expmap_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits', expCube='/scratch/kocevski/984869/ltcube_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984869/Model_4FGL_J0752.2+3313_daily_bin813.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/984869/ft1_filtered_4FGL_J0752.2+3313_daily_bin813.fits
Spacecraft file(s): /scratch/kocevski/984869/ft2_4FGL_J0752.2+3313_daily_bin813.fits
Exposure map: /scratch/kocevski/984869/expmap_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits
Exposure cube: /scratch/kocevski/984869/ltcube_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984869/Model_4FGL_J0752.2+3313_daily_bin813.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) = 7421.86366844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3508       1.0000         .10000E-03   10000.    
     9 'norm      '    12.490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.939       1.0000         .10000E-03   10000.    
    13 'norm      '    .19368       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28403E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0975       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7421.853     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     2404 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .29783        .89867E-04** at limit **
   2  Prefactor     11.077        7.4849        .12037E-03   -.17321E-03
   3  Prefactor     11.209        12.617        .11967E-03   -.38854E-04
   4  norm          3.6048        5.3839        .20512E-03   -.63931E-03
   5  Prefactor     27.631        62.165        .76306E-04   -.19678E-03
   6  Prefactor     .10000E-03    6.9970        .18142E-02** at limit **
   7  Prefactor     .10000E-03    24.689        .18142E-02** at limit **
   8  Prefactor     7.3486        143.45        .14793E-03   -.10329E-03
   9  norm          12.492        11.763        .11334E-03    .45437E-04
  10  Prefactor     .10000E-03    3.1011        .14800E-02** at limit **
  11  Prefactor     9.4375        7.0514        .13041E-03    .28978E-03
  12  Prefactor     26.976        42.238        .77185E-04    .25982E-03
  13  norm          .19407        .67355        .88717E-03    .11034E-02
  14  Prefactor     .53669        34.840        .13831        .23375E-03
  15  Prefactor     .10000E-03    18.851        .18142E-02** at limit **
  16  Prefactor     2.8318        27.497        .24013E-03   -.41710E-04
  17  Prefactor     24.027        24.619        .81714E-04    .24492E-03
  18  Prefactor     .10001E-03    6.9416        .18444E-02** at limit **
  19  Normalizat    1.0154        .24192        .31128E-03    .26380E-03
  20  Prefactor     1.0975        .15182        .20352E-03    .10528E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.0773
  Prefactor  = 11.2094
  norm       = 3.60476
  Prefactor  = 27.6309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34857
  norm       = 12.4917
  Prefactor  = 0.0001
  Prefactor  = 9.43753
  Prefactor  = 26.9755
  norm       = 0.194065
  Prefactor  = 0.536694
  Prefactor  = 0.0001
  Prefactor  = 2.83182
  Prefactor  = 24.0266
  Prefactor  = 0.000100014
  Normalizat = 1.0154
  Prefactor  = 1.0975
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.853     FROM HESSE     STATUS=OK           283 CALLS     2687 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .29783        .17973E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.077        7.4848        .48149E-05   -1.5042    
   3  Prefactor     11.209        12.616        .47870E-05   -1.5038    
   4  norm          3.6048        5.3809        .82049E-05   -1.5328    
   5  Prefactor     27.631        62.097        .15261E-04   -1.4656    
   6  Prefactor     .10000E-03    6.9972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3486        143.13        .59173E-05   -1.5166    
   9  norm          12.492        11.763        .45338E-05   -1.5001    
  10  Prefactor     .10000E-03    3.1013        .29600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4375        7.0428        .52164E-05   -1.5093    
  12  Prefactor     26.976        42.209        .15437E-04   -1.4669    
  13  norm          .19407        .66692        .35487E-04   -1.5620    
  14  Prefactor     .53669        33.949        .14108       -1.5561    
  15  Prefactor     .10000E-03    18.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8318        27.064        .96053E-05   -1.5371    
  17  Prefactor     24.027        24.619        .16343E-04   -1.4727    
  18  Prefactor     .10001E-03    7.0241        .36889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0154        .24209        .12451E-04   -.92516    
  20  Prefactor     1.0975        .15192        .40704E-04   -.89547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7522e-09
Minuit parameter uncertainties:
  1  2.31717e-06
  2  7.48547
  3  12.6195
  4  5.38165
  5  62.2425
  6  4.61431e-05
  7  0.00020752
  8  65.0418
  9  11.7653
  10  1.34838e-05
  11  7.04342
  12  42.2556
  13  0.666947
  14  8.5413
  15  9.86473e-05
  16  17.519
  17  24.6298
  18  0.000617874
  19  0.242356
  20  0.151975
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.249e+01  1.177e+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.098e+00  1.520e-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:  1.015e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 118.055 33.232
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/984869/likelihoodResults_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.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) = 7421.24137958
delta logL = 0.611793611592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.20460016
delta logL = 0.648573027168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.399       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4636       1.0000          .0000       5.0000    
     3 'Normalizat'    .92951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1337       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7421.205     FROM MIGRAD    STATUS=FAILED       102 CALLS      313 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.406        18.357        .62126E-03   -.19342E-04
   2  alpha         3.4634        1.5008        .17864E-01    .23840E-03
   3  Normalizat    .92987        .23460        .32353E-03   -.51655E-05
   4  Prefactor     1.1334        .15555        .20069E-03   -.28890E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7421.205     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      388 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.406        18.357        .16928E-03   -1.5063    
   2  alpha         3.4634        1.5008        .20537E-02    .39559    
   3  Normalizat    .92987        .23460        .37685E-03   -.95418    
   4  Prefactor     1.1334        .15555        .24497E-03   -.88407    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7421.205     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      420 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.406        13.122        .24851E-04   -.25619E-04
   2  alpha         3.4634        1.1175        .35728E-02   -.11614E-05
   3  Normalizat    .92987        .23220        .12941E-04   -.52709E-05
   4  Prefactor     1.1334        .15377        .80278E-05   -.28323E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4057
  alpha      = 3.46338
  Normalizat = 0.929868
  Prefactor  = 1.13338
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.205     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.406        12.585        .99402E-06   -1.5063    
   2  alpha         3.4634        1.0752        .14291E-03    .39559    
   3  Normalizat    .92987        .23205        .25882E-05   -.95418    
   4  Prefactor     1.1334        .15367        .16056E-05   -.88407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8733e-13
Minuit parameter uncertainties:
  1  12.5886
  2  1.11852
  3  0.232304
  4  0.153727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984869': 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) = 7421.20459693
delta logL = 0.648576256384

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.041e+01  1.259e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.463e+00  1.119e+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.133e+00  1.537e-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:  9.299e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 118.055 33.232
Photon Index (Free Index): 3.46 +/- 1.12
Photon Flux (Free Index): 1.01e-07 +/- 6.96e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.09e-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/984869/cmap_HighResolution_450057601_450316801_4FGL_J0752.2+3313_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.77e-05', photon_flux_error='3.39e-08', dlogl='6.49e-01', energy_flux='1.18e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-08-28 18:35:35.985211', photon_index_error2='1.12', photon_index2='3.46', ts='2.41', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.09e-05', EG='1.02', time_epoch_completed='1630200935.99', return_code='0', job_id='984869', GAL2='1.13', EG2='0.93', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='6.96e-08', ts2='3.88', photon_index='2.31' WHERE bin_id='813' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:35:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 984869: <4FGL_J0752.2+3313_daily_bin813> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin813> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 18:20:43 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:20:45 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:20:45 2021
Terminated at Sat Aug 28 18:35:36 2021
Results reported at Sat Aug 28 18:35:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin813 118.055 33.232 450057601 450316801 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 :                                   731.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

