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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1513
RA = 80.4445, Dec = 21.2131
tmin = 631497601, tmax = 631756801
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='232801', job_status='RUN', time_executed='2021-08-22 11:50:56.705810', time_epoch_executed='1629658256.71' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232801/ft1_4FGL_J0521.7+2112_daily_bin1513.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232801/ft1_4FGL_J0521.7+2112_daily_bin1513.fits outfile=/scratch/kocevski/232801/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1513.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=631497601.0 tmax=631756801.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 7.39
user 2.32
sys 5.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits" evtable="EVENTS" scfile=/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits sctable="SC_DATA" outfile=/scratch/kocevski/232801/ltcube_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.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/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits
.....................!
real 17.83
user 11.82
sys 5.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits sctable="SC_DATA" expcube=/scratch/kocevski/232801/ltcube_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.fits outfile=/scratch/kocevski/232801/expmap_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.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/232801/ltcube_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.fits
.....................!
real 195.69
user 185.18
sys 10.16

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/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits scfile=/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits outfile=/scratch/kocevski/232801/cmap_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.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 5.30
user 0.37
sys 4.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits scfile=/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits outfile=/scratch/kocevski/232801/cmap_HighResolution_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.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 5.29
user 0.38
sys 4.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/232801/ft2_4FGL_J0521.7+2112_daily_bin1513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232801/Model_4FGL_J0521.7+2112_daily_bin1513.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/232801/ft1_filtered_4FGL_J0521.7+2112_daily_bin1513.fits.....................!
real 89.40
user 81.46
sys 7.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69825E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    140.23       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.264       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5976       1.0000         .10000E-03   10000.    
    13 'norm      '    16.692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32677E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.625       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73235       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94641       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=   3175.334     FROM MIGRAD    STATUS=CONVERGED     65 CALLS     1952 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12847E-03    6.3745       -.99234E-04** at limit **
   2  norm          .10891E-03    24.253        .15038E-03** at limit **
   3  Prefactor     25.326        1.3270       -.35322E-05    .13525E-02
   4  Prefactor     .10000E-03    8.2648        .13614E-04** at limit **
   5  norm          16.394        1.0108        .62842E-06    .10104E-03
   6  Prefactor     .10016E-03    27.809       -.68119E-04** at limit **
   7  Prefactor     140.24        1.2126        .12202E-05   -.42665E-02
   8  Prefactor     .10615E-03    88.354       -.35419E-03** at limit **
   9  norm          .10000E-03    11.271        .32743E-04** at limit **
  10  Prefactor     62.257        1.4749       -.28719E-05    .43614E-02
  11  norm          .10000E-03    9.5755       -.94370E-05** at limit **
  12  Prefactor     1.5970        .45231        .38398E-06    .22824E-02
  13  norm          16.713        1.7753        .56516E-05    .99416E-03
  14  Prefactor     .10000E-03    8.2457        .22037E-06** at limit **
  15  Prefactor     .10897E-03    18.836       -.98701E-05** at limit **
  16  Prefactor     .10234E-03    17.776        .45473E-04** at limit **
  17  Prefactor     41.677        1.0660       -.11373E-05    .60726E-03
  18  Prefactor     59.634        1.8807        .43292E-05   -.65205E-02
  19  Normalizat    .73200        .83275       -.47046E-04    .95606E-05
  20  Prefactor     .94647        .12626        .10370E-04    .11230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00012847
  norm       = 0.000108911
  Prefactor  = 25.3263
  Prefactor  = 0.0001
  norm       = 16.3944
  Prefactor  = 0.000100158
  Prefactor  = 140.237
  Prefactor  = 0.000106148
  norm       = 0.000100002
  Prefactor  = 62.2574
  norm       = 0.0001
  Prefactor  = 1.59696
  norm       = 16.7132
  Prefactor  = 0.0001
  Prefactor  = 0.000108971
  Prefactor  = 0.000102343
  Prefactor  = 41.6774
  Prefactor  = 59.6341
  Normalizat = 0.732002
  Prefactor  = 0.946471
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.334     FROM HESSE     STATUS=OK           335 CALLS     2287 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12847E-03    243.33        .10491E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10891E-03    43.040        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.326        33.636        .19897E-02   -1.4701    
   4  Prefactor     .10000E-03    8.2246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.394        17.172        .24730E-02   -1.4898    
   6  Prefactor     .10016E-03    27.851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     140.24        160.07        .85044E-03   -1.3334    
   8  Prefactor     .10615E-03    113.51        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.257        119.67        .12713E-02   -1.4128    
  11  norm          .10000E-03    9.5692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5970        .64713        .43260E-02   -1.5455    
  13  norm          16.713        19.228        .24508E-02   -1.4890    
  14  Prefactor     .10000E-03    3.8563        .50112E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10897E-03    58.900        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10234E-03    54.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.677        31.821        .15523E-02   -1.4416    
  18  Prefactor     59.634        164.92        .12990E-02   -1.4162    
  19  Normalizat    .73200        1.0145        .24408       -1.0264    
  20  Prefactor     .94647        .14028        .31834E-01   -.94536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33069e-06
Minuit parameter uncertainties:
  1  0.167149
  2  0.0391968
  3  33.6608
  4  6.46427e-05
  5  17.1773
  6  0.00419869
  7  160.572
  8  0.0529352
  9  0.000288973
  10  120.133
  11  5.6965e-05
  12  0.647129
  13  19.2355
  14  6.51106e-05
  15  0.0460193
  16  0.0225322
  17  31.834
  18  166.207
  19  1.04247
  20  0.140332
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e-04  2.890e-04  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.465e-01  1.403e-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:  7.320e-01  1.042e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/232801/likelihoodResults_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.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): 102
logL (Free Index) = 3175.33449065
delta logL = -0.000423835550464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3175.33406644
delta logL = 3.7954077925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9124       1.0000          .0000       5.0000    
     3 'Normalizat'    .73254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94641       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3175.271     FROM MIGRAD    STATUS=FAILED       168 CALLS      324 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11064E-01    2.1223        .28248E-02    .46364E-02
   2  alpha         5.0000        3.5003        .50000    ** at limit **
   3  Normalizat    .62699        .30810        .10876E-01   -.88165E-05
   4  Prefactor     .95391        .41044E-01    .14068E-03    .12260E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3175.271     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      442 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11064E-01    2.1223        .35067E-05    .46364E-02
   2  alpha         5.0000        3.5003        .17133E-01** at limit **
   3  Normalizat    .62699        .30810        .26449E-05   -.88165E-05
   4  Prefactor     .95391        .41044E-01    .16528E-06    .12260E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3175.271     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      481 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11064E-01    .37240E-01    .15730E-03    .20970E-01
   2  alpha         5.0000        4.9273        .50000    ** at limit **
   3  Normalizat    .62699        .89047        .43504E-03   -.12086E-04
   4  Prefactor     .95391        .12757        .28137E-04    .12279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0110645
  alpha      = 5
  Normalizat = 0.626989
  Prefactor  = 0.953912
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.271     FROM HESSE     STATUS=OK            31 CALLS      512 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11064E-01    .35304E-01    .31459E-04   -1.5687    
   2  alpha         5.0000        4.8588        .50000       -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .62699        .89278        .17402E-04   -1.0685    
   4  Prefactor     .95391        .12763        .56273E-05   -.94282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29092e-11
Minuit parameter uncertainties:
  1  0.0353045
  2  0.000140163
  3  0.914672
  4  0.127673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232801': 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) = 3175.27132194
delta logL = 0.0627448814444

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.106e-02  3.530e-02  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  5.000e+00  1.402e-04  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:  9.539e-01  1.277e-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:  6.270e-01  9.147e-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/232801/cmap_HighResolution_631497601_631756801_4FGL_J0521.7+2112_daily_bin1513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-04', job_status='DONE', photon_flux_upper_limit='3.45e-07', time_completed='2021-08-22 12:00:27.607677', job_id='232801', GAL2='0.95', fit_tolerance='1e-08', EG2='0.63', EG='0.73', time_epoch_completed='1629658827.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.27e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1513' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 232801: <4FGL_J0521.7+2112_daily_bin1513> in cluster <slac> Done

Job <4FGL_J0521.7+2112_daily_bin1513> 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) <bullet0288>, 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 12:00:30 2021
Results reported at Sun Aug 22 12:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_daily_bin1513 80.4445 21.2131 631497601 631756801 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 :                                   641.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            903 sec.

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

