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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin894
RA = 118.055, Dec = 33.232
tmin = 471052801, tmax = 471312001
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='984984', job_status='RUN', time_executed='2021-08-28 18:24:10.066122', time_epoch_executed='1630200250.07' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984984/ft1_4FGL_J0752.2+3313_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984984/ft1_4FGL_J0752.2+3313_daily_bin894.fits outfile=/scratch/kocevski/984984/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin894.fits ra=118.055 dec=33.232 rad=12.0 tmin=471052801.0 tmax=471312001.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.78
user 3.76
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984984/ft1_filtered_4FGL_J0752.2+3313_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/984984/ltcube_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.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/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits
.....................!
real 12.56
user 11.29
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984984/ft1_filtered_4FGL_J0752.2+3313_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/984984/ltcube_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.fits outfile=/scratch/kocevski/984984/expmap_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.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/984984/ltcube_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.fits
.....................!
real 191.69
user 185.32
sys 5.90

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/984984/ft1_filtered_4FGL_J0752.2+3313_daily_bin894.fits scfile=/scratch/kocevski/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits outfile=/scratch/kocevski/984984/cmap_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.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 1.30
user 0.36
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984984/ft1_filtered_4FGL_J0752.2+3313_daily_bin894.fits scfile=/scratch/kocevski/984984/ft2_4FGL_J0752.2+3313_daily_bin894.fits outfile=/scratch/kocevski/984984/cmap_HighResolution_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.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 1.22
user 0.35
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0205       1.0000         .10000E-03   10000.    
     4 'norm      '    .12075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10715E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7745       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9192       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91123       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96214       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=   6074.610     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2054 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26384       -.26825E-07** at limit **
   2  Prefactor     .10000E-03    3.7083       -.58052E-08** at limit **
   3  Prefactor     3.0138        12.042       -.14808E-05   -.93554E-04
   4  norm          .10001E-03    1.7925       -.31074E-05** at limit **
   5  Prefactor     33.029        31.289        .22360E-04   -.10118E-03
   6  Prefactor     .10000E-03    10.857        .45551E-06** at limit **
   7  Prefactor     .10000E-03    15.287        .20652E-06** at limit **
   8  Prefactor     .10000E-03    11.306       -.10867E-05** at limit **
   9  norm          .10001E-03    4.1796       -.40938E-06** at limit **
  10  Prefactor     .10000E-03    2.0745        .23262E-06** at limit **
  11  Prefactor     .10000E-03    1.5084        .27731E-06** at limit **
  12  Prefactor     .10000E-03    11.377       -.70359E-06** at limit **
  13  norm          1.0157        .58927       -.74025E-07    .12156E-05
  14  Prefactor     .10000E-03    11.626        .14769E-06** at limit **
  15  Prefactor     .10000E-03    83.031        .66764E-05** at limit **
  16  Prefactor     3.7739        10.362       -.18406E-06   -.13736E-03
  17  Prefactor     .10000E-03    4.1525       -.13569E-06** at limit **
  18  Prefactor     1.9191        2.2246        .16692E-06   -.40991E-03
  19  Normalizat    .91133        .17423       -.21060E-05    .60448E-03
  20  Prefactor     .96209        .12354        .69549E-06    .49251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01383
  norm       = 0.000100015
  Prefactor  = 33.029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01572
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.77392
  Prefactor  = 0.0001
  Prefactor  = 1.91908
  Normalizat = 0.911333
  Prefactor  = 0.962093
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.610     FROM HESSE     STATUS=OK           283 CALLS     2337 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .27570        .78055E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7542        .14650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0138        12.056        .23351E-03   -1.5361    
   4  norm          .10001E-03    5.9837        .19866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.029        31.430        .69762E-04   -1.4558    
   6  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    36.768        .30851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0764        .10963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5248        .93436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0157        .58466        .43333E-04   -1.5506    
  14  Prefactor     .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    84.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7739        10.275        .20779E-03   -1.5319    
  17  Prefactor     .10000E-03    4.1542        .15512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9191        2.1962        .11761E-03   -1.5431    
  19  Normalizat    .91133        .20190        .26286E-03   -.96063    
  20  Prefactor     .96209        .14486        .18498E-03   -.94004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79701e-09
Minuit parameter uncertainties:
  1  8.68282e-07
  2  1.35337e-05
  3  12.0598
  4  0.000596464
  5  31.4457
  6  4.68496e-05
  7  4.24482e-06
  8  7.76194e-05
  9  0.00132172
  10  2.34113e-06
  11  9.81389e-07
  12  2.04701e-05
  13  0.584662
  14  5.35046e-06
  15  0.00064396
  16  10.2802
  17  3.34554e-06
  18  2.19628
  19  0.202064
  20  0.144914
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  1.322e-03  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:  9.621e-01  1.449e-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.113e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 118.055 33.232
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984984/likelihoodResults_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6074.61052474
delta logL = -0.000128089852296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6074.61039688
delta logL = -2.29417310038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12134E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2679       1.0000          .0000       5.0000    
     3 'Normalizat'    .91134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96211       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=   6074.610     FROM MIGRAD    STATUS=FAILED        91 CALLS      251 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10075E-03    6263.7        .31325E-02** at limit **
   2  alpha         2.1171        2.8300        .16551        .27956E-06
   3  Normalizat    .91133        .37398E-01    .26286E-03    .11189E-03
   4  Prefactor     .96210        .27129E-01    .18498E-03    .20196E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6074.610     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      413 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10075E-03    6263.7        .11406E-02** at limit **
   2  alpha         2.1171        2.8300        .12949E-05    .27956E-06
   3  Normalizat    .91133        .37398E-01    .54028E-07    .11189E-03
   4  Prefactor     .96210        .27129E-01    .91353E-08    .20196E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6074.610     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      445 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10028E-03    117.39        .62649E-03** at limit **
   2  alpha         2.1306        3.7569        .66205E-01    .71401E-06
   3  Normalizat    .91133        .19942        .10514E-04    .11850E-03
   4  Prefactor     .96210        .14467        .36997E-04    .21074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100284
  alpha      = 2.13064
  Normalizat = 0.911329
  Prefactor  = 0.962096
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.610     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10028E-03    45.876        .12530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1306        3.1741        .26482E-02   -.14829    
   3  Normalizat    .91133        .19937        .21029E-05   -.96063    
   4  Prefactor     .96210        .14465        .73993E-05   -.94004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21085e-08
Minuit parameter uncertainties:
  1  0.00722674
  2  278.279
  3  0.199533
  4  0.144705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984984': 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) = 6074.61039641
delta logL = 2.39972905547e-07

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.003e-04  7.227e-03  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.131e+00  2.783e+02  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:  9.621e-01  1.447e-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.113e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 118.055 33.232

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/984984/cmap_HighResolution_471052801_471312001_4FGL_J0752.2+3313_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-08-28 18:35:04.498236', job_id='984984', GAL2='0.96', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630200904.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='894' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:35:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 984984: <4FGL_J0752.2+3313_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin894 118.055 33.232 471052801 471312001 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

