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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1510
RA = 80.4445, Dec = 21.2131
tmin = 630720001, tmax = 630979201
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='232797', job_status='RUN', time_executed='2021-08-22 11:48:08.754753', time_epoch_executed='1629658088.75' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232797/ft1_4FGL_J0521.7+2112_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232797/ft1_4FGL_J0521.7+2112_daily_bin1510.fits outfile=/scratch/kocevski/232797/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1510.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=630720001.0 tmax=630979201.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 5.81
user 2.70
sys 2.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.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/232797/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.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 3.59
user 0.34
sys 2.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/232797/ltcube_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.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/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits
.....................!
real 15.22
user 11.76
sys 3.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/232797/ltcube_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits outfile=/scratch/kocevski/232797/expmap_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.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/232797/ltcube_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits
.....................!
real 193.52
user 185.02
sys 7.88

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/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits outfile=/scratch/kocevski/232797/cmap_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.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 3.24
user 0.37
sys 2.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits outfile=/scratch/kocevski/232797/cmap_HighResolution_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.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 3.26
user 0.39
sys 2.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232797/Model_4FGL_J0521.7+2112_daily_bin1510.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/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits......................!
real 39.70
user 34.79
sys 4.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits', '/scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits', expMap='/scratch/kocevski/232797/expmap_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits', expCube='/scratch/kocevski/232797/ltcube_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232797/Model_4FGL_J0521.7+2112_daily_bin1510.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/232797/ft1_filtered_4FGL_J0521.7+2112_daily_bin1510.fits
Spacecraft file(s): /scratch/kocevski/232797/ft2_4FGL_J0521.7+2112_daily_bin1510.fits
Exposure map: /scratch/kocevski/232797/expmap_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits
Exposure cube: /scratch/kocevski/232797/ltcube_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232797/Model_4FGL_J0521.7+2112_daily_bin1510.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) = 992.766205614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    560.56       1.0000         .10000E-03   10000.    
     2 'norm      '    .60111E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.266       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15280E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10975E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52669E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3484       1.0000         .10000E-03   10000.    
     9 'norm      '    100.89       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34031       1.0000         .10000E-03   10000.    
    11 'norm      '    .43557E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21629E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26755       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7669       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87898       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0223       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   989.3634     FROM MIGRAD    STATUS=CONVERGED    196 CALLS      562 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          560.62        367.81        .43473E-03    .15892E-03
   2  norm          .10000E-03    103.22        .93193E-02** at limit **
   3  Prefactor     42.864        130.87        .15065E-02    .58651E-02
   4  Prefactor     .10000E-03    28.744        .90712E-02** at limit **
   5  norm          .10024E-03    140.08        .90992E-02** at limit **
   6  Prefactor     .10000E-03    44.021        .90712E-02** at limit **
   7  Prefactor     .40171E-03    1044.1        .95649E-02** at limit **
   8  Prefactor     .10310E-03    1323.4        .94231E-02** at limit **
   9  norm          100.93        65.886        .10006E-02   -.20087E-02
  10  Prefactor     .10000E-03    299.78        .10600E-01** at limit **
  11  norm          .10001E-03    137.79        .92386E-02** at limit **
  12  Prefactor     .10000E-03    1.0422        .90712E-02** at limit **
  13  norm          .10000E-03    39.006        .10079E-01** at limit **
  14  Prefactor     .10000E-03    21.987        .90712E-02** at limit **
  15  Prefactor     .10002E-03    391.03        .98602E-02** at limit **
  16  Prefactor     1.9286        1.0383         .0000         .0000    
  17  Prefactor     .54984E-02    .26429       -.15005E-02   -.12246E-02
  18  Prefactor     1.7669        1.0470         .0000         .0000    
  19  Normalizat    .88624        1.2198        .43474E-03   -.93573E-05
  20  Prefactor     1.0220        1.2329        .21560E-05   -.17926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 560.618
  norm       = 0.0001
  Prefactor  = 42.8639
  Prefactor  = 0.0001
  norm       = 0.00010024
  Prefactor  = 0.0001
  Prefactor  = 0.000401709
  Prefactor  = 0.000103103
  norm       = 100.932
  Prefactor  = 0.000100001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 1.92859
  Prefactor  = 0.00549843
  Prefactor  = 1.76693
  Normalizat = 0.88624
  Prefactor  = 1.02196
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   989.3634     FROM HESSE     STATUS=FAILED        39 CALLS      601 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          560.62        367.81        .43473E-03   -1.0927    
   2  norm          .10000E-03    103.22        .93193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.864        130.87        .15065E-02   -1.4398    
   4  Prefactor     .10000E-03    28.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10024E-03    140.08        .90992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .40171E-03    1044.1        .95649E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10310E-03    1323.4        .94231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          100.93        65.886        .10006E-02   -1.3695    
  10  Prefactor     .10000E-03    299.78        .10600E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    137.79        .92386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    39.006        .10079E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    391.03        .98602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     570.17        568.11         .0000       -1.5430    
  17  Prefactor     .54984E-02    .26429       -.15005E-02   -1.5723    
  18  Prefactor     1.7669        1.0470         .0000       -1.5442    
  19  Normalizat    .88624        1.2198        .43474E-03   -.96945    
  20  Prefactor     1.0220        1.2329        .21560E-05   -.92001    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.17375e-10
Minuit parameter uncertainties:
  1  369.396
  2  0.000347619
  3  131.763
  4  8.9939e-05
  5  0.0116244
  6  4.46061e-05
  7  1.14303
  8  0.131167
  9  65.9333
  10  0.000817587
  11  0.00204618
  12  3.60151e-06
  13  3.21378e-05
  14  2.5061e-05
  15  0.0050904
  16  1.03833
  17  0.0755444
  18  1.04701
  19  1.26128
  20  1.26979
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.009e+02  6.593e+01  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.022e+00  1.270e+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:  8.862e-01  1.261e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.59e-06 +/- 1.04e-06
Energy Flux (Fixed Index): 1.54e-03 +/- 1.01e-03

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) = 989.311944701
delta logL = 0.0514310807697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 989.297193282
delta logL = 0.0661824995776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    89.282       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0725       1.0000          .0000       5.0000    
     3 'Normalizat'    .83323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0230       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=   989.2972     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      257 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.257        71.760        .21262E-03    .33499E-04
   2  alpha         2.0725        .62083        .59385E-02    .17781E-04
   3  Normalizat    .83360        1.5893        .11319E-02    .26164E-04
   4  Prefactor     1.0229        .24388        .14636E-03    .85265E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 89.2565
  alpha      = 2.07254
  Normalizat = 0.833604
  Prefactor  = 1.02292
 **********
 **   18 **HESSE 
 **********

 FCN=   989.2972     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.257        70.693        .85048E-05   -1.3816    
   2  alpha         2.0725        .61166        .23754E-03   -.17183    
   3  Normalizat    .83360        1.5883        .45275E-04   -.98834    
   4  Prefactor     1.0229        .24375        .29273E-04   -.91969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30865e-10
Minuit parameter uncertainties:
  1  70.7596
  2  0.618128
  3  1.69345
  4  0.244012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232797': 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) = 989.297193161
delta logL = 0.0661826211388

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  8.926e+01  7.076e+01  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.073e+00  6.181e-01  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.023e+00  2.440e-01  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:  8.336e-01  1.693e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 80.445 21.213
Photon Index (Free Index): 2.07 +/- 0.62
Photon Flux (Free Index): 2.01e-06 +/- 1.78e-06
Energy Flux (Free Index): 1.19e-03 +/- 1.06e-03

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/232797/cmap_HighResolution_630720001_630979201_4FGL_J0521.7+2112_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-06', energy_flux2='1.19e-03', photon_flux_error='1.04e-06', dlogl='6.62e-02', energy_flux='1.54e-03', photon_flux2='2.01e-06', job_status='DONE', time_completed='2021-08-22 11:55:22.831240', photon_index_error2='0.62', photon_index2='2.07', ts='5.27', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.06e-03', EG='0.89', time_epoch_completed='1629658522.83', return_code='101', job_id='232797', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='1.01e-03', photon_flux_error2='1.78e-06', ts2='5.35', photon_index='1.85' WHERE bin_id='1510' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 11:55:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 232797: <4FGL_J0521.7+2112_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0521.7+2112_daily_bin1510> 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) <bullet0230>, 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:23 2021
Results reported at Sun Aug 22 11:55:23 2021

Your job looked like:

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

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

