/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 105 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 = 7182
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0752.2+3313_daily_bin314
RA = 118.055, Dec = 33.232
tmin = 320716801, tmax = 320976001
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='980505', job_status='RUN', time_executed='2021-08-28 18:07:32.729704', time_epoch_executed='1630199252.73' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980505

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980505/ft1_4FGL_J0752.2+3313_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980505/ft1_4FGL_J0752.2+3313_daily_bin314.fits outfile=/scratch/kocevski/980505/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin314.fits ra=118.055 dec=33.232 rad=12.0 tmin=320716801.0 tmax=320976001.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.69
user 3.28
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.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/980505/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin314.fits evtable="EVENTS" outfile="/scratch/kocevski/980505/ft1_filtered_4FGL_J0752.2+3313_daily_bin314.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.72
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980505/ft1_filtered_4FGL_J0752.2+3313_daily_bin314.fits" evtable="EVENTS" scfile=/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits sctable="SC_DATA" outfile=/scratch/kocevski/980505/ltcube_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.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/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits
.....................!
real 11.91
user 11.28
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980505/ft1_filtered_4FGL_J0752.2+3313_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/980505/ltcube_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.fits outfile=/scratch/kocevski/980505/expmap_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.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/980505/ltcube_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.fits
.....................!
real 192.38
user 186.60
sys 5.39

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/980505/ft1_filtered_4FGL_J0752.2+3313_daily_bin314.fits scfile=/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits outfile=/scratch/kocevski/980505/cmap_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.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.75
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980505/ft1_filtered_4FGL_J0752.2+3313_daily_bin314.fits scfile=/scratch/kocevski/980505/ft2_4FGL_J0752.2+3313_daily_bin314.fits outfile=/scratch/kocevski/980505/cmap_HighResolution_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.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.76
user 0.38
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
     9 'norm      '    14.540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .95301       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0745       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88315       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=   6811.683     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     2023 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2168        .68317       -.27774E-07   -.70934E-04
   2  Prefactor     2.4012        2.5314        .43019E-06   -.13429E-02
   3  Prefactor     .10000E-03    4.5557       -.64549E-07** at limit **
   4  norm          .10000E-03    1.9795       -.31875E-06** at limit **
   5  Prefactor     .10000E-03    9.1353       -.55042E-05** at limit **
   6  Prefactor     22.932        18.316        .20087E-05    .46557E-04
   7  Prefactor     .10000E-03    23.181        .28813E-06** at limit **
   8  Prefactor     11.001        28.945        .89603E-05    .36118E-04
   9  norm          14.540        11.161       -.84779E-07    .28618E-05
  10  Prefactor     .10000E-03    10.436        .25782E-05** at limit **
  11  Prefactor     5.3790        4.7031       -.15807E-06   -.98445E-04
  12  Prefactor     .10000E-03    8.5346        .21808E-05** at limit **
  13  norm          .95290        .58236        .18779E-06    .21148E-03
  14  Prefactor     .10000E-03    8.5887        .10952E-05** at limit **
  15  Prefactor     5.5906        31.389       -.64513E-05   -.11164E-04
  16  Prefactor     10.910        14.879       -.39634E-05   -.71441E-04
  17  Prefactor     5.6991        20.683       -.48292E-06   -.52007E-05
  18  Prefactor     .10000E-03    2.5482        .26023E-06** at limit **
  19  Normalizat    1.0745        .18104        .47822E-06   -.54834E-04
  20  Prefactor     .88311        .11952       -.33850E-06    .27302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21679
  Prefactor  = 2.40119
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9317
  Prefactor  = 0.0001
  Prefactor  = 11.0014
  norm       = 14.5402
  Prefactor  = 0.0001
  Prefactor  = 5.37897
  Prefactor  = 0.0001
  norm       = 0.952905
  Prefactor  = 0.0001
  Prefactor  = 5.59064
  Prefactor  = 10.9096
  Prefactor  = 5.69912
  Prefactor  = 0.0001
  Normalizat = 1.07449
  Prefactor  = 0.883111
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.683     FROM HESSE     STATUS=OK           295 CALLS     2318 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2168        .67459        .49156E-04   -1.5487    
   2  Prefactor     2.4012        7.3917        .13214E-02   -1.5398    
   3  Prefactor     .10000E-03    4.5648        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0120        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.932        18.327        .83651E-04   -1.4750    
   7  Prefactor     .10000E-03    23.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.001        28.974        .12081E-03   -1.5044    
   9  norm          14.540        11.179        .10504E-03   -1.4945    
  10  Prefactor     .10000E-03    10.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3790        4.6952        .15640E-03   -1.5244    
  12  Prefactor     .10000E-03    8.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .95290        .57701        .45965E-04   -1.5513    
  14  Prefactor     .10000E-03    8.5901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5906        31.557        .16987E-03   -1.5235    
  16  Prefactor     10.910        14.852        .12125E-03   -1.5047    
  17  Prefactor     5.6991        20.749        .16826E-03   -1.5230    
  18  Prefactor     .10000E-03    2.6421        .25657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0745        .21424        .27069E-03   -.90575    
  20  Prefactor     .88311        .13998        .20232E-03   -.96734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16191e-09
Minuit parameter uncertainties:
  1  0.674591
  2  7.39449
  3  2.65836e-07
  4  3.57528e-05
  5  5.0945e-05
  6  18.3311
  7  8.19083e-06
  8  29.0113
  9  11.1807
  10  6.26877e-06
  11  4.69556
  12  9.59636e-06
  13  0.577012
  14  6.43923e-06
  15  26.5859
  16  14.8569
  17  20.7756
  18  4.82069e-05
  19  0.214413
  20  0.140032
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.454e+01  1.118e+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:  8.831e-01  1.400e-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.074e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.36
Ra Dec: 118.055 33.232
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/980505/likelihoodResults_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.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) = 6811.67950113
delta logL = 0.00397321054425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6811.67926723
delta logL = 0.00420711278548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.570       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3866       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88485       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=   6811.679     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.583        377.89        .26233E-02    .30592E-04
   2  alpha         2.3877        3.3392        .41205        .11288E-04
   3  Normalizat    1.0705        .16477        .61303E-01   -.69152E-05
   4  Prefactor     .88472        .92376E-01    .44812E-01    .76549E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.583
  alpha      = 2.3877
  Normalizat = 1.07047
  Prefactor  = 0.884719
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.679     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.583        11.013        .10493E-03   -1.4944    
   2  alpha         2.3877        .84250        .21728E-01   -.44935E-01
   3  Normalizat    1.0705        .20790        .27113E-03   -.90706    
   4  Prefactor     .88472        .14026        .20216E-03   -.96677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15292e-12
Minuit parameter uncertainties:
  1  11.0143
  2  0.859355
  3  0.208059
  4  0.140322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980505': 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) = 6811.67926504
delta logL = 0.00420930869586

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.458e+01  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.388e+00  8.594e-01  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:  8.847e-01  1.403e-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.070e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 118.055 33.232
Photon Index (Free Index): 2.39 +/- 0.86
Photon Flux (Free Index): 4.51e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.03e-05

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/980505/cmap_HighResolution_320716801_320976001_4FGL_J0752.2+3313_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='1.37e-05', photon_flux_error='3.23e-08', dlogl='4.21e-03', energy_flux='1.37e-05', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-08-28 18:18:25.865338', photon_index_error2='0.86', photon_index2='2.39', ts='3.36', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.03e-05', EG='1.07', time_epoch_completed='1630199905.87', return_code='0', job_id='980505', GAL2='0.88', EG2='1.07', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.62e-08', ts2='3.37', photon_index='2.31' WHERE bin_id='314' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 980505: <4FGL_J0752.2+3313_daily_bin314> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin314> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 18:05:33 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:05:34 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:05:34 2021
Terminated at Sat Aug 28 18:18:26 2021
Results reported at Sat Aug 28 18:18:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin314 118.055 33.232 320716801 320976001 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

