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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin1035
RA = 226.535, Dec = 37.5183
tmin = 507600001, tmax = 507859201
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='45234', job_status='RUN', time_executed='2021-09-10 23:49:15.703558', time_epoch_executed='1631342955.7' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45234/ft1_4FGL_J1506.1+3731_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45234/ft1_4FGL_J1506.1+3731_daily_bin1035.fits outfile=/scratch/kocevski/45234/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1035.fits ra=226.535 dec=37.5183 rad=12.0 tmin=507600001.0 tmax=507859201.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 3.60
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.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/45234/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.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 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/45234/ltcube_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.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/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits
.....................!
real 12.10
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/45234/ltcube_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits outfile=/scratch/kocevski/45234/expmap_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.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/45234/ltcube_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits
.....................!
real 190.46
user 185.67
sys 4.39

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
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits outfile=/scratch/kocevski/45234/cmap_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.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=226.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.03
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits outfile=/scratch/kocevski/45234/cmap_HighResolution_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.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=226.535 yref=37.5183 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 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45234/Model_4FGL_J1506.1+3731_daily_bin1035.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
Working on...
/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits.....................!
real 46.47
user 45.13
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits', '/scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits', expMap='/scratch/kocevski/45234/expmap_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits', expCube='/scratch/kocevski/45234/ltcube_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/45234/Model_4FGL_J1506.1+3731_daily_bin1035.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/45234/ft1_filtered_4FGL_J1506.1+3731_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/45234/ft2_4FGL_J1506.1+3731_daily_bin1035.fits
Exposure map: /scratch/kocevski/45234/expmap_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits
Exposure cube: /scratch/kocevski/45234/ltcube_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/45234/Model_4FGL_J1506.1+3731_daily_bin1035.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) = 5602.83383077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.154       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7552       1.0000         .10000E-03   10000.    
     6 'norm      '    .47694E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1341       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5148       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12435E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.595       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6883       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80512       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5602.772     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     4291 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.146        21.308       -.61346E-06    .41831E-04
   2  norm          7.7670        4.0859        .75536E-07    .47021E-03
   3  Prefactor     25.909        25.851        .81823E-06    .61481E-03
   4  Prefactor     1.6439        119.76        .12738E-05    .12457E-03
   5  Prefactor     8.7547        4.6910       -.96639E-07   -.15496E-04
   6  norm          .10329E-03    17.491       -.56698E-05** at limit **
   7  Prefactor     .10002E-03    50.591       -.31044E-05** at limit **
   8  norm          4.1344        5.1623        .45307E-07   -.11668E-03
   9  Prefactor     12.741        49.059       -.72244E-06   -.66373E-04
  10  Prefactor     .10000E-03    32.091        .25763E-06** at limit **
  11  norm          .10000E-03    2.3262       -.43043E-07** at limit **
  12  Prefactor     31.022        15.122       -.12586E-06   -.60440E-04
  13  Prefactor     6.2838        4.9723       -.17387E-06    .18780E-03
  14  Prefactor     .10000E-03    4.6428        .21398E-05** at limit **
  15  norm          1.5143        1.2684       -.58864E-07   -.14462E-03
  16  norm          .10000E-03    .96102       -.71690E-07** at limit **
  17  Prefactor     .10000E-03    23.667       -.13637E-04** at limit **
  18  Prefactor     45.875        58.023        .17492E-06    .14297E-04
  19  Prefactor     8.4950        9.6299        .88834E-08   -.52462E-05
  20  Prefactor     17.610        18.463        .91535E-07    .34628E-03
  21  Prefactor     .10000E-03    5.5284       -.61538E-06** at limit **
  22  norm          3.6949        2.0125       -.10343E-06    .26869E-05
  23  Prefactor     1.6684        17.345        .93236E-06    .12435E-03
  24  Prefactor     .10000E-03    11.284        .53421E-07** at limit **
  25  Prefactor     .10000E-03    27.686       -.38968E-06** at limit **
  26  norm          .10000E-03    11.359        .82356E-07** at limit **
  27  Prefactor     .10000E-03    14.877       -.15332E-06** at limit **
  28  Normalizat    .80499        .17550        .20259E-05    .67376E-03
  29  Prefactor     .89765        .16817       -.13515E-05    .37662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1459
  norm       = 7.76696
  Prefactor  = 25.9092
  Prefactor  = 1.64386
  Prefactor  = 8.75469
  norm       = 0.00010329
  Prefactor  = 0.00010002
  norm       = 4.1344
  Prefactor  = 12.7413
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 31.0218
  Prefactor  = 6.28378
  Prefactor  = 0.000100004
  norm       = 1.51433
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 45.8754
  Prefactor  = 8.49504
  Prefactor  = 17.6095
  Prefactor  = 0.0001
  norm       = 3.69494
  Prefactor  = 1.66841
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804989
  Prefactor  = 0.897652
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.772     FROM HESSE     STATUS=OK           559 CALLS     4850 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.146        21.312        .12574E-03   -1.5071    
   2  norm          7.7670        4.0855        .10570E-03   -1.5151    
   3  Prefactor     25.909        27.021        .78707E-04   -1.4690    
   4  Prefactor     1.6439        125.34        .33256E-03   -1.5452    
   5  Prefactor     8.7547        4.6981        .11325E-03   -1.5116    
   6  norm          .10329E-03    15.249        .88071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    52.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1344        5.1435        .18042E-03   -1.5301    
   9  Prefactor     12.741        48.960        .11207E-03   -1.4994    
  10  Prefactor     .10000E-03    32.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3265        .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.022        15.130        .71938E-04   -1.4593    
  13  Prefactor     6.2838        4.9715        .14317E-03   -1.5207    
  14  Prefactor     .10000E-03    10.676        .29983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5143        1.2565        .73344E-04   -1.5462    
  16  norm          .10000E-03    .96611        .71633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.553        .30764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.875        57.974        .59189E-04   -1.4352    
  19  Prefactor     8.4950        9.6332        .13752E-03   -1.5125    
  20  Prefactor     17.610        18.066        .95484E-04   -1.4868    
  21  Prefactor     .10000E-03    5.5748        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6949        1.9413        .58536E-04   -1.5324    
  23  Prefactor     1.6684        16.222        .32402E-03   -1.5450    
  24  Prefactor     .10000E-03    11.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80499        .20476        .24617E-03   -.99884    
  29  Prefactor     .89765        .19582        .23620E-03   -.96223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71023e-09
Minuit parameter uncertainties:
  1  21.3279
  2  4.08562
  3  27.0339
  4  28.7697
  5  4.69825
  6  0.0141692
  7  0.00205697
  8  5.14408
  9  49.1147
  10  0.000291206
  11  5.201e-06
  12  15.1322
  13  4.97182
  14  0.000430926
  15  1.25655
  16  2.21753e-06
  17  0.000696705
  18  58.045
  19  9.63492
  20  18.0721
  21  9.5373e-05
  22  1.94133
  23  10.408
  24  2.66578e-05
  25  0.000386858
  26  2.02068e-05
  27  4.09376e-05
  28  0.204959
  29  0.19597
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.514e+00  1.257e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.977e-01  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.050e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 9.49e-06 +/- 7.88e-06

TS (Fixed Index): 3.07
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 9.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45234/likelihoodResults_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.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) = 5601.58788869
delta logL = 1.18376849715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5601.49536042
delta logL = 1.27629677331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96182       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3007       1.0000          .0000       5.0000    
     3 'Normalizat'    .82997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5601.495     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96185        .79745        .12241E-01   -.15304E-03
   2  alpha         1.3005        .41340        .31091       -.39939E-04
   3  Normalizat    .82998        .16334        .44000E-01    .14138E-04
   4  Prefactor     .88021        .16543        .44753E-01    .98451E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.961852
  alpha      = 1.30048
  Normalizat = 0.829983
  Prefactor  = 0.880206
 **********
 **   18 **HESSE 
 **********

 FCN=   5601.495     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96185        1.0378        .53903E-04   -1.5512    
   2  alpha         1.3005        .58299        .12589E-01   -.50044    
   3  Normalizat    .82998        .18930        .24278E-03   -.98966    
   4  Prefactor     .88021        .19173        .23806E-03   -.96836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85547e-09
Minuit parameter uncertainties:
  1  1.03778
  2  0.590082
  3  0.189448
  4  0.191874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45234': 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) = 5601.49536016
delta logL = 1.27629703234

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  9.619e-01  1.038e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.300e+00  5.901e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.802e-01  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.300e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 226.535 37.518
Photon Index (Free Index): 1.30 +/- 0.59
Photon Flux (Free Index): 1.43e-08 +/- 1.38e-08
Energy Flux (Free Index): 2.66e-05 +/- 3.09e-05

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/45234/cmap_HighResolution_507600001_507859201_4FGL_J1506.1+3731_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='2.66e-05', photon_flux_error='2.69e-08', dlogl='1.28e+00', energy_flux='9.49e-06', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-11 00:02:58.274928', photon_index_error2='0.59', photon_index2='1.30', ts='3.07', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.71e-08', energy_flux_error2='3.09e-05', EG='0.80', time_epoch_completed='1631343778.27', return_code='0', job_id='45234', GAL2='0.88', EG2='0.83', return_code2='0', energy_flux_error='7.88e-06', photon_flux_error2='1.38e-08', ts2='5.64', photon_index='2.40' WHERE bin_id='1035' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:02:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 45234: <4FGL_J1506.1+3731_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin1035> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 23:46:20 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:46:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:46:21 2021
Terminated at Sat Sep 11 00:02:59 2021
Results reported at Sat Sep 11 00:02:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin1035 226.535 37.5183 507600001 507859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.1+3731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   811.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

