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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin155
RA = 118.055, Dec = 33.232
tmin = 279504001, tmax = 279763201
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='978994', job_status='RUN', time_executed='2021-08-28 18:04:13.511976', time_epoch_executed='1630199053.51' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978994/ft1_4FGL_J0752.2+3313_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978994/ft1_4FGL_J0752.2+3313_daily_bin155.fits outfile=/scratch/kocevski/978994/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin155.fits ra=118.055 dec=33.232 rad=12.0 tmin=279504001.0 tmax=279763201.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.33
sys 0.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.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/978994/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/978994/ft1_filtered_4FGL_J0752.2+3313_daily_bin155.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.04
user 0.35
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978994/ft1_filtered_4FGL_J0752.2+3313_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/978994/ltcube_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.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/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits
.....................!
real 12.46
user 11.50
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978994/ft1_filtered_4FGL_J0752.2+3313_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/978994/ltcube_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.fits outfile=/scratch/kocevski/978994/expmap_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.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/978994/ltcube_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.fits
.....................!
real 192.68
user 185.88
sys 5.19

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/978994/ft1_filtered_4FGL_J0752.2+3313_daily_bin155.fits scfile=/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits outfile=/scratch/kocevski/978994/cmap_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.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.96
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978994/ft1_filtered_4FGL_J0752.2+3313_daily_bin155.fits scfile=/scratch/kocevski/978994/ft2_4FGL_J0752.2+3313_daily_bin155.fits outfile=/scratch/kocevski/978994/cmap_HighResolution_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.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.99
user 0.37
sys 0.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10621E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1180       1.0000         .10000E-03   10000.    
    13 'norm      '    .96967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79795       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=   7056.930     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     2033 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4551        .98595        .23306E-07   -.47080E-04
   2  Prefactor     10.075        8.5793        .88248E-07    .14968E-06
   3  Prefactor     .10000E-03    21.087        .88259E-06** at limit **
   4  norm          .10000E-03    2.2970       -.59418E-06** at limit **
   5  Prefactor     79.560        46.805       -.15922E-06   -.10068E-03
   6  Prefactor     23.783        20.973        .60525E-07   -.38739E-04
   7  Prefactor     .10000E-03    24.004       -.45270E-06** at limit **
   8  Prefactor     .10000E-03    21.775       -.34919E-06** at limit **
   9  norm          .10000E-03    5.5198        .15784E-08** at limit **
  10  Prefactor     .10000E-03    2.2442        .62093E-08** at limit **
  11  Prefactor     .52665        3.6487        .26782E-05   -.55117E-04
  12  Prefactor     1.1061        72.873        .22557E-05   -.22924E-04
  13  norm          .96955        .56688       -.45296E-07   -.48018E-03
  14  Prefactor     .10000E-03    8.6622       -.27012E-06** at limit **
  15  Prefactor     48.934        27.547       -.16759E-06   -.58729E-04
  16  Prefactor     29.283        15.454       -.29734E-06   -.12835E-03
  17  Prefactor     .10000E-03    8.0066        .14654E-06** at limit **
  18  Prefactor     .10000E-03    1.6524       -.99748E-07** at limit **
  19  Normalizat    1.2071        .19108        .61120E-06   -.12480E-03
  20  Prefactor     .79774        .12370       -.88738E-06   -.18564E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45505
  Prefactor  = 10.0755
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.5603
  Prefactor  = 23.7832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.526653
  Prefactor  = 1.10609
  norm       = 0.969547
  Prefactor  = 0.0001
  Prefactor  = 48.934
  Prefactor  = 29.2832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20707
  Prefactor  = 0.797744
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.930     FROM HESSE     STATUS=OK           291 CALLS     2324 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4551        .98346        .50029E-04   -1.5395    
   2  Prefactor     10.075        8.5831        .12622E-03   -1.5073    
   3  Prefactor     .10000E-03    21.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3028        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     79.560        46.836        .22510E-03   -1.3922    
   6  Prefactor     23.783        20.964        .82127E-04   -1.4732    
   7  Prefactor     .10000E-03    24.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2485        .12290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .52665        3.6914        .30998E-03   -1.5563    
  12  Prefactor     1.1061        75.772        .44481E-03   -1.5498    
  13  norm          .96955        .55925        .45989E-04   -1.5511    
  14  Prefactor     .10000E-03    8.6655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.934        27.565        .28661E-03   -1.4308    
  16  Prefactor     29.283        15.425        .74030E-04   -1.4625    
  17  Prefactor     .10000E-03    8.0168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6743        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2071        .22057        .27296E-03   -.86385    
  20  Prefactor     .79774        .14201        .21789E-03   -.99812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40032e-10
Minuit parameter uncertainties:
  1  0.983466
  2  8.58411
  3  9.19333e-05
  4  4.6619e-06
  5  46.8573
  6  20.9708
  7  0.000186836
  8  9.74722e-05
  9  5.49604e-07
  10  1.38749e-06
  11  2.78857
  12  18.333
  13  0.559249
  14  4.67084e-05
  15  27.5719
  16  15.4266
  17  3.82393e-05
  18  7.62429e-07
  19  0.220743
  20  0.142072
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  5.496e-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:  7.977e-01  1.421e-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.207e+00  2.207e-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: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978994/likelihoodResults_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.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) = 7056.93126805
delta logL = -0.0008581608854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7056.93040995
delta logL = -5.86114765611e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79778       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=   7056.913     FROM MIGRAD    STATUS=FAILED       149 CALLS      293 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15089        40.253        .29134E-01    .14616E-02
   2  alpha         5.0000        2.7169        .16513    ** at limit **
   3  Normalizat    1.1937        .95537E-01    .27296E-03   -.54935E-04
   4  Prefactor     .80314        .42208E-01    .21789E-03   -.11061E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7056.913     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      442 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15089        40.253        .27147E-05    .14616E-02
   2  alpha         5.0000        2.7169        .31713E-01** at limit **
   3  Normalizat    1.1937        .95537E-01    .14608E-06   -.54935E-04
   4  Prefactor     .80314        .42208E-01    .91971E-08   -.11061E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7056.913     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      474 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15089        1.1580        .10340E-02    .60868E-02
   2  alpha         5.0000        4.1455        .66054E-02** at limit **
   3  Normalizat    1.1937        .22539        .10919E-04   -.49771E-04
   4  Prefactor     .80314        .14492        .87155E-05   -.10931E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.150895
  alpha      = 5
  Normalizat = 1.19373
  Prefactor  = 0.803135
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.913     FROM HESSE     STATUS=OK            25 CALLS      499 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15089        1.1448        .20680E-03   -1.5630    
   2  alpha         5.0000        4.1457        .13211E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1937        .22386        .21837E-05   -.86797    
   4  Prefactor     .80314        .14438        .17431E-05   -.99613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72966e-11
Minuit parameter uncertainties:
  1  0.830992
  2  6.36907e-05
  3  0.224043
  4  0.144452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978994': 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) = 7056.91284918
delta logL = 0.0175607057408

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.509e-01  8.310e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  6.369e-05  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.031e-01  1.445e-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.194e+00  2.240e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/978994/cmap_HighResolution_279504001_279763201_4FGL_J0752.2+3313_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-08-28 18:15:43.328357', job_id='978994', GAL2='0.80', fit_tolerance='1e-08', EG2='1.19', EG='1.21', time_epoch_completed='1630199743.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.76e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='155' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 978994: <4FGL_J0752.2+3313_daily_bin155> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin155> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 18:00:33 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 18:00:34 2021
Terminated at Sat Aug 28 18:15:44 2021
Results reported at Sat Aug 28 18:15:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin155 118.055 33.232 279504001 279763201 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

