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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin507
RA = 118.055, Dec = 33.232
tmin = 370742401, tmax = 371001601
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='981931', job_status='RUN', time_executed='2021-08-28 18:13:31.843481', time_epoch_executed='1630199611.84' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981931

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981931/ft1_4FGL_J0752.2+3313_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981931/ft1_4FGL_J0752.2+3313_daily_bin507.fits outfile=/scratch/kocevski/981931/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin507.fits ra=118.055 dec=33.232 rad=12.0 tmin=370742401.0 tmax=371001601.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 5.54
user 5.09
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.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/981931/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/981931/ft1_filtered_4FGL_J0752.2+3313_daily_bin507.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.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981931/ft1_filtered_4FGL_J0752.2+3313_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/981931/ltcube_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.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/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits
.....................!
real 11.84
user 11.17
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981931/ft1_filtered_4FGL_J0752.2+3313_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/981931/ltcube_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.fits outfile=/scratch/kocevski/981931/expmap_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.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/981931/ltcube_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.fits
.....................!
real 190.95
user 186.26
sys 4.28

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/981931/ft1_filtered_4FGL_J0752.2+3313_daily_bin507.fits scfile=/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits outfile=/scratch/kocevski/981931/cmap_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.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.77
user 0.35
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981931/ft1_filtered_4FGL_J0752.2+3313_daily_bin507.fits scfile=/scratch/kocevski/981931/ft2_4FGL_J0752.2+3313_daily_bin507.fits outfile=/scratch/kocevski/981931/cmap_HighResolution_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.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.77
user 0.39
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33893E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.310       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .41747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11842E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0568       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81375       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=   7760.838     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2126 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .30061        .10110E-06** at limit **
   2  Prefactor     .10000E-03    4.0266        .14796E-06** at limit **
   3  Prefactor     16.306        11.829       -.12376E-05    .46147E-04
   4  norm          2.1360        3.7728       -.70975E-06   -.79548E-03
   5  Prefactor     4.3169        91.640       -.47444E-05   -.28579E-06
   6  Prefactor     8.6356        11.765        .46234E-05   -.16470E-03
   7  Prefactor     6.4174        16.295        .24727E-05   -.81246E-04
   8  Prefactor     .10000E-03    15.007       -.48981E-06** at limit **
   9  norm          .10000E-03    3.2992        .10477E-06** at limit **
  10  Prefactor     .10000E-03    3.6797        .14278E-07** at limit **
  11  Prefactor     .10000E-03    1.8522        .18728E-06** at limit **
  12  Prefactor     .10000E-03    11.365       -.12010E-06** at limit **
  13  norm          .41800        .46276       -.15739E-07   -.14816E-02
  14  Prefactor     .15583        11.762       -.93947E-06    .24737E-04
  15  Prefactor     .10000E-03    48.003       -.44743E-06** at limit **
  16  Prefactor     4.9867        7.8227       -.81177E-06   -.10102E-03
  17  Prefactor     87.664        32.955        .26383E-05   -.90612E-04
  18  Prefactor     2.0568        1.7390        .52080E-07    .49160E-04
  19  Normalizat    1.4315        .18121       -.31862E-06   -.37366E-04
  20  Prefactor     .81335        .11801       -.16389E-06   -.66849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3064
  norm       = 2.136
  Prefactor  = 4.31692
  Prefactor  = 8.63559
  Prefactor  = 6.41736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.417996
  Prefactor  = 0.155831
  Prefactor  = 0.0001
  Prefactor  = 4.98673
  Prefactor  = 87.6637
  Prefactor  = 2.05684
  Normalizat = 1.43148
  Prefactor  = 0.813353
 **********
 **   18 **HESSE 
 **********

 FCN=   7760.838     FROM HESSE     STATUS=OK           309 CALLS     2435 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61606        .93406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6150        .33850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.306        11.856        .99174E-04   -1.4900    
   4  norm          2.1360        3.7877        .20228E-03   -1.5416    
   5  Prefactor     4.3169        87.263        .19388E-03   -1.5292    
   6  Prefactor     8.6356        11.729        .13644E-03   -1.5120    
   7  Prefactor     6.4174        16.187        .15834E-03   -1.5201    
   8  Prefactor     .10000E-03    15.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3078        .15627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7032        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.235        .22816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41800        .42765        .60256E-03   -1.5579    
  14  Prefactor     .15583        16.567        .11612       -1.5629    
  15  Prefactor     .10000E-03    48.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9867        7.8002        .17999E-03   -1.5261    
  17  Prefactor     87.664        32.891        .42915E-04   -1.3833    
  18  Prefactor     2.0568        1.7399        .10306E-03   -1.5421    
  19  Normalizat    1.4315        .20855        .25396E-03   -.79722    
  20  Prefactor     .81335        .13691        .22238E-03   -.99238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09304e-10
Minuit parameter uncertainties:
  1  2.28755e-06
  2  7.31295e-05
  3  11.8581
  4  3.78809
  5  38.8826
  6  11.7326
  7  16.1976
  8  3.06672e-05
  9  1.83766e-06
  10  3.13143e-06
  11  0.000333538
  12  1.91048e-06
  13  0.427656
  14  3.21335
  15  5.31255e-05
  16  7.80177
  17  32.8979
  18  1.73993
  19  0.208674
  20  0.136968
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  1.838e-06  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.134e-01  1.370e-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.431e+00  2.087e-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: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981931/likelihoodResults_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.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) = 7760.83918123
delta logL = -0.00143472617674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7760.83774649
delta logL = 9.45783540374e-09

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 'alpha     '    2.3144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81336       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=   7760.820     FROM MIGRAD    STATUS=FAILED       169 CALLS      312 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13054        60.708        .21174E-01    .18873E-02
   2  alpha         5.0000        4.0824        .16518    ** at limit **
   3  Normalizat    1.4185        .20210        .25396E-03   -.10475E-04
   4  Prefactor     .81869        .56962E-01    .22238E-03    .37320E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7760.820     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      435 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13054        60.708        .57395E-04    .18873E-02
   2  alpha         5.0000        4.0824        .15367E-01** at limit **
   3  Normalizat    1.4185        .20210        .10367E-04   -.10475E-04
   4  Prefactor     .81869        .56962E-01    .63530E-06    .37320E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7760.820     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      473 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13054        .96868         .0000        .88058E-02
   2  alpha         5.0000        4.9641         .0000    ** at limit **
   3  Normalizat    1.4185        .21172         .0000        .11191E-05
   4  Prefactor     .81869        .13961         .0000        .22750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.130545
  alpha      = 5
  Normalizat = 1.41852
  Prefactor  = 0.818695
 **********
 **   18 **HESSE 
 **********

 FCN=   7760.820     FROM HESSE     STATUS=OK            25 CALLS      498 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13054        .95668        .21432E-03   -1.5636    
   2  alpha         5.0000        4.9639        .66073E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4185        .21014        .20317E-05   -.80095    
   4  Prefactor     .81869        .13907        .17790E-05   -.99043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16837e-11
Minuit parameter uncertainties:
  1  0.706539
  2  1.12125e-06
  3  0.210272
  4  0.139128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981931': 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) = 7760.81993377
delta logL = 0.0178127327918

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.305e-01  7.065e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  1.121e-06  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.187e-01  1.391e-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.419e+00  2.103e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/981931/cmap_HighResolution_370742401_371001601_4FGL_J0752.2+3313_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-08-28 18:26:12.587000', job_id='981931', GAL2='0.82', fit_tolerance='1e-08', EG2='1.42', EG='1.43', time_epoch_completed='1630200372.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.78e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='507' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 981931: <4FGL_J0752.2+3313_daily_bin507> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin507> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 18:10:30 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:10:32 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:10:32 2021
Terminated at Sat Aug 28 18:26:13 2021
Results reported at Sat Aug 28 18:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin507 118.055 33.232 370742401 371001601 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 :                                   762.17 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             252.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

