/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 5 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin270
RA = 226.535, Dec = 37.5183
tmin = 309312001, tmax = 309571201
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='39587', job_status='RUN', time_executed='2021-09-10 23:26:19.333111', time_epoch_executed='1631341579.33' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39587/ft1_4FGL_J1506.1+3731_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39587/ft1_4FGL_J1506.1+3731_daily_bin270.fits outfile=/scratch/kocevski/39587/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin270.fits ra=226.535 dec=37.5183 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.05
user 3.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.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/39587/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/39587/ltcube_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.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/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits
.....................!
real 12.31
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/39587/ltcube_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits outfile=/scratch/kocevski/39587/expmap_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.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/39587/ltcube_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits
.....................!
real 193.26
user 187.77
sys 5.13

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/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits outfile=/scratch/kocevski/39587/cmap_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits outfile=/scratch/kocevski/39587/cmap_HighResolution_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/39587/Model_4FGL_J1506.1+3731_daily_bin270.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/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits.....................!
real 52.30
user 51.05
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits', '/scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits', expMap='/scratch/kocevski/39587/expmap_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits', expCube='/scratch/kocevski/39587/ltcube_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39587/Model_4FGL_J1506.1+3731_daily_bin270.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/39587/ft1_filtered_4FGL_J1506.1+3731_daily_bin270.fits
Spacecraft file(s): /scratch/kocevski/39587/ft2_4FGL_J1506.1+3731_daily_bin270.fits
Exposure map: /scratch/kocevski/39587/expmap_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits
Exposure cube: /scratch/kocevski/39587/ltcube_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39587/Model_4FGL_J1506.1+3731_daily_bin270.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) = 6680.29951769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75766       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20262E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53365E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5840       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2620       1.0000         .10000E-03   10000.    
    16 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6612       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.838       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9718       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4063       1.0000         .10000E-03   10000.    
    22 'norm      '    12.989       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29727E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3087       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73657       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6680.287     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4353 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    10.767         .0000    ** at limit **
   2  norm          2.2656        3.4621         .0000        .44184E-03
   3  Prefactor     30.012        14.214         .0000        .18987E-02
   4  Prefactor     .10000E-03    14.018         .0000    ** at limit **
   5  Prefactor     .75946        2.2048         .0000        .11141E-02
   6  norm          .10000E-03    4.6671         .0000    ** at limit **
   7  Prefactor     .10079E-03    18.588         .0000    ** at limit **
   8  norm          7.5903        6.4071         .0000       -.46435E-02
   9  Prefactor     .10053E-03    110.66         .0000    ** at limit **
  10  Prefactor     .10000E-03    10.455         .0000    ** at limit **
  11  norm          7.8527        7.4610         .0000       -.11805E-02
  12  Prefactor     3.9683        12.742         .0000        .44833E-03
  13  Prefactor     .10000E-03    6.0770         .0000    ** at limit **
  14  Prefactor     6.5846        5.7206         .0000        .14409E-02
  15  norm          1.2606        1.2860         .0000        .44763E-03
  16  norm          .10000E-03    2.5916         .0000    ** at limit **
  17  Prefactor     1.6566        11.182         .0000        .16582E-01
  18  Prefactor     42.808        52.873         .0000        .68312E-04
  19  Prefactor     .10000E-03    8.7567         .0000    ** at limit **
  20  Prefactor     2.9749        10.101         .0000        .32765E-02
  21  Prefactor     8.4292        13.588         .0000        .27398E-02
  22  norm          12.983        2.4192         .0000        .46778E-04
  23  Prefactor     .10041E-03    7.5021         .0000    ** at limit **
  24  Prefactor     .10000E-03    11.863         .0000    ** at limit **
  25  Prefactor     .10000E-03    4.1721         .0000    ** at limit **
  26  norm          .10000E-03    2.8181         .0000    ** at limit **
  27  Prefactor     .10000E-03    28.757         .0000    ** at limit **
  28  Normalizat    1.3088        .18062         .0000       -.39034E-04
  29  Prefactor     .73654        .16938         .0000       -.71497E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100526
  norm       = 2.26562
  Prefactor  = 30.0121
  Prefactor  = 0.0001
  Prefactor  = 0.759457
  norm       = 0.0001
  Prefactor  = 0.000100786
  norm       = 7.59035
  Prefactor  = 0.000100528
  Prefactor  = 0.0001
  norm       = 7.85265
  Prefactor  = 3.96832
  Prefactor  = 0.0001
  Prefactor  = 6.58458
  norm       = 1.26063
  norm       = 0.0001
  Prefactor  = 1.65662
  Prefactor  = 42.8083
  Prefactor  = 0.0001
  Prefactor  = 2.97492
  Prefactor  = 8.42924
  norm       = 12.9835
  Prefactor  = 0.000100412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30875
  Prefactor  = 0.736539
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.287     FROM HESSE     STATUS=OK           565 CALLS     4918 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    10.332        .94893E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2656        3.4330        .18050E-03   -1.5407    
   3  Prefactor     30.012        14.227        .73138E-04   -1.4612    
   4  Prefactor     .10000E-03    14.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .75946        2.2175        .19797E-03   -1.5534    
   6  norm          .10000E-03    4.6690        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10079E-03    22.254        .10221       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5903        6.4080        .14552E-03   -1.5157    
   9  Prefactor     .10053E-03    113.81        .38222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8527        7.4560        .14307E-03   -1.5147    
  12  Prefactor     3.9683        12.713        .20231E-03   -1.5310    
  13  Prefactor     .10000E-03    6.1417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5846        5.7229        .15640E-03   -1.5195    
  15  norm          1.2606        1.2570        .89257E-04   -1.5483    
  16  norm          .10000E-03    2.6415        .25498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6566        10.013        .16365E-02   -1.5451    
  18  Prefactor     42.808        52.834        .61250E-04   -1.4398    
  19  Prefactor     .10000E-03    8.8595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9749        10.044        .23553E-03   -1.5363    
  21  Prefactor     8.4292        12.956        .13827E-03   -1.5127    
  22  norm          12.983        2.1089        .44971E-04   -1.4987    
  23  Prefactor     .10041E-03    43.457        .37005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1730        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.8191        .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    29.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3088        .21569        .23100E-03   -.83306    
  29  Prefactor     .73654        .20103        .29480E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38366e-08
Minuit parameter uncertainties:
  1  0.00466494
  2  3.43333
  3  14.2286
  4  8.43853e-05
  5  2.21769
  6  7.23812e-06
  7  0.00836731
  8  6.40854
  9  0.0155303
  10  2.25793e-05
  11  7.45691
  12  12.7216
  13  1.08128e-05
  14  5.72338
  15  1.25707
  16  1.92822e-07
  17  8.14744
  18  52.8922
  19  3.5245e-05
  20  10.0495
  21  12.96
  22  2.10891
  23  0.00846944
  24  1.02658e-05
  25  1.33738e-06
  26  2.51035e-06
  27  0.000139126
  28  0.215842
  29  0.201234
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.261e+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:  7.365e-01  2.012e-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:  1.309e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 7.88e-06

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

Saving results to:
/scratch/kocevski/39587/likelihoodResults_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.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) = 6680.28642056
delta logL = 0.000765228473028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6680.28640063
delta logL = 0.000785166045716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4382       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73727       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=   6680.286     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      221 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2591        1.3441        .99431E-02   -.20272E-02
   2  alpha         2.4385        1.0404        .41168E-01    .50608E-04
   3  Normalizat    1.3076        .17154        .52264E-01    .16552E-04
   4  Prefactor     .73728        .16886        .66601E-01    .13996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25909
  alpha      = 2.43846
  Normalizat = 1.30765
  Prefactor  = 0.73728
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.286     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2591        1.2470        .88872E-04   -1.5484    
   2  alpha         2.4385        .99142        .16467E-02   -.24617E-01
   3  Normalizat    1.3076        .20381        .23108E-03   -.83338    
   4  Prefactor     .73728        .19992        .29467E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43737e-09
Minuit parameter uncertainties:
  1  1.24698
  2  1.01946
  3  0.203933
  4  0.200119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39587': 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) = 6680.28640056
delta logL = 0.000785229981375

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.259e+00  1.247e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.438e+00  1.019e+00  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:  7.373e-01  2.001e-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:  1.308e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.44 +/- 1.02
Photon Flux (Free Index): 2.78e-08 +/- 3.38e-08
Energy Flux (Free Index): 7.86e-06 +/- 7.84e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/39587/cmap_HighResolution_309312001_309571201_4FGL_J1506.1+3731_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='7.86e-06', photon_flux_error='2.69e-08', dlogl='7.85e-04', energy_flux='7.90e-06', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-10 23:42:17.724558', photon_index_error2='1.02', photon_index2='2.44', ts='1.60', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='9.16e-08', energy_flux_error2='7.84e-06', EG='1.31', time_epoch_completed='1631342537.72', return_code='0', job_id='39587', GAL2='0.74', EG2='1.31', return_code2='0', energy_flux_error='7.88e-06', photon_flux_error2='3.38e-08', ts2='1.60', photon_index='2.40' WHERE bin_id='270' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 39587: <4FGL_J1506.1+3731_daily_bin270> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin270> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 23:26:01 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:26:02 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:26:02 2021
Terminated at Fri Sep 10 23:42:18 2021
Results reported at Fri Sep 10 23:42:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin270 226.535 37.5183 309312001 309571201 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 :                                   954.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

