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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1316
RA = 80.4445, Dec = 21.2131
tmin = 580435201, tmax = 580694401
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='231044', job_status='RUN', time_executed='2021-08-22 11:44:04.438483', time_epoch_executed='1629657844.44' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231044/ft1_4FGL_J0521.7+2112_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231044/ft1_4FGL_J0521.7+2112_daily_bin1316.fits outfile=/scratch/kocevski/231044/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1316.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=580435201.0 tmax=580694401.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.91
user 2.85
sys 2.03

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.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/231044/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1316.fits evtable="EVENTS" outfile="/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.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 2.36
user 0.31
sys 2.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/231044/ltcube_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.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/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits
.....................!
real 14.38
user 11.68
sys 2.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/231044/ltcube_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits outfile=/scratch/kocevski/231044/expmap_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.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/231044/ltcube_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits
.....................!
real 191.70
user 184.52
sys 6.85

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0521.7+2112 @ 80.4445 21.2131

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits outfile=/scratch/kocevski/231044/cmap_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.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=80.4445 yref=21.2131 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 2.38
user 0.37
sys 1.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits outfile=/scratch/kocevski/231044/cmap_HighResolution_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.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=80.4445 yref=21.2131 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 2.38
user 0.40
sys 1.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231044/Model_4FGL_J0521.7+2112_daily_bin1316.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits.....................!
real 138.84
user 134.94
sys 3.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits', '/scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits', expMap='/scratch/kocevski/231044/expmap_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits', expCube='/scratch/kocevski/231044/ltcube_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231044/Model_4FGL_J0521.7+2112_daily_bin1316.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.7+2112'

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.851e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.583e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231044/ft1_filtered_4FGL_J0521.7+2112_daily_bin1316.fits
Spacecraft file(s): /scratch/kocevski/231044/ft2_4FGL_J0521.7+2112_daily_bin1316.fits
Exposure map: /scratch/kocevski/231044/expmap_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits
Exposure cube: /scratch/kocevski/231044/ltcube_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231044/Model_4FGL_J0521.7+2112_daily_bin1316.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) = 5930.817244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    158.53       1.0000         .10000E-03   10000.    
     2 'norm      '    109.32       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65146E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3953       1.0000         .10000E-03   10000.    
     9 'norm      '    .15698       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.404       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2418       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11120E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.0027       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5930.815     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2667 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          158.54        150.49        .49127E-06    .11439E-04
   2  norm          109.29        96.562        .62382E-06    .63143E-04
   3  Prefactor     .10001E-03    82.172       -.33983E-04** at limit **
   4  Prefactor     .10000E-03    10.035       -.93426E-05** at limit **
   5  norm          .10000E-03    2.8731       -.12962E-06** at limit **
   6  Prefactor     .10000E-03    3.7459       -.48746E-06** at limit **
   7  Prefactor     .10000E-03    45.086        .18380E-06** at limit **
   8  Prefactor     7.6337        250.74        .52825E-05   -.45998E-04
   9  norm          .14614        5.1703        .16504E-05   -.35137E-04
  10  Prefactor     29.417        41.802        .16264E-06    .15999E-03
  11  norm          3.6415        13.645       -.83980E-06   -.37619E-04
  12  Prefactor     1.2423        .32212        .51047E-10    .29655E-02
  13  norm          4.7451        8.0816       -.33022E-05   -.28853E-03
  14  Prefactor     .33886        1.9054        .14709E-05    .15496E-02
  15  Prefactor     .10000E-03    28.757        .18359E-07** at limit **
  16  Prefactor     .10000E-03    26.808        .31646E-07** at limit **
  17  Prefactor     .10000E-03    13.058        .69033E-06** at limit **
  18  Prefactor     .10000E-03    9.2691        .37210E-06** at limit **
  19  Normalizat    2.0030        .65024       -.61265E-05    .20779E-03
  20  Prefactor     .75836        .73912E-01    .55253E-07    .78122E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 158.535
  norm       = 109.288
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6337
  norm       = 0.146141
  Prefactor  = 29.4168
  norm       = 3.64152
  Prefactor  = 1.24232
  norm       = 4.74506
  Prefactor  = 0.338862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.00299
  Prefactor  = 0.758355
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.815     FROM HESSE     STATUS=OK           291 CALLS     2958 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          158.54        150.48        .16012E-03   -1.3183    
   2  norm          109.29        96.549        .19234E-03   -1.3613    
   3  Prefactor     .10001E-03    101.97        .61630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.090        .33086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8743        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7550        .14563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6337        238.79        .14748E-03   -1.5155    
   9  norm          .14614        40.392        .33125E-02   -1.5632    
  10  Prefactor     29.417        41.954        .73885E-04   -1.4623    
  11  norm          3.6415        13.630        .21155E-03   -1.5326    
  12  Prefactor     1.2423        .33883        .12839E-04   -1.5485    
  13  norm          4.7451        8.2232        .92269E-03   -1.5272    
  14  Prefactor     .33886        2.9964        .13180E-02   -1.5592    
  15  Prefactor     .10000E-03    28.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    2.0030        .68845        .75310E-03   -.64475    
  20  Prefactor     .75836        .80279E-01    .13585E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72596e-08
Minuit parameter uncertainties:
  1  150.846
  2  96.6882
  3  0.00231967
  4  4.22733e-05
  5  8.05861e-06
  6  3.35233e-05
  7  3.35095e-05
  8  85.7655
  9  4.86081
  10  41.9958
  11  13.6412
  12  0.338834
  13  8.22513
  14  2.01516
  15  9.79965e-05
  16  1.77107e-05
  17  0.000141149
  18  5.42337e-05
  19  0.69191
  20  0.0802915
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.461e-01  4.861e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.851e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.583e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.584e-01  8.029e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  2.003e+00  6.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 80.445 21.213
Photon Flux Upper Limit: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231044/likelihoodResults_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.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) = 5930.77429136
delta logL = 0.0410374663188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5930.77400035
delta logL = 0.0413284758852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1528       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3234       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5930.774     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      337 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1528        4.3480        .30457E-03    .81534E-03
   2  alpha         1.3234        1.1852        .35619E-01    .64016E-04
   3  Normalizat    2.0078        .65034        .75238E-03    .81943E-04
   4  Prefactor     .75693        .78732E-01    .13595E-03    .40911E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15281
  alpha      = 1.32339
  Normalizat = 2.00779
  Prefactor  = 0.756933
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.774     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1528        4.4343        .12183E-04   -1.5493    
   2  alpha         1.3234        1.2073        .14248E-02   -.49002    
   3  Normalizat    2.0078        .65056        .30095E-04   -.64355    
   4  Prefactor     .75693        .78759E-01    .27191E-04   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35393e-09
Minuit parameter uncertainties:
  1  4.43557
  2  1.27757
  3  0.65347
  4  0.0787709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231044': 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) = 5930.77400034
delta logL = 0.0413284887591

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.153e+00  4.436e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.323e+00  1.278e+00  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.583e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.569e-01  7.877e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  2.008e+00  6.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 80.445 21.213

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/231044/cmap_HighResolution_580435201_580694401_4FGL_J0521.7+2112_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-04', job_status='DONE', photon_flux_upper_limit='2.50e-07', time_completed='2021-08-22 11:56:42.408545', job_id='231044', GAL2='0.76', fit_tolerance='1e-08', EG2='2.01', EG='2.00', time_epoch_completed='1629658602.41', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.13e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1316' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 11:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 231044: <4FGL_J0521.7+2112_daily_bin1316> in cluster <slac> Done

Job <4FGL_J0521.7+2112_daily_bin1316> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 22 11:40:31 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 11:40:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 11:40:33 2021
Terminated at Sun Aug 22 11:56:45 2021
Results reported at Sun Aug 22 11:56:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_daily_bin1316 80.4445 21.2131 580435201 580694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.7+2112 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1233 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            974 sec.

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

