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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin517
RA = 118.055, Dec = 33.232
tmin = 373334401, tmax = 373593601
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='981946', job_status='RUN', time_executed='2021-08-28 18:13:07.574191', time_epoch_executed='1630199587.57' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981946/ft1_4FGL_J0752.2+3313_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981946/ft1_4FGL_J0752.2+3313_daily_bin517.fits outfile=/scratch/kocevski/981946/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin517.fits ra=118.055 dec=33.232 rad=12.0 tmin=373334401.0 tmax=373593601.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.65
user 4.20
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981946/ft1_filtered_4FGL_J0752.2+3313_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/981946/ltcube_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.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/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits
.....................!
real 12.02
user 11.39
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981946/ft1_filtered_4FGL_J0752.2+3313_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/981946/ltcube_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.fits outfile=/scratch/kocevski/981946/expmap_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.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/981946/ltcube_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.fits
.....................!
real 190.55
user 186.05
sys 4.09

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/981946/ft1_filtered_4FGL_J0752.2+3313_daily_bin517.fits scfile=/scratch/kocevski/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits outfile=/scratch/kocevski/981946/cmap_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.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.72
user 0.38
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981946/ft1_filtered_4FGL_J0752.2+3313_daily_bin517.fits scfile=/scratch/kocevski/981946/ft2_4FGL_J0752.2+3313_daily_bin517.fits outfile=/scratch/kocevski/981946/cmap_HighResolution_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.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.75
user 0.39
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.717       1.0000         .10000E-03   10000.    
     4 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.393       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38717E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3040       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .41916E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.044       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99500       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0710       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=   8061.984     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2093 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46662        .53201        .91818E-07    .67525E-04
   2  Prefactor     3.5097        4.8929        .98589E-06    .17809E-03
   3  Prefactor     16.718        11.575        .14540E-06   -.29761E-04
   4  norm          .10001E-03    2.7119        .14785E-05** at limit **
   5  Prefactor     10.995        31.550        .37725E-05    .63399E-04
   6  Prefactor     48.396        21.893       -.11365E-05   -.39528E-03
   7  Prefactor     .10011E-03    9.5931        .64472E-06** at limit **
   8  Prefactor     .10000E-03    11.916        .47623E-06** at limit **
   9  norm          .10000E-03    5.6174        .40435E-07** at limit **
  10  Prefactor     2.3113        9.1320        .30595E-06   -.97868E-04
  11  Prefactor     8.5150        5.3195        .16570E-05   -.47427E-03
  12  Prefactor     .10000E-03    13.072       -.24044E-06** at limit **
  13  norm          .41956E-01    .30360       -.78744E-07   -.84943E-03
  14  Prefactor     22.724        24.213        .86993E-06    .43662E-04
  15  Prefactor     .10000E-03    17.040        .53222E-07** at limit **
  16  Prefactor     13.039        13.420       -.33949E-06    .78883E-04
  17  Prefactor     46.528        27.130       -.16666E-05   -.34052E-03
  18  Prefactor     .10000E-03    1.5220       -.10693E-06** at limit **
  19  Normalizat    .99493        .18814       -.16896E-05   -.20546E-03
  20  Prefactor     1.0711        .12447        .76734E-07   -.35831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.466624
  Prefactor  = 3.50969
  Prefactor  = 16.7181
  norm       = 0.00010001
  Prefactor  = 10.9948
  Prefactor  = 48.3958
  Prefactor  = 0.000100114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.31133
  Prefactor  = 8.51497
  Prefactor  = 0.0001
  norm       = 0.0419556
  Prefactor  = 22.7244
  Prefactor  = 0.0001
  Prefactor  = 13.0392
  Prefactor  = 46.528
  Prefactor  = 0.0001
  Normalizat = 0.994929
  Prefactor  = 1.07111
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.984     FROM HESSE     STATUS=OK           301 CALLS     2394 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46662        .49977        .67380E-03   -1.5571    
   2  Prefactor     3.5097        4.8887        .21577E-03   -1.5333    
   3  Prefactor     16.718        11.576        .97957E-04   -1.4890    
   4  norm          .10001E-03    5.1881        .26150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.995        31.769        .12098E-03   -1.5045    
   6  Prefactor     48.396        21.765        .57643E-04   -1.4315    
   7  Prefactor     .10011E-03    84.646        .52010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.6681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3113        8.8607        .27034E-03   -1.5404    
  11  Prefactor     8.5150        5.4521        .68689E-03   -1.5124    
  12  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41956E-01    .68844        .90624E-03   -1.5667    
  14  Prefactor     22.724        24.252        .84035E-04   -1.4754    
  15  Prefactor     .10000E-03    17.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.039        12.804        .11091E-03   -1.4986    
  17  Prefactor     46.528        27.743        .58769E-04   -1.4343    
  18  Prefactor     .10000E-03    2.4828        .20423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99493        .21710        .29916E-03   -.93201    
  20  Prefactor     1.0711        .14514        .20276E-03   -.90395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8674e-08
Minuit parameter uncertainties:
  1  0.499778
  2  4.88926
  3  11.578
  4  0.000452967
  5  31.8183
  6  21.7689
  7  0.00622218
  8  2.82099e-07
  9  2.81362e-06
  10  8.8657
  11  5.45241
  12  2.08589e-05
  13  0.339506
  14  24.2628
  15  2.23703e-05
  16  12.8071
  17  27.7507
  18  6.16358e-06
  19  0.217296
  20  0.145196
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  2.814e-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:  1.071e+00  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.949e-01  2.173e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981946/likelihoodResults_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.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) = 8061.98528795
delta logL = -0.000840967261865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8061.98444796
delta logL = -9.79491233011e-07

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.3076       1.0000          .0000       5.0000    
     3 'Normalizat'    .99487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0710       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=   8061.984     FROM MIGRAD    STATUS=FAILED        82 CALLS      226 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1125.2        .18142E-02** at limit **
   2  alpha         2.2843        3.5452        .16523        .67678E-06
   3  Normalizat    .99493        .10675        .29916E-03   -.63471E-03
   4  Prefactor     1.0711        .75233E-01    .20276E-03   -.99780E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8061.984     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      391 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1125.2        .40335E-03** at limit **
   2  alpha         2.2843        3.5452        .32864E-05    .67678E-06
   3  Normalizat    .99493        .10675        .17772E-06   -.63471E-03
   4  Prefactor     1.0711        .75233E-01    .39700E-07   -.99780E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8061.984     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      425 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6795        .36285E-03** at limit **
   2  alpha         2.2566        3.6194        .66091E-02    .68807E-09
   3  Normalizat    .99493        .20403        .59832E-04    .53203E-05
   4  Prefactor     1.0711        .14385        .40553E-04   -.58311E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25662
  Normalizat = 0.994929
  Prefactor  = 1.07111
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.984     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6789        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2566        3.5003        .13218E-02   -.97505E-01
   3  Normalizat    .99493        .20406        .11966E-04   -.93201    
   4  Prefactor     1.0711        .14387        .81106E-05   -.90395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32557e-13
Minuit parameter uncertainties:
  1  5.79079e-07
  2  317.469
  3  0.204222
  4  0.143919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981946': 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) = 8061.98444697
delta logL = 1.35005393531e-08

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  5.791e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.257e+00  3.175e+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:  1.071e+00  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.949e-01  2.042e-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/981946/cmap_HighResolution_373334401_373593601_4FGL_J0752.2+3313_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-08-28 18:25:39.936510', job_id='981946', GAL2='1.07', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630200339.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='517' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:25:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 981946: <4FGL_J0752.2+3313_daily_bin517> in cluster <slac> Done

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

Your job looked like:

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

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

