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


Performing analysis on: 4FGL_J0521.7+2112_daily_bin1440
RA = 80.4445, Dec = 21.2131
tmin = 612576001, tmax = 612835201
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='232688', job_status='RUN', time_executed='2021-08-22 11:51:32.859704', time_epoch_executed='1629658292.86' WHERE source_name='4FGL J0521.7+2112' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232688/ft1_4FGL_J0521.7+2112_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232688/ft1_4FGL_J0521.7+2112_daily_bin1440.fits outfile=/scratch/kocevski/232688/ft1_filteredMKT_4FGL_J0521.7+2112_daily_bin1440.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=612576001.0 tmax=612835201.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.56
user 2.57
sys 8.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/232688/ltcube_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.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/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits
.....................!
real 22.09
user 11.88
sys 10.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/232688/ltcube_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.fits outfile=/scratch/kocevski/232688/expmap_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.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/232688/ltcube_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.fits
.....................!
real 205.08
user 187.81
sys 16.76

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/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits scfile=/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits outfile=/scratch/kocevski/232688/cmap_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.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 9.09
user 0.39
sys 8.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits scfile=/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits outfile=/scratch/kocevski/232688/cmap_HighResolution_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.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.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/232688/ft2_4FGL_J0521.7+2112_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232688/Model_4FGL_J0521.7+2112_daily_bin1440.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/232688/ft1_filtered_4FGL_J0521.7+2112_daily_bin1440.fits.........................!
real 49.13
user 35.46
sys 12.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46381E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24836E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11190E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36088E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11445E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24081E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .12292E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64059       1.0000         .10000E-03   10000.    
    13 'norm      '    .78146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.863       1.0000         .10000E-03   10000.    
    15 'Prefactor '    103.68       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13536E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1117.237     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2686 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        5003.3        .33987E-02** at limit **
   2  norm         10000.0        9184.2        .45641E-02** at limit **
   3  Prefactor     .10000E-03    264.07        .19177E-04** at limit **
   4  Prefactor     .10527E-03    27.913       -.69298E-05** at limit **
   5  norm          .10000E-03    47.469       -.13904E-05** at limit **
   6  Prefactor     .10000E-03    19.308       -.55387E-07** at limit **
   7  Prefactor    10000.0        6403.3        .87236E-03** at limit **
   8  Prefactor     .10000E-03    264.92        .16483E-04** at limit **
   9  norm          .10000E-03    113.98       -.19654E-04** at limit **
  10  Prefactor     .10000E-03    992.58       -.49239E-03** at limit **
  11  norm          .10000E-03    25.813        .36039E-05** at limit **
  12  Prefactor     .64153        .89512        .56595E-06   -.16458E-02
  13  norm          .10159E-03    51.936        .37712E-05** at limit **
  14  Prefactor     11.895        13.928       -.60439E-05   -.43309E-04
  15  Prefactor     103.71        169.57        .24834E-04    .39181E-04
  16  Prefactor     .10000E-03    203.92        .84045E-04** at limit **
  17  Prefactor     .10000E-03    26.988       -.49821E-05** at limit **
  18  Prefactor     .10000E-03    13.924        .77459E-07** at limit **
  19  Normalizat    .10000E-01    .35983       -.40017E-06** at limit **
  20  Prefactor     .91401        .12058       -.31647E-06    .24985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.000105274
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.641534
  norm       = 0.000101586
  Prefactor  = 11.8946
  Prefactor  = 103.707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.914007
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.237     FROM HESSE     STATUS=OK           279 CALLS     2965 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        5003.3        .18337E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        9183.8        .18575E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    266.43        .21194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10527E-03    264.85        .33829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    47.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.309        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        6403.3        .19851E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    264.92        .21310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    113.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    992.44        .20055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    25.851        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .64153        .78002        .27991E-04   -1.5548    
  13  norm          .10159E-03    240.87        .40392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.895        13.910        .11417E-03   -1.5018    
  15  Prefactor     103.71        169.54        .39489E-04   -1.3668    
  16  Prefactor     .10000E-03    204.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.094        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.934        .12185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .36481        .12216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .91401        .11868        .12515E-03   -.95653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55983e-08
Minuit parameter uncertainties:
  1  0.000461968
  2  0.00118412
  3  0.000766064
  4  0.0750834
  5  6.17635e-08
  6  5.37633e-06
  7  0.00052302
  8  2.60002e-05
  9  8.21574e-05
  10  0.000912354
  11  0.000127936
  12  0.780031
  13  0.0392468
  14  13.9136
  15  170.344
  16  3.18665e-05
  17  9.72697e-05
  18  3.96855e-05
  19  1.02325e-06
  20  0.118711
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  1.000e-04  8.216e-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:  9.140e-01  1.187e-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:  1.000e-02  1.023e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 80.445 21.213
Photon Flux Upper Limit: 9.10e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232688/likelihoodResults_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.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) = 1117.23699819
delta logL = -4.64377815206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1117.23699511
delta logL = -4.33510410858e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96058E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8513       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91401       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=   1117.237     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    110.41        .90742E-02** at limit **
   2  alpha         1.8617        3.3719        .43055       -.43897E-06
   3  Normalizat    .10000E-01    .31207        .28399    ** at limit **
   4  Prefactor     .91401        .11191        .28315E-01    .40861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100056
  alpha      = 1.86165
  Normalizat = 0.01
  Prefactor  = 0.914008
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.237     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    109.53        .18148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8617        3.3704        .50000       -.25820    
   3  Normalizat    .10000E-01    .31832        .12216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91401        .11037        .12515E-03   -.95653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27162e-10
Minuit parameter uncertainties:
  1  0.00496211
  2  2.41794
  3  7.96846e-06
  4  0.110399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232688': 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) = 1117.23695175
delta logL = 1.54386725626e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.140e-01  1.104e-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:  1.000e-02  7.968e-06  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/232688/cmap_HighResolution_612576001_612835201_4FGL_J0521.7+2112_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='9.10e-06', time_completed='2021-08-22 12:00:15.155876', job_id='232688', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629658815.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1440' AND source_name='4FGL J0521.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:00:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 232688: <4FGL_J0521.7+2112_daily_bin1440> in cluster <slac> Done

Job <4FGL_J0521.7+2112_daily_bin1440> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 11:45:20 2021
Job was executed on host(s) <bullet0103>, 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 12:00:19 2021
Results reported at Sun Aug 22 12:00:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_daily_bin1440 80.4445 21.2131 612576001 612835201 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 :                                   652.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             227.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            899 sec.

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

