/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 49 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0752.2+3313_daily_bin66
RA = 118.055, Dec = 33.232
tmin = 256435201, tmax = 256694401
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='978851', job_status='RUN', time_executed='2021-08-28 18:01:27.386881', time_epoch_executed='1630198887.39' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978851/ft1_4FGL_J0752.2+3313_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978851/ft1_4FGL_J0752.2+3313_daily_bin66.fits outfile=/scratch/kocevski/978851/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin66.fits ra=118.055 dec=33.232 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.67
user 1.28
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978851/ft1_filtered_4FGL_J0752.2+3313_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/978851/ltcube_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.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/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits
.....................!
real 13.51
user 12.91
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978851/ft1_filtered_4FGL_J0752.2+3313_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/978851/ltcube_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.fits outfile=/scratch/kocevski/978851/expmap_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.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/978851/ltcube_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.fits
.....................!
real 190.58
user 184.55
sys 5.58

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/978851/ft1_filtered_4FGL_J0752.2+3313_daily_bin66.fits scfile=/scratch/kocevski/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits outfile=/scratch/kocevski/978851/cmap_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.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.74
user 0.39
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978851/ft1_filtered_4FGL_J0752.2+3313_daily_bin66.fits scfile=/scratch/kocevski/978851/ft2_4FGL_J0752.2+3313_daily_bin66.fits outfile=/scratch/kocevski/978851/cmap_HighResolution_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.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.73
user 0.38
sys 0.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .54146       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67902E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17591E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.788       1.0000         .10000E-03   10000.    
    13 'norm      '    .80461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1349       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92334       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=   10284.00     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2084 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6675        1.0219        .42183E-03    .84862E-03
   2  Prefactor     .10000E-03    2.2982        .51976E-01** at limit **
   3  Prefactor     .10000E-03    4.0634        .90712E-02** at limit **
   4  norm          .54134        1.9514        .42213E-01    .97202E-03
   5  Prefactor     13.178        15.651        .27580E-02   -.92332E-03
   6  Prefactor     .10000E-03    8.5578        .93743E-01** at limit **
   7  Prefactor     .10003E-03    8.7845        .90712E-02** at limit **
   8  Prefactor     .10001E-03    14.048        .90712E-02** at limit **
   9  norm          .10000E-03    6.6407        .90712E-02** at limit **
  10  Prefactor     .10003E-03    7.5191        .90712E-02** at limit **
  11  Prefactor     .10000E-03    1.9063        .47107E-01** at limit **
  12  Prefactor     51.791        31.698        .13933E-02   -.16592E-02
  13  norm          .80438        .50327        .11807E-01    .17434E-02
  14  Prefactor     .10000E-03    10.334        .90712E-02** at limit **
  15  Prefactor     .10002E-03    10.732        .90712E-02** at limit **
  16  Prefactor     3.6845        11.475        .52574E-02   -.44126E-03
  17  Prefactor     4.8716        15.584        .45566E-02    .14267E-03
  18  Prefactor     4.1344        2.9110        .49558E-02    .77557E-03
  19  Normalizat    1.1758        .15746        .62949E-01   -.25005E-03
  20  Prefactor     .92326        .10472        .45302E-01   -.15353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.6675
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.54134
  Prefactor  = 13.1781
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 51.7906
  norm       = 0.804375
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 3.68449
  Prefactor  = 4.87157
  Prefactor  = 4.13443
  Normalizat = 1.17576
  Prefactor  = 0.923265
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.00     FROM HESSE     STATUS=OK           297 CALLS     2381 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6675        1.0210        .16873E-04   -1.5232    
   2  Prefactor     .10000E-03    6.6448        .29700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .54134        2.8592        .23634E-02   -1.5561    
   5  Prefactor     13.178        15.620        .11032E-03   -1.4982    
   6  Prefactor     .10000E-03    73.323        .54277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    8.8050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    7.7253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3754        .26820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.791        31.774        .55730E-04   -1.4267    
  13  norm          .80438        .48382        .53708E-03   -1.5529    
  14  Prefactor     .10000E-03    10.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6845        11.287        .21030E-03   -1.5324    
  17  Prefactor     4.8716        15.582        .18226E-03   -1.5266    
  18  Prefactor     4.1344        2.8807        .12680E-03   -1.5301    
  19  Normalizat    1.1758        .18265        .27844E-03   -.87355    
  20  Prefactor     .92326        .12227        .21343E-03   -.95333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84439e-08
Minuit parameter uncertainties:
  1  1.02101
  2  0.000181116
  3  2.27129e-06
  4  2.48817
  5  15.625
  6  0.000270669
  7  0.00110914
  8  0.000642064
  9  4.96741e-06
  10  0.00093361
  11  3.27584e-05
  12  31.7847
  13  0.483823
  14  3.33893e-05
  15  0.000913905
  16  11.2933
  17  15.5947
  18  2.88082
  19  0.182749
  20  0.122308
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  4.967e-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:  9.233e-01  1.223e-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.176e+00  1.827e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978851/likelihoodResults_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.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) = 10283.9998844
delta logL = -0.000708921790647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10283.9991756
delta logL = -1.37097231345e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92334       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=   10284.00     FROM MIGRAD    STATUS=FAILED       147 CALLS      293 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46301E-01    10.230        .21690E-01    .23945E-02
   2  alpha         5.0000        4.8966        .50000    ** at limit **
   3  Normalizat    1.1714        .24183E-01    .27844E-03   -.14862E-04
   4  Prefactor     .92503        .16394E-01    .21343E-03   -.77769E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10284.00     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      426 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46301E-01    10.230        .14373E-05    .23945E-02
   2  alpha         5.0000        4.8966        .54751E-01** at limit **
   3  Normalizat    1.1714        .24183E-01    .30409E-07   -.14862E-04
   4  Prefactor     .92503        .16394E-01    .49839E-08   -.77769E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10284.00     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      466 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46301E-01    2.1706        .11253E-02    .40590E-03
   2  alpha         5.0000        3.8039        .50000    ** at limit **
   3  Normalizat    1.1714        .18489        .11138E-04   -.14699E-04
   4  Prefactor     .92503        .12396        .85372E-05   -.79900E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0463013
  alpha      = 5
  Normalizat = 1.17143
  Prefactor  = 0.925028
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.00     FROM HESSE     STATUS=OK            31 CALLS      497 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46301E-01    1.6718        .45011E-04   -1.5665    
   2  alpha         5.0000        4.9615        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1714        .18426        .22275E-05   -.87490    
   4  Prefactor     .92503        .12385        .17074E-05   -.95272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50844e-12
Minuit parameter uncertainties:
  1  0.555857
  2  0.000174035
  3  0.184359
  4  0.123888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978851': 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) = 10283.9955242
delta logL = 0.00365127588157

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  4.630e-02  5.559e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  1.740e-04  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.250e-01  1.239e-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.171e+00  1.844e-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/978851/cmap_HighResolution_256435201_256694401_4FGL_J0752.2+3313_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-08-28 18:15:48.506274', job_id='978851', GAL2='0.93', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1630199748.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.65e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='66' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:15:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 978851: <4FGL_J0752.2+3313_daily_bin66> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin66> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 18:00:22 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:00: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:00:23 2021
Terminated at Sat Aug 28 18:15:49 2021
Results reported at Sat Aug 28 18:15:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin66 118.055 33.232 256435201 256694401 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 :                                   859.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

