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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin414
RA = 118.055, Dec = 33.232
tmin = 346636801, tmax = 346896001
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='981798', job_status='RUN', time_executed='2021-08-28 18:12:57.432750', time_epoch_executed='1630199577.43' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981798

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981798/ft1_4FGL_J0752.2+3313_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981798/ft1_4FGL_J0752.2+3313_daily_bin414.fits outfile=/scratch/kocevski/981798/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin414.fits ra=118.055 dec=33.232 rad=12.0 tmin=346636801.0 tmax=346896001.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.85
user 3.19
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.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/981798/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin414.fits evtable="EVENTS" outfile="/scratch/kocevski/981798/ft1_filtered_4FGL_J0752.2+3313_daily_bin414.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.94
user 0.31
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981798/ft1_filtered_4FGL_J0752.2+3313_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/981798/ltcube_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.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/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits
.....................!
real 12.37
user 11.58
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981798/ft1_filtered_4FGL_J0752.2+3313_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/981798/ltcube_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.fits outfile=/scratch/kocevski/981798/expmap_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.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/981798/ltcube_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.fits
.....................!
real 190.34
user 185.41
sys 4.56

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/981798/ft1_filtered_4FGL_J0752.2+3313_daily_bin414.fits scfile=/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits outfile=/scratch/kocevski/981798/cmap_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.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.95
user 0.36
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981798/ft1_filtered_4FGL_J0752.2+3313_daily_bin414.fits scfile=/scratch/kocevski/981798/ft2_4FGL_J0752.2+3313_daily_bin414.fits outfile=/scratch/kocevski/981798/cmap_HighResolution_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.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.97
user 0.38
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4747       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1392       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13971E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1386       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2217       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63672       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86246       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=   6428.815     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2096 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4748        .74788       -.27498E-07   -.12691E-03
   2  Prefactor     11.842        7.5582        .12830E-05    .11044E-03
   3  Prefactor     .10000E-03    15.755       -.25778E-06** at limit **
   4  norm          .10000E-03    1.7149        .10935E-05** at limit **
   5  Prefactor     43.403        49.926        .34446E-05   -.12944E-04
   6  Prefactor     .10000E-03    12.471        .51939E-06** at limit **
   7  Prefactor     3.0822        14.137        .62104E-06    .14905E-04
   8  Prefactor     6.2323        76.739       -.85848E-05   -.14824E-04
   9  norm          .10000E-03    3.1299       -.52758E-07** at limit **
  10  Prefactor     4.4189        7.3162        .30109E-06    .51087E-04
  11  Prefactor     .10000E-03    2.7246       -.61122E-06** at limit **
  12  Prefactor     9.1368        19.638        .34890E-06    .55438E-06
  13  norm          1.2216        .55570       -.67840E-08    .19967E-03
  14  Prefactor     .10000E-03    12.097        .15996E-07** at limit **
  15  Prefactor     .10000E-03    12.873       -.39008E-07** at limit **
  16  Prefactor     .10000E-03    5.8615       -.99781E-07** at limit **
  17  Prefactor     .10000E-03    73.535        .77046E-06** at limit **
  18  Prefactor     .64053        2.7026        .75361E-06   -.15482E-03
  19  Normalizat    1.1390        .18918       -.22538E-06    .73161E-05
  20  Prefactor     .86236        .12393       -.22142E-06   -.13802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47478
  Prefactor  = 11.8423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.4033
  Prefactor  = 0.0001
  Prefactor  = 3.08221
  Prefactor  = 6.23227
  norm       = 0.0001
  Prefactor  = 4.41889
  Prefactor  = 0.000100004
  Prefactor  = 9.13678
  norm       = 1.22155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.640528
  Normalizat = 1.13899
  Prefactor  = 0.86236
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.815     FROM HESSE     STATUS=OK           297 CALLS     2393 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4748        .74281        .47343E-04   -1.5465    
   2  Prefactor     11.842        7.5352        .58201E-03   -1.5020    
   3  Prefactor     .10000E-03    16.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7116        .10196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.403        49.433        .60830E-04   -1.4389    
   6  Prefactor     .10000E-03    12.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0822        14.053        .23079E-03   -1.5357    
   8  Prefactor     6.2323        75.568        .16203E-03   -1.5209    
   9  norm          .10000E-03    3.1383        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4189        7.2778        .19154E-03   -1.5288    
  11  Prefactor     .10000E-03    10.667        .23988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1368        19.632        .13258E-03   -1.5103    
  13  norm          1.2216        .55294        .38692E-04   -1.5487    
  14  Prefactor     .10000E-03    12.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64053        4.4649        .23060E-02   -1.5548    
  19  Normalizat    1.1390        .22013        .25785E-03   -.88510    
  20  Prefactor     .86236        .14604        .20358E-03   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42065e-08
Minuit parameter uncertainties:
  1  0.742816
  2  7.53585
  3  8.30876e-07
  4  3.94167e-06
  5  49.4797
  6  5.00094e-06
  7  13.1678
  8  43.4715
  9  8.60912e-07
  10  7.27928
  11  0.00043789
  12  19.6458
  13  0.552945
  14  4.35636e-06
  15  1.06607e-06
  16  9.79758e-06
  17  9.45957e-05
  18  3.38233
  19  0.220303
  20  0.146108
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  8.609e-07  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.624e-01  1.461e-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.139e+00  2.203e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981798/likelihoodResults_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.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) = 6428.81652913
delta logL = -0.00151104588804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6428.81501809
delta logL = 8.35825630929e-10

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.3059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86236       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=   6428.815     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    355.65        .13858E-02** at limit **
   2  alpha         2.1966        3.5072        .50000       -.38654E-08
   3  Normalizat    1.1390        .58342E-01    .25785E-03    .35273E-06
   4  Prefactor     .86236        .40899E-01    .20358E-03    .16753E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19663
  Normalizat = 1.13899
  Prefactor  = 0.86236
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.815     FROM HESSE     STATUS=OK            27 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3942        .27717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1966        3.5560        .20000       -.12165    
   3  Normalizat    1.1390        .20626        .10314E-04   -.88510    
   4  Prefactor     .86236        .14463        .81431E-05   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42926e-13
Minuit parameter uncertainties:
  1  3.65335e-06
  2  236.827
  3  0.206409
  4  0.144694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981798': 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) = 6428.81501797
delta logL = 1.14815520647e-07

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  3.653e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.197e+00  2.368e+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:  8.624e-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:  1.139e+00  2.064e-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/981798/cmap_HighResolution_346636801_346896001_4FGL_J0752.2+3313_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-05', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-08-28 18:23:49.738470', job_id='981798', GAL2='0.86', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630200229.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='414' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 981798: <4FGL_J0752.2+3313_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin414 118.055 33.232 346636801 346896001 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 :                                   656.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            807 sec.

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

