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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1511
RA = 80.4445, Dec = 21.2131
tmin = 630979201, tmax = 631238401
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='232798', job_status='RUN', time_executed='2021-08-22 11:48:26.232754', time_epoch_executed='1629658106.23' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232798/ft1_4FGL_J0521.7+2112_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232798/ft1_4FGL_J0521.7+2112_daily_bin1511.fits outfile=/scratch/kocevski/232798/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1511.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=630979201.0 tmax=631238401.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.33
user 2.61
sys 1.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.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/232798/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.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.95
user 0.33
sys 1.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/232798/ltcube_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.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/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits
.....................!
real 13.87
user 11.83
sys 2.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/232798/ltcube_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits outfile=/scratch/kocevski/232798/expmap_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.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/232798/ltcube_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits
.....................!
real 191.56
user 184.98
sys 6.26

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/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits outfile=/scratch/kocevski/232798/cmap_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.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 1.99
user 0.35
sys 1.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits outfile=/scratch/kocevski/232798/cmap_HighResolution_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.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 1.99
user 0.36
sys 1.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232798/Model_4FGL_J0521.7+2112_daily_bin1511.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/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits.....................!
real 56.10
user 52.79
sys 3.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits', '/scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits', expMap='/scratch/kocevski/232798/expmap_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits', expCube='/scratch/kocevski/232798/ltcube_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232798/Model_4FGL_J0521.7+2112_daily_bin1511.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/232798/ft1_filtered_4FGL_J0521.7+2112_daily_bin1511.fits
Spacecraft file(s): /scratch/kocevski/232798/ft2_4FGL_J0521.7+2112_daily_bin1511.fits
Exposure map: /scratch/kocevski/232798/expmap_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits
Exposure cube: /scratch/kocevski/232798/ltcube_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232798/Model_4FGL_J0521.7+2112_daily_bin1511.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1822.41428296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1816.98689204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    180.56       1.0000         .10000E-03   10000.    
     2 'norm      '    .24739E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    419.65       1.0000         .10000E-03   10000.    
     8 'Prefactor '    722.29       1.0000         .10000E-03   10000.    
     9 'norm      '    .13897E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29707       1.0000         .10000E-03   10000.    
    11 'norm      '    43.246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8936       1.0000         .10000E-03   10000.    
    13 'norm      '    .20965E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25043E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1024.4       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26450E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7669       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1816.985     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      578 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          175.50        196.23       -.13253E-04   -.29736E-01
   2  norm          .10000E-03    72.229       -.45749E-05** at limit **
   3  Prefactor     .10000E-03    15.897       -.97945E-07** at limit **
   4  Prefactor     .10000E-03    10.878        .43584E-06** at limit **
   5  norm          .10000E-03    13.211        .52843E-06** at limit **
   6  Prefactor     .10000E-03    24.596        .27717E-05** at limit **
   7  Prefactor     423.46        154.00        .70768E-05   -.36155E-01
   8  Prefactor     722.95        25.446        .84601E-06   -.15027E-01
   9  norm          .10000E-03    13.259       -.11921E-05** at limit **
  10  Prefactor     .10000E-03    161.92       -.30214E-05** at limit **
  11  norm          44.927        90.319       -.13817E-04   -.15887E-02
  12  Prefactor     1.8921        .85175       -.81888E-08   -.16722E-05
  13  norm          .10000E-03    29.991       -.20575E-05** at limit **
  14  Prefactor     .10000E-03    5.5524       -.17284E-06** at limit **
  15  Prefactor     .10067E-03    608.95       -.12659E-04** at limit **
  16  Prefactor     1022.5        76.070       -.24023E-05    .61800E-01
  17  Prefactor     .10000E-03    74.481        .64067E-05** at limit **
  18  Prefactor     1.7669        1.0470         .0000         .0000    
  19  Normalizat    .10000E-01    1.0066        .91780E-06** at limit **
  20  Prefactor     1.1415        .10894        .69466E-06   -.13214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 175.501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 423.463
  Prefactor  = 722.951
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 44.9267
  Prefactor  = 1.89206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100669
  Prefactor  = 1022.54
  Prefactor  = 0.0001
  Prefactor  = 1.76693
  Normalizat = 0.01
  Prefactor  = 1.14154
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1816.985     FROM HESSE     STATUS=FAILED        77 CALLS      655 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          175.50        209.64        .75101E-03   -1.3051    
   2  norm          .10000E-03    72.728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     423.46        330.54        .49873E-03   -1.1563    
   8  Prefactor     722.95        672.08        .38630E-03   -1.0263    
   9  norm          .10000E-03    13.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    161.52        .10412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          44.927        90.444        .15240E-02   -1.4366    
  12  Prefactor     1.8921        .84413        .57712E-02   -1.5433    
  13  norm          .10000E-03    29.915        .91274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10067E-03    609.43        .91476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1022.5        835.58        .32979E-03   -.91982    
  17  Prefactor     .10000E-03    74.604        .91545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     572.94        571.01         .0000       -1.5442    
  19  Normalizat    .10000E-01    .25765        .91780E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1415        1.1261        .69466E-06   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.5152e-10
Minuit parameter uncertainties:
  1  210.544
  2  9.43383e-05
  3  2.05668e-06
  4  7.56316e-06
  5  1.01556e-05
  6  7.22728e-05
  7  332.038
  8  679.858
  9  2.31162e-05
  10  0.00017665
  11  90.7219
  12  0.84414
  13  5.85101e-05
  14  2.19271e-06
  15  0.0407948
  16  846.549
  17  0.000223622
  18  1.04701
  19  6.20568e-08
  20  1.15106
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1816.98493855

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e-04  2.312e-05  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:  1.142e+00  1.151e+00  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:  1.000e-02  6.206e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/232798/likelihoodResults_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.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) = 1816.98530172
delta logL = -0.000363164743248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1816.98494256
delta logL = -4.01304509978e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10555E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8737       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1412       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=   1816.985     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      281 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1811        .67123E-01** at limit **
   2  alpha         2.8372        3.2258        .50000        .92916E-07
   3  Normalizat    .10000E-01    .41707E-03    .19286E-01** at limit **
   4  Prefactor     1.1415        .21148E-02    .13821E-03   -.80370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.8372
  Normalizat = 0.01
  Prefactor  = 1.14154
 **********
 **   18 **HESSE 
 **********

 FCN=   1816.985     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    431.54        .20194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8372        3.5525        .50000        .13529    
   3  Normalizat    .10000E-01    .24046E-01    .38572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1415        .16052E-01    .27642E-04   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.45991e-10
Minuit parameter uncertainties:
  1  0.000222204
  2  571.794
  3  2.74208e-07
  4  0.0160522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232798': 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): 102
logL (Free Index) = 1816.98493606
delta logL = 2.49005256592e-06

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e-04  2.222e-04  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.837e+00  5.718e+02  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:  1.142e+00  1.605e-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:  1.000e-02  2.742e-07  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/232798/cmap_HighResolution_630979201_631238401_4FGL_J0521.7+2112_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-04', job_status='DONE', photon_flux_upper_limit='7.82e-07', time_completed='2021-08-22 11:55:16.019651', job_id='232798', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629658516.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.14', dlogl='2.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1511' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 11:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 232798: <4FGL_J0521.7+2112_daily_bin1511> in cluster <slac> Done

Job <4FGL_J0521.7+2112_daily_bin1511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 11:45:27 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 11:45:29 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:45:29 2021
Terminated at Sun Aug 22 11:55:17 2021
Results reported at Sun Aug 22 11:55:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_daily_bin1511 80.4445 21.2131 630979201 631238401 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 :                                   421.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            590 sec.

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

