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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1443
RA = 80.4445, Dec = 21.2131
tmin = 613353601, tmax = 613612801
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='232692', job_status='RUN', time_executed='2021-08-22 11:50:24.574575', time_epoch_executed='1629658224.57' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232692/ft1_4FGL_J0521.7+2112_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232692/ft1_4FGL_J0521.7+2112_daily_bin1443.fits outfile=/scratch/kocevski/232692/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1443.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=613353601.0 tmax=613612801.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 11.25
user 2.49
sys 8.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.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/232692/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.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 9.04
user 0.32
sys 8.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/232692/ltcube_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.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/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits
.....................!
real 21.80
user 11.81
sys 9.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/232692/ltcube_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.fits outfile=/scratch/kocevski/232692/expmap_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.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/232692/ltcube_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.fits
.....................!
real 201.52
user 185.62
sys 15.47

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/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits outfile=/scratch/kocevski/232692/cmap_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.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 8.88
user 0.37
sys 8.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits outfile=/scratch/kocevski/232692/cmap_HighResolution_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.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 9.08
user 0.38
sys 8.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/232692/ft2_4FGL_J0521.7+2112_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232692/Model_4FGL_J0521.7+2112_daily_bin1443.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/232692/ft1_filtered_4FGL_J0521.7+2112_daily_bin1443.fits.......................!
real 36.16
user 22.52
sys 12.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5015.8       1.0000         .10000E-03   10000.    
     2 'norm      '    .20530E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15228E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.462       1.0000         .10000E-03   10000.    
     5 'norm      '    .16257E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4805.2       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.859       1.0000         .10000E-03   10000.    
     9 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7247.0       1.0000         .10000E-03   10000.    
    13 'norm      '    .10346E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3824.7       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26773E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41466E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39470E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95799E-01   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=   409.7357     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     2657 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5013.2        3506.1        .40000E-04   -.37659E-06
   2  norm          .10001E-03    1455.2        .18142E-02** at limit **
   3  Prefactor     .10001E-03    132.05        .18142E-02** at limit **
   4  Prefactor     34.484        53.255        .68263E-04   -.44515E-04
   5  norm          .10001E-03    1492.6        .18142E-02** at limit **
   6  Prefactor     4647.3        5955.0        .40030E-04   -.74195E-06
   7  Prefactor    10000.0        9941.8        .18315E-02** at limit **
   8  Prefactor    10000.0        6241.9        .36661E-02** at limit **
   9  norm         10000.0        2263.4        .18142E-02** at limit **
  10  Prefactor    10000.0        9089.8        .20824E-02** at limit **
  11  norm         10000.0        9859.6        .10992E-01** at limit **
  12  Prefactor     7247.9        1676.7        .44776E-04    .92197E-05
  13  norm          .10001E-03    9992.5        .20740E-02** at limit **
  14  Prefactor     3733.9        6672.1        .41153E-04   -.61812E-06
  15  Prefactor     .10000E-03    439.80        .21437E-02** at limit **
  16  Prefactor     .10006E-03    6013.9        .18457E-02** at limit **
  17  Prefactor     .10001E-03    905.78        .21270E-02** at limit **
  18  Prefactor     .10000E-03    40.482        .12582E-02** at limit **
  19  Normalizat    .10000E-01    .23095        .30121E-02** at limit **
  20  Prefactor     .95676E-01    .73483E-01    .14517E-03   -.55006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5013.2
  norm       = 0.00010001
  Prefactor  = 0.000100015
  Prefactor  = 34.484
  norm       = 0.00010001
  Prefactor  = 4647.27
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 7247.85
  norm       = 0.000100009
  Prefactor  = 3733.86
  Prefactor  = 0.000100005
  Prefactor  = 0.000100055
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.0956764
 **********
 **   18 **HESSE 
 **********

 FCN=   409.7357     FROM HESSE     STATUS=OK           271 CALLS     2928 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5013.2        3506.7        .80000E-05    .26394E-02
   2  norm          .10001E-03    1455.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    132.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.484        53.255        .13653E-04   -1.4533    
   5  norm          .10001E-03    1492.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4647.3        5953.6        .80061E-05   -.70604E-01
   7  Prefactor    10000.0        9941.9        .36631E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        6241.4        .73322E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        2263.4        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9090.1        .41649E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        9859.8        .21983E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7247.9        1683.5        .89553E-05    .46628    
  13  norm          .10001E-03    9992.5        .41480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3733.9        6744.2        .82306E-05   -.25602    
  15  Prefactor     .10000E-03    439.80        .42874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    6013.9        .36913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    905.78        .42539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.483        .25164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .23095        .60242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .95676E-01    .73485E-01    .29034E-04   -1.3749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19212e-10
Minuit parameter uncertainties:
  1  3886.37
  2  0.00792981
  3  0.00278312
  4  53.3287
  5  0.00779262
  6  12977.6
  7  0.0673002
  8  0.212623
  9  0.00419912
  10  0.0824354
  11  0.588247
  12  1726.12
  13  0.0311315
  14  16185.5
  15  0.00292222
  16  0.169955
  17  0.00595434
  18  0.000268544
  19  4.62088e-06
  20  0.0735551
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e+04  4.199e-03  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:  9.568e-02  7.356e-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  4.621e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.57e-04 +/- 6.60e-11
Energy Flux (Fixed Index): 1.52e-01 +/- 6.40e-08

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) = 374.85653269
delta logL = 34.8791184336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 374.856520586
delta logL = 34.8791305371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73044E-01   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.

 FCN=   374.8565     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      191 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        382.26        .90723E-02** at limit **
   2  alpha         5.0000        .21218E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .19079        .11872    ** at limit **
   4  Prefactor     .73044E-01    .58477E-01    .33276E-01   -.12656E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.0730443
 **********
 **   18 **HESSE 
 **********

 FCN=   374.8565     FROM HESSE     STATUS=OK            25 CALLS      216 TOTAL
                     EDM=   .60E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        382.26        .18145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .21204E-01    .12334E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .19088        .26194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73044E-01    .58382E-01    .12985E-03   -1.3997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01563e-14
Minuit parameter uncertainties:
  1  6.84256e-05
  2  1.11887e-09
  3  8.51964e-08
  4  0.0584278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232692': 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) = 374.856508287
delta logL = 34.8791428359

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e+04  6.843e-05  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  5.000e+00  1.119e-09  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.304e-02  5.843e-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  8.520e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.79
Ra Dec: 80.445 21.213
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.65e-01 +/- 1.21e-09
Energy Flux (Free Index): 2.23e+01 +/- 1.63e-07

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/232692/cmap_HighResolution_613353601_613612801_4FGL_J0521.7+2112_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-04', energy_flux2='2.23e+01', photon_flux_error='6.60e-11', dlogl='3.49e+01', energy_flux='1.52e-01', photon_flux2='1.65e-01', job_status='DONE', time_completed='2021-08-22 11:58:19.715743', photon_index_error2='0.00', photon_index2='5.00', ts='5.67', fit_tolerance='1e-08', GAL='0.10', photon_index_error='0.00', energy_flux_error2='1.63e-07', EG='0.01', time_epoch_completed='1629658699.72', return_code='0', job_id='232692', GAL2='0.07', EG2='0.01', return_code2='0', energy_flux_error='6.40e-08', photon_flux_error2='1.21e-09', ts2='75.79', photon_index='1.85' WHERE bin_id='1443' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 11:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 232692: <4FGL_J0521.7+2112_daily_bin1443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_daily_bin1443 80.4445 21.2131 613353601 613612801 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

